Leuze LPS Operating Instructions

LPS - Line Profile Sensor
Light section sensors
en08-2018/03 50113402E
We reserve the right
to make technical changes
Original operating instructions
© 2018
Leuze electronic LPS 36
Table of contents
Figures and tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.1 Explanation of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2 Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1 Intended use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Foreseeable misuse. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Competent persons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4 Exemption of liability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.5 Laser safety notices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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
3.2.2 Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 Profile Sensor - LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2 Operating the sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.1 Connection to PC / process control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.2 Activation - laser on/off. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.3 Triggering - Free Running . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.2.4 Cascading. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3 Inspection Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Possible measure against laser occlusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Possible measures against receiver occlusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Specific performance characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Typical areas of application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Measurement operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Trigger settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Cascading settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
TNT 35/7-24V
5 Installation and mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
5.1 Storage, transportation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Unpacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Leuze electronic LPS 36 1
Table of contents
5.2 Mounting the LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5.2.1 BT 56 mounting device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.2.2 BT 59 mounting device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.3 Device arrangement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.3.1 Selecting a mounting location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.3.2 Aligning the sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.4 Attach laser warning sign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
5.5 Cleaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
6 Electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.1 Safety notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.2 Shielding and line lengths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Shielding: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
General shielding information: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Connect the ground potential to the light section sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Connecting the cable shielding in the switch cabinet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Connecting the cable shielding to the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.3 Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.3.1 Connection X1 - logic and power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.3.2 Connection X2 - Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
6.3.3 Connection X3 - incremental encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Activation input InAct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Trigger input InTrig. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Cascading output OutCas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Output "ready" OutReady . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Ethernet cable assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Two-channel incremental encoder with open collector outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Two-channel incremental encoder, single-ended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Two-channel incremental encoder, differential . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Single-channel incremental encoder (beginning with firmware V01.20) . . . . . . . . . . . . . . . . . . . . . . . . 41
7 Display and control panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1 Indicators and operational controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1.1 LED status indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1.2 Control buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1.3 Indicators in the display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
7.2 Menu description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.1 Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.2 Operation/navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Leuze electronic LPS 36 2
Alignment aid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Status indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Command mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Menu navigation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Selecting values or selection parameters for editing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Editing value parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Editing selection parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
TNT 35/7-24V
Table of contents
7.3 Reset to factory settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Interrupting a reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Executing a reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
8 Commissioning and configuration. . . . . . . . . . . . . . . . . . . . . . . . . 49
8.1 Switching on. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
8.2 Establish connection to PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Setting the default gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Setting an alternative IP address on the PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
8.3 Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
9 LPSsoft configuration software. . . . . . . . . . . . . . . . . . . . . . . . . . . 52
9.1 System requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
9.2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
9.2.1 Possible error message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.2.2 Device list update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.3 Starting LPSsoft/Communication tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.4 Parameter settings/Parameters tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
9.4.1 Standard tab - Task Parameters panel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
9.4.2 Encoder tab - Encoder Parameters area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
9.5 Measurement function/Visualization tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
9.5.1 Evaluating saved measurement data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
9.6 Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.6.1 Saving parameter settings/File menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.6.2 Transmitting parameter settings/Configuration menu . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.6.3 Saving measurement data/Measure Records menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.6.4 Zoom and Pan/toolbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
9.7 Definition of inspection tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Inspection Task Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Operation Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Trigger Output Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Light Exposure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Field of View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Apply Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Encoder Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Evaluation Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Counter Value Overflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Typical procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
TNT 35/7-24V
10 Integrating the LPS in the process control (Ethernet) . . . . . . . . . . 71
10.1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Leuze electronic LPS 36 3
Table of contents
10.2 Protocol structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Protocol structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.2.1 Command number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
10.2.2 Packet number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.2.3 Transaction number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.2.4 Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
10.2.5 Encoder High / Low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
10.2.6 Scan number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
10.2.7 Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
10.2.8 Number of user data words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
10.2.9 User data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
10.3 Ethernet commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
10.3.1 Elementary commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
10.3.2 Commands in command mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.3.3 Explanation of user data in command mode (command parameters) . . . . . . . . . . . . . . . 81
10.3.4 Commands in measure mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
10.3.5 Explanation of user data in measure mode (command parameters) . . . . . . . . . . . . . . . . 93
10.4 Working with the protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
10.5 Operation with LxS_Lib.dll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
10.6 Operation with native C++ DLL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
10.7 Operating with HALCON® image processing software . . . . . . . . . . . . . . . . . . . . . . . . . 96
10.8 Additional support when integrating sensors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
User data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Set Laser Gate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Set Encoder Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Set Actual Inspection Task. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Get Actual Inspection Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Set Scan Number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Set Single User parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Get Single User parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Set Single Inspection Task Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Get Single Inspection Task Parameter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Ethernet Activation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Command without user data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Command with user data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Benefits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
TNT 35/7-24V
11 Diagnostics and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . 97
11.1 General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
11.2 Interface error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
11.3 Error messages in display (starting from firmware V01.40) . . . . . . . . . . . . . . . . . . . . . . 99
12 Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Leuze electronic LPS 36 4
Table of contents
12.1 General maintenance information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Cleaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
12.2 Repairs, servicing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
12.3 Disassembling, packing, disposing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Repacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
13 Technical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
13.1 General technical data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
13.2 Typical measurement range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
13.3 Dimensioned drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
14 Type overview and accessories . . . . . . . . . . . . . . . . . . . . . . . . . 106
14.1 Type overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
14.1.1 LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
14.1.2 LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
14.1.3 LES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
14.2 Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.2.1 Mounting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
14.2.2 Accessories – Ready-made cables for voltage supply X1 . . . . . . . . . . . . . . . . . . . . . . . 108
14.2.3 Accessories for Ethernet interface X2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
14.2.4 Accessories - Ready-made cables for X3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
14.2.5 Configuration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
14.2.6 Configuration memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Mounting devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Contact assignment for connection cable X1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Order codes of the cables for voltage supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Ready-made cables with M 12 connector/open cable end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Ready-made cables with M 12 connector/RJ-45 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Ready-made cables with M 12 connector/M12 connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Contact assignment for X3 connection cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Order code of X3 connection cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
TNT 35/7-24V
15 Appendix. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
15.1 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
15.2 Revision History / Feature list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
15.2.1 Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
15.2.2 Configuration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Leuze electronic LPS 36 5

Figures and tables

Figures and tables
Figure 2.1: Laser apertures, laser warning signs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 2.2: Laser warning and information signs – supplied stick-on labels. . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 3.1: Light section sensor design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 3.2: Occlusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 3.3: Typical resolution LPS 36… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 3.4: Typical resolution LPS 36HI… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 5.1: Device name plate LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 5.2: Fastening options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 5.3: Mounting example LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 5.4: BT 56 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 5.5: BT 59 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 5.6: Alignment to the measuring plane . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 6.1: Location of the electrical connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 6.2: Connections of the LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Table 6.1: Interface version of X3 and X4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 6.2: Cable lengths and shielding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 6.3: Connecting the ground potential to the light section sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 6.4: Connecting the cable shielding in the switch cabinet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 6.5: Connecting the cable shielding to the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 6.3: Pin assignment X1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 6.6: Internal wiring at X1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 6.4: Pin assignment X2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 6.7: HOST / BUS IN cable assignments on RJ-45 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table 6.5: Pin assignment X3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 6.8: Two-channel incremental encoder connection: example with NPN/PNP open collector . . . . . . . . 39
Figure 6.9: Two-channel incremental encoder connection: single-ended example. . . . . . . . . . . . . . . . . . . . . 39
Figure 6.10: Two-channel incremental encoder connection: differential - RS 422 example . . . . . . . . . . . . . . . 40
Figure 6.11: Single-channel incremental encoder connection: single-ended example (schematic illustration) . 41
Figure 7.1: Indicator and operating elements of the LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 7.1: LED function indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 7.2: Menu structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table 8.1: Address allocation in the Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Figure 9.1: Initial screen LPSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Figure 9.2: Parameter settings in LPSsoft when LPS 36Hi is connected. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Figure 9.3: Encoder settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Figure 9.4: 3D Visualization with LPSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Figure 9.5: Evaluating saved 3D data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Figure 9.6: Zoom function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Table 10.1: Connection commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Table 10.2: Connection commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Table 10.3: Command mode control commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
TNT 35/7-24V
Leuze electronic LPS 36 6
Figures and tables
Table 10.4: Sensor control commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Table 10.5: Commands in measure mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Table 11.1: General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Table 11.2: Interface error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Table 11.3: Error messages in display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Figure 13.1: Typical measurement range LPS 36 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Figure 13.2: Typical measurement range LPS 36HI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Figure 13.3: LPS dimensioned drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Table 14.1: LPS type overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Table 14.2: LRS type overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Table 14.3: LES type overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Table 14.4: Mounting devices for the LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Table 14.5: Cable assignment KD S-M12-8A-P1-… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Table 14.6: X1 cables for the LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Table 14.7: Cable assignment KS ET-M12-4A-P7-…. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Table 14.8: Ethernet connection cables featuring M12 plug/open cable end . . . . . . . . . . . . . . . . . . . . . . . . 109
Table 14.9: Cable assignment KSS ET-M12-4A-RJ45-A-P7-… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Table 14.10: Ethernet connection cables M 12 connector/RJ-45. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Table 14.11: Cable assignment KSS ET-M12-4A-M12-4A-P7-…. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Table 14.12: Ethernet connection cables featuring M12 plug/M12 plug. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Table 14.13: Connectors for the LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Table 14.14: Cable assignment KS S-M12-8A-P1-…. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Table 14.15: X3 cables for the LPS 36/6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Table 14.16: Configuration memory for LxS 36 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Table 15.1: Revision History - Firmware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Table 15.2: Revision History - Configuration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Leuze electronic LPS 36 7
TNT 35/7-24V

1 General information

U
L
US
C
LISTED

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 observe the provided instructions could lead to personal injury or damage to equipment.
Attention Laser!
This symbol warns of possible danger through hazardous laser radiation. The light section sensors of the LPS 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.
Note!
This symbol indicates text passages containing important information.
General 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).
Note!
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.
Leuze electronic LPS 36 8
TNT 35/7-24V

2 Safety

This sensor was developed, manufactured and tested in line with the applicable safety stan­dards. It corresponds to the state of the art.

2.1 Intended use

The Light section sensors of the LPS series are laser distance sensors to determine 2D profiles.

Areas of application

The LPS series Light section sensors are especially designed for the following areas of application:
• 3D Measurement of moving objects
• Manipulator control
• Measurement of free formed surfaces
• Case picking
CAUTION
Observe intended use!
The protection of personnel and the device cannot be guaranteed if the device is operated in a manner not complying with its intended use.
Only operate the device in accordance with its intended use. Leuze electronic GmbH + Co. KG is not liable for damages caused by improper use.Read these operating instructions before commissioning the device. Knowledge of
this document is required in order to use the equipment for its intended purpose.
Safety
NOTE
Comply with conditions and regulations!
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
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.
Leuze electronic LPS 36 9
TNT 35/7-24V
CAUTION
UL applications!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC (National Electric Code).

2.2 Foreseeable misuse

Any use other than that defined under "Intended use" or which goes beyond that use is considered improper use.
In particular, use of the device is not permitted in the following cases:
• in rooms with explosive atmospheres
• as stand-alone safety component in accordance with the machinery directive
• for medical purposes
NOTE
Do not modify or otherwise interfere with the device!
Do not carry out modifications or otherwise interfere with the device.
The device must not be tampered with and must not be changed in any way. The device must not be opened. There are no user-serviceable parts inside. Repairs must only be performed by Leuze electronic GmbH + Co. KG.
Safety
1)

2.3 Competent persons

Connection, mounting, commissioning and adjustment of the device must only be carried out by competent persons.
Prerequisites for competent persons:
• They have a suitable technical education.
• They are familiar with the rules and regulations for occupational safety and safety at work.
• They are familiar with the technical description of the device.
• They have been instructed by the responsible person on the mounting and operation of the device.
1) Use as safety-related component within the safety function is possible, if the component combi­nation is designed correspondingly by the machine manufacturer.
Leuze electronic LPS 36 10
TNT 35/7-24V

Certified electricians

Electrical work must be carried out by a certified electrician.
Due to their technical training, knowledge and experience as well as their familiarity with relevant standards and regulations, certified electricians are able to perform work on elec­trical systems and independently detect possible dangers.
In Germany, certified electricians must fulfill the requirements of accident-prevention regu­lations BGV A3 (e.g. electrician foreman). In other countries, there are respective regula­tions that must be observed.

2.4 Exemption of liability

Leuze electronic GmbH + Co. KG is not liable in the following cases:
• The device is not being used properly.
• Reasonably foreseeable misuse is not taken into account.
• Mounting and electrical connection are not properly performed.
• Changes (e.g., constructional) are made to the device.

2.5 Laser safety notices

ATTENTION, LASER RADIATION – LASER CLASS 2M
Never look directly into the beam or point the beam in the direction of telescope users!
The device fulfills the IEC 60825-1:2007 (EN 60825-1:2007) safety regulations for a product in laser class 2M as well as the U.S. 21 CFR 1040.10 regulations with deviations corresponding to "Laser Notice No. 50" from June 24th, 2007.
Never look directly into the laser beam or in the direction of reflected laser beams!
If you look into the beam path over a longer time period, there is a risk of injury to the retina.
Do not point the laser beam of the device at persons!Interrupt the laser beam using a non-transparent, non-reflective object if the laser
beam is accidentally directed towards a person.
When mounting and aligning the device, avoid reflections of the laser beam off reflec-
tive surfaces!
CAUTION! The use of operating or adjusting devices other than those specified here
or carrying out of differing procedures may lead to dangerous exposure to radiation. The use of optical instruments or devices (e.g., magnifying glasses, binoculars) with the product will increase eye danger.
Observe the applicable statutory and local laser protection regulations.The device must not be tampered with and must not be changed in any way.
There are no user-serviceable parts inside the device. Repairs must only be performed by Leuze electronic GmbH + Co. KG.
Safety
TNT 35/7-24V
Leuze electronic LPS 36 11
Safety
A Laser aperture B Laser warning sign C Laser information sign with laser parameters
B
C
A
NOTE
Affix laser information and warning signs!
Laser warning and laser information signs are affixed to the device (see Figure 2.1):
In addition, self-adhesive laser warning and information signs (stick-on labels) are supplied in several languages (see Figure 2.2).
Affix the laser information sheet to the device in the language appropriate for the place
of use. When using the device in the U.S.A., use the stick-on label with the "Complies with 21 CFR 1040.10" notice.
Affix the laser information and warning signs near the device if no signs are attached
to the device (e.g., because the device is too small) or if the attached laser information and warning signs are concealed due to the installation position.
Affix the laser information and warning signs so that they are legible without exposing the reader to the laser radiation of the device or other optical radiation.
Figure 2.1: Laser apertures, laser warning signs
Leuze electronic LPS 36 12
TNT 35/7-24V
AVOID EXPOSURE – LASER RADIATION
IS EMITTED FROM THIS APERTURE
EXPOSITION DANGEREUSE – UN RAYONNEMENT
LASER EST ÉMIS PAR CETTE OUVERTURE
LASERSTRAHLUNG
NICHT IN DEN STRAHL BLICKEN
ODER DIREKT MIT OPTISCHEN INSTRUMENTEN BETRACHTEN
LASER KLASSE 2M
DIN EN 60825-1:2008-05
Max. Leistung (peak): Impulsdauer: Wellenlänge:
LASER RADIATION
DO NOT STARE INTO BEAM
OR VIEW DIRECTLY WITH
OPTICAL INSTRUMENTS
CLASS 2M LASER PRODUCT
EN 60825-1:2007
Maximum Output (peak): Pulse duration: Wavelenght:
RADIAZIONE LASER
NON FISSARE IL FASCIO AD OCCHIO
NUDO NÉ GUARDARE DIRETTAMENTE
CON STRUMENTI OTTICI
APARRECCHIO LASER DI CLASSE 2M
EN 60825-1:2007
Potenza max. (peak): Durata dell'impulso: Lunghezza d'onda:
RAYONNEMENT LASER
NE PAS REGARDER DANS LE FAISCEAU
NI À L`ŒIL NU NI Á L`AIDE D`UN
INSTRUMENT D`OPTIQUE
APPAREIL À LASER DE CLASSE 2M
EN 60825-1:2007
Puissance max. (crête): Durée d`impulsion: Longueur d`onde:
RADIACIÓN LÁSER NO MIRAR FIJAMENTE AL HAZ NI MIRAR DIRECTAMENTE CON
INSTRUMENTOS ÓPTICOS
PRODUCTO LÁSER DE CLASE 2M
EN 60825-1:2007
Potencia máx. (peak): Duración del impulso: Longitud de onda:
RADIAÇÃO LASER
NÃO OLHAR FIXAMENTE O FEIXE
NEM OLHAR DIRECTAMENTE
COM INSTRUMENTOS ÓPTICOS
EQUIPAMENTO LASER CLASSE 2M
EN 60825-1:2007
Potência máx. (peak): Período de pulso: Comprimento de onda:
LASER RADIATION
DO NOT STARE INTO BEAM
OR VIEW DIRECTLY WITH
OPTICAL INSTRUMENTS
CLASS 2M LASER PRODUCT
IEC 60825-1:2007
Complies with 21 CFR 1040.10
Maximum Output (peak): Pulse duration: Wavelength:
0伊䉏⏘ℶ❐
GB7247.1-2012
㦏⮶戢⒉᧤⽿⋋᧥ 厘⑁㖐兼㢅梃 㽱栎
䉏⏘戟⺓ ▎䦃展㒥抩扖⏘ⷵ ⅹ⣷䦃㘴屑䦚⏘㧮
8,7 mW
3 ms
658 nm
8.7 mW 3 ms
658 nm
8,7 mW
3 ms
658 nm
8,7 mW
3 ms
658 nm
8,7 mW
3 ms
658 nm
8,7 mW
3 ms
658 nm
8.7 mW 3 ms
658 nm
8.7 mW 3 ms
658 nm
50111877-02
Safety
Figure 2.2: Laser warning and information signs – supplied stick-on labels
TNT 35/7-24V
Leuze electronic LPS 36 13

3 Operating principle

CMOS area
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.

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.
Operating principle
-X
+X
-Y
Z
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.
Leuze electronic LPS 36 14
TNT 35/7-24V

3.2 Limits of light section sensors

Laser occlusionReceiver occlusion
In the red areas the laser does not strike the object. Thus it is not possi­ble 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.

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:
Operating principle
Leuze electronic LPS 36 15
Figure 3.2: Occlusion
-Y
+X
TNT 35/7-24V
Z
-X
Operating principle
Y
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 measurement objects so that all profile data to be measured can be seen by 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.
Leuze electronic LPS 36 16
TNT 35/7-24V

3.2.2 Resolution

0
0,5
1,0
1,5
2,0
2,5
3,0
3,5
200 300 400 500 600 700 800
X
Z
Object distance in Z-direction in mm
Typical resolution in mm
0
0,1
0,2
0,3
0,4
0,5
0,8
0,9
0,6
0,7
200 300 400 500 600
X
Z
Object distance in Z-direction in mm
Typical resolution in mm
In this context resolution means the smallest possible change in distance of the measure­ment object, which causes a unique change of the output signal. Resolution is higher in the short range than in the distant range. Small objects can be recognized better in the short range.
The length of the laser line in the X-direction is dependent on the distance Z of the measure­ment object from the sensor . Always the same number of measurement points is measured. From this it follows that the resolution in X-direction decreases with increasing distance in Z-direction.
The following illustration shows this relation:
Figure 3.3: Typical resolution LPS 36…
The output resolution of the measurement values on the process interface is 1/10mm with Standard-Connect, 1/100mm with HI-Connect (only with LPS 36HI/EN).
Operating principle
Figure 3.4: Typical resolution LPS 36HI…
Leuze electronic LPS 36 17
TNT 35/7-24V

4 Device description

Laser transmitter
Receiver (CMOS camera)
Display with membrane keyboard
Electrical connection and grounding terminal
Groove for dovetail mount­ing and fastening holes
Note: The following shows a light section sensor as an example. An overview of the available types may be found in Chapter 14.1

4.1 Overview of light section sensors

4.1.1 Mechanical design

Figure 4.1: Mechanical design of Leuze light section sensors
Device description

4.1.2 General performance characteristics

• Light section sensor for object/contour measurement
• Measurement time/response time: 10ms
• Measurement range/detection area: 200 … 800mm
• Measurement range/detection area: LPS 36…: 200 to 800 mm, LPS 36HI…: 200 to 600mm
• Length of laser line: max. 600 mm
• Length of the laser line: LPS 36…: max. 600 mm, LPS 36HI…: max. 140 mm
• Configuration and transmission of process data via Fast Ethernet
• OLED display with membrane keyboard
• 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
Leuze electronic LPS 36 18
TNT 35/7-24V

4.1.3 Line Profile Sensor - LPS

Manipulator control
Measurement of free formed surfaces
Wherever stationary or moving objects of various sizes and positions are to be measured or detected, the LPS sensor is used. 3D data are provided reliably due to precise 2D profile measurements in connection with mobile scan­ning. Thus numerous application possibilities are available to determine positions, surfaces and contents.
Specific performance characteristics
• Measurement data transfer via Ethernet
• LPSsoft configuration software
• Optional: Interface for incremental encoder
Typical areas of application
• Case picking
• Manipulator control
• Measurement of free formed surfaces
• 3D Measurement of moving objects
Device description
Leuze electronic LPS 36 19
TNT 35/7-24V

4.2 Operating the sensor

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

4.2.1 Connection to PC / process control

Configuration
For commissioning the Light section sensors are connected to a PC via the Ethernet inter­face (see "Connection X2 - Ethernet" on page 36) and are then set using the configuration software supplied LPSsoft.
Measurement operation
In measurement operation the Light section sensors are connected to a process control via the same X2 interface, and communicate with it via Ethernet (UDP), see chapter 10 "Inte­grating the LPS in the process control (Ethernet)".

4.2.2 Activation - laser on/off

The laser and the data transmission can selectively be switched on and off via the activation input InAct (pin 2 at X1) or via the 'Ethernet Trigger' command. Thus possible glares due to laser radiation can be prevented during time periods when no measurements are performed.
Note!
The sensor is delivered ex works with the Activation Input Disregard setting. The possible activation sources (activation input and Ethernet activation) are ignored - the mea­surement 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.
Device description
Leuze electronic LPS 36 20
Figure 4.2: Activation input signal sequence
TNT 35/7-24V
The Figure 4.2 shows the effect of the activation on laser and measurement value output in
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
t
fix
Approx. 14ms
Trigger input
Pin 5 at X1
Axes: p = level, t = time
"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 either a trigger signal at the trigger input (pin 5 on X1) or the Ethernet Trigger command in measure mode (see Chapter 10.3.4"Commands in measure mode" on page 91).
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 1 ms.
- Activation must occur at least 100μs before the trigger edge.
- The shortest possible time interval between two successive trigger edges is 10ms.
Note!
Ex works, the LPS is set to Free Running (shown on display: respond to signals on the trigger input, the operating mode must be set via the LPSsoft con­figuration software to Input Triggered (shown on display:
Device description
fRun
). In order for it to
Trig
).
Leuze electronic LPS 36 21
p
Figure 4.3: Trigger input signal sequence
TNT 35/7-24V
t

4.2.4 Cascading

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 / 1st slave
Laser
Measurement value output
Trigger input, pin 5 at X1
Cascading output,
pin 6 at X1
Sensor 3 / 2nd slave
Figure 4.4: Signal sequence for cascading
Figure 4.5: Cascading application example
If several Light section sensors are oper­ated, 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 determine 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 initi-
Leuze electronic LPS 36 22
ated 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
Se nso r 1, or the m ast er, can be ope rat ed i n th is c ase bot h tr igg ere d as wel l as con tin uou sly. 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.
Device description
TNT 35/7-24V

4.3 Inspection Task

The LPS supports up to 16 individual inspection tasks. Grouped together in an inspection task are all parameter settings relevant for an application:
• Operation Mode (Free Running, Input Triggered)
• Activation Input (switch laser on and off)
• Cascading Output
• Light Exposure (exposure duration of the laser)
• Field of View (sensor detection range)
The selection of the inspection tasks is carried out:
• via LPSsoft (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.
Device description
Leuze electronic LPS 36 23
TNT 35/7-24V

5 Installation and mounting

Note:
The following shows a light section sensor as an example. An overview of the available types may be found in Chapter 14.1

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. Ensure compliance with the approved environmental conditions listed in the specifications.

Unpacking

Check the packaging content 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 14.
Installation and mounting
Figure 5.1: Device name plate LPS
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 applicable local regulations when disposing of the packaging materials.
Leuze electronic LPS 36 24
TNT 35/7-24V

5.2 Mounting the LPS

Dovetail fastening grooves
M4 threaded holes
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
Installation and mounting
Figure 5.3: Mounting example LPS
Leuze electronic LPS 36 25
TNT 35/7-24V

5.2.1 BT 56 mounting device

Clamping jaws for mounting on the LPS
Clamp profile for mounting to round or oval pipes Ø16…20mm
A Rod holder, turnable 360° B Rods Ø 16 … 20mm
all dimensions in mm
The BT 56 mounting device is available for mounting the LPS using the fastening grooves. It is designed for rod mounting (Ø 16 mm to 20mm). For order guide, please refer to chapter "Type overview and accessories" on page 106.
Installation and mounting
Figure 5.4: BT 56 mounting device
Leuze electronic LPS 36 26
TNT 35/7-24V

5.2.2 BT 59 mounting device

Clamping jaws for mounting on the LPS
A Holder, turnable 360° B ITEM joint, angle adjustable ±90° C M8x16 screw cylinder, M8 serrated washer,
M8 sliding block, connectors for ITEM pro­file (2x)
all dimensions in mm
The BT 59 mounting device is available for mounting the LPS on ITEM profiles using the fastening grooves. For order guide, please refer to chapter "Type overview and accessories" on page 106.
Installation and mounting
Figure 5.5: BT 59 mounting device
Leuze electronic LPS 36 27
TNT 35/7-24V

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 LPS 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 LPS 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 LPS, avoid reflections of the laser beam off reflective sur­faces!
Note!
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:
Installation and mounting
- 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. A rotation about the y-axis is undesirable as this then necessitates a coordinate transfor­mation of the measurement values.
The Figure 5.6 illustrates the problem:
Leuze electronic LPS 36 28
TNT 35/7-24V
Installation and mounting
+X
-X
Z
-Y
-X
+X
Z
-Y
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.
A conversion into correct X/Z-coordinates is possible but to achieve this the user has to carry out a coordinate transformation in the process control. The Light section sensor does not offer a conversion option internally.
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 LPS, attach the signs in the vicinity of the LPS such that reading the signs cannot lead to looking into the laser beam! When installing the LPS 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 LPS 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 LPS.
Attention!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
Leuze electronic LPS 36 29
TNT 35/7-24V

6 Electrical connection

Note:
The following shows a light section sen­sor as an example. An overview of the available types may be found in Chapter 14.1
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2
X3
X4
7
8
X1
VIN
Act
Trig
Ready
OutCas
GND
7
8
Note: The following shows a light section sen­sor as an example. An overview of the available types may be found in Chapter 14.1
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.
Note!
The corresponding mating connectors and ready-made cables are available as accessories for all connections. For additional information, refer to Chapter 14.
Figure 6.1: Location of the electrical connections
All the Light section sensors are equipped with three M 12 plugs / sockets which are A- and D-coded.
Electrical connection
TNT 35/7-24V
Leuze electronic LPS 36 30
Figure 6.2: Connections of the LPS
The pin assignment of X1 and X2 is identical for all Light section sensors; X3 and X4 differ depending on device type.
Using the name plate check the exact type designation. The version of X3/X4 is contained in the following table:
Type designation X3 X4 Relevant chapter
LPS 36/EN Encoder Not assigned Chapter 6.3.3 LPS 36HI/EN Encoder Not assigned Chapter 6.3.3 LPS 36 Not assigned Not assigned -
Table 6.1: Interface version of X3 and X4

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 LPS contains no parts that need to be adjusted or maintained by the user.
Before connecting the device, be sure that the supply voltage agrees with the value printed on the name plate.
Connection of the device and cleaning must only be carried out by a qualified electrician.
If faults cannot be cleared, the LPS should be switched off from operation and protected against accidental use.
The LPS Light section sensors are designed in accordance with protection class III for supply by PELV (protective extra-low voltage with reliable disconnection).
Electrical connection
Note!
Degree of protection 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.
Leuze electronic LPS 36 31
TNT 35/7-24V

6.2 Shielding and line lengths

The Light section sensors of the 36/36HI series are equipped with modern electronics devel­oped for industrial applications. In industrial environments, a number of sources of interfer­ence 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:
Connection to sensor Interface Max. cable length Shielding
Power supply unit X1 50m required Activation / cascading / trigger X1 50m required PC/Host X2 50m required Encoder X3 50m required
Table 6.2: Cable lengths and shielding

Shielding:

1. Ground the LPS housing: Connect the housing of the LPS via the functional earth (FE) screw provided for this purpose (see Figure 6.3, devices produced after April 2011) with the protective con­ductor on the machine star point. The cable should have an impedance as low as pos­sible for high-frequency signals, i.e., be as short as possible and have a large cross­sectional area (grounding strip, …). If the LPS 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 LPS 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 LPS: Apply the shield to FE on both sides. On the LPS end, this is ensured if the LPS 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 > 30 cm). 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.
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.
Note: You can measure leakage currents with a clip-on ammeter.
Electrical connection
TNT 35/7-24V
Leuze electronic LPS 36 32
Electrical connection
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 un­derneath and check the penetration of the anodized coating!
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.
• Properly ground the total system.
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 LPS is described in prac­tical use with images.

Connect the ground potential to the light section sensors

Figure 6.3: Connecting the ground potential to the light section sensor
Leuze electronic LPS 36 33
TNT 35/7-24V

Connecting the cable shielding in the switch cabinet

• 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
• 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
Figure 6.4: Connecting the cable shielding in the switch cabinet

Connecting the cable shielding to the PLC

Electrical connection
Figure 6.5: Connecting the cable shielding to the PLC
Leuze electronic LPS 36 34
TNT 35/7-24V

6.3 Connecting

X1
VIN
InAct
InTrig
OutReady
OutCas
GND
7
8
M12 connector
(A-coded)
X1-2/5
10k
10k
X1-3
Inputs Outputs

6.3.1 Connection X1 - logic and power

Attention!
All cables must be shielded!
X1 (8-pin connector, A-coded)
Pin Name Core color Comment
1 VIN wh +24VDC supply voltage 2 InAct br Activation input 3 GND gn Ground 4 OutReady ye "Ready" output 5 InTrig gr Trigger input 6 OutCas pi Cascading output 7 bu not connected
8
Table 6.3: Pin assignment X1
Preferably, please use the ready-made cables KD S-M12-8A-P1-…", see Chapter 14.2.2.
RD
Electrical connection
not connected
18 - 30 VDC
100 mA (max. 250 mA)
GND
X1-1
X1-4/6
X1-3
Figure 6.6: Internal wiring at X1
Power supply
For power supply specifications please refer to Chapter 13.
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. Further information can be found in Chapter 4.2.3 and Chapter 4.2.4. The internal equivalent circuit is shown in Figure 6.6.
Leuze electronic LPS 36 35
TNT 35/7-24V
Cascading output OutCas
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
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 indicators" on page 42).

6.3.2 Connection X2 - Ethernet

Attention!
All cables must be shielded!
The LPS makes either the Ethernet interface available as host interface.
Electrical connection
X2 (4-pin socket, D-coded)
Pin Name Core color Comment
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
Preferably, please use the ready-made cables "KS(S) ET-M12-4A-…", see Chapter 14.2.3.
Ethernet cable assignment
Figure 6.7: HOST / BUS IN cable assignments on RJ-45
Notice for connecting the Ethernet interface!
Leuze electronic LPS 36 36
Ensure adequate shielding. The entire interconnection 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.
TNT 35/7-24V

6.3.3 Connection X3 - incremental encoder

M12 socket
(A-coded)
The LPS 36/EN and LPS 36HI/EN are equipped with an interface for an incremental encoder. Differential signals (5 V) or 24V signals against GND can be processed. For reasons of inter­ference rejection, differential connection is recommended.
Attention!
All cables must be shielded!
Note!
The X3 connection is assigned only at the LxS 36/EN!
X3 (8-pin socket, A-coded)
Pin Name Core
1 Enc. +24VDC wh +24VDC supply voltage for incre-
X3
Enc. +24 V DC
Enc. B-
7
Enc. B+
Enc. A-
Enc. A+
Table 6.5: Pin assignment X3
Preferably, please use the ready-made cables "KS S-M12-8A-P1-…", see Chapter 14.2.4.
The maximum permissible current consumption of connected encoders is 140mA. The maximum pulse frequency is 300kHz.
V DC
+5
8
(GND)
GND
2 (GND) br Ground 3GND gn Ground
Out
4 Enc. A+ ye Incremental encoder connection
5 Enc. A- gr Incremental encoder connection
6 Enc. B+ pi Incremental encoder connection
7 Enc. B- bu Incremental encoder connection
8 +5V DC Out RD +5 V DC supply voltage for incre-
Electrical connection
Comment
color
mental encoder
A+
A-
B+
B-
mental encoder
TNT 35/7-24V
Note!
New with firmware V01.20:
• Support of single-channel and two-channel encoders.
• Single mode (no pulse duplication), i.e., "single evaluation", or Double Mode (pulse doubling)
• Quadruple mode (pulse quadrupling) is no longer supported
• Overflow value 0xFFFF FFF, 0xFEFF FFFF or 0x7FFF FfFF
Leuze electronic LPS 36 37
Electrical connection
Attention!
Up to firmware V01.20, encoder evaluation was permanently set to Quadruple Mode (count all 4 edges on both encoder channels). This mode is no longer supported beginning with firmware V01.20.
Note!
New factory settings beginning with firmware V01.20 and with configuration software LPSsoft V1.3. Together with the new functions, encoder devices with the following factory settings are shipped:
• Encoder type: 2 Channel Encoder
•Evaluation mode: Double Mode Previously: Quadruple Mode, this mode is no longer supported beginning with firm­ware V01.20. Up to firmware V01.20, encoder evaluation was permanently set to Quadruple Mode (count all four edges on both encoder channels).
• Counter Value Overflow: 0xFFFF FFFF Previously: 0xFEFF FFFF, the new Counter Overflow value 0xFFFF FFFF permits distance calculation in Double Mode with 32-bit values without manual correction.
Leuze electronic LPS 36 38
TNT 35/7-24V
Electrical connection
ENCODER LPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
A
B
GND
+U
B
Interconnection cable must be shielded!
Channel A: Example of NPN output Channel B: Example of PNP output Voltage supply for the incremental encoder is provided by the LPS
ENCODER LPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
A
GND
+U
B
B
Interconnection cable must be shielded!
Voltage supply for the incremental encoder is provided by the LPS
Two-channel incremental encoder with open collector outputs
Figure 6.8: Two-channel incremental encoder connection: example with NPN/PNP open collector
Two-channel incremental encoder, single-ended
Figure 6.9: Two-channel incremental encoder connection: single-ended example
Leuze electronic LPS 36 39
TNT 35/7-24V
Electrical connection
ENCODER LPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
GND
+U
B
B
A
A
A
A
B
B
B
Interconnection cable must be shielded, connect shield to housing at both sides. Both cable pairs A and B must be produced with twisted-pair cables.
Voltage supply for the incremental encoder is provided by the LPS
Two-channel incremental encoder, differential
Figure 6.10: Two-channel incremental encoder connection: differential - RS 422 example
In general, it is recommended to use incremental encoders with RS 422 interface and 24V supply. That way, signals can be transmitted safely even across larger distances (depending on the pulse frequency to 50m).
Leuze electronic LPS 36 40
TNT 35/7-24V
Electrical connection
ENCODER / PLC LPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
clock
GND
+U
B
direction
Interconnection cable must be shielded!
Voltage supply for the incremental encoder is provided by the LPS
Single-channel incremental encoder (beginning with firmware V01.20)
In this setting, pulses of an initiator or of a PLC output can be counted. In addition, the count direction can be toggled, e.g., via a control.
New beginning with firmware V01.20 and with configuration software LPSsoft V1.3:
• The counting direction of the encoder pulse counter can be reversed with LPSsoft.
• When operating single-channel encoders, the pulses are counted on the A-channel. The counting direction can be changed by means of an additional direction signal on channel B:
- Low level on pins 6/7 of X3 = upward pulse counting.
- High level on pins 6/7 of X3 = downward pulse counting.
Figure 6.11: Single-channel incremental encoder connection: single-ended example (schematic illustration)
Single-channel encoders have only one output channel (here clock - channel A). As a result, it is generally only possible to detect the movement, not, however, the direction of movement (counting).
The count/movement direction can be preset by applying a signal (here direction) at channel B:
• 0 - upward counting (default, if no signal is connected to channel B)
• 1 - downward counting
Leuze electronic LPS 36 41
TNT 35/7-24V

7 Display and control panel

OLED display 128 x 32 pixels
Key pad with 2 buttons
See "Control buttons" on page 42.
Device LEDs
Green and yellow
See "LED status indica-
tors" on page 42.
Laser beam

7.1 Indicators and operational controls

Figure 7.1: Indicator and operating elements of the LPS
After switching on the supply voltage +U the green LED illuminates continuously: the LPS is in measure mode. The OLED display shows the alignment aid and the status display.
and following error-free initialization of the device,
B
Display and control panel

7.1.1 LED status indicators

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

7.1.2 Control buttons

The LPS is operated using the and buttons, which are located next to the OLED
display.
Leuze electronic LPS 36 42
TNT 35/7-24V

7.1.3 Indicators in the display

L450 M450 R450 T00 fRun
Command Mode
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 LPS via the menu is described in Chapter 7.2.2.
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
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 indicator
Displayed on the second line of the display is the selected inspection task (Txx) as well as the current sensor state (see chapter 4.2 "Oper­ating the sensor").
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.
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 LPS is connected to a control, the control can put the LPS into a command mode in which it receives and executes commands (see chapter 10.3 "Ethernet commands"). In command mode, the OLED display has one line.
Command Mode appears on the first line of the display.
Display and control panel
000 (mm) appears in the display.
.
TNT 35/7-24V
Leuze electronic LPS 36 43
Note!
If errors occur during operation, these are shown on the display. Notes can be found in Chapter 11.3.
Display and control panel

7.2 Menu description

7.2.1 Structure

Level 1 Level 2 Level 3 Level 4 Explanation / Notes Default
Select Insp. Task
Appl. Settings
Ext. Selection
Enabled
Select Insp. Task
00:Task 0
Ext. Selection
Appl. Settings
Device Settings
3)
Exposure Time
Normal Mode
Trigger Mode
Free Running
Device Settings
Error Handling
Exposure Time
Ethernet
Data output
Table 7.2: Menu structure
Ext. Selection
Enabled
Ext. Selection
Disabled
Select Insp. Task
00:Task 0
::
Select Insp. Task
15:Task 15
Exposure Time
Normal Mode
Exposure Time
Bright Objects
Exposure Time
Dark Objects
Exposure Time
Manual Setting
Trigger Mode
Free Running
Trigger Mode
Input Triggered
IP Address
192.168.060.003 IP Address
192.168.060.003
Select Inspection Task menu item
Change task via digital inputs (external)
Change task via digital inputs (external) is activated.
Change task via digital inputs (external) is deactivated.
Selection of the active inspection task
Task 0 is activated. X
Task 15 is activated.
Return to menu level 1
Application Settings menu item
Exposure time for measurements and teaching
"Normal" exposure time setting X
"Bright Objects" exposure time setting
"Dark Objects" exposure time setting
"Manual" exposure time setting (user-specific setting)
Trigger mode for measurements
"Free Running" trigger setting (continuous measurement)
"Input Triggered" trigger setting (trigger-input signal triggers measurement)
Return to menu level 1
Device Settings menu item
Ethernet interface parameters
IP address of the sensor
Setting for the IP address (default: 192.168.060.003)
1)
4)
5)
X
2)
X
X
TNT 35/7-24V
Leuze electronic LPS 36 44
Display and control panel
Level 1 Level 2 Level 3 Level 4 Explanation / Notes Default
Data output
Display
Display
On
Password Check
Inactive
Ethernet
Error Handling
Info
Reset to Factory
Cancel
Net Mask Address
255.255.255.000
Std. Gateway
000.000.000.000
Port Num. Local
09008
Port Num. Dest.
05634
IP Address
Prescaler Value
001
Prescaler Value
Display
On
Display
Off
Display
Auto
Password Check
Inactive
Password Check
Activated
Reset to Factory
Cancel
Reset to Factory
Execute
Net Mask Address
255.255.255.000
Std. Gateway
000.000.000.000
Port Num. Local
09008
Port Num. Dest.
05634
Prescaler Value
001
Subnet mask of the sensor
Setting for the subnet mask (default: 255.255.255.000)
Default gateway for Ethernet communica­tion
Setting for the IP address of the default gateway (default: 000.000.000.000)
Local port of the sensor for Ethernet com­munication
Setting for the local port 9008
Destination port of the PC or control for Ethernet communication
Setting for the destination port 5634
Return to menu level 2
Data output
Prescaler Value indicates the time interval between two scan transmissions. 1 = every scan is transmitted 2 = every second scan is transmitted 3 = every third scan is transmitted, etc.
Return to menu level 2
Display settings
Setting "On": always on with maximum brightness
Setting "Off": off; is switched back on after keyboard actuation Setting "Auto": full brightness for approxi­mately 1minute after button is pressed, then dimmed
Password protection for menu access
Password protection deactivated X
Password protection activated (permanent password: "165")
Return to menu level 1
Error Handling menu item
Reset to factory settings
Do not execute reset
Execute reset with subsequent confirma­tion prompt
Table 7.2: Menu structure
X
X
6)
1
X
TNT 35/7-24V
Leuze electronic LPS 36 45
Display and control panel
Level 1 Level 2 Level 3 Level 4 Explanation / Notes Default
Info
Menu Exit
Menu Exit
Select Insp. Task
Reset to Factory
Part no.
50115418
Serial No.
01408004336
Ext. Info
K000
Software
V01.50
Part no.
Return to menu level 1
Device Information menu item
Leuze part number of the sensor
Sensor serial number
Leuze-internal information
Software version of the sensor
Return to menu level 1
Exit menu and return to measure mode
Table 7.2: Menu structure
1) The inspection tasks can be switched via the control panel.
2) The setting of the active inspection task applies only if "Ext. Selection" = "Disabled"
3) The application settings apply for the currently selected inspection task. Individual application settings can be made for each task.
4) With "Manual Settings", the value preset via LPSsoft is used.
5) The values configured here are not applied immediately but only when the sensor is switched on the next time.
6) This parameter is used to reduce the measurement rate (data reduction), value range: 1 … 999
Note!
If no button is pressed for three minutes, the LPS exits menu mode and switches to measure mode. The OLED display again displays the alignment aid and the sensor status display.
Leuze electronic LPS 36 46
TNT 35/7-24V

7.2.2 Operation/navigation

Ethernet
Display
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
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 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 (Display)
selects the next menu item (IP Address)
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.)
Editing value parameters
decrements the value of the currently selected digit (1).
through all the digits using right of the display. If an impermissible value was entered, the (new entry ) appears and no checkmark is offered for selection.
Display and control panel
buttons both have different func-
switches to the submenu shown with inverted colors (Ethernet)
returns to the next higher menu (). At the top menu level, the menu
selects edit mode for IP Address
selects the next digit to the right (9) for editing. After having clicked
a checkmark () appears at the bottom
symbol
Leuze electronic LPS 36 47
changes the edit mode,
saves the new value (192.168.001.111).
changes the edit mode,
selects the first digit (1) for renewed editing.
changes the edit mode,
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.
appears.
appears.
or appears.
TNT 35/7-24V
displays the next option for Display (Auto).
Display
Off
Display Off
Display Off
FactorySettings Execute
FactorySettings Execute
Really Reset? Yes (
) No ()
reset canceled
reset done
selects the new value Off and displays the menu for confirmation:
changes the edit mode;
saves the new value (Off).
changes the edit mode,
rejects the new value (On remains saved).
Note
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
• Factory Setting menu item
• By means of the LPSsoft configuration software
As an example, the first of the methods mentioned above is described below:
When applying the supply voltage, press the LPS to factory settings.
The display shown next to here appears.
button while connecting the supply voltage
Display and control panel
appears
appears.
button to reset the configuration of the
Leuze electronic LPS 36 48

Interrupting a reset

Pressing  causes the adjacent display to appear. If you now press the
button, you will exit the menu without resetting the LPS to factory
settings.

Executing a reset

Pressing the the adjacent safety prompt to appear.
Pressing interrupts the reset process; reset canceled appears in the display for approx. 2s. Afterward, the LPS returns to measure mode.
Pressing made previously are permanently lost. reset done appears in the display for approx. 2s; the LPS then returns to measure mode.
You can select the resetting to factory settings also via LPSsoft.
In the Configuration menu select the entry Reset to Factory Settings.
button while the checkmark () is displayed causes
resets all parameters to the factory settings. All settings
TNT 35/7-24V
Commissioning and configuration

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 LPS is in measure mode.
Note
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 LPS is configured via a PC using the LPSsoft 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 LPS must lie in the same address range. The LPS has no built­in DHCP client, so that you need to set the address manually. This is done the easiest way via the PC.
Note!
If you use a desktop firewall, please make certain that the PC can communicate with the LPS 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 LPS is by applying an alternative configuration in the TCP/IP settings of the PC and connecting the LPS to the PC.
To check the network address of the LPS, switch to the Settings menu from detection mode of the LPS with the touch of a button.
In the Ethernet submenu (see Chapter 7.2.1), you can read the current settings of the LPS one after the next by pressing .
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 LPS must match so that they can communicate with each other.
Address of the LPS 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
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 LPS.
Leuze electronic LPS 36 49
TNT 35/7-24V
Commissioning and configuration
For example 192.168.060.110 (but not 192.168.060.003!). If LPS and PC have the same IP address, they cannot communicate with each other.

Setting the default gateway

The IP address for the default gateway can optionally be set using the Std. Gateway submenu item (default: 000.000.000.000).
Note
The IP address of the default gateway (Std. Gateway) and the destination port of the PC or control (Port Num. Dest.) are stored in the sensor configuration beginning with firmware V01.50 and LRSsoft V2.40.

Setting an alternative IP address on the PC

Log in to your PC as administrator.
Using Start->System control go to the Net­work 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 Prop-
erties.
In the Internet protocol (TCP/IP) Proper­ties window select the Alternate configuration tab.
Configure the IP address of the PC in the address range of the LPS. Attention: do not use the same as for the LPS!
Set the subnet mask of the PC to the same value as on the LPS.
Close the configuration dialog by confirming all windows using OK
Connect the interface X2 of the LPS directly to the LAN port of your PC. Use a KB ET-…-SA-RJ45 cable for the connection, see Table 14.10
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 LPS.
Information about configuring with the LPSsoft can be found in Chapter 9.
TNT 35/7-24V
Leuze electronic LPS 36 50

8.3 Commissioning

For the commissioning and integration of the sensor in the process control the following steps are necessary:
1. LPS configuration - see Chapter 9.
2. Programming process control - see Chapter 10.
3. When connecting in the Ethernet process controls, the IP configuration of the LPS is to be adjusted so that the LPS can communicate with the process control. The values corresponding to the following screenshot are preset in the LPS at the fac­tory. If you would like to set different values, you must change the values via the display of the LPS in menu item Ethernet (see "Menu description" on page 44). You can test the changed values by entering them in the Configuration area in LPSsoft and then clicking the Check Connectivity button.
4. Connect LPS to process control via the Ethernet interface.
5. 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
Commissioning and configuration
area.
Leuze electronic LPS 36 51
TNT 35/7-24V

9 LPSsoft configuration software

9.1 System requirements

The PC used should meet the following requirements:
®
•Pentium
or compatible models by AMD 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

9.2 Installation

Note!
If present, uninstall Matlab Runtime before beginning with the installation of the LXSsoft Suite.
The LXSsoft_Suite_Setup.exe installation program can be downloaded from www.leuze.com. You can find it for the respective product in the Downloads tab under
Configuration software.
or faster Intel® processor > 1.5 GHz (Pentium 4, Celeron, Xeon)
®
(Athlon 64, Opteron, Sempron)
® Windows XP from Service Pack 2 / Windows 7
LPSsoft configuration software
Note!
Copy the downloaded file into a suitable 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 LPSsoft. It is only available in English or Japanese.
Therefore keep in the Choose Setup Language window the selection English and click on OK.
Leuze electronic LPS 36 52
TNT 35/7-24V
LPSsoft configuration software
Leuze electronic LPS 36 53
TNT 35/7-24V
LPSsoft configuration software
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.
Leuze electronic LPS 36 54
TNT 35/7-24V
LPSsoft configuration software
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.
Leuze electronic LPS 36 55
TNT 35/7-24V
LPSsoft configuration software
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.
Leuze electronic LPS 36 56
TNT 35/7-24V
LPSsoft configuration software
The window for selecting the installation path for LPSsoft/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 LPSsoft/LPSsoft/LRSsoft.
Click on Finish and then start the desired program from the Start menu.
Leuze electronic LPS 36 57
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.
Note!
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 win­dow located in the System control 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.
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 LPSsoft by double-clicking on it.
Now the start screen of LPSsoft appears, as described in Chapter 9.3.
LPSsoft configuration software
TNT 35/7-24V
Leuze electronic LPS 36 58

9.2.2 Device list update

At the time of purchase of a new sensor, the LPS/LES/LRS software corresponds to the state of the art. If you are already using software from earlier devices and now purchase a different model from the LxS series, it is possible that the installed software does not yet recognize the current device.
The software indicates this with the following notice:
You do, however, have the possibility to install a device list to implement new device models in the software. This can be downloaded from www.leuze.com in the download area for your device under "Device list".
Install this and restart the software. The previously unknown sensor is then recognized.
Note!
If the software continues to output this or a similar warning after updating the device list, it is to be assumed that the currently installed software is no longer up-to-date. A new firmware version is available on the Internet. Please download this new version, install it and restart the program.
LPSsoft configuration software
Leuze electronic LPS 36 59
TNT 35/7-24V

9.3 Starting LPSsoft/Communication tab

Start LPSsoft via the respective entry in the Windows Start menu.
The following screen appears:
Figure 9.1: Initial screen LPSsoft
In the IP Configuration area, enter the settings for the LPS and click on Accept.
You had already determined this data in Chapter 8.2.
Click on Check Connectivity to test the connection to the LPS.
If the following message appears, the Ethernet connection to the LPS is correctly configured: The connection attempt to sensor ... was successful.
Click on the button Connect to sensor:
If the connected sensor type does not correspond with the standard type stored in LPSsoft, an inquiry appears asking whether the current parameter set should be saved in LPSsoft.
As a result LPSsoft 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.
LPSsoft configuration software
TNT 35/7-24V
Leuze electronic LPS 36 60
LPSsoft configuration software
Note!
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)
Leuze electronic LPS 36 61
TNT 35/7-24V

9.4 Parameter settings/Parameters tab

Click on the Parameters tab to access the parameter settings:
Figure 9.2: Parameter settings in LPSsoft when LPS 36Hi is connected
In the Standard tab, a median-3-filter can be activated in the Standard Parameters area. By activating the median filter in the checkbox, the Z-coordinates of the measurement values are smoothed out, while occurring edges are retained.
LPSsoft configuration software

9.4.1 Standard tab - Task Parameters panel

Inspection Task Selection
In the Inspection Task Selection panel, you can select inspection tasks.
The inspection task is selected either in this field or via Ethernet commands.
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.
Note!
If an inspection task was changed, permanent storage in the sensor should be performed with Configuration -> Transmit to Sensor.
Leuze electronic LPS 36 62
TNT 35/7-24V
LPSsoft configuration software
The common procedure for creating and storing inspection tasks is described in Chapter 9.7, "Definition of inspection tasks" on page 70.
Operation Mode
In Operation Mode you can configure using Free Running that the LPS continuously detects and outputs measurement data (factory setting). With Input Triggered, the LPS captures measurement data only if a rising edge is present at the trigger input or the "Ethernet Trigger" command (Chapter 10.3.4) is 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. 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 (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.
Field of View
Using Field of View you can restrict the measurement range of the LPS. The same happens if you click on the square handles of the measurement range framed in blue with the mouse and then pull.
Factory settings for Field of View:
LPS 36… LPS 36HI…
Min X -300 -70
Max. X 300 70
Min. Y 190 190
Max. Y 810 610
By restricting to the necessary detection range, ambient light or undesired reflections can be suppressed.
Leuze electronic LPS 36 63
TNT 35/7-24V
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.
Note!
If an inspection task was changed, permanent storage in the sensor should be performed with Configuration -> Transmit to Sensor.

9.4.2 Encoder tab - Encoder Parameters area

With the LPS 36/EN and LPS 36HI/EN, you can configure the model and the characteristics of the connected encoder in the Encoder tab.
LPSsoft configuration software
Figure 9.3: Encoder settings
Encoder Type
Specify whether the encoder is a single-channel encoder (1 Channel Encoder) or two­channel encoder (2 Channel Encoder) here.
Two-channel encoders have an A and a B channel whose signals are shifted 90° with respect to one another. This allows the direction of movement to be detected (forward/backward).
Note!
Up to firmware V01.10, only two-channel encoders were supported.
Single-channel encoders have only an A-channel. If necessary, the counting direction can be changed by means of an additional direction signal on channel B (see chapter 6.3.3 "Connection X3 - incremental encoder"):
• Low level on pins 6/7 of X3 = upward pulse counting.
• High level on pins 6/7 of X3 = downward pulse counting.
If channel B is not connected, counting is upward (factory setting).
Leuze electronic LPS 36 64
TNT 35/7-24V
LPSsoft configuration software
Evaluation Mode
The selection box can be used to select two count modes for the encoder pulse counter (see structure of the protocol header in Chapter 10.2 on Page 71, Encoder_H/Encoder_L data words):
Single Mode (for single- and two-channel encoders) Each encoder pulse on channel A increases the encoder counter value by +1. Only one edge of the pulse is counted.
Double Mode (for single- and two-channel encoders) Each encoder pulse on channel A increases the encoder counter value by +2. Both edges of the pulse are counted.
The Change Counting Direction check box can be used to reverse the upward/down­ward counting direction of the encoder pulse counter.
Note!
For two-channel encoders, the counting direction can also be reversed by exchanging the connections of channels A and B.
Counter Value Overflow
Use the check boxes in the Counter Value Overflow area to select the maximum value of the encoder pulse counter above which an overflow occurs (the counter restarts with 0x0000 0000):
0xFFFF FFFF (Full Range): for Double Mode only
0xFEFF FFFF (Compatibility Range): for Double Mode only
(compatible up to firmware V01.10)
0x7FFFF FFFF (Half range): for Single Mode only
Factory settings:
Encoder type: 2 Channel Encoder
Evaluation Mode: Double Mode Previously: Quadruple Mode, this mode is not supported beginning with firmware V01.20. Up to firmware V01.20, encoder evaluation was permanently set to Quadruple Mode (count all 4 edges on both encoder channels).
Counter Value Overflow: 0xFFFF FFFF Previously: 0xFEFF FFFF, the new Counter Overflow value 0xFFFF FFFF permits distance calculation in Double Mode with 32-bit values without manual correction.
TNT 35/7-24V
Leuze electronic LPS 36 65
LPSsoft configuration software

9.5 Measurement function/Visualization tab

Click on the Visualization tab to view a 3D visualization of your measurement data:
Figure 9.4: 3D Visualization with LPSsoft
The left image shows the familiar 2D-view; displayed at the right are the measurement values in chronological order.
You can adapt the 3D view:
Display Point Count specifies how many of the 376 single measurement values in total will be displayed along the laser line.
Profile Depth Count specifies how many con­secutive single measurements will be displayed in the 3D diagram in chronological order.
•The Rotate 3D tool on the toolbar enables free and arbitrary rotation of the 3D view.
TNT 35/7-24V
In the 2D view you can view precise measurement values at individual points of the laser line using the Data Cursor tool.
Leuze electronic LPS 36 66

9.5.1 Evaluating saved measurement data

To evaluate a measurement data set, you can record/store measurement data and reopen as described in Chapter 9.6.3. After opening the file, the data are initially continuously fed into the 3D-view. To stop this continuous display and to be able to examine individual profiles and again restart the display, click on the arrow in the toolbar.
The sliders in the Display Control area are used for evaluation; the function of these sliders is described in the following.
Figure 9.5: Evaluating saved 3D data
Spooling enables scrolling through all single data sets from the first to the last one within the measurement data set.
You can configure how many data sets are displayed in the 3D view by using Profile Depth Count.
Using the Profile Selection slider you can configure which of the displayed single data sets (profiles) from the 3D view will be shown in 2D view. The associated data set number is displayed under Profile No. The Show Plane option displays this single data set also in 3D view.
LPSsoft configuration software
Leuze electronic LPS 36 67
TNT 35/7-24V
LPSsoft configuration software

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 commissioning and stored on data carriers and parameter files. During operation, the LPS is reconfigured via Inspection Tasks. A parameter file stored on a data carrier can only be used with LPSsoft configuration 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 LPSsoft 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):
2D View: the current 2D view
3D View: the current 3D view

9.6.2 Transmitting parameter settings/Configuration menu

The Configuration menu is used to exchange parameter data with the connected LPS.
Load from Sensor loads all parameter settings for all defined inspection tasks from the LPS 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 LPS.
Reset to factory settings resets the LPS to factory settings.
TNT 35/7-24V

9.6.3 Saving measurement data/Measure Records menu

The Measure Records menu is used for saving measurement data (including the encoder values) on the PC in *.csv format.
New... creates a new measurement data set. Fol­lowing a file name query dialog, another dialog appears. It requires you to enter how many single measurements (profiles) are to be saved in the file.
Archive -> Open Record opens a saved mea­surement data set.
Archive -> Close record closes the opened measurement data set.
Leuze electronic LPS 36 68
Note!
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
With measurement data open, LPSsoft cannot establish a connection to the sensor. A connection with the sensor is only possible after closing the measurement 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:
LPSsoft configuration software
Figure 9.6: 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.
Note!
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.
Leuze electronic LPS 36 69
TNT 35/7-24V

9.7 Definition of inspection tasks

Typical procedure

1. Start LPSsoft and connect the sensor: Click on the Connect to sensor button: If the connected sensor type does not correspond with the standard type stored in LPSsoft, an inquiry appears asking whether the current parameter set should be saved in LPSsoft.
2. Fetch the configuration from the sensor via Load from Sensor or load it from the data carrier with Open.
3. Use Inspection Task Selection to select the inspection task to be modified.
4. Display and, if necessary, enlarge 2D view of the detection range in the Parameters tab.
5. Set LPS parameters (see "Standard tab - Task Parameters panel" on page 62)
6. Assign a name (Name) to the inspection task and confirm with Accept.
7. Temporarily transfer the inspection task with Apply Settings.
8. Where applicable: define further inspection tasks with steps 4.-6.
9. Tick Enable Selection Inputs again.
10. Permanently transfer the configuration including all inspection tasks to the sensor with Transmit to Sensor.
11. Where applicable: save the configuration to data carrier with Save As…
12. Finally, disconnect the connection to the sensor: click on the button Disconnect from sensor:
LPSsoft configuration software
Leuze electronic LPS 36 70
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

10 Integrating the LPS in the process control (Ethernet)

10.1 General information

The LPS communicates with the process control via UDP/IP using the protocol described in Chapter 10.2. The protocol operates in two different modes:
•Measure Mode
•Command Mode
In measure mode the LPS transmits measurement data. In the "Free Running" measurement operating mode, measurements are performed continuously with a maximum measurement frequency of 100Hz and the measurement data are sent without an additional request being made. In triggered mode, measurement is performed after a rising edge on the trigger input or as a response to the "Ethernet Trigger" command (see chapter 10.3.4 "Commands in measure mode").
In command mode the LPS reacts to commands from the control. The commands available are described in Chapter 10.3.
Note!
If you use a firewall, please make certain that the control can communicate with the LPS 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).

10.2 Protocol structure

Note!
The sequence in which the individual bytes are saved varies depending on the operating sys­tem. 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 LPS does not respond to commands from the control even though communication with LPSsoft functions properly, check whether the problem lies with the byte order.
Example: for command and
0x43
in or de r f or it to be un de rstood by the LPS. In the transaction number of the answer from LPS there is then also The LPS 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.
Leuze electronic LPS 36 71
0x434E
(Connect to Sensor) a Windows PC must transmit
0x4E43
(byte sequence 0x43, 0x4E).
0x4E
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

Protocol structure

The protocol consists of the Header (30 bytes) followed by the User data. The protocol is used both in command mode when transmitting commands and when acknowledging sensor commands as well as in measure mode.

Header

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
0xFFFF 0xFFFF 0x0000 0x0059 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0003
1)
0xFFFF
0xFFFF
fixed value:
Length 4 bytes,
fixed value:
Length 2 bytes,
0x0000
Length 2 bytes,
possible values:
see Chapter 10.3
fixed value:
Length 2 bytes,
0x0000
value range:
Length 2 bytes,
0x0000 … 0xFFFF
0x0000
fixed value:
Length 2 bytes,
value range:
Length 2 bytes,
0x0000 … 0xFFFF
value range:
Length 2 bytes,
0x0000 … 0xFEFF
value range:
0x0000 0000
Length 4 bytes,
fixed value:
0xFFFF FFFF
Length 2 bytes,
0x0000
value range:
Length 2 bytes,
0x0000 … 0xFFFF
Length of the header: 30 bytes
1) The maximum value is determined here by the setting for the encoder type, see "Counter Value Overflow" on page 65.

User data

Number of
0x0010
fixed value:
Length 2 bytes,
0x0000 / 0x0001 / 0x0002 /
Length 2 bytes, possible values:
user data words
0x0003 / 0x0178
User data
0x000 0x03C0
User data
Length of the user data: see number of user data words in the 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 measure mode, a differentiation is made between 2 varieties of measurement data transfer:
• Standard-Connect: Command number 0x5858 signalizes that the data packet of the sensor contains X-coordinates. Command number 0x5A5A signalizes that the data packet contains Z-coordinates.
• HI-Connect (only with LPS 36HI/EN): Command number 0x5A58 signalizes that the data packet contains X- and Z-coordi­nates.
Leuze electronic LPS 36 72
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

10.2.2 Packet number

The packet number serves internal maintenance purposes of the manufacturer.

10.2.3 Transaction number

In measure mode, 0x0000 is always displayed here.
In command mode, the command acknowledgment of the sensor contains the command number of the command that is answered.

10.2.4 Status

Indicates the state of the sensor. The state is coded as follows:
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 - - - - Measure mode
--------0010----Menu mode
- - - - - - - - 0 1 0 0 - - - - Command mode
--------1000----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 configuration memory connected
----1 -----------Configuration memory connected
- - 0 - - - - - - - - - - - - - No error
--1 -------------Error detected, measurement data are still
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 LPSsoft.
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).
TNT 35/7-24V
sent if applicable, the sensor then switches into error mode
Note!
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
Leuze electronic LPS 36 73
Exit
menu item.
Integrating the LPS in the process control (Ethernet)

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. Beyond that an overflow to 0x0000 0000 occurs (see chapter 9.4.2 "Encoder tab - Encoder Parameters area"). Beyond that an overflow to 0x0000 0000 occurs.

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 data are to be interpreted. The fixed default value is 0x0010. That equates to 16 bit data.

10.2.8 Number of user data words

Number of user data words specifies how many data words of the data type defined in
the previous field are contained in the packet.
The user data have a variable length of 0, 1, 2, 3 or 376 or 480 data words (0, 2, 4, 6 or 752 or 960 bytes).

10.2.9 User data

In command mode, the commands can contain user data. These are then described in more detail in the corresponding command description.
In measure mode, the measurement values of the sensor are transmitted to the user data. These are differentiated according to the type of establishment of connection to the sensor (Standard-Connect or HI-Connect).
All variants of the LPS 36 and the LPS 36HI/EN support Standard-Connect:
For each measurement, a packet of Z-data (command number 0x5A5A) and then a packet of X-data (command number 0x5858), each with 376 values of 2 bytes, are transmitted. With the LPS 36HI/EN, values 241 … 376 are set to 0 (compatibility). The resolution is 1/10mm. The Z- and X-data packets have the same scan number; this should be checked in the control. The Z-data has a value range of 0 … 8100. The X-data is transferred as signed values in two's complement. 0 … 32767 are pos­itive X-values, 32768 … 65535 are negative X-values (where 65535 corresponds to the value -1). For negative values (>32768), the process control must therefore subtract 65536 from the transferred X-values to obtain the actual X-values.
Leuze electronic LPS 36 74
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
The LPS 36HI/EN also supports HI-Connect:
The Z- and X-data is transmitted in one packet (command number 0x5A58) with 480 values of 2 bytes. The resolution is 1/100mm. User data words 1 … 240 contain Z-data, value range 0 … 61000. The X-data follow as signed values in the -7000 … +7000 range. Invalid measurement values have a Z- and X-value of 0. If an LPS 36HI/EN is used in a system instead of an LPS 36 without the establishment of connection being changed (Standard-Connect), it behaves compatibly to the stan­dard LPS 36. Whether the application profits from the higher resolution of the LPS 36HI/EN can also be easily tested this way.
Note!
If the detection range has previously been limited using LPSsoft, the measuring points, which were not detected, will be transferred with 0 value. Invalid measurement values (e.g. due to occlusion, object reflectivity too low, …) are also transmitted with a Z- and X-value of 0.
Leuze electronic LPS 36 75
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

10.3 Ethernet commands

Attention!
The scope of the available commands has grown from firmware version to firmware version. You can find a revision history / feature list in the appendix in Chapter 15.2. The commands described in the following refer to the current firmware version of the LPS.
Note!
The sequence in which the individual bytes of the commands and of the protocol must be transmitted in order to be processed by the LPS corresponds to the "little-endian" byte sequence. The response of the LPS also corresponds to the "little-endian" standard. For further information, see the note in Chapter 10.2.
Note!
If the LPS is operated in command mode, the LPS transmits no data (useful for operation with PLC controls).
In measure mode, commands Connect to Sensor, Disconnect from Sensor, Enter Command mode, Ethernet Trigger and Ethernet Activation 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.
Leuze electronic LPS 36 76
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

10.3.1 Elementary commands

Note!
Command syntax (header/user data), see Chapter 10.2
Using the Connect to sensor and Disconnect from sensor commands, a connection between control and sensor is established or terminated. The communication with the LPS is carried out via the ports previously configured in LPSsoft.
Command from control to LPS Answer from LPS to control
Command no. Meaning Command no. Meaning
0x434E Connect to Sensor 0x4141 Connection established, the sensor
0x4443 Disconnect from Sensor 0x4141 Connection terminated.
Table 10.1: Connection commands
When first connecting after switching on, the sensor is always in measure mode and contin­uously transmits measurement data ("Free Running") or waits for a trigger signal for trans­mitting measurement data.
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 chapter 10.2.4 "Status").
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").
Leuze electronic LPS 36 77
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
If the LPS 36HI is connected with the Connect to Sensor command and a user data value of 0x0001, then the sensor is connected via HI-Connect.
Command from control to LPS Answer from LPS 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
0x414E The transmitted command was not
Table 10.2: Connection commands
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32
SF
To switch between measure mode and command mode the Enter Command Mode and Exit Command Mode commands are available.
Command from control to LPS Answer from LPS to control
Command no. Meaning Command no. Meaning
0x3132 Enter Command Mode 0x4141 Sensor in command mode
0x414E The transmitted command was not
0x3133 Exit Command Mode 0x4141 Sensor back to measure mode
0x414E The transmitted command was not
Table 10.3: Command mode control commands
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.
sensor is connected.
processed (possible sensor status: sensor is already connected or in menu mode, detailed info see chapter 10.2.4 "Status").
SF = 0: Standard-Connect
2 separate data packets for Z- and X-coordinates with 782 bytes each SF = 1: HI-Connect, only LPS 36HI/EN 1 common data packet for Z- and X-coordinates with 990 bytes
processed (possible sensor status: sensor currently in menu mode and cannot execute any commands. Sensor is already in command
1)
mode)
.
processed because the sensor was not in command mode.
TNT 35/7-24V
Leuze electronic LPS 36 78
Integrating the LPS in the process control (Ethernet)

10.3.2 Commands in command mode

Note!
Command syntax (header/user data), see Chapter 10.2
The following commands are available in command mode:
Command from control to LPS Answer from LPS to control
Com­mand no.
0x0001 Set Laser Gate
0x0003
0x0011
0x0013
0x005F Get ZX Coordinates
0x0029
Table 10.4: Sensor control commands
Meaning
laser activation and deactivation (toggle), See Chapter 10.3.3
1)
Trigger Single Measurement
2)
Get X Coordinates
Query X-coordinates of the pre­viously triggered single mea­surement. Repeated queries yield always the same values without retriggering.
2)
Get Z Coordinates
Query Z-coordinates of the pre­viously triggered single mea­surement. Repeated queries yield always the same values without retriggering.
Only for LPS 36HI which is con­nected with HI-Connect. X- and Z-coordinates are transferred in one packet. Repeated queries yield always the same values without retrig­gering.
5)
Set Encoder Value
Set encoder counter value (see Chapter 10.3.3).
Num­ber of
Com-
user data
mand no.
Meaning
words
0x4141 Command executed 0 0x414E Command was not executed.
1
0x4141 Single measurement carried out 0
0
0x414E Single measurement not carried
out
0x0012
In the user data area 376 values are always transferred. The X­coordinates are transferred as
0
"signed" values. If the LPS 36HI has been connected with HI-Con­nect (see Chapter 10.3.1), the measurement values are trans­mitted in the 1/100mm unit.
0x0014
In the user data area 376 values are always transferred. If the LPS 36HI has been connected
0
with HI-Connect (see Chapter 10.3.1), the measure­ment values are transmitted in the 1/100mm unit.
0x0060 In the user data area 480 values
are always transferred. The user data structure corresponds to
0
that of HI-Connect.
0x4141 Encoder counter value set 0
2
0x414E The transmitted command was
not processed.
Num­ber of user data words
0
0
376
376
TNT 35/7-24V
376
0
Leuze electronic LPS 36 79
Integrating the LPS in the process control (Ethernet)
Command from control to LPS Answer from LPS to control
Num-
Com­mand no.
Meaning
0x004B Set Actual Inspection Task
Set number of the current inspection task, see Chapter 10.3.3
0x0049 Get Actual Inspection Task
Get number of the current inspection task
0x0053 Set Scan Number
Set scan number, see Chapter 10.3.3. Ensure identical scan numbers with multiple sensors; for description, see "Set Scan Num­ber" on page 82
0x0059
5)
Set Single User Parameter
Writes specific LPS parameters in the sensor, e.g., deactivate output of X-coordinates .
0x005B
5)
Get Single User Parameter
Reads specific LPS parameters, e.g., whether the output of X-coordi­nates is deactivated.
0x006D Set Single Inspection Task
parameter
Writes individual inspection task parameters temporarily or per­manently in the sensor.
0x006F Get Single Inspection Task
parameter
Reads individual inspection task parameters.
Table 10.4: Sensor control commands
1) Command cannot be processed up to firmware V01.26 if the LPS is set to "Input Triggered" Operation Mode (see chapter 9.4.1 "Standard tab - Task Parameters panel", Operation Mode on Page 62).
2) Commands 0x0011 and 0x0013 can be transmitted no sooner than 30ms after command 0x0003 in order to obtain valid measurement data.
3) 0x4141 = Acknowledge: Execution of the command is confirmed
4) 0x414E = Not Acknowledge or Error: Command has not been executed
ber of
Com-
user data words
2
mand no.
0x4141 0x414E
Meaning
3)
The inspection task has been set 0
4)
The transmitted command was not processed. 0
0x004A In the user data area the task
0
number is transferred.
(0 = Task0, up to 15 = Task15) 0x4141 Scan number set 0 0x414E The transmitted command was
not processed.
1
0x4141 Parameter was set 0 0x414E The transmitted command was
3
not processed.
0x005C Parameter is output 1 0x414E The transmitted command was
1
not processed.
0x4141 Parameter was set 0 0x414E The transmitted command was
3…14
not processed.
0x0070 Parameter is output 9…20 0x414E The transmitted command was
1
not processed. 0
Num­ber of user data words
1
0
0
0
0
TNT 35/7-24V
Leuze electronic LPS 36 80
Integrating the LPS in the process control (Ethernet)
5) The command acts globally on all inspection tasks.
Attention!
If the command is used to deactivate the output of X-coordinates, only Z-coordinates are transmitted. LPSsoft Can be used to depict 2D- and 3D-views. The sensor can only be reset to again transmit X- and Z-coordinates by means of command number 0x0059 when using parameter ID 0x07D4. The sensor can also be reset to factory settings via the keyboard and display, but all other sensor settings are lost as well.

10.3.3 Explanation of 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:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - - - -LFLF = Laser Flag
LF=0 switches the Laser off, LF=1 switches the laser on.
Set Encoder Value
For sensor control command 0x0029, two words of user data are transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32
33…34
L16 L15 L14 L13 L12 L11 L10 L9 L8 L7 L6 L5 L4 L3 L2 L1
H16H15H14H13H12H11H10H9H8H7H6H5H4H3H2H1
Encoder value LowWord (value range: 0x0000 … 0xFFFF)
Encoder value HighWord (value range: 0x0000 … 0xFFFF)
Note!
Please note that the transmitted encoder values must not exceed the maximum value of the encoder pulse counter (see parameter
Counter Value Overflow
in LPSsoft, Chapter 9.4.2)
Leuze electronic LPS 36 81
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Set Actual Inspection Task
For sensor control command 0x004B, two words of user data are transmitted to the sensor:
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
33…34 ---------------
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 LPS.
Get Actual Inspection Task
The LPS 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 - - - - - - - - - - - - N4 N3 N2 N1 Number of the configured inspection task
Set Scan Number
For sensor control command 0x0053, one word of user data is transmitted to the sensor:
(0 = Task0 … 15 = Task 15)
SF
SF = SaveFlag
(0 = Task0 … 15 = Task 15)
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
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.
Note!
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.
Leuze electronic LPS 36 82
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Set Single User parameter
Switching transmission of X-coordinates on/off in measure mode
When used with parameter ID 0x07D4, sensor control command 0x0059 can switch the transmission of X-coordinates in measure mode on and off. The quantity of data transmitted in measure mode can thereby be reduced by one half (useful for applications that only require Z-coordinates and for controls with small Ethernet receive buffer).
When using sensor control command 0x0059 with parameter ID 0x07D4, three words of user data are transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - - - -SFSF = SaveFlag
33…34 0000011111010100Parameter ID for Disable x-Output = 0x07D4
35…36 - - - - - - - - - - - - - - -OFOF = Output Flag
If SF=0 then the output of X-coordinates is changed only temporarily.
If SF=1 then the output of X-coordinates is retained even after a restart of the LPS.
If OF=0 then X- and Z-coordinates are transmitted.
If OF=1 then only Z-coordinates are transmitted (X-coordinates are deactivated).
Extension of the transmission pause between the Z- and X-data packets
When used with parameter ID 0x07D8, sensor control command 0x0059 can be used to extend the transmission pause between the Z- and X-data packets from 0.1ms (factory setting) to up to 1ms (useful in applications with controls with slow, small Ethernet receive buffer).
When using sensor control command 0x0059 with parameter ID 0x07D8, three words of user data are transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - - - -SFSF = SaveFlag
33…34 0000011111011000Parameter ID for transmission pause = 0x07D8
35…36 - - - - - - - - - - - - P4 P3 P2P1Duration of the transmission pause between the
Z- and X-data packets in 0.1ms increments (0 = 0.1ms … 9 = 1.0 ms)
If SF=0, the duration of the transmission pause is changed only temporarily.
If SF=1, the duration of the transmission pause is retained even following a restart of the LPS.
Note!
If the transfer of X-coordinates is switched off in measure mode, no visualization of mea­surement data can be performed in the 2D- and 3D-views in LPSsoft.
Leuze electronic LPS 36 83
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Activating the median filter for Z-coordinates
When using parameter ID 0x07DB, sensor control command 0x0059 can be used to activate a median filter for the Z-coordinates. By activating the median filter, the Z-coordinates of the measurement values are smoothed out, while occurring edges are retained. If the median filter is activated, small interferences and structures can be suppressed.
When using sensor control command 0x0059 with parameter ID 0x07DB, three words of user data are transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - - - -SFSF = SaveFlag
33…34 11111011011Parameter ID for median filter = 0x07DB
35…36 - - - - - - - - - - - - - - -MFMF = Median filter
If SF=0, the setting for the median filter is only temporary.
If SF=1, the setting for the median filter is retained even after a restart of the LPS.
If MF=0, the median filter is deactivated.
If MF=1, the median filter is activated.
Leuze electronic LPS 36 84
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Get Single User parameter
Status of the transmission of X-coordinates in measure mode
When using parameter ID 0x07D4, sensor control command 0x005B can be used to check whether X-coordinates are output.
Command syntax:
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.
0xFFFF 0xFFFF 0x0000 0x005B 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0001
When using sensor control command 0x005B with parameter ID 0x07D4, one word of user data is transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 0 0 0 0 0 1 1 1 1 1 0 1 0 1 0 0 Parameter ID for Disable x-Output = 0x07D4
The sensor responds with 0x005C and returns one word of user data.
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - - - -OFOF = Output Flag
If OF=0 then X- and Z-coordinates are transmitted.
If OF=1 then only Z-coordinates are transmitted (X-coordinates are deactivated).
Type
No. of data
Querying the transmission pause between the Z- and X-data packets
When using parameter 0x07D8, sensor control command 0x005B can be used to query the duration of the transmission pause between the Z- and X-data packets.
When using sensor control command 0x005B with parameter ID 0x07D8, one word of user data is transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 0 0 0 0 0 1 1 1 1 1 0 1 1 0 0 0 Parameter ID for transmission pause = 0x07D8
The sensor responds with 0x005C and returns one word of user data.
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - P4 P3 P2 P1 Duration of the transmission pause between the
Z- and X-data packets in 0.1ms increments (0 = 0.1ms … 9 = 1.0 ms)
Leuze electronic LPS 36 85
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Querying whether median filter is active/not active
When using parameter ID 0x07DB, sensor control command 0x005B can be used to check whether the median filter is activated.
When using sensor control command 0x005B with parameter ID 0x07DB, one word of user data is transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 1 1 1 1 1 0 1 1 0 1 1 Parameter ID for median filter = 0x07DB
The sensor responds with 0x005C and returns one word of user data.
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 MF MF=1: median filter active
MF=0: median filter inactive
Leuze electronic LPS 36 86
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Set Single Inspection Task Parameter
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).
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32
33…34 Parameter ID for parameter selection
35…58 Parameter value[s] dependent on parameter ID
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 LPS.
Parameter ID Parameter meaning Valid parameter values Parameter
0x0BB9 Name of the active inspection task Maximum length: 12 ASCII characters, each character
0x0BBA Operating mode 0=Operation Mode: Free Running;
0x0BBB Enabling of activation 0=Activation Input: Disregard;
0x0BBC Enabling of the cascading output 0=Cascading Output: Disable;
0x0BBD Exposure duration of the laser 0 = Normal (approx. 261 μs)
is saved as a 16-bit word
1=Operation Mode Input Triggered
1=Activation Input: Regard
1=Cascading Output: Enable
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)
SF
SF = SaveFlag
data type
CHAR 12
UINT8 1
UINT8 1
UINT8 1
UINT8 1
Number of parameter val­ues
TNT 35/7-24V
Leuze electronic LPS 36 87
Integrating the LPS in the process control (Ethernet)
Parameter ID Parameter meaning Valid parameter values Parameter
0x0BBE Manual adjustment of the exposure
0x0BBF X-coordinate detection range 2 signed X-values for Field of View,
0x0BC0 Z-coordinate detection range 2 unsigned Z-values for Field of View, value 1: Mini-
duration
Permissible value range
LPS 36HI/EN: 739…13109; LPS 36, LPS 36/EN: 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.
Value 1: Minimum X Value, Value 2: Maximum X Value, Permissible value range
LPS 36HI/EN: -700…700; LPS 36, LPS 36/EN: -3000…3000 (unit in 1/10mm)
mum Z Value, Value 2: Maximum Z Value, permissible value range
LPS 36HI/EN: 1950…6100; LPS 36, LPS 36/EN: 1900…8100 (unit in 1/10mm)
data type
UINT16 1
SINT16 2
UINT16 2
Sensor response:
Command number Meaning Number of user data words
0x4141 "Ack": the command has been successfully executed. 0
0x414E "Not Ack": the command has not been executed. 0
Number of parameter val­ues
Leuze electronic LPS 36 88
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Get Single Inspection Task Parameter
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 LPS (Field of View).
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 Parameter ID which can be accessed
Parameters and settings:
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 adjustment of the exposure duration 0x0BBF X-coordinate detection range 0x0BC0 Z-coordinate detection range
Sensor response:
The sensor responds with 0x0070 and returns 9 … 20 user data words.
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 Parameter ID for parameter selection
33…34 Data type:
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
1 = UINT8; 2 = UINT16, 5 = SINT16, 7 = CHAR
Leuze electronic LPS 36 89
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Meaning of the bits:
Parameter ID Parameter meaning Valid parameter values Parameter data
0x0BB8 Number of the active inspection task 0-15 UINT8 1 0x0BB9 Name of the active inspection task Maximum length: 12 ASCII characters, each charac-
0x0BBA Operating mode 0=Operation Mode: Free Running;
0x0BBB Enabling of activation 0=Activation Input: Disregard;
0x0BBC Enabling of the cascading output 0=Cascading Output: Disable;
0x0BBD Exposure duration of the laser 0 = Normal (approx. 261μs)
0x0BBE Manual adjustment of the exposure
0x0BBF X-coordinate detection range 2 signed X-values for Field of View, value 1: Minimum
0x0BC0 Z-coordinate detection range 2 unsigned Z-values for Field of View, value 1: Mini-
duration
ter is saved as a 16-bit word
1=Operation Mode Input Triggered
1=Activation Input: Regard
1=Cascading Output: Enable
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) Permissible value ranges
LPS 36HI/EN: 739…13109; LPS 36, LPS 36/EN: 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) com­mand in combination with parameter ID 0x0BBD.
X Value, value 2: Maximum X Value, permissible value range
LPS 36HI/EN: -700…700;
LPS 36, LPS 36/EN: -3000….3000,
(unit in 1/10mm)
mum Z Value, Value 2: Maximum Z Value (unit in mm), permissible value range
LPS 36HI/EN: 1950…6100;
LPS 36, LPS 36/EN: 1900….8100,
(unit in 1/10mm)
type
CHAR 12
UINT8 1
UINT8 1
UINT8 1
UINT8 1
UINT16 1
SINT16 2
UINT16 2
Number of parameter val­ues
TNT 35/7-24V
Leuze electronic LPS 36 90
Integrating the LPS in the process control (Ethernet)

10.3.4 Commands in measure mode

Note!
Command syntax (header/user data), see Chapter 10.2
The following commands are available in measure mode:
Command from control to LPS Answer from LPS to control
Com­mand no.
0x4554 Ethernet Trigger
Table 10.5: Commands in measure mode
Meaning
With the Ethernet Trigger com­mand, a single measurement is triggered in measure mode, sim­ilar to triggering via the trigger input.. Prerequisite is that the LPS be configured with LPSsoft under
Operation Mode to Input Trig­gered.
A connection to the sensor must exist before the Ethernet Trigger command can be used.
Num­ber of
Com-
user
mand no.
data words
0x5A5A and 0x5858
0x5A5A With deactivated output of X-
0
0x5A58 Only with LPS 36HI, when HI-
0x414E The transmitted command was
Meaning
With activated output of X- coordinates: A response follows first with command number 0x5A5A. In the user data area, a data packet with Z-coordinates is output. A response then follows with com­mand number 0x5858 and a data packet containing X-coordinates is output in the user data area.
coordinates: A response follows with com­mand number 0x5A5A. In the user data area, a data packet with Z-coordinates is out­put.
Connect is activated. In the user data area, a data packet with Z­and X-coordinates is output.
not processed.
Num­ber of user data words
2 pack-
ets @
376
1 packet @ 376
1 packet @ 480
0
TNT 35/7-24V
Leuze electronic LPS 36 91
Integrating the LPS in the process control (Ethernet)
Command from control to LPS Answer from LPS to control
Num-
Com­mand no.
Meaning
0x4541 Ethernet Activation
The Ethernet Activation com­mand is used to switch the mea­surement operation on and off corresponding to the user data word. Prerequisite is that the LPS be configured with LPSsoft under
Activation Input Mode to Regard.
A connection to the sensor must exist before the command can be used.
Table 10.5: Commands in measure mode
1) The answer listed in the table applies only for the activated state, in FreeRun mode or in the triggered mode, if triggered. In the deactivated state, there is no response to the com­mand.
ber of
Com-
user data
mand no.
Meaning
words
0x5A5A and 0x5858
With activated output of X- coordinates: A response follows first with command number 0x5A5A. In the user data area, a data packet with Z-coordinates is output. A response then follows with com­mand number 0x5858 and a data packet containing X-coordinates is output in the user data area.
0x5A5A With deactivated output of X-
1
coordinates: A response follows with com­mand number 0x5A5A. In the user data area, a data packet with Z-coordinates is out-
1)
put.
0x5A58 Only with LPS 36HI, when HI-
Connect is activated. In the user data area, a data packet with Z- and X-coordinates is
1)
output.
0x414E The transmitted command was
not processed.
1)
Num­ber of user data words
2 pack-
ets @
376
1)
1 packet @ 376
1 packet @ 480
0
TNT 35/7-24V
Leuze electronic LPS 36 92
Integrating the LPS in the process control (Ethernet)

10.3.5 Explanation of user data in measure mode (command parameters)

Ethernet Activation
For sensor control command 0x4541, one word of user data is transmitted to the sensor:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - - - -IOEA = Ethernet Activation Flag
EA=0 switches off measurement operation, EA=1 switches on measurement operation.
Leuze electronic LPS 36 93
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

10.4 Working with the protocol

Note!
The values are displayed in hexadecimal representation (0x…). The values are only transmit­ted in "Little-Endian" format. For further information, see the note in Chapter 10.2.

Command without user data

Connect to Sensor
PC to LPS:
Startseq. 1
Startseq. 2
Fill character
Command
no.
0xFFFF 0xFFFF 0x0000
0x434E
LPS to PC (command executed):
Startseq. 1
Startseq. 2
0xFFFF 0xFFFF 0x0000
Fill character
0x4141

Command with user data

Set Actual Inspection Task (LPS in command mode, activate Task 15 and do not store in volatile memory)
PC to LPS:
Fill character
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
Command
no.
Fill character
0x0000 0x0000 0x0000
Packet no.
Packet no.
Fill character
Trans. no.
Fill character
Trans. no.
0x434E
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
Status
Encoder H
Encoder L
Fill character
Scan no.
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
Type
No. of data
No. of data
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 0x004B 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0002 0x000F 0x0001
User data
LPS 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
0xFFFF 0xFFFF 0x0000 0x4141 0x0000 0x0000 0x0000 0x004B 0x0000 0x 0000 0x0000 0x0000 0x0000 0x0000 0x 0000
No. of data
Leuze electronic LPS 36 94
User data
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

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 Operation with native C++ DLL

The native C++ DLL was created specifically for integration in C++ programs. It consists primarily of the LxS Lib functions:
• Establishment/deactivation of sensor connection
• Evaluation of sensor state
• Triggering, activation via Ethernet
• Activation of individual inspection tasks
• Activation of inspection tasks
• Parameter changes of the active inspection task
Only the loading / saving of all created inspection tasks is not possible and must be performed via the supplied LxSsoft.
Leuze electronic LPS 36 95
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)

10.7 Operating with HALCON® image processing software

Benefits

The HALCON® image processing library from MVtec Software GmbH® (http://www.mvtec.com) can be used to evaluate the recorded 2D profiles.
To simplify the data import step for the user, an Image Acquisition Interface is available that directly controls the LPS sensors and can read the measurement data (X, Z-coordinates and encoder values).

Access

The Image Acquisition Interface is contained on the supplied product CD. Alternatively, you can download the program in the Internet at www.leuze.com.
Note!
For error-free operation of LPS 36/EN (encoder devices) in combination with the HALCON Vision Acquisition Interface, use the following settings:
• Encoder overflow on 0xFEFF FFFF (corresponds to the factory settings of firmware V01.10, see Chapter 9.4.2).

10.8 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.
®
TNT 35/7-24V
Leuze electronic LPS 36 96

11 Diagnostics and troubleshooting

11.1 General causes of errors

Error Possible error causes Measures
Control receives no mea­surement data
Object contours not detected
Sensor does not respond to commands
Table 11.1: General causes of errors
Ethernet connection interrupted Control not connected to sensor Occlusion See "Occlusion" on page 15. Soiling of the optics covers Ambient light Prevent ambient light, shield sensor, see "Selecting a
Reflections Avoid reflections.
Unsuitable exposure set­ting
Object not in measure­ment range
Detection range selected too small Wrong inspection task selected
Sensor in measure/menu mode
Sensor not connected Check settings of the Ethernet interface. Connect sen-
Sensor not activated Activate sensor via PIN 2 on X1.
Diagnostics and troubleshooting
Check connection with LPSsoft. See "Commissioning" on page 51. Use "To sensor" command.
Clean lens covers, see "Cleaning" on page 101.
mounting location" on page 28. Limit detection range with LPSsoft, see "Field of View" on page 63.
Limit detection range with LPSsoft, see "Field of View" on page 63. Adapt exposure duration to the reflective properties of the objects to be detected. See "Light Exposure" on page 63. Visual assessment with LPSsoft, reduce working distance/position of the sensor to the object. See "Standard tab - Task Parameters panel" on page 62. Configure detection range with LPSsoft. See "Field of View" on page 63 Change inspection task with LPSsoft or use Ethernet command "Set Actual Inspection Task". See "Set Actual Inspection Task" on page 82. Exit menu view on OLED display. Connect sensor to control. Switch sensor to command mode if necessary.
sor to control
Switch off activation input. See "Activation" on page 63.
TNT 35/7-24V
Leuze electronic LPS 36 97
Error Possible error causes Measures
No laser line Sensor not activated Activate sensor via PIN 2 on X1.
Sensor does not respond to trigger
Sensor cannot be deacti­vated via the activation input
Table 11.1: General causes of errors

11.2 Interface error

Error Possible error causes Measures
No connection Yellow LED not illuminated No connection Yellow LED not illuminated
Table 11.2: Interface error
Diagnostics and troubleshooting
Laser was deactivated in command mode with the "Set Laser Gate" com­mand Sensor in trigger mode Activate single measurement by means of Ethernet
Sensor in command mode Exit command mode with the "Exit Command Mode"
Triggering too fast. Reduce trigger rate. The shortest possible interval
Activation Input set to "Disregard"
Wiring error Check Ethernet cable.
DHCP activated in net­work, no fixed or alternate network address assigned. Incorrect IP address/sub­net mask set on LPS.
Incorrect port assigned to LPS / control
Firewall blocks ports Switch off firewall temporarily and repeat connection
Switch on laser. See "Set Laser Gate" on page 81.
trigger or via PIN 5 on X1.
command.
between two successive trigger signals is 10 ms. See "Triggering - Free Running" on page 21. Use LPSsoft to configure the activation input to "Regard". See "Activation" on page 63.
Assign alternate IP address, see "Establish connec­tion to PC" on page 49.
Check IP address/subnet mask, IP addresses of LPS and control must be different, subnet mask however must be the same, see Table 8.1 "Address allocation in the Ethernet" on page 49. Using ping command check whether the sensor responds. If so, check port assignment to LPS and control. The set ports must match.
test.
TNT 35/7-24V
Leuze electronic LPS 36 98
Loading...