Leuze LRS Technical Description
Read Online
Read the Leuze LRS Technical Description online using the built-in PDF viewer.
Text of the manual
T E C H N I C A L D E S C R I P T I O N
LRS - Line Range Sensor
Light Section Sensors
en 04–2013/07 50113404
We reserve the right to
make technical changes
Technical description LRS
Leuze electronic
© 2013
Leuze electronic GmbH + Co. KG
In der Braike 1
D-73277 Owen / Germany
Phone: +49 7021 573-0
Fax: +49 7021 573-199
http://www.leuze.com
[email protected]
Table of contents
Leuze electronic
Technical description LRS
1
TNT 35/7-24V
Figures and tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1
General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.1
Explanation of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2
Declaration of conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2
Safety notices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1
General safety notices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Safety regulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Repair. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2
Safety standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3
Approved purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Areas of application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4
Working safely . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3
Operating principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1
Generation of 2D profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2
Limits of light section sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2.1
Occlusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Possible measure against laser occlusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Possible measures against receiver occlusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.2
Minimum object size. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4
Device description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1
Overview of light section sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1.1
Mechanical design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1.2
General performance characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.1.3
Line Range Sensor - LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Specific performance characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Typical areas of application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2
Operating the sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.1
Connection to PC / process control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Detection operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.2
Activation - laser on/off. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.3
Triggering - Free Running. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
PROFIBUS trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.2.4
Cascading. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Trigger settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Cascading settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3
Detection functions LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.3.1
Inspection Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table of contents
2
Technical description LRS
Leuze electronic
4.3.2
Analysis Window (AW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Analysis results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.3.3
Definition of AWs and analysis results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.3.4
Application examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Zero check of cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Single or multiple track presence/absence detection on transport systems . . . . . . . . . . . . . . . . . . . . . 27
4.3.5
Creation of inspection tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5
Installation and mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.1
Storage, transportation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Unpacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.2
Mounting the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.2.1
BT 56 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5.2.2
BT 59 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.3
Device arrangement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.3.1
Selecting a mounting location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.3.2
Aligning the sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.4
Attach laser warning sign. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.5
Cleaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6
Electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.1
Safety notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.2
Shielding and line lengths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Shielding: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
General shielding information: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Connect the ground potential to the light section sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Connecting the cable shield in the switch cabinet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Connecting the cable shield to the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
6.3
Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
6.3.1
Connection X1 - logic and power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Activation input InAct. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Trigger input InTrig. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Cascading output OutCas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Output "ready" OutReady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.3.2
Connection X2 - Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Ethernet cable assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.3.3
Connection X3 - switching inputs/outputs (only LRS 36/6). . . . . . . . . . . . . . . . . . . . . . . . 42
Switching outputs of connection X3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Switching inputs of connection X3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.3.4
Connection X4 - PROFIBUS DP (only LRS 36/PB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
7
Display and control panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.1
Indicator and operating elements of the . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.1.1
LED status displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table of contents
Leuze electronic
Technical description LRS
3
TNT 35/7-24V
7.1.2
Control buttons. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.1.3
Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Alignment aid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Status display. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Command mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.2
Menu description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.2.1
Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.2.2
Operation/navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Menu navigation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Selecting values or selection parameters for editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Editing value parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Editing selection parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
7.3
Reset to factory settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Interrupting a reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Executing a reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8
Commissioning and configuration. . . . . . . . . . . . . . . . . . . . . . . . . 52
8.1
Switching on. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.2
Establish connection to PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Setting an alternative IP address on the PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
8.3
Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9
LRSsoft configuration software. . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.1
System requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.2
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.2.1
Possible error message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
9.3
Starting LRSsoft/Communication tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
PROFIBUS settings (only LRS 36/PB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
9.4
Parameter settings/Parameters tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
9.4.1
Task Parameters panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Inspection Task Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Operation Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Trigger Output Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Light Exposure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Field of View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Apply Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.4.2
Analysis Functions area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Edit Logical Combinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Edit Logical Combinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
9.4.3
Single Shot Mode area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
9.4.4
Global Parameters area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
9.5
Detection function/Visualization tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
9.5.1
Evaluating saved detection data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
9.6
Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Table of contents
4
Technical description LRS
Leuze electronic
9.6.1
Saving parameter settings/File menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
9.6.2
Transmitting parameter settings/Configuration menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
9.6.3
Managing detection data/Measure Records menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
9.6.4
Zoom and Pan/toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
9.7
Definition of inspection tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Typical procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
10
Integrating the LRS in the process control (Ethernet) . . . . . . . . . . 77
10.1
General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
10.2
Protocol structure: Ethernet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Protocol structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
10.2.1
Command number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
10.2.2
Packet number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
10.2.3
Transaction number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
10.2.4
Status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.2.5
Encoder High / Low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.2.6
Scan number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
10.2.7
Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
10.2.8
Number of user data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
10.2.9
Evaluation telegram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
10.3
Ethernet commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
10.3.1
Elementary commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
10.3.2
Commands in command mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
10.3.3
User data in command mode (command parameters) . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Set Laser Gate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Set Actual Inspection Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Get Actual Inspection Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Set Scan Number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Set Single Inspection Task Parameter (beginning with firmware V01.40!) . . . . . . . . . . . . . . . . . . . . . . . 85
Get Single Inspection Task Parameter (beginning with firmware V01.40!). . . . . . . . . . . . . . . . . . . . . . . 87
10.3.4
Commands in detection mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
10.4
Working with the protocol (Ethernet) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Command without user data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Command with user data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
10.5
Operation with LxS_Lib.dll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
10.6
Additional support when integrating sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
11
Integration of the LRS 36/PB in the PROFIBUS . . . . . . . . . . . . . . . 92
11.1
General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Characteristics of LRS 36/PB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Table of contents
Leuze electronic
Technical description LRS
5
TNT 35/7-24V
11.2
PROFIBUS address assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Automatic address assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Address assignment with LRSsoft . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Address assignment with key pad and display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
11.3
General information about the GSD file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
11.4
Overview of the GSD files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Output data (from viewing position of control). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Input data (from viewing position of control) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
11.5
Output data description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
PROFIBUS trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Activation - Sensor activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Inspection Tasks - Selection of inspection tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
11.6
Input data description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
11.6.1
Module M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Scan number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Sensor info. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Sensor state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
11.6.2
Module M2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Evaluation results of the analysis window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
11.6.3
Module M3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Number of hit points (Current Hits) in analysis window 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Number of hit points (Current Hits) in analysis window 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
:
:
:
:
:
:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Number of hit points (Current Hits) in analysis window 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
11.6.4
Module M4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Number of hit points (Current Hits) in analysis window 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
:
:
:
:
:
:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Number of hit points (Current Hits) in analysis window 9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
11.6.5
Module M5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Number of hit points (Current Hits) in analysis window 10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
:
:
:
:
:
:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Number of hit points (Current Hits) in analysis window 16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
12
Diagnostics and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . 102
12.1
General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
12.2
Interface error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
12.3
Error messages in display (starting from firmware V01.40) . . . . . . . . . . . . . . . . . . . . . 104
13
Maintenance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
13.1
General maintenance information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Cleaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
13.2
Repairs, servicing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
13.3
Disassembling, packing, disposing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Repacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Table of contents
6
Technical description LRS
Leuze electronic
14
Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
14.1
General specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
14.2
Typical detection range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
14.3
Dimensioned drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
15
Type overview and accessories . . . . . . . . . . . . . . . . . . . . . . . . . . 111
15.1
Type overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
15.1.1
LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
15.1.2
LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
15.1.3
LES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
15.2
Accessories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
15.2.1
Fastening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Mounting devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
15.2.2
Accessory ready-made cables for voltage supply X1 . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Contact assignment for connection cable X1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Order codes of the cables for voltage supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
15.2.3
Accessories for Ethernet interface X2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Ready-made cables with M12 plug/open cable end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Ready-made cables with M12 plug/RJ-45 plug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Ready-made cables with M12 plug/M12 plug. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
15.2.4
Accessories ready-made cables for X3 (only LRS 36/6) . . . . . . . . . . . . . . . . . . . . . . . . . 115
Contact assignment for X3 connection cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Order code of X3 connection cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
15.2.5
Connection accessories / ready-made cables for X4 (only LRS 36/PB) . . . . . . . . . . . . . 116
Contact assignment for X4 connection cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Order codes for X4 connection accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Order code of PROFIBUS connection cables for X4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
15.2.6
Configuration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
16
Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
16.1
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
16.2
Revision History / Feature list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
16.2.1
Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
16.2.2
Configuration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Figures and tables
Leuze electronic
Technical description LRS
7
TNT 35/7-24V
Figures and tables
Figure 2.1:
Name plate and warning notices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 3.1:
Light section sensor design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 3.2:
Occlusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 3.3:
Typical minimum object size LRS 36…. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 4.1:
Mechanical design of Leuze light section sensors . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 4.2:
Activation input signal sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 4.3:
Trigger input signal sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 4.4:
Signal sequence for cascading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 4.5:
Cascading application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 4.6:
Principle of object detection - areas with laser occlusion are shown in orange. . 25
Figure 4.7:
Zero check of cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 4.8:
Single or multiple track presence/absence detection on transport systems . . . . 27
Figure 5.1:
Device name plate LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 5.2:
Fastening options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 5.3:
Mounting example LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 5.4:
BT 56 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 5.5:
BT 59 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 5.6:
Alignment to the measuring plane. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 6.1:
Location of the electrical connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 6.2:
Connections of the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 6.1:
Interface version of X3 and X4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 6.2:
Line lengths and shielding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 6.3:
Connecting the ground potential to the light section sensor . . . . . . . . . . . . . . . . 38
Figure 6.4:
Connecting the cable shield in the switch cabinet . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 6.5:
Connecting the cable shield to the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Table 6.3:
Pin assignment X1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Figure 6.6:
Internal wiring at X1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Table 6.4:
Pin assignment X2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 6.7:
HOST / BUS IN cable assignments on RJ-45. . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Table 6.5:
Pin assignment X3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 6.6:
Pin assignment X3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 7.1:
Indicator and operating elements of the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table 7.1:
LED function indicator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table 7.2:
Menu structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Table 8.1:
Address allocation in the Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 9.1:
Initial screen LRSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 9.2:
PROFIBUS settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Figure 9.3:
Parameter settings in LRSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Figure 9.4:
Window "Analysis Window Definitions" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Figure 9.5:
Definition of analysis windows (AW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Figure 9.6:
"Analysis Window Combination Tables" window . . . . . . . . . . . . . . . . . . . . . . . . . 70
Table 9.1:
Parameter settings for control of the switching outputs . . . . . . . . . . . . . . . . . . . . 70
Figure 9.7:
Definition of logic combinations of several AWs. . . . . . . . . . . . . . . . . . . . . . . . . . 71
Figure 9.8:
LRSsoft Visualization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Figure 9.9:
Zoom function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Table 10.1:
Connection commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Figures and tables
8
Technical description LRS
Leuze electronic
Table 10.2:
Command mode control commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Table 10.3:
Sensor control commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Table 10.4:
Commands in detection mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Figure 11.1:
PROFIBUS address assignment with LRSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Table 11.1:
PROFIBUS - Overview of output data (from viewing position of control) . . . . . . . 95
Table 11.2:
PROFIBUS - Overview of input data (from viewing position of control) . . . . . . . . 96
Table 11.3:
Input data byte uSensorInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Table 11.4:
Input data byte uSensorState. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Table 11.5:
input data byte wResultAWs (high and low byte) . . . . . . . . . . . . . . . . . . . . . . . . . 99
Table 12.1:
General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Table 12.2:
Interface error. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Table 12.3:
Error messages in display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Figure 14.1:
Typical detection range LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Figure 14.2:
Dimensioned drawing LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Table 15.1:
Type overview LPS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Table 15.2:
Type overview LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Table 15.3:
Type overview LES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Table 15.4:
Mounting devices for the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Table 15.5:
K-D M12A-8P… cable assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Table 15.6:
X1 cables for the LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Table 15.7:
Pin assignments KB ET-…-SA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Table 15.8:
Ethernet connection cables featuring M12 plug/open cable end . . . . . . . . . . . . 113
Table 15.9:
Pin assignments KB ET-…-SA-RJ45 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Table 15.10:
Ethernet connection cables M12 connector/RJ-45. . . . . . . . . . . . . . . . . . . . . . . 114
Table 15.11:
Pin assignments KB ET-…-SSA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Table 15.12:
Ethernet connection cables featuring M12 plug/M12 plug . . . . . . . . . . . . . . . . . 114
Table 15.13:
Connectors for the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Table 15.14:
Pin assignments KB M12/8-…-SA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Table 15.15:
X3 cables for the LRS 36/6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Table 15.16:
Pin assignment X4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Figure 15.1:
Cable structure for PROFIBUS connection cables . . . . . . . . . . . . . . . . . . . . . . . 116
Table 15.17:
PROFIBUS connection accessories for the LRS 36/PB . . . . . . . . . . . . . . . . . . . 116
Table 15.18:
PROFIBUS cables for LRS 36/PB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Table 15.19:
Configuration software for the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Table 16.1:
Revision History - Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Table 16.2:
Revision History - Configuration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Technical description LRS
9
TNT 35/7-24V
1
General information
1.1
Explanation of symbols
The symbols used in this technical description are explained below.
Attention!
This symbol precedes text messages which must strictly be observed. Failure to comply with
this information results in injuries to personnel or damage to the equipment.
Attention Laser!
This symbol warns of possible danger caused by hazardous laser radiation.
The light section sensors of the LRS series use a class 2M laser: Viewing the laser output
with certain optical instruments, e.g. magnifying glasses, microscopes or binoculars, may
result in eye damage.
Notice!
This symbol indicates text passages containing important information.
1.2
Declaration of conformity
The laser light section sensors of the 36 and 36HI series have been developed and manu-
factured in accordance with the applicable European standards and directives. They comply
with the safety standards UL508 and CSA C22.2 No. 14 (Industrial Control Equipment).
Notice!
The CE Declaration of Conformity for these devices can be requested from the manufacturer.
The manufacturer of the product, Leuze electronic GmbH & Co. KG in D-73277 Owen,
possesses a certified quality assurance system in accordance with ISO 9001.
UL
US
C
LISTED
Technical description LRS
Leuze electronic
2
Safety notices
2.1
General safety notices
Documentation
All entries in this technical description must be heeded, in particular the present chapter
"Safety notices". Keep this technical description in a safe place. It should be available at all
times.
Safety regulations
Observe the locally applicable regulations and the rules of the employer's liability insurance
association.
Repair
Repairs must only be carried out by the manufacturer or an authorized representative.
2.2
Safety standards
The LRS series light section sensors were developed, manufactured and tested in accor-
dance with the applicable safety standards. They correspond to the state of the art.
2.3
Approved purpose
Attention!
The protection of personnel and the device cannot be guaranteed if the device is operated
in a manner not complying with its intended use.
The light section sensors of the LRS series are laser sensors for presence detection of
objects in defined areas.
In particular, unauthorized use includes:
• Rooms with explosive atmospheres
• Operation for medical purposes
Areas of application
The LRS series light section sensors are especially designed for the following areas of appli-
cation:
• Zero check of cases
• Single or multiple track presence/absence detection on transport systems
• Check whether object or lid are present
Technical description LRS
11
TNT 35/7-24V
2.4
Working safely
Attention!
Access to or changes on the device, except where expressly described in this operating
manual, are not authorized.
Safety regulations
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
Qualified personnel
Mounting, commissioning and maintenance of the device must only be carried out by
qualified personnel. Electrical work must be carried out by a certified electrician.
Attention, laser radiation!
If you look into the beam path over a longer time period, the retina of your eye may
be damaged!
Never look directly into the beam path!
Do not point the laser beam of the light section sensors at persons!
When mounting and aligning the light section sensors, avoid reflections of the laser
beam off reflective surfaces!
Viewing the laser output with certain optical instruments, e.g. magnifying glasses,
microscopes or binoculars, may result in eye damage!
The light section sensors comply with the safety standard EN 60825-1:2007 for a Laser
class 2M product, and with US Regulation 21 CFR 1040.10 with the deviations pursu-
ant to "Laser Notice No. 50", dated 24th June 2007.
Radiant Energy: The light section sensors use a laser diode. The emitted wavelength
is 658 nm. The maximum laser power, which is determined with measurement condi-
tion 3 acc. to EN 60825-1: 2007 (7mm measuring diaphragm at a distance of 100mm
from the virtual source), is 8.7mW.
Adjustments: Do not attempt any adjustments to or alterations of this product. Do not
open the protective housing of the light section sensor. There are no user-serviceable
parts inside.
The glass optics cover is the only aperture through which laser light may be observed
on this product.
Technical description LRS
Leuze electronic
CAUTION: Use of controls or adjustments or performance of procedures other than
specified herein may result in hazardous light exposure.
The use of optical instruments or devices in combination with the light section sensor
increases the danger of eye damage!
Operation notice in accordance with UL certification:
CAUTION – Use of controls or adjustments or performance of procedures other than
specified herein may result in hazardous light exposure.
The light section sensors are provided with warning notices on the housing and below the
reading window as shown in the following figure:
Figure 2.1:
Name plate and warning notices
50111877
INSTRUMENTEN BETRACHTEN
Wellenlänge:
Impulsdauer:
Max. Leistung:
LASER KLASSE 2M
DIN EN60825-1:2008-05
658nm
8,7mW
3,0ms
ODER DIREKT MIT OPTISCHEN
NICHT IN DEN STRAHL BLICKEN
LASERSTRAHLUNG
INSTRUMENTEN BETRACHTEN
Wellenlänge:
Impulsdauer:
Max. Leistung:
LASER KLASSE 2M
DIN EN60825-1:2008-05
658nm
8,7mW
3,0ms
ODER DIREKT MIT OPTISCHEN
NICHT IN DEN STRAHL BLICKEN
LASERSTRAHLUNG
Maximum Output:
Pulse duration:
OPTICAL INSTRUMENTS
OR VIEW DIRECTLY WITH
DO NOT STARE INTO BEAM
LASER LIGHT
Complies with 21 CFR 1040.10
IEC 60825-1:2007
CLASS 2M LASER PRODUCT
Wavelength:
658nm
8,7mW
3,0ms
Maximum Output:
Pulse duration:
OPTICAL INSTRUMENTS
OR VIEW DIRECTLY WITH
DO NOT STARE INTO BEAM
LASER LIGHT
EN60825-1:2007
CLASS 2M LASER PRODUCT
Wavelength:
658nm
8,7mW
3,0ms
RAYONNEMENT
NE PAS REGARDER DANS
LE FAISCEAU NE PAS REGARDER
EN60825-1:2007
APPAREIL A LASER CLASSE 2M
AVEC DES INSTR. OPTIQUES
Longueur d'onde émis:
Puissance max:
Durée d'impulse:
3,0ms
658nm
8,7mW
A
Aperture label
B
Name plate
C
Laser warning signs supplied
A
B
C
50111325
Notice:
The following shows a light section sensor as an example.
An overview of the available types may be found in chapter 15.1
Technical description LRS
13
TNT 35/7-24V
Notice!
It is essential that you attach the stick-on labels (C in figure 2.1) to the device with which
they are supplied! If the signs would be concealed as a result of the mounting situation of
the device, attach the signs in the vicinity of the light section sensor such that reading the
signs cannot lead to looking into the laser beam!
Technical description LRS
Leuze electronic
3
Operating principle
3.1
Generation of 2D profiles
Light section sensors work according to the triangulation principle. Using transmission
optics a laser beam is expanded to a line and aimed at an object. The light remitted by the
object is received by a camera, which consists of receiver optics and the CMOS area
detector.
Figure 3.1:
Light section sensor design
Depending on the distance of the object the laser line is projected to a different position on
the CMOS planar detector as shown in figure 3.1. By means of this position the distance of
the object can be calculated.
+X
-X
Z
-Y
CMOS planar
detector
Receiving optics
Laser with expansion optics
The zero point of the coordi-
nate system is the intersection
of optical axis and front edge of
the housing.
Technical description LRS
15
TNT 35/7-24V
3.2
Limits of light section sensors
3.2.1
Occlusion
The detection of high and wide objects from just one point poses the particular problem
that depending on the object contour, parts of the object may be obscured by others. This
effect is called occlusion.
The figure 3.2 illustrates the problem:
Figure 3.2:
Occlusion
-Y
Z
+X
-X
Laser occlusion
Receiver occlusion
In the red areas the laser does not
strike the object. Thus it is not
possible to determine any data here.
The receiver does not "see" any object contours in the
red area because they are obscured by the upper right
edge of the object.
When the object is shifted to the left the object con-
tour will still be detected by the laser but the laser line
does not lie within the receiver's field of view at that
point, and therefore no measurement values can be
detected.
Technical description LRS
Leuze electronic
Possible measure against laser occlusion
• Using multiple light section sensors with rotated
viewing direction. In the application example on
the right you can clearly see that the fields of vision
of the three sensors complement each other and
merge. The first of the sensors is operated as a
master, the two others are cascaded (see "Cas-
cading" on page 22). This reliably prevents mutual
interference of the sensors.
Possible measures against receiver occlusion
• Alignment of the objects so that all profile data to be detected are visible to the receiver.
Or:
• Installing a second sensor featuring a viewing
direction rotated by 180° about the z-axis so that
the objects can be viewed from 2 sides.
In the example to the right, the left sensor detects
the profile data on the left side of the product, and
the right sensor the profile data on the right side.
In this situation the second sensor is then cas-
caded. See "Cascading" on page 22.
Y
Technical description LRS
17
TNT 35/7-24V
3.2.2
Minimum object size
The length of the laser line in X direction is variable and depends on the distance in Z direc-
tion. However, always the same number of measurement points is measured. The measure-
ment points on the object in the detection field are crucial for detecting the object.
This implies that the minimum object size (i.e., the smallest detectable object) in the X direc-
tion increases with the distance in the direction of Z.
Small objects can be recognized better in the short range.
Due to the triangulation measurement principle the reflected laser beam strikes the CMOS
receiver in varying angles depending on the object distance. As a consequence, the
minimum object size in Z-direction also increases with distance.
The figure 3.3 shows this relation:
Figure 3.3:
Typical minimum object size LRS 36…
0
1
2
3
4
5
6
7
200
300
400
500
600
700
800
X
Z
Object distance in Z direction [mm]
Typical minimum
object size [mm]
Technical description LRS
Leuze electronic
4
Device description
4.1
Overview of light section sensors
4.1.1
Mechanical design
Figure 4.1:
Mechanical design of Leuze light section sensors
4.1.2
General performance characteristics
• Light section sensor for object detection
• Measurement time/response time: 10ms
• Measurement range/detection area: 200 … 800mm
• Length of laser line: max. 600mm
• Configuration and transmission of process data via Fast Ethernet
• OLED display with key pad
• Measurement value display in mm on OLED display as an alignment aid
• Up to 16 inspection tasks
• Compact construction
• Robust design and easy operation
• Activation input, trigger input, cascading output
Laser transmitter
Receiver
(CMOS camera)
Display with key pad
Electrical connection and
grounding terminal
Groove for dovetail
mounting and mounting
points
Notice:
The following shows a light section sensor as an example.
An overview of the available types may be found in chapter 15.1
Technical description LRS
19
TNT 35/7-24V
4.1.3
Line Range Sensor - LRS
Line Range Sensors are designed to perform
proximity object detection along the laser line.
Similar to a light barrier or a laser scanner, the
sensor detects the presence of objects through
scanning. With individual configuration, one
sensor can be used to detect single or multiple
objects.
Specific performance characteristics
• Configuration software LRSsoft
• Data calculation and processing directly
inside the sensor
• Integrated PROFIBUS interface or
4 switching outputs
• Up to 16 detection fields with logic oper-
ation option
• Detailed information on analysis windows,
switching state and sensor status via
Ethernet and PROFIBUS
Typical areas of application
• Situation and position control
• Presence and absence detection of
objects in defined areas
• Height and width monitoring
• Single or multiple track presence/absence
detection on transport systems
• Zero check of cases
Single- or multi-track existence and absence
check on conveying equipment
Fill level monitoring
Technical description LRS
Leuze electronic
4.2
Operating the sensor
4.2.1
Connection to PC / process control
Configuration
For commissioning the light section sensors are connected to a PC via the Ethernet interface
(see "Connection X2 - Ethernet" on page 41) and are then set using the configuration soft-
ware supplied LRSsoft.
Detection operation
In detection operation, the LRS 36/6 is connected to the process control via its 4 switching
outputs; the LRS 36/PB is connected to the process control via PROFIBUS. Alternatively,
the LRS can be operated via the Ethernet interface on X2, see chapter 10 "Integrating the
LRS in the process control (Ethernet)". Additional sensor information is then available.
4.2.2
Activation - laser on/off
Via activation input InAct (pin 2 on X1), via PROFIBUS (master output 'uActivation' = 1) or
the 'Ethernet Trigger' command, the laser and data transmission can be specifically
switched on and off. Thus possible glares due to laser radiation can be prevented during
time periods when no measurements are performed.
Notice!
The sensor is delivered ex works with the Activation Input Disregard setting. The
possible activation sources (activation input, PROFIBUS activation and Ethernet activation)
are ignored - the measurement function of the sensor is enabled.
The activation function can be switched on via the configuration software. To do this, the
Activation Input parameter must be set to Regard. The sensor then only measures if
one of the activation sources is activated. If the sensor is waiting for activation, it displays
!Act in the display.
Figure 4.2:
Activation input signal sequence
p
t
Laser off
Laser off
Exposing and measuring
Processing and transmitting
Laser
Activation input
Pin 2 at X1
Output
10ms between 2 consecutive
laser pulses in "Free Running"
mode
Axes: p = level, t = time
approx. 14ms
between laser pulse and as-
sociated data output
Technical description LRS
21
TNT 35/7-24V
The figure 4.2 shows the effect of the activation on laser and measurement value output in
"Free Running" mode.
4.2.3
Triggering - Free Running
The light section sensors can measure in two modes:
• In "Free Running" operation the light section sensor determines measurement results
with a frequency of 100Hz and outputs these continuously via the interface X2.
• Alternatively, single measurements can also be carried out. For this purpose, the light
section sensor requires a trigger signal at the trigger input (pin 5 on X1), a PROFIBUS
trigger or the Ethernet Trigger command in detection mode (see chapter
10.3.4"Commands in detection mode" on page 89).
When triggering via pin 5 at X1, note:
- Triggering occurs on the rising edge.
- The trigger pulse must be at least 100µs long.
- Before the next trigger, the trigger cable must be on low-level for at least 1ms.
- Activation must occur at least 100µs before the trigger edge.
- The shortest possible time interval between two successive trigger edges is 10ms.
Notice!
Ex works, the LRS is set to Free Running (shown on display: fRun). In order for it to
respond to signals on the trigger input, the operating mode must be set via the LRSsoft con-
figuration software to Input Triggered (shown on display: Trig).
Figure 4.3:
Trigger input signal sequence
p
t
A second trigger
pulse before 10ms
have elapsed has
no effect
Trigger time (rising edge)
Laser
Activation input
Pin 2 at X1
Output
(Ethernet)
Data packets, approx. 1ms
tfix
approx. 14ms
Trigger input
Pin 5 at X1
Axes: p = level, t = time
Technical description LRS
Leuze electronic
PROFIBUS trigger
So that a measurement can be triggered on each PROFIBUS cycle, the PROFIBUS trigger
of the LRS responds to a change of master output byte uTrigger. The control only needs
to increment the trigger value in order to initiate a new measurement.
The maximum trigger frequency is 100Hz. If triggering occurs during a measurement, the
trigger signal is ignored, as is the case in the Free Running operating mode.
4.2.4
Cascading
Figure 4.5:
Cascading application example
If several light section sensors are operated,
there is the risk of mutual interference if the
reflected laser beam of one sensor can be
received by the receiver of another sensor at
the time of reading.
This can easily be seen in figure 4.5. Here
three light section sensors are used to deter-
mine the log thickness reliably from all sides.
To prevent mutual interference the light
section sensors can be operated cascaded:
the exposure by the second sensor will be initiated following completion of the exposure
by the first sensor. To achieve this, the cascading output of the first sensor must be
connected to the trigger input of the second sensor. Up to 6 sensors can thus be operated
cascaded.
Trigger settings
Sensor 1, or the master, can be operated in this case both triggered as well as continuously.
All other sensors must be operated triggered.
Cascading settings
For all sensors except the last slave, the cascading output must be enabled via configuration
software: Cascading Output: Enable.
Laser
Measurement value output
Trigger input, pin 5 at X1 / not
required
Cascading output,
pin 6 at X1
Sensor 1 / Master
Laser
Measurement value output
Trigger input, pin 5 at X1
Cascading output,
pin 6 at X1
Sensor 2 / 1. slave
Laser
Measurement value output
Trigger input, pin 5 at X1
Cascading output,
pin 6 at X1
Sensor 3 / 2. slave
Figure 4.4:
Signal sequence for cascading
Technical description LRS
23
TNT 35/7-24V
Notice!
In PROFIBUS operation, cascading only functions as described above via the InTrig and
OutCas inputs/outputs at X1. In this case, the maximum detection rate of 100Hz is achieved.
Make certain, however, that the input data of the PROFIBUS light section sensors are still
transmitted in the same bus cycle; monitor the scan numbers if necessary.
Alternatively, light section sensors with PROFIBUS can be selectively triggered in sequence.
Master output 'uTrigger' of the sensor to be triggered is incremented on each PLC cycle;
the master outputs of the other sensors do not change. The maximum detection rate of
100Hz is not achieved with this process.
If multiple sensors are triggered in a PROFIBUS cycle, mutual interference may occur
between the sensors if they are in the same visual field and the time between updating byte
'uTrigger' is shorter than the maximum exposure time (Exposure Time) of 1.3ms.
4.3
Detection functions LRS
The LRS lets you carry out presence/absence and area monitoring with stable switching
behavior and simple configuration. The sensor configuration is stored in the individual
inspection tasks in the configuration software LRSsoft to reflect the requirements of different
applications.
4.3.1
Inspection Task
The LRS lets you operate with up to 16 individual inspection tasks, each of which may
contain up to 16 rectangular analysis windows (AWs) that can be configured independently
and that may overlap arbitrarily.
1-16 AWs can be defined for each inspection task. The results of the individual AWs may
be combined via logic operations (AND, OR, NOT). A different logic operation can be defined
for each of the 4 switching outputs Out1 to Out4.
The selection of the inspection tasks is carried out:
• via the switching inputs of connection X3
(inspection tasks 0-7 only)
• via PROFIBUS
• via LRSsoft (on a PC connected via X2)
• via Ethernet (on a process control connected via X2)
• via the control panel of the sensor beginning with firmware V01.40
4.3.2
Analysis Window (AW)
The AWs are defined in the configuration software LRSsoft (see chapter 9.4 "Parameter
settings/Parameters tab"). This software defines the spatial position, size and number of hit
points to be detected for each AW.
An evaluation is carried out only within the active AWs. Areas outside the sensor's field of
vision are also not evaluated. An object is detected if the number of hit points in the AW
reaches or exceeds an arbitrarily defined minimum value.
Technical description LRS
Leuze electronic
Notice!
The number of hit points does not necessarily correspond with the object size, since the num-
ber of hit points is dependent on distance z. At near distance to the sensor (e.g., 300 mm),
an object expanded in the X direction has nearly twice as many hit points as it does at a far
distance (e.g, 600mm). If the object distance is the same, the number of hit points remains
nearly constant.
Analysis results
The analysis results of individual AWs can be combined logically via the LRSsoft configu-
ration software. The result of this logic operation is output via the switching states of the
four switching outputs Out1-Out4 at X3 or PROFIBUS.
Detailed evaluation results such as, e.g., the status of all AWs, the number of hit points and
the state of the switching outputs are transmitted via Ethernet and can be queried via
PROFIBUS. For more information please refer to chapter 10.
Technical description LRS
25
TNT 35/7-24V
4.3.3
Definition of AWs and analysis results
In figure 4.6, 5 AWs are defined (blue rectangles). For each AW, a minimum of 5 hit points
must be detected for the analysis result to be "1". If fewer hit points are detected, the analysis
result is "0".
Consider the example shown:
• AW1:
8 hit points (on O1)
result =1
• AW2:
4 hit points (on O2)
result =0
• AW3:
1 hit points (on O2)
result =0
• AW4:
3 hit points (on O2)
result =0
• AW5:
11 hit points (on O4)
result =1
Why is O2 not detected?
O2 is not detected in AW2 because missing hit points are shadowed. For AW3, O2 is too
far to the left. For AW4, the number of hit points to be detected would need to be lowered
to 3.
Why is O3 not detected?
O3 is within AW3, but AW3 does not detect the object's upper edge and thus there is no
detection. O3 is not detected within AW5 because, from the sensor's point of view, O4 is
in front of it.
Figure 4.6:
Principle of object detection - areas with laser occlusion are shown in orange
Z
+X
-X
O1
O2
O3
O4
AW1
AW2
AW3
AW4
AW5
LRS
Detection range
Objects
Object points
(hit points)
Line length 150mm
Line length
600mm
Result = 1,
if hit points ≥ 5
Result = 0,
if hit points <5
Analysis Window
AW
x axis
z axis
No object detection due
to shadowing in the
detection range
Technical description LRS
Leuze electronic
4.3.4
Application examples
Zero check of cases
In figure 4.7 AW1 and AW2 are used to check whether a container of a certain height and
width is located at a predefined position in the detection range.
AW3 is used to check whether the container is empty. It is not empty if hit points are detected
in AW3.
Figure 4.7:
Zero check of cases
Z
+X
-X
AW1
AW2
AW3
Technical description LRS
27
TNT 35/7-24V
Single or multiple track presence/absence detection on transport systems
In figure 4.8, as in figure 4.7, AW1 and AW2 are used to check whether a container of a
certain height and width is located at a predefined position in the detection range.
AW3 to AW8 are used to check whether and where objects are located in the container and
what their height is.
Figure 4.8:
Single or multiple track presence/absence detection on transport systems
4.3.5
Creation of inspection tasks
The settings necessary for the configuration of the AWs, the assignment of the AW states
to the switching outputs and the configuration of general parameters such as operating
mode, activation, cascading, detection range (FOV) etc. are carried out in LRSsoft, see
chapter 9.4 "Parameter settings/Parameters tab" and chapter 9.7.
Z
+X
-X
AW1
AW2
AW3
AW4
AW5
AW6
AW7
AW8
Installation and mounting
28
Technical description LRS
Leuze electronic
5
Installation and mounting
5.1
Storage, transportation
Attention!
When transporting or storing, package the light section sensor so that it is protected against
collision and humidity. Optimum protection is achieved when using the original packaging.
Heed the required environmental conditions specified in the technical data.
Unpacking
Check the packaging for any damage. If damage is found, notify the post office or shipping
agent as well as the supplier.
Check the delivery contents using your order and the delivery papers:
• Delivered quantity
• Device variant and model as indicated on the nameplate
• Laser warning signs
• Brief manual
The name plate provides information as to what light section sensor type your device is.
For specific information, please refer to chapter 15.
Figure 5.1:
Device name plate LRS
Save the original packaging for later storage or shipping.
If you have any questions concerning your shipment, please contact your supplier or your
local Leuze electronic sales office.
Observe the local regulations regarding disposal of packaging material.
Notice:
The following shows a light section sensor as an example. An
overview of the available types may be found in chapter 15.1
Installation and mounting
Leuze electronic
Technical description LRS
29
TNT 35/7-24V
5.2
Mounting the LRS
The light section sensors can be mounted in different ways:
• By means of two M4x6 screws on the back of the device.
• Using a BT 56 mounting device on the two fastening grooves.
• Using a BT 59 mounting device on the two fastening grooves.
Figure 5.2:
Fastening options
Figure 5.3:
Mounting example LRS
Dovetail fastening grooves
M4 Tapped holes
Installation and mounting
30
Technical description LRS
Leuze electronic
5.2.1
BT 56 mounting device
The BT 56 mounting device is available for mounting the LRS using the fastening grooves.
It is designed for rod installation (Ø 16mm to 20mm). For ordering instructions, please refer
to chapter "Type overview" on page 111.
Figure 5.4:
BT 56 mounting device
Clamping jaws for
mounting on the LRS
Clamp profile for
mounting to round or
oval pipes
Ø 16 … 20mm
A
Rod holder, turnable by 360°
B
Rods Ø 16 … 20mm
All dimensions in mm
Installation and mounting
Leuze electronic
Technical description LRS
31
TNT 35/7-24V
5.2.2
BT 59 mounting device
The BT 59 mounting device is available for mounting the LRS on ITEM profiles using the
fastening grooves. For ordering instructions, please refer to chapter "Type overview and
accessories" on page 111.
Figure 5.5:
BT 59 mounting device
Clamping jaws for
mounting on the LRS
A
Holder, turnable 360°
B
ITEM joint, angle adjustable ±90°
C
M8x16 screwable cylinder, M8 serrated
washer, M8 sliding block, connector for
ITEM profile (2x)
All dimensions in mm
Installation and mounting
32
Technical description LRS
Leuze electronic
5.3
Device arrangement
5.3.1
Selecting a mounting location
In order to select the right mounting location, several factors must be considered:
• The required resolution. This is a result of the distance and the resulting line length.
• The permissible cable lengths between the LRS and the host system depending on
which interface is used.
• The display and control panel should be very visible and accessible.
When selecting a mounting location, pay further attention to:
• Maintaining the required environmental conditions (temperature, humidity).
• Possible soiling of the optics covers on transmitter and receiver by discharged liquids,
abrasion from cartons or packaging residues.
• Lowest possible chance of damage to the LRS by mechanical collision or jammed
parts.
• Possible extraneous light (no direct sunlight or sunlight reflected by the measurement
object).
• The optimal perspective for detecting the relevant contours of objects, see chapter
3.2.1 "Occlusion".
Attention, laser radiation!
When mounting and aligning the LRS, avoid reflections of the laser beam off reflective sur-
faces!
Notice!
The prevention of ambient light due to shielding of the sensor for example, ensures stable
and precise measurement values. Secondary reflections of the laser line on reflective objects
must be avoided as these can result in faulty measurements.
The best measurement results are obtained when:
- You adapt the operating mode (light/dark) to the application.
- You do not measure high-gloss objects.
- There is no direct sunlight.
5.3.2
Aligning the sensor
The zero point of the sensor coordinate system is the intersection of optical axis and front
edge of the housing. The general principle is that the light section sensor should be aligned
so that the back of the sensor is aligned parallel to the conveying belt or measuring plane.
Rotation along the Y-axis is not desirable.
The figure 5.6 illustrates the problem:
Installation and mounting
Leuze electronic
Technical description LRS
33
TNT 35/7-24V
Figure 5.6:
Alignment to the measuring plane
A rotation of the sensor about the y-axis distorts the entire coordinate system, which the
measurement values relate to. The sensor measures along the solid line in the right picture,
however the measuring plane is located on the dotted line, and a measurement towards the
conveying belt shown in gray would result in a tilted plane.
When setting up an application it is therefore very important to ensure correct alignment
and that the integrated alignment aid on the display is used.
5.4
Attach laser warning sign
Attention Laser!
Observe the safety notices in chapter 2.
It is essential that you attach the stick-on label (laser warning signs and laser beam exit
symbol) supplied with the light section sensor to the light section sensor! If the signs
would be concealed as a result of the mounting situation of the LRS, attach the signs in
the vicinity of the LRS such that reading the signs cannot lead to looking into the laser
beam!
When installing the LRS in North America, also attach the stick-on label saying "Complies
with 21 CFR 1040.10"
5.5
Cleaning
Clean the optics cover of the LRS with a soft cloth after mounting. Remove all packaging
remains, e.g. carton fibers or styrofoam balls. In doing so, avoid leaving fingerprints on
the optics cover of the LRS.
Attention!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
+X
-X
Z
-Y
-X
+X
Z
-Y
Technical description LRS
Leuze electronic
6
Electrical connection
The light section sensors are connected using variously coded M12 connectors. This
ensures unique connection assignments.
For the locations of the individual device connections, please refer to the device detail shown
below.
Notice!
The corresponding mating connectors and ready-made cables are available as accessories
for all connections. For additional information, refer to chapter 15.
Figure 6.1:
Location of the electrical connections
All the light section sensors are equipped with three M12 plugs / sockets which are A- and
D-coded.
Figure 6.2:
Connections of the LRS
The pin assignment of X1 and X2 is identical for all light section sensors; X3 and X4 differ
depending on device type.
Notice:
The following shows a light section
sensor as an example.
An overview of the available types may
be found in chapter 15.1
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2
X3
X4
7
8
X1
VIN
Act
Trig
Ready
OutCas
GND
7
8
Notice:
The following shows a light section
sensor as an example.
An overview of the available types may
be found in chapter 15.1
Technical description LRS
35
TNT 35/7-24V
Using the name plate check the exact type designation. The version of X3/X4 is contained
in the following table:
6.1
Safety notices
Attention!
Do not open the light section sensor yourself under any circumstances! There is otherwise
a risk of uncontrolled emission of laser radiation from the light section sensor. The housing
of the LRS contains no parts that need to be adjusted or maintained by the user.
Before connecting the device please ensure that the supply voltage matches the value print-
ed on the nameplate.
Connection of the device and cleaning must only be carried out by a qualified electrician.
If faults cannot be cleared, the LRS should be switched off from operation and protected
against accidental use.
The LRS light section sensors are designed in accordance with safety class III for supply by
PELV (protective extra-low voltage with reliable disconnection).
Notice!
Protection class IP 67 is achieved only if the connectors and caps are screwed into place!
The connectors used must be equipped with O-ring seals. Therefore, preferably, please use
the ready-made cables by Leuze electronic.
Type designation
X3
X4
Relevant chapter
LRS 36/6
Switching inputs / outputs
not used
chapter 6.3.3
LRS 36/PB
not used
PROFIBUS DP
chapter 6.3.4
Table 6.1:
Interface version of X3 and X4
Technical description LRS
Leuze electronic
6.2
Shielding and line lengths
The light section sensors of the 36/36HI series are equipped with modern electronics
developed for industrial applications. In industrial environments, a number of sources of
interference may affect the sensors. In the following, information is provided on
EMC.compliant wiring of the sensors and of the other components in the switch cabinet
and on the machine.
Observe the following maximum line lengths:
Shielding:
1.
Ground the LRS housing:
Connect the housing of the LRS via the functional earth (FE) screw provided for this
purpose (see figure 6.3, devices produced after April 2011) with the protective
conductor on the machine star point. The cable should have an impedance as low as
possible for high-frequency signals, i.e., be as short as possible and have a large
cross-sectional area (grounding strip, …).
If the LRS does not yet have an FE screw of its own, please use one of the M4 holes
on the dovetail.
Important: Place a lock washer underneath and check the penetration of the anodized
coating of the LRS housing by measuring the electrical connection from FE star point
to the connector sleeves without connected sensor cables so that other FE interrup-
tions can be detected on the machine base and profile rails as well.
2.
Shield all connection cables to the LRS:
Apply the shield to FE on both sides. On the LRS end, this is ensured if the LRS housing
is connected to FE (PE) as described under 1. (shield fitted over the connector sleeves
to the housing).
In the switch cabinet, clamp the shield flat to FE. To do this, use special shielding
clamps (e.g., Wago, Weidmüller, …).
Keep the length of the shieldless end of the cable as short as possible.
The shield should not be connected at a terminal in a twisted fashion (no "RF braid").
3.
Disconnect power and control cables:
Lay the cables for the power components (motor cables, lifting magnets, frequency
inverters, …) as far from the sensor cables as possible (distance > 30cm). Avoid laying
power and sensor cables parallel to one another.
Cable crossings should be laid as perpendicular as possible.
4.
Lay cables close to grounded metal surfaces:
This measure reduces interference coupling in the cables.
Connection to the sensor
Interface
Max. line length
Shielding
Power supply unit
X1
50m
required
Activation / cascading / trigger
X1
50m
required
PC/Host
X2
50m
required
Encoder
X3
50m
required
Switching inputs / outputs
X3
10m
required
PROFIBUS DP
X4
10m
required
Table 6.2:
Line lengths and shielding
Technical description LRS
37
TNT 35/7-24V
5.
Avoid leakage currents in the cable shield:
Leakage currents arise from incorrectly implemented equipotential bonding. There-
fore, carefully ground all parts of the machine.
Notice: You can measure leakage currents with a clip-on ammeter.
6.
Star-shaped cable connections:
To avoid interference between various consumers, ensure that the devices are con-
nected in a star shape. This will prevent cable loops.
General shielding information:
Avoid spurious emissions when using power components (frequency inverters, …). The
technical descriptions of the power components provide the necessary specifications
according to which the respective power component satisfies its CE conformity.
In practical work, the following measures have proven effective:
• Screw the mains filter, frequency inverter flat on the galvanized mounting plate.
• Mounting plate in the switch cabinet made of galvanized sheet steel, thickness 3mm
• Keep cable between mains filter and inverter as short as possible and twist cables.
• Shield both ends of the motor cable.
• Ground the entire system well.
Carefully ground all parts of the machine and of the switch cabinet using copper strips,
ground rails or grounding cables with large cross section.
Below, the EMC-compliant connection of the light section sensors LRS is described in prac-
tical use with images.
Technical description LRS
Leuze electronic
Connect the ground potential to the light section sensors
Figure 6.3:
Connecting the ground potential to the light section sensor
Connecting the cable shield in the switch cabinet
Figure 6.4:
Connecting the cable shield in the switch cabinet
Devices produced after April 2011 are
equipped with an additional ground-
ing terminal.
All devices can also be connected
to ground potential at the M4
threaded hole on the dovetail.
Attention!
Place lock washer
underneath and check
the penetration of the
anodized coating!
• Shield connected flat to PE
• Connect PE star point with short cables
• Galvanized mounting sheet steel
Comment:
Depicted shield components from Wago,
series 790 ...:
- 790-108 Shield clamping bracket 11 mm
- 790-300 Busbar holder for TS35
Technical description LRS
39
TNT 35/7-24V
Connecting the cable shield to the PLC
Figure 6.5:
Connecting the cable shield to the PLC
• Where possible, use shielded
sensor cables
• Connect shield flat to PE using
shield clamping system
• Mounting rails must be well
grounded
Comment:
Depicted shield components
from Wago, series 790 ...:
- 790-108 Shield clamping
bracket 11 mm
- 790-112 Carrier with
grounding foot for TS35
Technical description LRS
Leuze electronic
6.3
Connecting
6.3.1
Connection X1 - logic and power
Attention!
All cables must be shielded!
Preferably, please use the ready-made cables "K-D M12A-8P…", see chapter 15.2.2.
Figure 6.6:
Internal wiring at X1
Power supply
For power supply specifications please refer to chapter 14.
Activation input InAct
The activation input is used to switch the laser on and off via the process control. The sensor
stops outputting data and does not respond to trigger commands or the trigger input. The
equivalent circuit of the inputs at X1 is shown in figure 6.6.
Trigger input InTrig
The trigger input is used for synchronizing the measurement with the process and for
synchronizing cascaded sensors. Detailed information on this topic can be found in chapter
4.2.3 and chapter 4.2.4. The internal equivalent circuit is shown in figure 6.6.
X1 (8-pin plug, A-coded)
Pin
Name
Core color
Remark
1
VIN
WH
+24VDC supply voltage
2
InAct
BN
Activation input
3
GND
GN
Ground
4
OutReady
YE
"Ready" output
5
InTrig
GY
Trigger input
6
OutCas
PK
Cascading output
7
BU
Do not connect
8
RD
Do not connect
Table 6.3:
Pin assignment X1
X1
VIN
InAct
InTrig
OutReady
OutCas
GND
7
8
M12 plug
(A-coded)
X1-2/5
10k
10k
X1-3
X1-1
X1-4/6
GND
18 - 30 VDC
100 mA (max. 250 mA)
X1-3
Inputs
Outputs
Technical description LRS
41
TNT 35/7-24V
Cascading output OutCas
In order to operate several light section sensors cascaded this output must be connected
directly to the trigger input of the following sensor. Detailed information on this topic can
be found in chapter 4.2.4. The internal equivalent circuit is shown in figure 6.6.
Output "ready" OutReady
This output indicates operational readiness of the sensor. The state of the output corre-
sponds to the state of the green LED (see "LED status displays" on page 44).
6.3.2
Connection X2 - Ethernet
Attention!
All cables must be shielded!
The LRS makes either the Ethernet interface available as host interface.
Preferably, please use the ready-made cables "KB ET-…-SA…", see chapter 15.2.3.
Ethernet cable assignment
Figure 6.7:
HOST / BUS IN cable assignments on RJ-45
Notice for connecting the Ethernet interface!
Ensure adequate shielding. The entire connection cable must be shielded and earthed. The
Rx+/Rx- and Tx+/Tx- wires must be stranded in pairs.
Use CAT 5 cables for the connection.
X2 (4-pin socket, D-coded)
Pin
Name
Core color
Remark
1
Tx+
YE
Transmit Data +
2
Rx+
WH
Receive Data +
3
Tx-
OR
Transmit Data -
4
Rx-
BU
Receive Data -
Thread
FE
-
Functional earth (housing)
Table 6.4:
Pin assignment X2
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2
M12 socket
(D-coded)
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2
RJ 45
Tx+ (1)
Tx- (2)
Rx+ (3)
Rx- (6)
1
8
Twisted pair
Twisted pair
Technical description LRS
Leuze electronic
6.3.3
Connection X3 - switching inputs/outputs (only LRS 36/6)
Switching outputs of connection X3
Out1 to Out4 are each a logic combination of analysis results of the individual AWs. This
logic operation is defined in LRSsoft (see chapter 9.4 "Parameter settings/Parameters tab").
Up to 16 different logic combinations of the AW's and respective result mappings on Out1
to Out4 can be combined into inspection tasks.
Switching inputs of connection X3
The 3 switching inputs InSel1-3 are used to select the inspection task 0-7. In this context,
"000" stands for Inspection Task 0, "001" for Inspection Task 1, etc. The switching time
between 2 inspection tasks is < 100ms
Notice!
The Inspection Tasks 8-15 can be switched via PROFIBUS or Ethernet. The setting via
Ethernet overwrites the inspection task set via input InSel1-3.
X3 (8-pin socket, A-coded)
Pin
Name
Core color
Remark
1
Out4
WH
Output detection result 4
2
Out3
BN
Output detection result 3
3
GND
GN
Ground
4
Out2
YE
Output detection result 2
5
Out1
GY
Output detection result 1
6
InSel3
PK
Selection Inspection Task Bit 3
(MSB)
7
InSel2
BU
Selection Inspection Task Bit 2
8
InSel1
RD
Selection Inspection Task Bit 1
(LSB)
Table 6.5:
Pin assignment X3
Out4
InSel 1
Out3
GND
Out2
InSel 3
InSel 2
Out1
X3
7
8
M12 socket
(A-coded)
Technical description LRS
43
TNT 35/7-24V
6.3.4
Connection X4 - PROFIBUS DP (only LRS 36/PB)
Notice!
Connection X4 is assigned only at the LRS 36/PB.
The connection to the PROFIBUS DP is made via the 5-pole X4 M12-socket with an external
Y plug adapter. Assignments correspond to the PROFIBUS standard. The Y plug adapter
enables the replacement of the LRS 36/PB without interrupting the PROFIBUS cable.
The external Y plug adapter is also needed if the LRS 36/PB is the last network device. The
external bus terminating resistor (termination) is then connected to this. The 5V-supply for
the termination is connected to X4.
Notice!
For the connection, we recommend our ready-made PROFIBUS cables (see chapter 15.2
"Accessories")
For the bus termination, we recommend our PROFIBUS terminating resistor (see chapter
15.2 "Accessories")
X4 (5-pin socket, B-coded)
Pin
Name
Remark
1
VP
Supply voltage
+5V (termination)
2
A
Receive/transmit data
RxD/TxD-N, green
3
DGND
Data reference potential
4
B
Receive/transmit data
RxD/TxD-P, red
5
FE
Functional earth
Thread
FE
Functional earth (housing)
Table 6.6:
Pin assignment X3
X4
VP
1
2
3
4
A
B
DGND
FE
5
M12 socket
(B-coded)
Display and control panel
44
Technical description LRS
Leuze electronic
7
Display and control panel
7.1
Indicator and operating elements of the
Figure 7.1:
Indicator and operating elements of the LRS
After switching on the supply voltage +UB and following error-free initialization of the device,
the green LED illuminates continuously: the LRS is in detection mode. The OLED display
shows the alignment aid and the status display.
7.1.1
LED status displays
7.1.2
Control buttons
The LRS is operated using the and buttons, which are located next to the OLED
display.
OLED display
128 x 32 pixels
Key pad with 2 buttons
See "Control buttons" on
page 44.
Device LEDs
green and yellow
See "LED status displays"
on page 44.
Laser beam
LED
State
Display during measurement operation
Green
continuous light
Sensor ready
off
Sensor not ready
Yellow
continuous light
Ethernet connection established
flashing
Ethernet data transmission active
off
No Ethernet connection
Table 7.1:
LED function indicator
Display and control panel
Leuze electronic
Technical description LRS
45
TNT 35/7-24V
7.1.3
Displays
The display changes depending on the current operating mode. There are the following three
display modes:
• Alignment aid and status display
• Command mode
• Menu display
The menu display is accessed by pressing one of the two control buttons. Operation
of the LRS via the menu is described in chapter 7.2.2.
With PROFIBUS devices, the bus state is first displayed after power-on
(displayed for approx. 3s). If the PROFIBUS was detected, alignment
aid and status are then displayed.
Alignment aid
As an alignment aid, the current measurement value at the left edge
(Lxxx), in the middle (Mxxx) and at the right edge (Rxxx) of the detection
range is displayed in the OLED display in units of millimeters. If no object
is detected or if the distance is too small, distance value 000 (mm) appears in the display.
Align the light section sensor by rotating it about the y-axis in such a way that the same
value is indicated for L, M, R.
Status display
In the second line of the display, the selected inspection task (Txx), the
state of the four switching outputs (Qxxxx) or, for PROFIBUS devices,
Out1 … Out4 of the input data byte uSensorInfo as well as the current
sensor status (see chapter 4.2 "Operating the sensor") are displayed.
The indication of the sensor state in the display has the following meaning:
• fRun = Free Running
• Trig = Triggering
• !ACt = Activation (laser on/off)
T12 means that Inspection Task 12 is currently active, for example. Value range: T00 to T15.
Q0100 means Out1=0, Out2=1, Out3=0, and Out4=0, for example. Value range: Q0000 to
Q1111.
If, for PROFIBUS devices, no PROFIBUS is detected following power-
on, no PB appears in the middle of the bottom line instead of Q0000.
The following options are available for the sensor status: fRun means
Free Running, Trig means triggered (see chapter 4.2.3 "Triggering - Free Running") and
!ACK means that the sensor is deactivated (no laser line, see chapter 4.2.2 "Activation - laser
on/off").
Command mode
If the LRS is connected to a control, the control can put the LRS into a command mode in
which it receives and executes commands (see chapter 10.2.9 "Evaluation telegram"). In
command mode, the OLED display has one line.
Command Mode appears on the first line of the display.
waiting for PB
L450 M450 R450
T00
fRun
T00 Q0000 fRun
T00 no PB fRun
Command Mode
Display and control panel
46
Technical description LRS
Leuze electronic
Notice!
If errors occur during operation, these are shown on the display. Notices can be found in
chapter 12.3.
Display and control panel
Leuze electronic
Technical description LRS
47
TNT 35/7-24V
7.2
Menu description
7.2.1
Structure
Level 1
Level 2
Level 3
Explanation / Notes
Default
Settings
Menu Exit
Set Act. Insp. Task
00: Task 0
Here you select the active task 00 to 15.
Set Act. Insp. Task
00: Task 0
Set Act. Insp. Task
15: Task 15
Set Act. Insp. Task
00: Task 0
Ext. Task Selection
1
Ext. Task Selection
1
If you press here, external task
changeover will be activated. Task
changeover via the display / menu is
NOT possible.
Ext. Task Selection
0
If you press here, task changeover
will be activated via the display/menu.
External task changeover is NOT possi-
ble.
Ext. Task Selection
1
Display
On
Display
On
Always on with maximum brightness
Display
Off
Off; is switched back on after keyboard
actuation
Display
Auto
Display set to full brightness after
keyboard actuation for approx. 1min.,
dimmed thereafter
X
Display
On
Data Output
Ethernet
Prescaler Value
001
Attention: the value is permanently set
to 1 and cannot be changed.
Data Output
Ethernet
Ethernet
Factory Settings
IP Address
192.168.060.003
Here you can set the IP address of the
LRS.
Table 7.2:
Menu structure
Display and control panel
48
Technical description LRS
Leuze electronic
Net Mask Address
255.255.255.000
Here you can set the relevant subnet
mask.
Port Number Local
9008
Here you can set the local port (at the
LRS) for Ethernet communication.
Port Number Dest.
5634
Here you can set the destination port for
Ethernet communication (on the PC/pro-
cess control).
Notice: The values configured here are
not applied immediately but only when
the sensor is switched on the next time.
Ethernet
Factory Settings
Factory Settings
Inactive
Factory Settings
Inactive
If you press here, you can access the
superordinate menu without resetting to
factory settings.
X
Factory Settings
Execute
If you press here, you will reset the
LRS to factory settings (chapter 7.3).
Factory Settings
Inactive
Password Check
Inactive
Locks access to the menu with
the fixed password "165"
Password Check
Inactive
If you press here, the password
query will not be activated.
X
Password Check
Activated
If you press here, the password
query will be activated.
Password Check
Inactive
Slave Address
126
Slave Address
126
Here, you can set the PROFIBUS address
of the LRS (0 … 126). With address 126
(default), automatic address assignment
by the commissioning master is sup-
ported.
Slave Address
126
Level 1
Level 2
Level 3
Explanation / Notes
Default
Table 7.2:
Menu structure
Display and control panel
Leuze electronic
Technical description LRS
49
TNT 35/7-24V
Notice!
If no button is pressed for three minutes, the LRS exits menu mode and switches to detection
mode. The OLED display again displays the alignment aid and the sensor status display.
Notice!
After changing the PROFIBUS slave address, a power-on reset must be performed in order
to permanently accept the address.
Info
Part no.
50111325
The part number of the LRS is displayed
here.
Serial No.
0905A000012
The serial number of the LRS is
displayed here.
Ext. Info
008
The three-digit batch number of the LRS
is displayed here.
Software
V01.10
The firmware version number of the LRS
is displayed here.
Part no.
Notice! The complete information on the
product consists of Serial No. and
Ext. Info. If service is required,
please provide both numbers!
Set
Act.
Insp.
Task
Menu Exit
Settings
Level 1
Level 2
Level 3
Explanation / Notes
Default
Table 7.2:
Menu structure
Display and control panel
50
Technical description LRS
Leuze electronic
7.2.2
Operation/navigation
In menu view, the OLED display has two lines. The currently active menu item is displayed
with black text on a light-blue background. The and buttons both have different func-
tions depending on the operating situation. These functions are represented via icons on
the right edge of the display – i.e. to the immediate left of the buttons.
The following displays may appear:
Menu navigation
selects the next menu item (Ethernet).
switches to the submenu shown with inverted colors (Data Output).
selects the next menu item (IP Address).
returns to the next higher menu (). At the top menu level, the menu
can be exited here (Menu Exit). The number of bars at the left edge
indicates the current menu level:
Selecting values or selection parameters for editing
selects the next menu item ( -> Net Mask Addr.).
selects edit mode for IP Address.
Editing value parameters
decrements the value of the currently selected digit (1).
selects the next digit to the right (9) for editing. After having clicked
through all the digits using a checkmark () appears at the bottom
right of the display. If an impermissible value was entered, the symbol
(new entry ) appears and no checkmark is offered for selection.
changes the edit mode, appears.
saves the new value (192.168.001.111).
changes the edit mode, appears.
selects the first digit (1) for renewed editing.
changes the edit mode, appears.
rejects the new value(in this example, the factory setting
192.168.060.003 remains saved).
Editing selection parameters
displays the next option for Display (Off).
returns to the next-higher menu level and retains On.
Data Output
Ethernet
IP Address
IP Address
192.169.060.003
IP Address
1 92.168.060.003
IP Address
192.168.001.111
IP Address
192.168.001.111
IP Address
192.168.001.111
Display
On
Display and control panel
Leuze electronic
Technical description LRS
51
TNT 35/7-24V
displays the next option for Display (Auto).
selects the new value Off and displays the menu for confirmation:
changes the edit mode, appears.
saves the new value (Off).
changes the edit mode, appears.
rejects the new value (On remains saved).
Notice
To ensure that values that were changed via the menu are also applied, you should discon-
nect the sensor from its power supply for a brief period after a change of values.
7.3
Reset to factory settings
The factory settings can be reset in three different ways:
• Hold down the button while connecting the supply voltage
• Factory Setting menu item
• By means of the LRSsoft configuration software
As an example, the first of the methods mentioned above is described below:
When applying the supply voltage, press the button to reset the configuration of the
LRS to factory settings.
The display shown next to here appears.
Interrupting a reset
Pressing causes the adjacent display to appear. If you now press the
button, you will exit the menu without resetting the LRS to factory
settings.
Executing a reset
Pressing the button while the checkmark () is displayed causes
the adjacent safety prompt to appear.
Pressing interrupts the reset process; reset canceled appears in
the display for approx. 2s. Afterward, the LRS returns to detection
mode.
Pressing resets all parameters to the factory settings. All settings
made previously are permanently lost. reset done appears in the
display for approx. 2s; the LRS then returns to normal operation.
You can select the resetting to factory settings also via LRSsoft.
In the Configuration menu select the entry Reset to Factory Settings.
Display
Off
Display
Off
Display
Off
FactorySettings
Execute
FactorySettings
Execute
Really Reset
Yes-Ret No-Dwn
reset done
Commissioning and configuration
52
Technical description LRS
Leuze electronic
8
Commissioning and configuration
8.1
Switching on
After switching on the supply voltage +UB and following error-free initialization of the device,
the green LED illuminates continuously: the LRS is in detection mode.
Notice
After a warmup time of 30 min., the light section sensor has reached the operating temper-
ature required for an optimum measurement.
8.2
Establish connection to PC
The LRS is configured via a PC using the LRSsoft program before it is integrated into the
process control.
In order to be able to establish an UDP communication with the PC, the IP address of your
PC and the IP address of the LRS must lie in the same address range. The LRS has no built-
in DHCP client, so that you need to set the address manually. This is done the easiest way
via the PC.
Notice!
If you use a desktop firewall, please make certain that the PC can communicate with the
LRS via the Ethernet interface by means of UDP on ports 9008 and 5634 (these ports
are preset at the factory, but may have been changed by the user, see chapter 7.2
"Menu description"). Furthermore, the firewall must allow ICMP echo messages to pass
through for the connection test (ping).
If the PC is usually connected to a network using DHCP address allocation, the easiest way
to access the LRS is by applying an alternative configuration in the TCP/IP settings of the
PC and connecting the LRS to the PC.
Check the network address of the LRS by pressing the button during detection mode
of the LRS twice in succession, then by pressing twice and followed by pressing the
button again.
This will take you to the Ethernet submenu and enable you to read the current settings of
the LRS consecutively when pressing repeatedly.
Make a note of the values for IP-Address and Net Mask Addr..
The value in Net Mask Addr. specifies which digits of the IP address of the PC and LRS
must match so that they can communicate with each other.
Address of the LRS
Net mask
Address of the PC
192.168.060.003
255.255.255.0
192.168.060.xxx
192.168.060.003
255.255.0.0
192.168.xxx.xxx
Table 8.1:
Address allocation in the Ethernet
Commissioning and configuration
Leuze electronic
Technical description LRS
53
TNT 35/7-24V
Instead of xxx you can now allocate any numbers between 000 and 255 to your PC, but
NOT THE SAME numbers as contained in the address of the LRS.
For example 192.168.060.110 (but not 192.168.060.003!). If LRS and PC have the same IP
address, they cannot communicate with each other.
Setting an alternative IP address on the PC
Log into your PC as administrator.
Using Start->System control go to the
Network connections (Windows XP) menu or
to the Network center and release center
(Windows Vista) menu.
There, select LAN Connection and right-click
to open the corresponding properties page.
Select the Internet protocol (TCP/IP) (by
scrolling down, if necessary) and click on
Properties.
In the Internet protocol (TCP/IP)
Properties window select the
Alternate configuration tab.
Set the IP address of the PC in the address
range of the LRS.
Attention: do not use the same as for the LRS!
Set the subnet mask of the PC to the same value as on the LRS.
Close the configuration dialog by confirming all windows using OK.
Connect the interface X2 of the LRS directly to the LAN port of your PC. Use a
KB ET-…-SA-RJ45 cable for the connection, see table 15.7
The PC first tries to establish a network connection via the automatic configuration. This
takes a few seconds, after which the alternate configuration, which you just set, is activated.
The PC can now communicate with the LRS.
Information about configuring with the LRSsoft can be found in chapter 9.
Commissioning and configuration
54
Technical description LRS
Leuze electronic
8.3
Commissioning
For the commissioning and integration of the sensor in the process control the following
steps are necessary:
1.
LRS configuration - see chapter 9.
2.
Programming process control - see chapter 10 and chapter 11.
or
3.
Connect switching inputs and outputs accordingly - see chapter 6.3.
4.
When connecting in the Ethernet process controls, the IP configuration of the LRS is
to be adjusted so that the LRS can communicate with the process control.
The values corresponding to the following screenshot are preset in the LRS at the fac-
tory. If you would like to set different values, you must change the values via the display
of the LRS in menu item Ethernet (see "Menu description" on page 47). You can test
the changed values by entering them in the Configuration area in LRSsoft and then
clicking the Check Connectivity button.
5.
Connect LRS to the process control. This can be performed for all LRS via the Ethernet
interface or, depending on model, via the switching outputs or the PROFIBUS.
6.
Establish connections for activation, triggering and cascading, if necessary.
Notice on connecting multiple light section sensors via Ethernet
If several sensors are to be activated, all sensors as well as the control must receive different
IP addresses on the same subnet. For all sensors different ports must be configured in
the Sensor area as well as in the Client/PC area.
LRSsoft configuration software
Leuze electronic
Technical description LRS
55
TNT 35/7-24V
9
LRSsoft configuration software
9.1
System requirements
The PC used should meet the following requirements:
• Pentium® or faster Intel® processor > 1.5 GHz (Pentium 4, Celeron, Xeon)
or compatible models by AMD® (Athlon 64, Opteron, Sempron)
The processor must support the SSE2 instruction set.
• At least 512 MB free main memory (RAM), 1024 MB recommended
• CD-ROM drive
• Hard disk with at least 1 GB available memory
• Ethernet port
• Microsoft® Windows XP from Service Pack 2 / Windows 7
9.2
Installation
Notice!
If present, uninstall Matlab Runtime before beginning with the installation of the LXSsoft
Suite.
The LXSsoft_Suite_Setup.exe installation program is located on the supplied CD.
Alternatively, you can download the program in the Internet at www.leuze.com.
Notice!
Copy this file from the CD to an appropriate folder on your hard drive. Administrator
privileges are necessary for this purpose.
Please note that the standard text size setting is used. For Windows XP, the necessary DPI
setting is 96 DPI, for Windows 7, the display is to be set to "Smaller - 100%".
To start the installation process, double-click on file LXSsoft_Suite_Setup.exe.
In the first window, click on Next.
In the next window, you can select which configuration software you would like to install.
You will need LPSsoft for configuring light section sensors of the LPS series.
You will need LRSsoft for configuring light section sensors of the LRS series.
You will need LESsoft for configuring light section sensors of the LES series.
Select the desired options and click on Next and, in the next window, click on Install.
The installation routine starts. After a few seconds, the window for selecting the installation
language for the Matlab Compiler Runtime (MCR) appears. The MCR is used for the config-
uration in LRSsoft. It is only available in English or Japanese.
LRSsoft configuration software
56
Technical description LRS
Leuze electronic
Therefore keep in the Choose Setup Language window the selection English and
click on OK.
LRSsoft configuration software
Leuze electronic
Technical description LRS
57
TNT 35/7-24V
Depending on the configuration of your Windows system, the dialog shown below may then
appear (missing component VCREDIST_X86).
Click on Install.
Two additional installation windows will appear, which do not require any further entry.
LRSsoft configuration software
58
Technical description LRS
Leuze electronic
After some time (up to several minutes depending on the system configuration) the start
screen of the MCR installer will appear.
Click on Next.
The window for entering user data appears.
Enter your name and the company name and then click on Next.
LRSsoft configuration software
Leuze electronic
Technical description LRS
59
TNT 35/7-24V
It is essential that you retain the default folder in the window for the selection of the instal-
lation path (Destination Folder).
The standard path is C:\Programs\MATLAB\MATLAB Compiler Runtime\.
Click on Next and in the next window click on Install.
The installation will start and a status window will be displayed. This can again take several
minutes.
Following successful MCR installation, the InstallShield Wizard Completed window
appears.
Click on Finish to end the MCR-installation.
LRSsoft configuration software
60
Technical description LRS
Leuze electronic
The window for selecting the installation path for LRSsoft/LPSsoft/LRSsoft now appears
(provided you selected this option).
Keep the default folder and click on Next.
The installation of LPSsoft starts. If you also selected LRSsoft and LESsoft for installation,
upon completion of the LPSsoft installation, the same window then reappears for entering
the installation path for LRSsoft and LESsoft.
Keep the default folder in this case as well and click on Next.
Upon completion of the installation process, the window shown above appears.
The installation routine added a new Leuze electronic program group in your Start
menu that contains the installed programs LRSsoft/LPSsoft/LRSsoft.
Click on Finish and then start the desired program from the Start menu.
LRSsoft configuration software
Leuze electronic
Technical description LRS
61
TNT 35/7-24V
9.2.1
Possible error message
Depending on the setting of the display, the "Width and Height must be >0" error message
may be output. The cause is an incompatible setting of the display.
Notice!
For Windows XP, the necessary DPI setting is 96 DPI. For Windows 7, the display is to be
set to "Smaller - 100% (default)".
The setting can be adjusted as follows.
Adjust the display for Windows XP by selecting the value "96 DPI" under Properties
-> Display -> Settings -> Extended -> Display -> DPI setting.
For Windows 7, adjust the display via Control Panel -> Display by setting
the display to "Smaller - 100% (default)".
Depending on the system config-
uration
the
adjacent
error
message can appear at this point.
The cause of this error message is a bug in the MCR installation routine, which does not
set the environment variable Path correctly in some systems.
That, however, can easily be corrected without reinstallation of the MCR.
Open the System properties
window located in the System con-
trol of Windows under System.
Go to the Advanced tab and click on
Environment variables.
The Environment variables window
opens.
Scroll down in the System variables
area until you find the Path entry.
Click on Path and then on Edit
The Edit system variable window
opens.
There in the Variable value field you will
find the ;C:\Programs\MATLAB\MATLAB
Compiler Runtime\v79\runtime\win32 entry right at the end.
LRSsoft configuration software
62
Technical description LRS
Leuze electronic
If this entry is missing, copy the entry from this document and insert it together with the
preceding semicolon.
Then click on OK and close also all further windows using OK.
Shut Windows down, restart Windows and then start LRSsoft by double-clicking on it.
Now the start screen of LRSsoft appears, as described in chapter 9.3.
9.3
Starting LRSsoft/Communication tab
Start LRSsoft via the respective entry in the Windows Start menu.
The following screen appears:
Figure 9.1:
Initial screen LRSsoft
In the IP Configuration area, enter the settings for the LRS and click on Accept.
You had already determined this data in chapter 8.2.
Click on Check Connectivity to test the connection to the LRS.
If the following message appears, the Ethernet connection
to the LRS is correctly configured: The connection
attempt to sensor ... was successful.
Click on the button Connect to sensor:
As a result LRSsoft establishes a connection and displays the currently measured 2D profile.
In the status line at the bottom left of the display you will now find Online highlighted in
green instead of Offline highlighted in red.
LRSsoft configuration software
Leuze electronic
Technical description LRS
63
TNT 35/7-24V
Notice!
The following additional information is displayed in the status line:
• Sensor connection status (Sensor status)
• Number of the Active Inspection Task
• Scan number (Profile Number)
• Encoder value dependent on the sensor type (Encoder Value)
• Connected sensor type
• Analog output status (Analog Output)
Notice!
Once the LRSsoft has established a connection to the LRS, the laser beam flashes.
PROFIBUS settings (only LRS 36/PB)
For PROFIBUS devices, you can set the slave address and the baud rate in the PROFIBUS
tab.
Figure 9.2:
PROFIBUS settings
Automatic detection of the baud rate / automatic address assignment
The LRS 36/PB supports automatic detection of the baud rate and automatic address
assignment via the PROFIBUS.
The address of the PROFIBUS participant can be set automatically by the commissioning
tool of the PROFIBUS system (a class 2 PROFIBUS master). For this purpose, the slave
LRSsoft configuration software
64
Technical description LRS
Leuze electronic
address must be set to value 126 in the sensor (factory setting). This is performed by means
of LRSsoft or via the display.
The commissioning master checks whether a slave has address 126 and then assigns this
slave a slave address smaller than 126. This address is permanently stored in the participant.
The changed address can then be queried (and, if necessary, changed again) via the display
or LRSsoft.
The following baud rates can be set:
Notice!
After changing the PROFIBUS slave address via the display or LRSsoft, a power-on reset
must be performed in order to permanently accept the address. For the changed settings
to take effect, they must be transferred to the sensor!
• Automatic
• 9.6kBaud
• 19.2kBaud
• 45.45kBaud
• 93.75kBaud
• 187.5kBaud
• 500kBaud
• 1.5MBaud
• 3MBaud
• 6MBaud
LRSsoft configuration software
Leuze electronic
Technical description LRS
65
TNT 35/7-24V
9.4
Parameter settings/Parameters tab
Click on the Parameters tab to access the parameter settings:
Figure 9.3:
Parameter settings in LRSsoft
First go to the Task Parameters panel and set the values required for operating the LRS.
Then go to the Analysis Functions panel and define analysis windows and their logic
combination for your inspection task. Finally, save these settings as an Inspection Task
by clicking on Apply Settings or Transmit to Sensor.
9.4.1
Task Parameters panel
Inspection Task Selection
In the Inspection Task Selection panel, you can select inspection tasks.
Notice!
By default, changeover of the inspection tasks via the PROFIBUS master (PLC) has priority
over LRSsoft. In this field, the selection of the inspection task with LRSsoft is only possible
if, under Global Parameters there is no tick in front of Enable External Inspection
Task Selection. Otherwise, the inspection task can only be selected via the process
interface.
By removing the tick in the Enable External Inspection Task Selection check
box, the inspection task cannot be changed via the process interface while configuration is
being performed. After configuring with LRSsoft and before transmitting the settings to the
sensor ('Transmit to Sensor'), the Enable External Inspection Task Selection
check box must again be selected. Only then can inspection tasks be selected via the
process interface.
LRSsoft configuration software
66
Technical description LRS
Leuze electronic
The upper drop-down menu Inspection Task Selection lets you select one of the 16
possible inspection tasks. After the selection of the inspection task, the associated param-
eters are loaded and displayed. You can edit these parameters and save the edited param-
eters under the same name.
In the Name field, you can assign a meaningful name (max. 12 characters) to the inspection
task selected above and save it by clicking on Accept.
By saving via the button Apply Settings, the currently displayed inspection task is
temporarily stored in the sensor. When switched off, the data/settings are lost.
By saving via Configuration -> Transmit to Sensor menu command all inspection
tasks created are transmitted to the sensor, where they are permanently stored.
Notice!
If an inspection task was changed, permanent storage in the sensor should be performed
with Configuration -> Transmit to Sensor.
The common procedure for creating and storing inspection tasks is described in chapter
9.7, "Definition of inspection tasks" on page 76 .
Operation Mode
In Operation Mode you can configure using Free Running that the LRS continuously
detects and outputs measurement data (factory setting). With Input Triggered the LRS
captures measurement data only if a rising edge is present at the trigger input or if one of
the "Ethernet Trigger" (chapter 10.3.4) or PROFIBUS Trigger (chapter 11.5) commands is
being used. Detailed information on this topic can be found in chapter 4.2.3.
Activation
Under Activation the Regard setting has the effect that the laser is switched on and off
according to the level at the activation input or via PROFIBUS. Detailed information on this
topic can be found in chapter 4.2.2.
When the Disregard setting has been selected, the laser always remains switched on,
independent from the level at the activation input or the PROFIBUS activation (factory
setting).
Trigger Output Mode
Under Trigger Output Mode you can activate the cascading output using Cascading.
Detailed information on this topic can be found in chapter 4.2.4. When the Disable setting
has been selected, the cascading output will not be set (factory setting).
Light Exposure
Using Light Exposure you can control the exposure duration of the laser during measure-
ment value detection and adapt it to the reflective properties of the objects to be detected.
Select an exposure setting that displays a continuous line around the object contour.
Then try to achieve a line on a flat surface that is as continuous as possible.
LRSsoft configuration software
Leuze electronic
Technical description LRS
67
TNT 35/7-24V
Field of View
Using Field of View you can restrict the detection range of the LRS. The same happens
if you click on the square handles of the detection range framed in blue with the mouse and
then pull.
Factory settings for Field of View:
By restricting to the necessary detection range, ambient light or undesired reflections can
be suppressed.
Apply Settings
The Apply Settings button temporarily transmits the settings for the current inspection
task to the sensor. When switched off, the data/settings are lost.
Notice!
If an inspection task was changed, permanent storage in the sensor should be performed
with Configuration -> Transmit to Sensor.
LRS 36…
Min X
-300
Max. X
300
Min. Y
190
Max. Y
810
LRSsoft configuration software
68
Technical description LRS
Leuze electronic
9.4.2
Analysis Functions area
Edit Logical Combinations
Click on the Edit Logical Combinations button and the following window appears:
Figure 9.4:
Window "Analysis Window Definitions"
When clicking on the check box Active in one of the 16 lines AW01 to AW16, a black frame
with handles appears in the display of the detection range on the left:
Figure 9.5:
Definition of analysis windows (AW)
Notice!
After changing the detection range by dragging the black
frame with the mouse, click the button Accept Analysis
Window Rectangle so that the new values are accepted.
If you click somewhere else in the Analysis Window
Definitions window, the values prior to changing the
detection range by mouse are restored.
LRSsoft configuration software
Leuze electronic
Technical description LRS
69
TNT 35/7-24V
Using the mouse
Click and drag the handles of the analysis window using the mouse to change its size and
position.
Notice!
The font of the Accept Analysis Window Rectangle button turns black after size and/
or position of the analysis window have been changed using the mouse. You have to click
the button in order to accept the new values.
Direct input
Alternatively, you can enter the desired position values directly into the Minimum/Maximum
X/Z columns.
In the Current Hits column, LRSsoft displays the number of hit points that are detected
in the analysis window.
Notice!
The current settings regarding detection range and analysis windows must first be transmit-
ted to the sensor via Apply Settings. The column Current Hits then shows values.
In the Hits On column, you specify the number of hit points that must be detected for the
evaluation result of the relevant AW to be "1", or for a green LED to be displayed in the
column Current Status.
The LED remains green until the number of detected hit points is equal to or smaller than
the value you set in the Hits Off column.
The entries in Hits On and Hits off thus let you configure a switching hysteresis to
prevent an (unwanted) change of the switching state under admissible changes in the object
position or other physical quantities.
In figure 9.5, a total of three analysis areas have been defined. The task is to detect objects
of the same width but different heights, and the position of the objects in the detection range:
• AW01 detects that at least 2 objects of the specified width are present
• AW02 detects that at least 1 tall object is present
• AW03 detects that one tall object is present to the right
• AW04 detects that one low object is present to the left
By using a logic combination of the analysis results of these 4 AWs, you can configure the
switching behavior of outputs Out1 to Out4 and the PROFIBUS process data in the
Analysis Window Combination Tables panel.
LRSsoft configuration software
70
Technical description LRS
Leuze electronic
Edit Logical Combinations
Click on the Edit Logical Combinations button and the following window appears:
Figure 9.6:
"Analysis Window Combination Tables" window
Parameter in the Analysis Window Combination Tables window:
In the window of figure 9.7, you specify logic combinations of the evaluation results of indi-
vidual AWs:
For each output (Out1 to Out4), you first determine in the first &-column which AWs you
want to combine via AND. The result of this combination is displayed the line OR above
the respective column as 1 or 0. Where applicable, define further AND combinations in
the remaining &-columns.
You may thus define up to four different AND combinations of individual outputs in the
4 columns per output.
The results of these four columns are automatically combined via OR.
The output thus toggles when one of the four AND combinations results in a 1.
Parameter
Description
Value range
Out1 - Out4
Switching output 1-4 or with PROFIBUS:
state of the uSensorInfo sensor outputs (byte 2)
Green = active = 1 /
Red = not active = 0
Active
Activation of the switching output
On/Off
Ana. Depth
Analysis depth1), i.e. number of the successive evaluations with identical result that
are required for the switching output to toggle
1)
Notice on analysis depth:
By selecting a large value for the analysis depth, the LRS has a reliable switching behavior;
the response time of the sensor increases correspondingly (example: analysis depth = 3
-> response time 3 x 10ms = 30ms). Interfering signals of individual scans are suppressed.
If an analysis depth of "1" (factory stetting beginning with firmware version 01.25) is
selected, the response time is 10 ms.
1 … 255
Negation
Negation of the result of the OR line
On/Off
OR line
Results of the &-columns. These results are combined via OR and yield the state of
the switching output according to the settings for Active, Anal. Depth and
Negation
Green = 1 /
Red = 0
&-column
Logical AND combination of the results of the selected AWs
AW01 - AW16
Specifies whether the result of the AW is considered in the &-combination (+) or
whether it is considered in its negated form (-)
+/-
Table 9.1:
Parameter settings for control of the switching outputs
LRSsoft configuration software
Leuze electronic
Technical description LRS
71
TNT 35/7-24V
Example:
Figure 9.7:
Definition of logic combinations of several AWs
In the example above, the AW definitions of figure 9.5 apply. This means that, with the setting
for the switching outputs shown:
• OUT1 is active (=1)
- if an object is present in AW01 (AW01+) AND if no object is present in AW02 (AW02-)
OR
- if an object is present in AW03 (AW03+).
• OUT2 is not active (=0, because the Negation tick is set)
- if no object is present in AW01 (AW01-) AND if an object is present in AW02
(AW02+)
OR
- if an object is present in AW04 (AW04+).
• OUT3 is active (=1)
- if an object is present in AW03 (AW03+) AND if an object is present in AW04
(AW04+).
• OUT4 is active (=1)
- if an object is present in AW03 (AW03+) AND if no object is present in AW04 (AW04-).
As figure 9.7 shows, logic combinations can thus be used to define various detection tasks.
The good/bad result of the logic column links is shown in color in line OR. In the example
shown here, column 2 is green for OUT1 because an object is present in AW03.
Because the columns of OUT1 are linked with OR, OUT1 is active and displayed in green.
The analysis depth Ana. Depth is set to 10. This means that 10 identical evaluations must
occur in sequence in order to cause the switching output to toggle.
LRSsoft configuration software
72
Technical description LRS
Leuze electronic
9.4.3
Single Shot Mode area
In Single Shot Mode, the sensor carries out an individual analysis only when you click
on the Request Measurement button and displays the result in LRSsoft until Request
Measurement is clicked again.
9.4.4
Global Parameters area
Under Global Parameters, you can use Enable External Task Selection to
configure whether or not the inspection tasks 0-7 can be selected via the inputs
InSel1-InSel3 or PROFIBUS.
Inspection tasks 0-15 can be selected via PROFIBUS.
Notice!
If Enable External Inspection Task Selection is ticked, the inspection task can
only be selected via the inputs or PROFIBUS. In this case, the drop-down menu under
Inspection Task Selection has no function.
LRSsoft configuration software
Leuze electronic
Technical description LRS
73
TNT 35/7-24V
9.5
Detection function/Visualization tab
Click the Visualization tab to display the chronological trend of the states of AWs
and switching outputs or of the states of the uSensorInfo sensor outputs (byte 2) for the
PROFIBUS device:
Figure 9.8:
LRSsoft Visualization
9.5.1
Evaluating saved detection data
To evaluate a detection data set, you can record, store and reopen detection data as
described in chapter 9.6.3. A stored detection data set can be opened with LRSsoft via the
Recording -> Archive -> Open Record menu.
Notice!
After opening a detection data set, the current parameter setting of the LRS should be trans-
mitted (see chapter 9.6.2) so that the current sensor configuration is displayed on Hits On
and Hits Off.
In default mode, the detection data in the Visualization tab run through continuously.
To stop this continuous display and to be able to examine individual data sets you must
click on the arrow on the toolbar.
The sliders in the Replay Control area serve to evaluate them.
Spooling permits the fast shifting of the displayed section of 100 individual results across
all data of the detection data set (which can easily contain several hundred individual results).
Here, the value in First Status shows the number of the measurement that is displayed
at 0 and the value in Last Status the number of the measurement displayed at 100.
LRSsoft configuration software
74
Technical description LRS
Leuze electronic
Use the Status Selection slider to specify which of the individual data sets displayed
in the right window area is shown in the individual results of the AWs and switching outputs
or the states of the uSensorInfo sensor outputs (byte 2) for the PROFIBUS device. The asso-
ciated data set number is displayed under Profile No. The Show Plane option marks
this individual data set with a solid black line.
9.6
Menu commands
9.6.1
Saving parameter settings/File menu
The File menu is used to save parameter data to
the PC. In this way, settings for various detection
tasks can be defined within the scope of commis-
sioning and stored on data carriers and parameter
files. During operation, the LRS is reconfigured via
Inspection Tasks. A parameter file stored on a
data carrier can only be used with LRSsoft config-
uration software!
• New creates a new configuration file.
• Open opens a configuration file from the data
carrier.
• Save saves the open configuration file with the same name.
• Save as saves the open configuration file under a different name.
• Save as default saves the open configuration as the default setting which is always
loaded when LRSsoft is opened.
In addition, the File menu offers the possibility to export the following views format to data
carriers (available formats: *.png, *.jpg, *.bmp, *.tif):
• Profile View: the current view as 2D view
• AW States View: chronological trend of the state of all 16 AW's
• Output States View: chronological trend of the states of the 4 switching outputs
or of the states of the uSensorInfo sensor outputs (byte 2) for the PROFIBUS device
9.6.2
Transmitting parameter settings/Configuration menu
The Configuration menu is used to exchange parameter
data with the connected LRS.
• Load from Sensor loads all parameter settings for all
defined inspection tasks from the LRS and displays them
in the software.
• Transmit to Sensor permanently stores all parameter settings of all defined
inspection tasks from the configuration software in the LRS.
• Reset to factory settings resets the LRS to factory settings.
LRSsoft configuration software
Leuze electronic
Technical description LRS
75
TNT 35/7-24V
9.6.3
Managing detection data/Measure Records menu
Detection data are defined here as the results of individual analysis windows and the states
of the switching outputs.
The Recording menu is used for managing
detection data in *.csv format on the PC.
• New... creates a new detection data set.
Following a file name query dialog, another
dialog appears. It requires you to enter how
many single scans (2D profiles) are to be
saved in the file.
• Archive -> Open Record opens a saved detection data set.
• Archive -> Close record closes the opened detection data set.
9.6.4
Zoom and Pan/toolbar
The Zoom in / Zoom out and Pan buttons of the toolbar allow individual areas of the view
to be enlarged for better visual evaluation:
Figure 9.9:
Zoom function
After activating the magnifying glass, each click on the view enlarges the displayed section.
The enlarged section can then be shifted with the activated hand function to display the
area of interest.
Notice!
The click-and-drag method for zooming known from other programs is not possible here.
Before LPSsoft is operated further, the tool buttons (Zoom, Pan, …) must be activated.
Zoom In
Enlarge area:
1.
Select Zoom in
2.
Click in the view
3.
Select Pan
4.
Shift the area to be examined into the center of the
screen
Repeat until the desired view is reached
Use Reset plots to initial settings to
restore the original size
Zoom Out
Pan
Reset plots to initial
settings
LRSsoft configuration software
76
Technical description LRS
Leuze electronic
9.7
Definition of inspection tasks
Typical procedure
1.
Start LRSsoft and connect the sensor:
Click on the Connect to sensor button:
.
2.
Fetch the configuration from the sensor via Load from Sensor or load it from the
data carrier with Open.
3.
Remove the tick at Enable Selection Inputs.
4.
Use Inspection Task Selection to select the inspection task to be modified.
5.
Display and, if necessary, enlarge 2D view of the detection range in the Parameters
tab.
6.
Define required (E)AWs with mouse or keyboard in the Analysis Windows Defi-
nitions window (Edit Analysis Windows button); confirm each of the set (E)AWs
with Apply Settings.
- Within an AW, the pixels of the current 2D profile are determined by the LRS
(Current Hits).
- For each AW, the user then configures an upper and a lower limit for the hits (Hits
On/Off) and thus a switching hysteresis.
- The result is an ok or not ok status, signaled via a green or red status display.
Notice!
The number of Current Hits does not necessarily correspond with the object size,
since the number of hits is dependent on distance z. At near distance to the sensor
(e.g., 300 mm) an object expanded in the X direction has nearly twice as many hits
as it does at a far distance (e.g, 600mm). If the object distance is the same, the
number of hits remains nearly constant.
7.
Generate switching information for the outputs Out1 to Out 4 or PROFIBUS process
data in the Analysis Window Combination Tables window (button Edit
Logical Combinations):
- Columnar AND combination of the results (inverted, if applicable) of individual AWs
- OR combination in line OR of up to four AND results
- If applicable, inversion of the result of the OR combination
(tick in Negation)
- Input for the evaluation depth
8.
Assign a name (Name) to the inspection task and confirm with Accept.
9.
Temporarily transfer the inspection task with Apply Settings.
10.
Where applicable: define further inspection tasks with steps 5.-9.
11.
Tick Enable Selection Inputs again.
12.
Permanently transfer the configuration including all inspection tasks to the sensor with
Transmit to Sensor.
13.
Where applicable: save the configuration to data carrier with Save As…
14.
Finally, disconnect the connection to the sensor:
click on the button Disconnect from sensor:
.
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
77
TNT 35/7-24V
10
Integrating the LRS in the process control (Ethernet)
10.1
General information
The LRS communicates with the process control via UDP/IP using the protocol described
in chapter 10.2. The protocol operates in two different modes:
• Detection mode
• Command Mode
In detection mode, the LRS transmits the evaluation telegram. This is continuously trans-
mitted in "Free Running" operation; in triggered operation, it is transmitted only once per
trigger.
In command mode the LRS reacts to commands from the control. The commands available
are described in chapter 10.3.
Notice!
If you use a firewall, please make certain that the control can communicate with the LRS via
the Ethernet interface by means of UDP on ports 9008 and 5634 (these ports are preset at
the factory, but may have been changed by the user, see chapter 7.2 "Menu description").
Furthermore, the firewall must allow ICMP echo messages to pass through for the connec-
tion test (ping).
The integration of PROFIBUS device model LRS 36/PB in the process control via PROFIBUS
is described in chapter 11 "Integration of the LRS 36/PB in the PROFIBUS" on page 92.
10.2
Protocol structure: Ethernet
Notice!
The sequence in which the individual bytes are saved varies depending on the operating
system. The commands in chapter 10.3 and the protocol description are represented in "big
endian" format, i.e., the high-byte first followed by the low-byte
(0x… hexadecimal).
Windows PCs (and many controls, such as the Siemens S7), however, store data in the "little
endian" format, i.e. the low byte first followed by the high byte.
If, in your process environment, the LRS does not respond to commands from the control
even though communication with LRSsoft functions properly, check whether the problem
lies with the byte order.
Example: for command 0x434E (Connect to Sensor) a Windows PC must transmit 0x4E and
0x43 in order for it to be understood by the LRS. In the transaction number of the answer
from LRS there is then also 0x4E43 (byte sequence 0x43, 0x4E).
The LRS sends data as "little endian", i.e., first the low byte and then the high byte.
The possible values of individual bytes and their meaning are described below.
Integrating the LRS in the control (Ethernet)
78
Technical description LRS
Leuze electronic
Protocol structure
The protocol consists of the header (30 bytes) followed by the user data (0 … 53 data
words @ 2 bytes). The protocol is used both in command mode when transmitting
commands and when acknowledging sensor commands as well as in detection mode.
Header
10.2.1
Command number
The command number specifies both the command from the control to the sensor as well
as the command from the sensor to the control (see chapter 10.3).
In detection mode, the sensor always sends an evaluation telegram with command number
0x5354.
10.2.2
Packet number
The packet number serves internal maintenance purposes of the manufacturer.
10.2.3
Transaction number
In detection mode 0x0000 is displayed here
In command mode, the command acknowledgment of the sensor contains the command
number of the command that is answered.
Startseq. 1
Startseq. 2
Fill character
Command no.
Fill character
Packet no.
Fill character
Transaction no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
Number of user
data words
0xFFFF 0xFFFF 0x0000 0x0059 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0003
Length 4 bytes,
fixed value:
0xFFFF
0xFFFF
Length 2 bytes,
fixed value:
0x0000
Length 2 bytes,
possible values:
see chapter 10.3
Length 2 bytes,
fixed value:
0x0000
Length 2 bytes,
value range:
0x0000 … 0xFFFF
Length 2 bytes,
fixed value:
0x0000
Length 2 bytes,
value range:
0x0000 … 0xFFFF
Length 2 bytes,
value range:
0x0000 … 0xFEFF
Length 4 bytes,
value range:
0x0000 0000
…
0xFFFF FFFF 1)
1)
For sensor models with encoder input, these 4 bytes contain the encoder value.
With the LRS, this value is always 0x0000 0000.
Length 2 bytes,
fixed value:
0x0000
Length 2 bytes,
value range:
0x0000 … 0xFFFF
Length 2 bytes,
fixed value:
0x0010
Length 2 bytes, possible values:
0x0000 / 0x0001 / 0x0002 /
0x0003 / 0x0178
Length of the header: 30 bytes
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
79
TNT 35/7-24V
10.2.4
Status
Indicates the state of the sensor. The state is coded as follows:
The LSB of the high byte is always set to 1 as long as the parameter Activation Input
has been set to Disregard (Always on) in LRSsoft.
If parameter Activation Input is set to Regard, the state of the bit corresponds to the
state of the signal of an activation source (input, Ethernet activation).
Notice!
Independent of the mode that is currently active, the sensor switches to menu mode if a
button if the display is touched and then neither responds to commands nor does it transmit
measurement data. Menu mode automatically ends after 3 minutes if no buttons are pressed.
Alternatively, the user can end menu mode with the Exit menu item.
10.2.5
Encoder High / Low
The encoder counter is implemented in sensor models with encoder input. All other sensors
permanently display 0x00000000.
The 4 bytes in Encoder High and Encoder Low specify the encoder counter value for light
section sensors with encoder interface. The maximum value is 0xFFFF FFFF.
MSB
High-Byte
LSB MSB
Low-Byte
LSB Meaning of the bits
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
0 Sensor not connected via Ethernet
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1 Sensor connected via Ethernet
-
-
-
-
-
-
-
-
0
0
0
1
-
-
-
- Detection mode
-
-
-
-
-
-
-
-
0
0
1
0
-
-
-
- Menu mode
-
-
-
-
-
-
-
-
0
1
0
0
-
-
-
- Command mode
-
-
-
-
-
-
-
-
1
0
0
0
-
-
-
- Error mode
-
-
-
-
-
-
-
0
-
-
-
-
-
-
-
- Sensor deactivated via activation function
-
-
-
-
-
-
-
1
-
-
-
-
-
-
-
- Sensor activated via activation function
-
-
-
-
-
-
0
-
-
-
-
-
-
-
- No warning
-
-
-
-
-
-
1
-
-
-
-
-
-
-
- Warning, temporary sensor malfunction
-
-
-
-
-
0
-
-
-
-
-
-
-
-
-
- Free Running measure mode
-
-
-
-
-
1
-
-
-
-
-
-
-
-
-
- Triggered measure mode
-
-
0
-
-
-
-
-
-
-
-
-
-
-
-
- No error
-
-
1
-
-
-
-
-
-
-
-
-
-
-
-
- Error detected, measurement data are still
sent if applicable, the sensor then switches
into error mode
Integrating the LRS in the control (Ethernet)
80
Technical description LRS
Leuze electronic
10.2.6
Scan number
The 2 bytes of the scan number indicate the number of single measurements in chrono-
logical order. After each measured profile, this number increases by 1. The maximum value
is 0xFFFF. Beyond that an overflow to 0x0000 occurs. The Z- and X-data belonging to a
measurement are identified via the same scan number.
10.2.7
Type
Specifies how the detection data are to be interpreted. The fixed default value is 0x0010.
10.2.8
Number of user data
The user data have a variable length of 0, 1, 2, 3 or 53 data words (0, 2, 4, 6 or 106 bytes).
Indicates the number of user data transferred. The fixed default value in detection mode is
0x0059.
10.2.9
Evaluation telegram
In detection mode for the LRS, the evaluation telegram is transmitted with command number
0x5354. After the header are 53 user data words with the following structure:
Byte
MSB High-Byte LSB
MSB Low-Byte LSB
Meaning of the bits
31…32
-
-
-
-
-
-
-
-
-
-
-
-
N4 N3 N2 N1 Number of the current inspection task
33…34
AW
16
AW
15
AW
14
AW
13
AW
12
AW
11
AW
10
AW
9
AW
8
AW
7
AW
6
AW
5
AW
4
AW
3
AW
2
AW
1
Results of the individual analysis windows
35…36
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 1
37…38
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 2
39…40
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 3
41…42
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 4
43…44
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 5
45…46
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 6
47…48
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 7
49…50
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 8
51…52
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 9
53…54
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 10
55…56
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 11
57…58
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 12
59…60
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 13
61…62
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 14
63…64
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 15
65…66
-
-
-
-
-
-
-
A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 16
67…68
O4
C4
O4
C3
O4
C2
O4
C1
O3
C4
O3
C3
O3
C2
O3
C1
O2
C4
O2
C3
O2
C2
O2
C1
O1
C4
O1
C3
O1
C2
O1
C1
Column results of the AND operation for the outputs. See "Analysis Functions
area" on page 68. Example: O1/C3 = Output 1, Column 3
69…70
-
-
-
-
-
-
-
-
-
-
-
-
O4 O3 O2 O1 Switching state of the outputs Out1 - Out4. See "Analysis Functions area"
on page 68.
71…72
-
-
-
-
-
-
-
-
T8 T7 T6 T5 T4 T3 T2 T1 Current counter state for the analysis depth of Output 1
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
81
TNT 35/7-24V
10.3
Ethernet commands
Notice!
The sequence in which the individual bytes of the commands and of the protocol must be
transmitted in order to be processed by the LRS corresponds to the "little-endian" byte
sequence. The response of the LRS also corresponds to the "little-endian" standard. For
further information, see the notice in chapter 10.2.
In detection mode, however, only Connect to Sensor, Disconnect from Sensor, Enter
Command Mode and Ethernet Trigger can be processed (is acknowledged with
'Ack'=0x4141). All other commands are acknowledged with 'Not Ack'=0x414E; the
command is not processed.
Additional commands are available in command mode.
73…74
-
-
-
-
-
-
-
-
T8 T7 T6 T5 T4 T3 T2 T1 Current counter state for the analysis depth of Output 2
75…76
-
-
-
-
-
-
-
-
T8 T7 T6 T5 T4 T3 T2 T1 Current counter state for the analysis depth of Output 3
77…78
-
-
-
-
-
-
-
-
T8 T7 T6 T5 T4 T3 T2 T1 Current counter state for the analysis depth of Output 4
79…80
-
-
-
-
-
-
-
-
-
-
-
-
-
I3
I2
I1 State of the three inputs for the selection of the inspection task
81…136
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- The remaining user data are used for internal maintenance purposes of
the manufacturer.
Byte
MSB High-Byte LSB
MSB Low-Byte LSB
Meaning of the bits
Integrating the LRS in the control (Ethernet)
82
Technical description LRS
Leuze electronic
10.3.1
Elementary commands
Using the Connect to sensor and Disconnect from sensor commands, a connection
between control and sensor is established or terminated. The communication with the LRS
is carried out via the ports previously configured in LRSsoft.
After switching on the sensor and establishing a connection, the sensor is initially in detec-
tion mode and continuously transmits evaluation data (Free Running) or waits for a trigger
signal for transmitting evaluation data.
Command from control to LRS
Answer from LRS to control
Command no.
Meaning
Command no.
Meaning
0x434E
Connect to Sensor
0x4141
Connection established, the sensor
is permanently connected.
The sensor status (bytes 17 and 18)
can be used to detect whether the
sensor is connected.
0x414E
The transmitted command was not
processed (possible sensor status:
sensor is already connected or in
menu mode, detailed info see chap-
ter 10.2.4 "Status").
0x4443
Disconnect from Sensor
0x4141
Connection terminated.
0x414E
The transmitted command was not
processed (possible sensor status:
sensor was already disconnected or
in menu mode, detailed info see
chapter 10.2.4 "Status").
Table 10.1:
Connection commands
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
83
TNT 35/7-24V
To switch between detection mode and command mode the Enter Command Mode and
Exit Command Mode commands are available.
10.3.2
Commands in command mode
The following commands are available in command mode:
Command from control to LRS
Answer from LRS to control
Command no.
Meaning
Command no.
Meaning
0x3132
Enter Command Mode
0x4141
Sensor in command mode.
0x414E
The transmitted command was not
processed (possible sensor status:
sensor currently in menu mode and
cannot execute any commands.
Sensor is already in command
mode) 1).
1)
Detailed info on possible sensor states see chapter 10.2.4 "Status". You can determine
whether the sensor is in menu mode with a quick glance at the display. Menu mode can
be ended with the Exit menu item.
0x3133
Exit Command Mode
0x4141
Sensor back to detection mode.
0x414E
The transmitted command was not
processed because the sensor was
not in command mode.
Table 10.2:
Command mode control commands
Command from control to LRS
Answer from LRS to control
Command no.
Meaning
User
data
words
Command no.
Meaning
User
data
words
0x0001
Set Laser Gate
laser activation and
deactivation (toggle),
see chapter 10.3.3
1
0x4141
Command carried out.
0
0x414E
Command was not
executed.
0
0x0049
Get Actual Inspection
Task
Get number of the current
inspection task
0
0x004A
In the user data area the
task number is trans-
ferred.
(0 = Task0,
up to 15 = Task15).
1
0x004B
Set Actual Inspection
Task
Set number of the current
inspection task, see chap-
ter 10.3.3
2
0x4141 1)
1)
0x4141 = Acknowledge: Execution of the command is confirmed
The inspection task has
been set.
0
0x414E 2)
2)
0x414E = Not Acknowledge or Error: Command has not been executed
The transmitted command
was not processed.
0
Table 10.3:
Sensor control commands
Integrating the LRS in the control (Ethernet)
84
Technical description LRS
Leuze electronic
10.3.3
User data in command mode (command parameters)
Set Laser Gate
For sensor control command 0x0001, one word of user data is transmitted to the sensor:
LF=0 switches the Laser off, LF=1 switches the laser on.
Set Actual Inspection Task
For sensor control command 0x004B, two words of user data are transmitted to the sensor:
If SF=0 then the inspection task is changed only temporarily.
If SF=1 then the newly set inspection task is retained even after a restart of the LRS.
Get Actual Inspection Task
The LRS responds to sensor control command 0x0049 with 0x004A and one word of user
data:
Byte
MSB
High-Byte
LSB MSB
Low-Byte
LSB Meaning of the bits
31…32
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
LF LF = Laser Flag
Byte
MSB
High-Byte
LSB MSB
Low-Byte
LSB Meaning of the bits
31…32
-
-
-
-
-
-
-
-
-
-
-
-
N4 N3 N2 N1 Number of the inspection task to be configured
(0 = Task0 … 15 = Task 15)
33…34
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
SF SF = SaveFlag
Byte
MSB
High-Byte
LSB MSB
Low-Byte
LSB Meaning of the bits
31…32
-
-
-
-
-
-
-
-
-
-
-
-
N4 N3 N2 N1 Number of the configured inspection task
(0 = Task0 … 15 = Task 15)
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
85
TNT 35/7-24V
Set Scan Number
For sensor control command 0x0053, one word of user data is transmitted to the sensor:
With the sensor control command Set Scan Number, it is possible to set a uniform scan
number for the transmission protocol for multiple sensors operated in cascaded operation.
A description of cascaded operation can be found in chapter 4.2.4.
Notice!
1.
Switch the master (sensor 1) to command mode. Continuous measurement is stopped
as a result. In command mode, the cascading output is not active!
2.
Set an arbitrary scan number with command 0x0053 for the master.
3.
Successively switch all slaves (sensor 2, 3, …) to command mode and set the same
scan number for each individual slave that you set previously under item 2 for the
master.
4.
Switch the slaves back to measure mode.
5.
Switch the master to measure mode.
Set Single Inspection Task Parameter (beginning with firmware V01.40!)
Individual parameters of the active inspection task can be changed with sensor control
command 0x006D. The following parameters can be changed:
• Name of an inspection task,
• Operation Mode: Free Running or Input Triggered,
• Enabling of activation (Activation Input: Regard or Disregard),
• Cascading Output: Enable or Disable,
• Exposure duration of the laser (Light Exposure),
• Detection range of the LPS (Field of View).
Command syntax from control to sensor:
Byte
MSB
High-Byte
LSB
MSB
Low-Byte
LSB Meaning of the bits
31…32
S16 S15 S14 S13 S12 S11 S10 S9
S8
S7
S6
S5
S4
S3
S2
S1 New scan number that is to be set
Startseq. 1
Startseq. 2
Fill character
Command no.
Fill character
Packet no.
Fill character
Transaction no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
Number of
pieces of data
0xFFFF 0xFFFF 0x0000 0x006D 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0003-
0x000E
Byte
MSB
High-Byte
LSB MSB
Low-Byte
LSB Meaning of the bits
31…32
SF SF = SaveFlag
33…34
Parameter ID for parameter selection
35…58
Parameter value[s] dependent on parameter ID
Integrating the LRS in the control (Ethernet)
86
Technical description LRS
Leuze electronic
Parameters and settings:
If SF=0, then the parameter is changed only temporarily.
If SF=1, the parameter is retained even following a restart of the LRS.
Sensor response:
Parameter ID
Parameter meaning
Valid parameter values
Parameter
data type
Number of
parameter values
0x0BB9
Name of the active inspection task
Maximum length: 12 ASCII characters, each character
is saved as a 16-bit word
CHAR
12
0x0BBA
Operating mode
0=Operation Mode: Free Running;
1=Operation Mode Input Triggered
UINT8
1
0x0BBB
Enabling of activation
0=Activation Input: Disregard;
1=Activation Input: Regard
UINT8
1
0x0BBC
Enabling of the cascading output
0=Cascading Output: Disable;
1=Cascading Output: Enable
UINT8
1
0x0BBD
Exposure duration of the laser
0 = Normal (approx. 261µs)
1 = Bright Objects (approx. 97µs)
2 = Dark Objects (approx. 655µs)
3 = Normal to Bright Objects (approx. 328µs)
4 = Manual Setting (the exposure time is set using
parameter ID 0x0BBE)
UINT8
1
0x0BBE
Manual adjusting of the exposure
duration
Permissible value range
LRS 36/6, LRS 36/6.10, LRS 36/PB: 973…13109
(exposure time unit in 1/10µs).
The duration of exposure is set incrementally in the
sensor. The actual duration of exposure can deviate
slightly from the parameter value transmitted. The
exposure duration set can be accessed with the "Get
Single Inspection Task Parameter" (0x006F) command
in combination with parameter ID 0x0BBD.
UINT16
1
0x0BBF
X-coordinate detection range
2 signed X-values for Field of View,
value 1: Minimum X Value,
value 2: Maximum X Value,
permissible value range
LRS 36/6, LRS 36/6.10, LRS 36/PB: -3000…3000
(unit in 1/10mm)
SINT16
2
0x0BC0
Z-coordinate detection range
2 non-signed Z-values for Field of View,
value 1: Minimum Z Value,
value 2: Maximum Z Value (unit in mm),
permissible value range
LRS 36/6, LRS 36/6.10, LRS 36/PB: 1900…8100
(unit in 1/10mm)
UINT16
2
Command number
Meaning
User data words
0x4141
"Ack": the command has been successfully executed.
0
0x414E
"Not Ack": the command has not been executed.
0
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
87
TNT 35/7-24V
Get Single Inspection Task Parameter (beginning with firmware V01.40!)
Individual parameters of the active inspection task can be output with sensor control
command 0x006F. The following parameters can be accessed:
• Name of the active inspection task,
• Number of the active inspection task,
• Operation Mode: Free Running or Input Triggered,
• Setting of activation (Activation Input: Regard or Disregard),
• Setting of cascading output (Cascading Output: Enable or Disable),
• Exposure duration of the laser (Light Exposure),
• Detection range of the LRS (Field of View).
Command syntax from control to sensor:
Parameters and settings:
Startseq. 1
Startseq. 2
Fill character
Command no.
Fill character
Packet no.
Fill character
Transaction no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
Number of
pieces of data
0xFFFF 0xFFFF 0x0000 0x006F 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0001
Byte
MSB
High-Byte
LSB MSB
Low-Byte
LSB Meaning of the bits
31…32
Parameter ID which can be accessed
Parameter ID
Parameter meaning
0x0BB8
Number of the active inspection task
0x0BB9
Name of an inspection task
0x0BBA
Operating mode
0x0BBB
Enabling of activation
0x0BBC
Enabling of the cascading output
0x0BBD
Exposure duration of the laser
0x0BBE
Manual adjusting of the exposure duration
0x0BBF
X-coordinate detection range
0x0BC0
Z-coordinate detection range
Integrating the LRS in the control (Ethernet)
88
Technical description LRS
Leuze electronic
Answer from sensor to control:
Startseq. 1
Startseq. 2
Fill character
Command no.
Fill character
Packet no.
Fill character
Transaction no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
Number of
pieces of data
0xFFFF 0xFFFF 0x0000 0x0070 0x0000 0x0000 0x0000 0x006F 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0009-
0x0014
Byte
MSB
High-Byte
LSB MSB
Low-Byte
LSB Meaning of the bits
31…32
Parameter ID for parameter selection
33…34
Data type:
1 = UINT8; 2 = UINT16, 5 = SINT16, 7 = CHAR
35…36
Number of parameter values (byte 47 and following)
37…38
Lower limit of parameter value (HighWord)
39…40
Lower limit of parameter value (LowWord)
41…42
Upper limit of parameter value (HighWord)
43…44
Upper limit of parameter value (LowWord)
45…46
No meaning
47…70
Parameter value(s) of accessed parameter ID
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
89
TNT 35/7-24V
10.3.4
Commands in detection mode
The following commands are available in detection mode:
10.4
Working with the protocol (Ethernet)
Notice!
The values are displayed in hexadecimal representation (0x…). The values are only transmit-
ted in "Little-Endian" format. For further information, see the notice in chapter 10.2.
Command without user data
Connect to Sensor
PC to LRS:
LRS to PC (command executed):
Command from control to LRS
Answer from LRS to control
Command no. Meaning
User
data
words
Command no. Meaning
User
data
words
0x4554
Ethernet Trigger
With the Ethernet Trigger
command, a single mea-
surement is triggered in
detection mode, similar to
triggering via the trigger
input.
Prerequisite is that the LRS
be configured with LRSsoft
under Operation Mode to
Input Triggered.
A connection to the sensor
must exist before the
Ethernet Trigger command
can be used.
0
0x5354
The evaluation telegram is
sent as an answer (status
and switching informa-
tion), see chapter 10.2.9
1
packet
@ 53
0x414E
The transmitted command
was not processed.
0
Table 10.4:
Commands in detection mode
Startseq. 1
Startseq. 2
Fill character
Command
no.
Fill character
Packet no.
Fill character
Trans. no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
No. of data
0xFFFF 0xFFFF 0x0000 0x434E 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
Startseq. 1
Startseq. 2
Fill character
Command
no.
Fill character
Packet no.
Fill character
Trans. no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
No. of data
0xFFFF 0xFFFF 0x0000 0x4141 0x0000 0x0000 0x0000 0x434E 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
Integrating the LRS in the control (Ethernet)
90
Technical description LRS
Leuze electronic
Command with user data
Set Actual Inspection Task (LRS in command mode, activate Task 15 and do not store
in volatile memory)
PC to LRS:
LRS to PC (command executed):
Startseq. 1
Startseq. 2
Fill character
Command
no.
Fill character
Packet no.
Fill character
Trans. no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
No. of data
User data
User data
0xFFFF 0xFFFF 0x0000 0x004B 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0002 0x000F 0x0001
Startseq. 1
Startseq. 2
Fill character
Command
no.
Fill character
Packet no.
Fill character
Trans. no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
No. of data
0xFFFF 0xFFFF 0x0000 0x4141 0x0000 0x0000 0x0000 0x004B 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
Integrating the LRS in the control (Ethernet)
Leuze electronic
Technical description LRS
91
TNT 35/7-24V
10.5
Operation with LxS_Lib.dll
The LxS_Lib.dll is a .NET 2.0-compatible collection of functions which considerably facili-
tates the integration of all Leuze light section sensors (LPS, LRS and LES) into PC environ-
ments. The LxS_Lib.dll can be used in a variety of programming languages, such as C#,
Visual Basic, etc. The integration into MatLab is also possible.
The DLL can control several light section sensors via Ethernet.
The LxS_Lib.dll supports the following functions, among others:
• Establishment/deactivation of sensor connection
• Evaluation of sensor state
• Triggering, activation via Ethernet
• Activation of individual inspection tasks
• Loading and saving all created inspection tasks
• Activation of inspection tasks
• Parameter changes of the active inspection task
In addition, the LxS_Lib.dll enables the evaluation of specific user data of the LPS, LES or
LRS. With the LRS and LES, all sensor information and intermediate results are available
so that much more complicated evaluations can be realized in the process control.
Access
The library is contained on the supplied product CD. Alternatively, you can download the
program in the Internet at www.leuze.com.
10.6
Additional support when integrating sensors
Additional tools (e.g. MatLab example, function modules S7, protocol plain-text decoding,
UDP terminal) are available. Please contact your Leuze distributor or service organization
to acquire these.
Integration of the LRS 36/PB in the PROFIBUS
92
Technical description LRS
Leuze electronic
11
Integration of the LRS 36/PB in the PROFIBUS
11.1
General information
The LRS 36/PB is designed as a PROFIBUS DP/DPV1 compatible slave. The input/output
functionality of the sensor is defined by the corresponding GSD file. The baud rate of the
data to be transmitted is max. 6MBit/s under production conditions.
For operation, the GSD file is to be appropriately modified.
The LRS 36/PB supports automatic detection of the baud rate
Characteristics of LRS 36/PB
• Ethernet and PROFIBUS can be used simultaneously in detection mode as
fully-fledged interfaces.
• If the sensor is in menu mode, the PROFIBUS is active. Queries from the control are
not processed and the process data are frozen (indicated by the constant scan
number).
• If the sensor is in command mode, the PROFIBUS is active. Queries from the control
are not processed and the process data are frozen (indicated by the constant scan
number).
• If the sensor is simultaneously operated with LRSsoft and PROFIBUS, the PROFIBUS
is active. Queries from the control are processed with a delay; the process data are
also updated with a delay (indicated by the slowly increasing scan numbers). The
update occurs every 200ms.
• The input signals via Ethernet, PROFIBUS and signal lines have equal priority. The first
incoming signal is executed.
• The sensor is configured via the LRSsoft configuration software.
Compared to device model LRS 36/6 with switching outputs, the PROFIBUS model has the
following additional functions:
• Output of the status of 16 analysis windows
• Output of hits (current hits) in up to 16 analysis windows
• Result of logic combinations
• Transmission of scan number and sensor status
• Selection of up to 16 inspection tasks
• Activation and trigger via PROFIBUS
The restriction on the selection of maximum 8 inspection tasks via the switching inputs for
the LRS 36/6 does not exist for the LRS 36/PB. Up to 16 different inspection tasks can be
activated by the control
Integration of the LRS 36/PB in the PROFIBUS
Leuze electronic
Technical description LRS
93
TNT 35/7-24V
11.2
PROFIBUS address assignment
The various possibilities for setting the slave address are described in the following.
Automatic address assignment via the PROFIBUS (slave address 126) is preset.
Automatic address assignment
The LRS 36/PB supports automatic detection of the baud rate and automatic address
assignment via the PROFIBUS.
The address of the PROFIBUS participant can be set automatically by the commissioning
tool of the PROFIBUS system (a class 2 PROFIBUS master). For this purpose, the slave
address must be set to value 126 in the sensor (factory setting).
The commissioning master checks whether a slave has address 126 and then assigns this
slave a node address smaller than 126. This address is permanently stored in the participant.
The changed address can then be queried (and, if necessary, changed again) via the display
or LRSsoft.
Address assignment with LRSsoft
The PROFIBUS slave address can be set via LRSsoft. This setting can be stored on the PC
together with the other sensor settings.
Figure 11.1:
PROFIBUS address assignment with LRSsoft
Address assignment with key pad and display
Setting the address with the key pad and display allows the sensor to be integrated in a
PROFIBUS system while in the field with no additional tools. See "Slave Address" on
page 48. The set address can also be queried by the user with no additional tools.
Notice!
After changing the PROFIBUS slave address via LRSsoft or with the display/key pad, a
power-on reset must be performed in order to permanently accept the address.
Integration of the LRS 36/PB in the PROFIBUS
94
Technical description LRS
Leuze electronic
11.3
General information about the GSD file
If the LRS is operated in a PROFIBUS network, configuration can be performed exclusively
via the LRSsoft configuration software. The functionality of the inputs/outputs of the light
section sensor to the control is defined via modules. Using a user-specific configuration tool,
the respective required modules are integrated and configured according to the measure-
ment application during PLC programming.
During operation of the light section sensor on the PROFIBUS, the functionality of the inputs/
outputs is assigned default values. If these values are not changed by the user, the device
operates with the default settings set by Leuze electronic on delivery. Please refer to the
following module descriptions for the default settings of the device.
Notice!
At least one module from the GSD file must be activated in the configuration tool of the
control, usually module M1 or M2.
Notice!
Some controls make available a so-called "universal module". This module must not be
activated for the LRS 36/PB.
Attention!
The device makes available a PROFIBUS interface and an Ethernet interface. Both
interfaces can be operated in parallel.
Notice!
For test purposes, parameters can be changed on a LRS 36/PB operated on PROFIBUS.
At this time, object detection is not possible on PROFIBUS.
Notice!
All input and output modules described in this documentation are described from the
perspective of the control:
Described inputs (I) are inputs in the control.
Described outputs (O) are outputs in the control.
Described parameters (P) are parameters of the GSD file in the control.
Notice!
The current version of the GSD file LEUZE401.GSD for the LRS 36/PB can be found on the
Leuze website at Download -> detect -> Measuring sensors.
Integration of the LRS 36/PB in the PROFIBUS
Leuze electronic
Technical description LRS
95
TNT 35/7-24V
11.4
Overview of the GSD files
The LRS 36/PB has one module slot. Select the corresponding module from the GSD to set
the process data of the LRS 36/PB that are to be transmitted . Several modules are available
for selection. Beginning with the simplest input module M1, additional inputs are included
with the subsequent modules. All available output data are already contained in module M1.
The modules with higher numbers the modules with the lower numbers (example: M2
contains M1 and the extensions of M2).
Notice!
As the module number increases, so too does the number of user data bytes that are to be
transmitted.
The maximum detection rate of 100Hz can only be ensured up to module M3.
Therefore, only modules which contain the data actually required should be selected, i.e.
the smallest possible module number should be selected.
Notice!
All input and output modules described in this documentation are described from the
perspective of the control:
Described inputs (I) are inputs in the control.
Described outputs (O) are outputs in the control.
Described parameters (P) are parameters of the GSD file in the control.
Output data (from viewing position of control)
Position
(bytes)
Name
Bits in byte
Value
range
Meaning
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
0
uTrigger
Trig_7
Trig_6
Trig_5
Trig_4
Trig_3
Trig_2
Trig_1
Trig_0
0 … 255 Triggering via PROFIBUS (in the case of changes)
1
uActivation
-
-
-
-
-
-
-
Act_On
0 … 1
Activation (=1) or deactivation (=0) of the sensor
2
uInspTask
-
-
-
IT_b3
IT_b2
IT_b1
IT_b0
0 … 15
Inspection task of PROFIBUS master and save flag (B7)
Table 11.1:
PROFIBUS - Overview of output data (from viewing position of control)
Integration of the LRS 36/PB in the PROFIBUS
96
Technical description LRS
Leuze electronic
Input data (from viewing position of control)
GSE
Module
Position
(bytes)
Name
Bits in byte
Value
range
Meaning
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
M1
4 byte
0
wScanNum (HighByte)
SN_b15 SN_b14 SN_b13 SN_b12 SN_b11 SN_b10 SN_b9
SN_b8 0 … 255 Scan number (Highbyte)
1
wScanNum (LowByte)
SN_b7
SN_b6
SN_b5
SN_b4
SN_b3
SN_b2
SN_b1
SN_b0 0 … 255 Scan number (Lowbyte)
2
uSensorInfo
Out4
Out3
Out2
Out1
IT_b3
IT_b2
IT_b1
IT_b0
0 … 255 Sensor info (Insp. Task No., outputs)
3
uSensorState
ErrM
Cmd
Menu
Meas
ErrF
WarnF
active
connect 0 … 255 Sensor state
M2
6 byte
4
wResultAWs (HighByte)
AW16
AW15
AW14
AW13
AW12
AW11
AW10
AW9
0 … 255 State of AWs (Highbyte)
5
wResultAWs (LowByte)
AW8
AW7
AW6
AW5
AW4
AW3
AW2
AW1
0 … 255 State of AWs (Lowbyte)
M3
16 byte
6
wActObjPtsAW1 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 1
7
wActObjPtsAW1 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
8
wActObjPtsAW2 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 2
9
wActObjPtsAW2 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
10
wActObjPtsAW3 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 3
11
wActObjPtsAW3 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
12
wActObjPtsAW4 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 4
13
wActObjPtsAW4 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
14
wActObjPtsAW5 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 5
15
wActObjPtsAW5 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
M4
24 bytes
16
wActObjPtsAW6 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 6
17
wActObjPtsAW6 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
18
wActObjPtsAW7 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 7
19
wActObjPtsAW7 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
20
wActObjPtsAW8 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 8
21
wActObjPtsAW8 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
22
wActObjPtsAW9 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 9
23
wActObjPtsAW9 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
M5
38 bytes
24
wActObjPtsAW10 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 10
25
wActObjPtsAW10 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
26
wActObjPtsAW11 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 11
27
wActObjPtsAW11 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
28
wActObjPtsAW12 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 12
29
wActObjPtsAW12 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
30
wActObjPtsAW13 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 13
31
wActObjPtsAW13 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
32
wActObjPtsAW14 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 14
33
wActObjPtsAW14 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
34
wActObjPtsAW15 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 15
35
wActObjPtsAW15 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
36
wActObjPtsAW16 (HighByte)
-
-
-
-
-
-
-
OP_b8
0 … 1
Current number of hit points (Current
Hits) in analysis window 16
37
wActObjPtsAW16 (LowByte)
OP_b7
OP_b6
OP_b5
OP_b4
OP_b3
OP_b2
OP_b1
OP_b0
0 … 255
Table 11.2:
PROFIBUS - Overview of input data (from viewing position of control)
Integration of the LRS 36/PB in the PROFIBUS
Leuze electronic
Technical description LRS
97
TNT 35/7-24V
11.5
Output data description
PROFIBUS trigger
So that a measurement can be triggered on each PROFIBUS cycle, the PROFIBUS trigger
of the LRS responds to a change of master output byte uTrigger. The control only needs
to increment the trigger value in order to initiate a new measurement.
The maximum trigger frequency is 100Hz. If triggering occurs during a measurement, the
trigger signal is ignored, as is the case in the Free Running operating mode (shown on
display: fRun).
Activation - Sensor activation
Alternatively, activation can be switched on in detection mode via activation input InAct
(pin 2 on X1) or master output uActivation = 1.
Notice!
With the Disregard parameter setting in LRSsoft, the sensor is always activated; input InAct
and activation via PROFIBUS are ignored.
Inspection Tasks - Selection of inspection tasks
With master output uInspTask (bits IT_b3 … IT_b0 in output data byte 2), inspection tasks
0 … 15 can be selected. The changeover occurs in cyclical IO operation and lasts
approx. 70ms. During the changeover, the PROFIBUS IO data are frozen and the internal
reconfiguration occurs. This is indicated by the scan number, which does not increase.
After changing the inspection task, the PROFIBUS IO data of the sensor are again updated.
Value uSensorInfo in the input data then indicates the inspection task set in the sensor and
the scan number again increases with each new measurement.
Attention!
While configuring the LRS with LRSsoft via Ethernet, global parameter Enable External
Inspection Task Selection should be switched off so that the inspection task is not auto-
matically changed by the control during configuration.
After configuring, the check box for this parameter must be selected again before the con-
figuration is transmitted to the sensor by means of Transmit Configuration To Sensor.
Otherwise, inspection tasks can no longer be selected via PROFIBUS!
Integration of the LRS 36/PB in the PROFIBUS
98
Technical description LRS
Leuze electronic
11.6
Input data description
Several modules are available for selection. Beginning with the simplest input module M1,
additional inputs are included with the subsequent modules. All available output data are
already contained in module M1. The modules with higher numbers the modules with the
lower numbers (example: M2 contains M1 and the extensions of M2).
11.6.1
Module M1
Module M1 provides the minimum required PROFIBUS data
The maximum detection rate of 100Hz is ensured if this module is set.
Scan number
The scan number is made available as PROFIBUS master input. This is a 16-bit value (bytes
wScanNum, HighByte and LowByte).
The scan number is increased by 1 on each measurement. In FreeRunning mode, the scan
number also increases even if no sensor is explicitly activated. In triggered mode, the scan
number is increased on each (successful) trigger.
If the inspection task is changed, the PROFIBUS IO data of the sensor are frozen and the
scan number does not change.
Notice!
It is recommended that the scan number be monitored in the application in order to deter-
mine whether the data are actually new.
Sensor info
Byte uSensorInfo contains states of the internal (virtual) switching outputs of the sensor
Out4 … Out1 in the high-nibble (bit 7 … 4) and the inspection task set in the sensor
IT_b3 … IT_b0 in the low-nibble (bit 3 … 0).
Bit
Designation
Meaning
7
Out4
State of the (virtual) switching output 4: 0 = not active, 1 = active
6
Out3
State of the (virtual) switching output 3: 0 = not active, 1 = active
5
Out2
State of the (virtual) switching output 2: 0 = not active, 1 = active
4
Out1
State of the (virtual) switching output 1: 0 = not active, 1 = active
3
IT_b3
Number of the currently set inspection task. Value range 0 … 15
2
IT_b2
1
IT_b1
0
IT_b0
Table 11.3:
Input data byte uSensorInfo