Quick Manual For LMS Communication Setup: Hardware Setup and Measurement Mode Configuration
Quick Manual For LMS Communication Setup: Hardware Setup and Measurement Mode Configuration
-1-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
Contents
A. INTRODUCTION 3
B. HARDWARE SETUP 4
2. Power supply 5
D. APPENDICES: 14
! This is a quick start manual. For extended information please refer to the documents
listed in section D.4. !
-2-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
A. Introduction
1. Basics of the LMS System
-3-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
B. Hardware setup
1. Before you start ... : Required components
As a minimum requirement to set up an LMS sensor with a data connection to a PC, the following
components are required:
For LMS200/LMS291:
Item/Specification Description SICK order number
1 x LMS unit with cable LMS200-30106 1015850
connectors LMS291-S05 1018028
1 x power supply 24 V DC +- Power supply DC 24V / 2.5 A 6010361
15%, min. 2.5 A
1 x cable for power supply Cable set 1: 5 m length 2018964
and output signals (open
cable ends Cable set 2: 10 m length 2018965
1 x cable for data interface
For LMS211/LMS220/LMS221:
Item/Specification Description SICK order number
1 x LMS unit with cable LMS211-30206 1018023
connectors LMS220-30106 1015945
LMS221-30206 1018022
1 x power supply 24 V DC +- Power supply DC 24V / 2.5 A 6010361
15%, min. 2.5 A for LMS
electronics
1 x power supply 24 V DC +- Power supply DC 24V / 10 A 6011156
15%, min. 5 A for LMS
heating
1 x cable for power supply Cable set: 5 m length 2019561
and output signals (open
cable ends
1 x cable for data interface
Note: In case of longer cables, please source your own cable. Please make sure to use correct
cable diameters to avoid voltage drops along large cable lengths.
A laptop or desktop computer serves as user interface with the LMS unit. The computer is
connected via a serial interface:
• RS232 interface (up to 10 m cable length) (standard COM1 or COM2 in most computers)
• RS422 interface (up to 1200 m cable length) (special interface card required)
In case a high-speed data transmission is required, SICK offers special interface boards for 500
kBaud transmission rate. For details and information please refer to section D.2.
-4-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
The LMS unit is supplied with 24 V DC +/- 15%. Depending on the length of the power supply
cable, the power supply needs to provide sufficient current.
Due to the LMS models, connection diagrams are different for LMS200/LMS291 and
LMS220/211/221.
LMS 291
Power Supply
24 V DC
Pin assignment:
Pin Signal designation Input/ Wire
No. Output color
1 GND_EXT (ground) Supply brown
2 Restart Input blue
3 VCC_EXT (24V DC +- 15%) Supply red
4 Not connected - -
5 OUT C (for field detection)/ Output grey
weak signal
6 Not connected - -
7 Not connected - -
8 OUT B (for field detection) Output turquoise
9 OUT A (for field detection) Output orange
-5-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
Control Cabinet
For data exchange in measuring tasks, the LMS is equipped with a serial RS 232 / RS 422
interface.
By setting a jumper, RS422 or RS232 can be enabled. Default setting is RS232.
Pin assignment:
LMS PC
Signal designation PIN No. PIN No. Signal designation
Not connected 1 1 NC
RxD 2 2 RxD
TXD 3 3 TXD
Not connected 4 4 Not connected
GND 5 5 GND
Not connected 6 6 Not connected
Not connected 7 7 Not connected
Not connected 8 8 Not connected
Not connected 9 9 Not connected
-7-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
Pin assignment:
LMS PC
Signal designation PIN No. PIN No. Signal designation
RxD- 1 1 RxD-
RxD+ 2 2 RxD+
TxD- 3 3 TxD-
TxD+ 4 4 TxD+
GND 5 5 GND
Not connected 6 6 Not connected
Jumper 1 7 7 Not connected
Jumper 2 8 8 Not connected
Not connected 9 9 Not connected
Note: As there is no standard for RS422 connector pinning, please check the signal
assignments of your RS422 interface card to the respective PINs. Refer to the
documentation of your RS422 interface board manufacturer.
In case of deviations, change the cable assignments accordingly.
For selection of the RS422, there needs to be a jumper connection between between
PINs 7 and 8 on the LMS side inside the cable connector.
PINs 2 and 3 are crossed in the cable, PINs 1 and 4 are crossed in the cable. It is
recommended to use twisted pair cables for RS422 connections.
Note: For selection of the RS422, there needs to be a jumper connection between between
PINs 3 and 11 on the LMS side in the cable connector.
PINs 2 and 3 are crossed in the cable, PINs 1 and 4 are crossed in the cable. It is
recommended to use twisted pair cables for RS422 connections.
-8-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
After power connection of the LMS, the yellow AND red indicators are active until the start-up
procedure has been completed.
When ONLY either the green OR the red LED indicator is active, the unit is ready for
communication.
Additionally, a startup message is sent with 9600 baud via the serial interface to the
connected PC. (Note: The transmission rate is reset to 9600 baud after a power down)
LMS start-up message in hex LMS à PC
02 81 17 00 90 4C 4D 53 32 30 30 3B 33 30 31 30 36 33 3B 56 30 32 2E 30 36 20 13 64 5A
-9-
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
When the LMS leaves the factory, the following parameters apply as the default:
These defaults may be changed with the commands described in this manual. Most
applications can be served by changing/adaptation of the above defaults.
In case more details are required, please contact your local SICK representative.
After a power-down of the LMS unit, the transmission baudrate is reset to 9600 baud.
To access the LMS measurement data at a higher baudrate, it is required to change to a
higher baudrate after each power-down with one of the following commands:
Note: Changing the baudrate with the above commands disrupts the communication link
between LMS and PC. To resume communication with the LMS, it is necessary to
change to the new baudrate in the PC program as well.
Depending on the selected format, different numbers of distance data values will be supplied.
Angular range Angular resolution Number of data values
0° .. 100° 1° 101
0° .. 100° 0.5° 201
0° .. 100° 0.25° 401
0° .. 180° 1° 181
0° .. 180° 0.5° 361
For the output data string format syntax, please refer to appendix A.
- 10 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
Note:
After each settings telegram, an ACK acknowledgement AND a reply telegram from the LMS
need to be received by the PC. Only after having received the complete reply telegram, the
setting has been successfully implemented in the LMS and the next telegram can be sent.
Intermediate telegram will be ignored.
Mode Measurement/
detection range
mm mode 0 .. 8191 mm = 8.191 meters
cm mode 0 .. 8191 cm = 81.91 meters
Note: Measurements in the cm mode are not as accurate as in the mm mode. Please
refer to the Technical Description for details on the estimation of accuracies in
specific application environments.
a. Switch to mm mode
To switch to different measurement modes, it is necessary to enable the LMS “Settings
Mode”.
LMS distance Telegram code in hex Reply telegram in hex
mode PC à LMS LMS à PC
1. Settings 02 00 0A 00 20 00 53 49 43 4B 5F 4C 4D 06 02 81 03 00 A0 00 10 36 1A
53 BE C5
mode
02 00 21 00 77 00 00 00 00 00 0D 01 00 06 02 81 23 00 F7 00 00 00 46 00 00
00 02 02 00 00 00 00 00 00 00 00 00 00 0D 01 00 00 02 02 00 00 00 00 00 00
2. Switch to
00 00 00 00 00 00 00 00 00 00 00 34 C7 00 00 00 00 00 00 00 00 00 00 00 00
mm mode 00 00 00 10 FA EA
- 11 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
Note:
After each settings telegram, an ACK acknowledgement AND a reply telegram from the LMS
need to be received by the PC. Only after having received the complete reply telegram, the
setting has been successfully implemented in the LMS and the next telegram can be sent.
For the change between cm and mm mode, it can take up to 7 sec until the reply telegram is
sent from the LMS. Intermediate telegrams will be ignored.
Once all required settings are completed, the LMS needs a command to send the
measurement data to the PC.
In contrast to data-polling applications, the LMS sends a continuous stream of data via the
serial interface.
The data output is formatted according to the syntax described in section D.2. of this manual.
Note: Before any further settings telegrams can be sent to the LMS, the continuous data
output needs to be stopped by a special command.
(à refer to section C.9.)
- 12 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
A typical PC program for monitoring and processing tasks needs to perform the following
operations:
LMS data evaluation programs have been
Start written in different programming environments.
For basic sending of command telegrams and
Prepare monitoring of PC ßà LMS communications, a
data structure for standard terminal program can be used.
LMS data capture
For sophisticated applications, Windows-based
Send commands to packages, like Visual C++, Delphi, etc. have
set required
measurement mode
been used.
Note: Although there is an STX character at the start of the output data string, there is no ETX
character at the end. The actual data string needs to be identified by
• Parsing for the next output data string header
or
• Buffering a fixed number of data values calculated from the length information in the
output string data header
As a support tool, SICK supplies the MST software package, which is a Visual C++ v6.00-based
software driver library. A compact software program “MSTDemo” demonstrates the capabilities of
the LMS in combination with MST-driver-based programming.
For details and order information, please contact your local SICK representative.
- 13 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
Before any further settings telegrams can be sent to the LMS, the continuous data output
needs to be stopped.
D. Appendices:
In section C.5. continuous data output was started. The following table lists some details
about the format of the resulting data stream from the LMS.
STX ADR LenL LenH CMD Data DataL Data 0° Data 0° Data 1° Data 1° ....... Status CRC CRC
Low High LenL enH Low High Low High (more Low High
byte byte byte byte byte byte data) byte byte
- 14 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
To get the correct measurement value, it is necessary to strip the upper 3 bits of each
measurement data value:
The upper three bits have a different function which is not required for basic LMS data
capture.
Warning: Only use the following commands if you have a high-speed serial interface
card (MOXA, 500 kBaud) as supplied by SICK. Once the LMS baudrate is
changed to 500 kBaud, it is not possible to communicate with the LMS
without the MOXA high-speed serial interface card!
To use the high-speed LMS communication mode, it is necessary to use one of the following
special serial communication boards as supplied by SICK:
- 15 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
b. Quatech card
The Quatech card provides two serial RS422 interfaces for 500 kBaud. The card can be
installed in PCs which have a free PCI-bus adaptor.
7 TxD- 1 RxD-
2 TxD+ 2 RxD+
LMS 200
Quatech 4 RXD+ 3 TXD+ LMS 291
Interface 8 RXD- 4 TXD-
Card 3 GND 5 GND
Note: !! PIN 7 and PIN 8 need to bee linked together in SICK Connector!!
! RS 422 can only be used if the pinning fits to the PC side!
Note: !! PIN 3 and PIN 11 need to bee linked together in SICK Connector!!
! RS 422 can only be used if the pinning fits to the PC side!
- 16 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
Note: After setting the LMS baudrate of 500 kBaud, change your PC program to access
to the LMS via the MOXA high-speed serial interface card. It is required to use the
MOXA card to change the baudrate back to a lower value. Another possible way to
reset the LMS back to 9600 baud is power off/on.
Note: When using SICK software for LMS (LMSIBS or MST driver) the above
values are already implemented.
This means, to use the full capabilities of the LMS, it is necessary to use the MOXA high-
speed serial interface card for PC communication.
- 17 -
© SICK AG · Auto Ident · Germany · All rights reserved
Quick Manual
For more detailed information on LMS, the following documents are available from SICK.
In case of questions or orders, please do not hesitate to contact your local SICK
representative.
- 18 -
© SICK AG · Auto Ident · Germany · All rights reserved