Leuze electronic LRS Technical Description

LRS - Line Range Sensor
Light Section Sensors
en 03-2011/06 50113404
TECHNICAL DESCRIPTION
Condelectric S.A. Tel. Int. + 54 1148 361053 Fax Int. + 54 1148 361053
Balluff-Leuze Pty. Ltd. Tel. Int. + 61 3 9720 4100 Fax Int. + 61 3 9738 2677
Leuze electronic nv/ sa Tel. Int. + 32 2253 16-00 Fax Int. + 32 2253 15-36
ATICS Tel. Int. + 359 2 847 6244 Fax Int. + 359 2 847 6244
Leuze electronic Ltda. Tel. Int. + 55 11 5180-6130 Fax Int. + 55 11 5180-6141
Leuze electronic AG Tel. Int. + 41 41 784 5656 Fax Int. + 41 41 784 5657
Imp. Tec. Vignola S.A.I.C. Tel. Int. + 56 3235 11-11 Fax Int. + 56 3235 11-28
Leuze electronic Trading (Shenzhen) Co. Ltd. Tel. Int. + 86 755 862 64909 Fax Int. + 86 755 862 64901
Componentes Electronicas Ltda. Tel. Int. + 57 4 3511049 Fax Int. + 57 4 3511019
Schmachtl CZ s.r.o. Tel. Int. + 420 244 0015-00 Fax Int. + 420 244 9107-00
Leuze electronic Scandinavia ApS Tel. Int. + 45 48 173200
SKS-automaatio Oy Tel. Int. + 358 20 764-61 Fax Int. + 358 20 764-6820
Leuze electronic Sarl. Tel. Int. + 33 160 0512-20 Fax Int. + 33 160 0503-65
Leuze electronic Ltd. Tel. Int. + 44 14 8040 85-00 Fax Int. + 44 14 8040 38-08
UTECO A.B.E.E. Tel. Int. + 30 211 1206 900 Fax Int. + 30 211 1206 999
ALL IMPEX 2001 Tel. Int. + 7 495 9213012 Fax Int. + 7 495 6462092
Leuze electronic Scandinavia ApS
Ingermark (M) SDN.BHD Tel. Int. + 60 360 3427-88 Fax Int. + 60 360 3421-88
Movitren S.A. Tel. Int. + 52 81 8371 8616 Fax Int. + 52 81 8371 8588
Leuze electronic BV Tel. Int. + 31 418 65 35-44 Fax Int. + 31 418 65 38-08
LA2P, Lda. Tel. Int. + 351 21 4 447070 Fax Int. + 351 21 4 447075
Balluff Sp. z o. o. Tel. Int. + 48 71 338 49 29 Fax Int. + 48 71 338 49 30
O`BOYLE s.r.l Tel. Int. + 40 2 56201346 Fax Int. + 40 2 56221036
Elteco A/S Tel. Int. + 47 35 56 20-70 Fax Int. + 47 35 56 20-99
Great Cofue Technology Co., Ltd. Tel. Int. + 886 2 2983 80-77 Fax Int. + 886 2 2985 33-73
Countapulse Controls (PTY.) Ltd.
01/2011
Tel. Int. + 27 116 1575-56 Fax Int. + 27 116 1575-13
Schmachtl SK s.r.o. Tel. Int. + 421 2 58275600 Fax Int. + 421 2 58275601
Tipteh d.o.o. Tel. Int. + 386 1200 51-50 Fax Int. + 386 1200 51-51
Industrial Electrical Co. Ltd. Tel.
Int. + 66 2 642 6700
Fax Int. + 66 2 642 4250
Leuze electronic San.ve Tic.Ltd.Sti. Tel. Int. + 90 216 456 6704 Fax Int. + 90 216 456 3650
Balluff Asia Pte Ltd Tel. Int. + 65 6252 43-84 Fax Int. + 65 6252 90-60
Leuze electronic, Inc. Tel. Int. + 1 248 486-4466 Fax Int. + 1 248 486-6699
SV Altera OOO Tel. Int. + 38 044 4961888 Fax Int. + 38 044 4961818
C. Illies & Co., Ltd. Tel. Int. + 81 3 3443 4143 Fax Int. + 81 3 3443 4118
Profa-Tech Ltd. Tel. Int. + 254 20 828095/6 Fax Int. + 254 20 828129
Leuze electronic Co., Ltd. Tel. Int. + 82 31 3828228 Tel. Int. +46 380-490951 Fax Int. + 82 31 3828522
Leuze electronic S.A. Tel. Int. + 34 93 4097900 Fax Int. + 34 93 49035820
Schmachtl GmbH
SABROW HI-TECH E. & A. LTD. Tel. Int. + 234 80333 86366 Fax Int. + 234 80333 84463518
Tipteh d.o.o. Beograd Tel. Int. + 381 11 3131 057 Fax Int. + 381 11 3018 326
Tipteh d.o.o. Skopje Tel. Int. + 389 70 399 474 Fax Int. + 389 23 174 197
Leuze electronic S.r.l. Tel. Int. + 39 02 26 1106-43 Fax Int. + 39 02 26 1106-40
Kvalix Automatika Kft. Tel. Int. + 36 1 272 2242 Fax Int. + 36 1 272 2244
P.T. Yabestindo Mitra Utama Tel. Int. + 62 21 92861859 Fax Int. + 62 21 6451044
Galoz electronics Ltd. Tel. Int. + 972 3 9023456 Fax Int. + 972 3 9021990
M + V Marketing Sales Pvt Ltd. Tel. Int. + 91 124 4121623 Fax Int. + 91 124 434233
Sensortech Company Tel. Int. + 852 26510188 Fax Int. + 852 26510388
Tipteh Zagreb d.o.o. Tel. Int. + 385 1 381 6574 Fax Int. + 385 1 381 6577
Leuze electronic GmbH + Co. KG P.O. Box 1111, D- 73277 Owen/ Teck Tel. +49(0) 7021/ 57 3-0, Fax +49(0 )7021 / 573-199
INFO LEUZEDEsWWWLEUZECOM
Sales Region East
Phone 035027/629-106 Fax 035027/629-107
Postal code areas 01000-19999 39000-39999 98000-99999
Sales Region North
Phone 07021/573-306 Fax 07021/9850950
Postal code areas 20000-38999 40000-65999 97000-97999
Sales Region South
Phone 07021/573-307 Fax 07021/9850911
Postal code areas 66000-96999
Sales and Service
Worldwide
AT (Austria)
AR (Argentina)
AU + NZ (Australia + New Zealand)
BE (Belgium)
BG (Bulgaria)
BR (Brasil)
CH (Switzerland)
CO (Colombia)
CZ (Czech Republic)
CL (Chile)
CN (China)
DK (Denmark)
FI (Finland)
GB (United Kingdom)
GR (Greece)
FR (France)
RU (Russian Federation)
SE (Sweden)
MY (Malaysia)
MX (Mexico)
NL (Netherlands)
PT (Portugal)
PL (Poland)
RO (Romania)
NO (Norway)
TW (Taiwan)
ZA (South Africa)
SK (Slowakia)
SI (Slovenia)
TH (Thailand)
TR (Turkey)
SG + PH (Singapore + Philippines)
US + CA (United States + Canada)
UA (Ukraine)
JP (Japan)
KR (South Korea)
ES (Spain)
Germany
KE (Kenia)
NG (Nigeria)
RS (Republic of Serbia)
MK (Macedonia)
IT (Italy)
HU (Hungary)
ID (Indonesia)
IL (Israel)
IN (India)
HK (Hong Kong)
HR (Croatia)
© All rights reserved, especially the right of reproduction, distribution and translation.
Copying or reproductions in any form require the written consent of the manufacturer. Changes reflecting technical improvements may be made.

Table of contents

Table of contents
Table of contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Figures and tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.1 Explanation of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2 Declaration of conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Safety notices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1 General safety notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Documentation 10 Safety regulations 10 Repair 10
2.2 Safety standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 Approved purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Areas of application 10
2.4 Working safely . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3 Operating principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1 Generation of 2D profiles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 Limits of light section sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.1 Occlusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.2 Minimum object size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4 Device description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1 Overview of light section sensors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1.1 Mechanical design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1.2 General performance characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.1.3 Line Range Sensor - LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2 Operating the sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2.1 Connection to PC / process control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2.2 Activation - Laser on/off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Laser occlusion 15 Receiver occlusion 15
Specific performance characteristics 18 Typical areas of application 18
Configuration 19 Detection operation 19
TNT 35/7-24V
Leuze electronic Technical description LRS 1
Table of contents
4.2.3 Triggering - Free Running . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.4 Cascading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
PROFIBUS trigger 21
Trigger settings 21 Cascading settings 21
4.3 Detection functions LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3.1 Inspection Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3.2 Analysis Window (AW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
4.3.3 Definition of AWs and analysis results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Analysis results 23
4.3.4 Application examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
Zero check of cases 25 Single or multiple track presence/absence detection on transport systems 26
4.3.5 Creation of inspection tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5 Installation and mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.1 Storage, transportation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Unpacking 27
5.2 Mounting the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
5.2.1 BT 56 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
5.2.2 BT 59 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
5.3 Device arrangement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.3.1 Selecting a mounting location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.3.2 Aligning the sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.4 Attach laser warning sign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.5 Cleaning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
6 Electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.1 Safety notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
6.2 Shielding and line lengths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Shielding the LRS: 35 General shielding information: 36 Connect the PE ground potential to the LRS light section sensors 36 Connecting the cable shield in the switch cabinet 37 Connecting the cable shield to the PLC 37
6.3 Connecting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.3.1 Connection X1 - logic and power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.3.2 Connection X2 - Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2 Technical description LRS Leuze electronic
Power supply 38 Activation input InAct 38 Trigger input InTrig 38 Cascading output OutCas 39 Output "ready" OutReady 39
Ethernet cable assignment 39
Table of contents
6.3.3 Connection X3 - switching inputs/outputs (only LRS 36/6) . . . . . . . . . . . . . . . . . . . . . . . 40
Switching outputs of connection X3 40 Switching inputs of connection X3 40
6.3.4 Connection X4 - PROFIBUS DP (only LRS 36/PB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
7 Display and control panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1 Indicator and operating elements of the. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1.1 LED status displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
7.1.2 Control buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
7.1.3 Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Alignment aid 43 Status display 43 Command mode 43
7.2 Menu description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.1 Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
7.2.2 Operation/navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Menu navigation 46 Selecting values or selection parameters for editing 46 Editing value parameters 46 Editing selection parameters 46
7.3 Reset to factory settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Interrupting a reset 47 Executing a reset 47
8 Commissioning and configuration. . . . . . . . . . . . . . . . . . . . . . . . . 48
8.1 Switching on. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
8.2 Establish connection to PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Setting an alternative IP address on the PC 49
8.3 Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
9 LRSsoft configuration software. . . . . . . . . . . . . . . . . . . . . . . . . . . 51
9.1 System requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
9.2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
9.2.1 Possible error message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
9.3 Starting LRSsoft/Communication tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
PROFIBUS settings (only LRS 36/PB) 59
9.4 Parameter settings/Parameters tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Leuze electronic Technical description LRS 3
TNT 35/7-24V
Table of contents
9.4.1 LRS parameters area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60
Inspection Task Selection 60 Operation Mode 61 Activation Input 61 Cascading Output 61 Light Exposure 61 Field of View 62 Apply Settings 62
9.4.2 Analysis Functions area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
Define AW Definitions 63 Define AW Combinations 65
9.4.3 Single Shot Mode area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
9.4.4 Global Parameters area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67
9.5 Detection function/Visualization tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.5.1 Evaluating saved detection data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.6 Menu commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
9.6.1 Saving parameter settings/File menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
9.6.2 Transmitting parameter settings/Configuration menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
9.6.3 Managing detection data/Measure Records menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
9.6.4 Zoom and Pan/toolbar. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .71
9.7 Definition of inspection tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Typical procedure 72
10 Integrating the LRS in the process control (Ethernet) . . . . . . . . . . 73
10.1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
10.2 Protocol structure: Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Protocol structure 74 Header 74
10.2.1 Command number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74
10.2.2 Packet number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
10.2.3 Transaction number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
10.2.4 Status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
10.2.5 Encoder High / Low . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
10.2.6 Scan number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
10.2.7 Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
10.2.8 Number of user data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
10.2.9 Evaluation telegram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
10.3 Ethernet commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
10.3.1 Elementary commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
10.3.2 Commands in command mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.3.3 User data in command mode (command parameters) . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
User data 74
Set Laser Gate 80 Set Actual Inspection Task 80 Get Actual Inspection Task 80
4 Technical description LRS Leuze electronic
Table of contents
10.3.4 Commands in detection mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
10.4 Working with the protocol (Ethernet) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Command without user data 82 Command with user data 82
11 Integration of the LRS 36/PB in the PROFIBUS . . . . . . . . . . . . . . . 83
11.1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Characteristics of LRS 36/PB 83
11.2 PROFIBUS address assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Automatic address assignment 84 Address assignment with LRSsoft 84 Address assignment with key pad and display 84
11.3 General information about the GSD file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
11.4 Overview of the GSD files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Ouptut data (from viewing position of control) 86 Input data (from viewing position of control) 87
11.5 Output data description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
PROFIBUS trigger 88 Activation - Sensor activation 88 Inspection Tasks - Selection of inspection tasks 88
11.6 Input data description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
11.6.1 Module M1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
11.6.2 Module M2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
11.6.3 Module M3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
11.6.4 Module M4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
11.6.5 Module M5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Scan number 89 Sensor info 89 Sensor state 90
Evaluation results of the analysis window 90
Number of hit points (Current Hits) in analysis window 1 91 Number of hit points (Current Hits) in analysis window 2 91 Number of hit points (Current Hits) in analysis window 5 91
Number of hit points (Current Hits) in analysis window 6 92 Number of hit points (Current Hits) in analysis window 9 92
Number of hit points (Current Hits) in analysis window 10 92 Number of hit points (Current Hits) in analysis window 16 92
TNT 35/7-24V
12 Diagnostics and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . 93
12.1 General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
12.2 Interface error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
13 Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
13.1 General maintenance information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Cleaning 96
Leuze electronic Technical description LRS 5
Table of contents
13.2 Repairs, servicing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
13.3 Disassembling, packing, disposing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Repacking 96
14 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
14.1 General specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97
14.2 Typical detection range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
14.3 Dimensioned drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
15 Type overview and accessories . . . . . . . . . . . . . . . . . . . . . . . . . . 101
15.1 Type overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
15.1.1 LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
15.1.2 LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
15.2 Accessories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
15.2.1 Fastening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
15.2.2 Accessory ready-made cables for voltage supply X1 . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
15.2.3 Accessories for Ethernet interface X2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
15.2.4 Accessories ready-made cables for X3 (only LRS 36/6) . . . . . . . . . . . . . . . . . . . . . . . . . 105
15.2.5 Connection accessories / ready-made cables for X4 (only LRS 36/PB) . . . . . . . . . . . . . 106
15.2.6 Configuration software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Mounting devices 101
Contact assignment for connection cable X1 102 Order codes of the cables for voltage supply 102
Ready-made cables with M12 plug/open cable end 103 Ready-made cables with M12 plug/RJ-45 plug 103 Ready-made cables with M12 plug/M12 plug 104 Connectors 104
Contact assignment for X3 connection cables 105 Order code of X3 connection cables 105
Contact assignment for X4 connection cables 106 Order codes for X4 connection accessories 106 Order code of PROFIBUS connection cables for X4 107
16 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
16.1 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
16.2 Revision History / Feature list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
16.2.1 Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
16.2.2 Configuration software LRSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
6 Technical description LRS Leuze electronic

Figures and tables

Figure 2.1: Name plate and warning notices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 3.1: Light section sensor design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 3.2: Occlusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 3.3: Typical minimum object size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 4.1: Mechanical design of Leuze light section sensors . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 4.2: Activation input signal sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 4.3: Trigger input signal sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 4.4: Signal sequence for cascading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 4.5: Cascading application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 4.6: Principle of object detection - areas with laser occlusion are shown in orange. . 24
Figure 4.7: Zero check of cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 4.8: Single or multiple track presence/absence detection on transport systems . . . . 26
Figure 5.1: Device name plate LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 5.2: Fastening options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 5.3: Mounting example LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Figure 5.4: BT 56 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 5.5: BT 59 mounting device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Figure 5.6: Alignment to the measuring plane. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 6.1: Location of the electrical connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 6.2: Connections of the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 6.1: Interface version of X3 and X4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 6.2: Line lengths and shielding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 6.3: Connecting the PE ground potential to the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 6.4: Connecting the cable shield in the switch cabinet . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 6.5: Connecting the cable shield to the PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Table 6.3: Pin assignment X1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Figure 6.6: Internal wiring at X1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 6.4: Pin assignment X2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 6.7: HOST / BUS IN cable assignments on RJ-45. . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Table 6.5: Pin assignment X3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Table 6.6: Pin assignment X3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 7.1: Indicator and operating elementsLRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 7.1: LED function indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 7.2: Menu structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Table 8.1: Address allocation in the Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Figure 9.1: Initial screen LRSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Figure 9.2: PROFIBUS settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 9.3: LRSsoft parameter configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Figure 9.4: Window "Analysis Window Definitions" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Figure 9.5: Definition of analysis windows (AW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Figure 9.6: "Analysis Window Combination Tables" window . . . . . . . . . . . . . . . . . . . . . . . . . 65
Table 9.1: Parameter settings for control of the switching outputs . . . . . . . . . . . . . . . . . . . . 65
Figure 9.7: Definition of logic combinations of several AWs . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Figure 9.8: LRSsoft Visualization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Figure 9.9: Zoom function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Table 10.1: Connection commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
TNT 35/7-24V
Leuze electronic Technical description LRS 7
Table 10.2: Command mode control commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Table 10.3: Sensor control commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Table 10.4: Commands in detection mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Figure 11.1: PROFIBUS address assignment with LRSsoft. . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Table 11.1: PROFIBUS - Overview of output data (from viewing position of control) . . . . . . . 86
Table 11.2: PROFIBUS - Overview of input data (from viewing position of control) . . . . . . . . 87
Table 11.3: Input data byte uSensorInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Table 11.4: Input data byte uSensorState . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Table 11.5: Input data byte wResultAWs (high and low byte) . . . . . . . . . . . . . . . . . . . . . . . . . 90
Table 12.1: General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Table 12.2: Interface error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Figure 14.1: Typical detection range LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Figure 14.2: Dimensioned drawing LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Table 15.1: Type overview LPS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Table 15.2: Type overviewLRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Table 15.3: Mounting devices for the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Table 15.4: Pin assignments KB M12/8-…-BA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Table 15.5: X1 cables for the LRS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Table 15.6: Pin assignments KB ET-…-SA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Table 15.7: Ethernet connection cables featuring M12 plug/open cable end . . . . . . . . . . . . 103
Table 15.8: Pin assignments KB ET-…-SA-RJ45 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Table 15.9: Ethernet connection cables M12 connector/RJ-45 . . . . . . . . . . . . . . . . . . . . . . . 103
Table 15.10: Pin assignments KB ET-…-SSA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Table 15.11: Ethernet connection cables featuring M12 plug/M12 plug . . . . . . . . . . . . . . . . . 104
Table 15.12: Connectors for the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Table 15.13: Pin assignments KB M12/8-…-SA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Table 15.14: X3 cables for the LRS 36/6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Table 15.15: Pin assignment X4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Figure 15.1: Cable structure for PROFIBUS connection cables . . . . . . . . . . . . . . . . . . . . . . . 106
Table 15.16: PROFIBUS connection accessories for the LRS 36/PB . . . . . . . . . . . . . . . . . . . 106
Table 15.17: PROFIBUS cables for LRS 36/PB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Table 15.18: Configuration software for the LRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Table 16.1: Revision History - Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Table 16.2: Revision History - Configuration software LPSsoft . . . . . . . . . . . . . . . . . . . . . . . 112
8 Technical description LRS Leuze electronic

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 comply with this information results in injuries to personnel or damage to the equipment.
Attention Laser!
This symbol warns of possible danger caused by hazardous laser radiation. The LRS uses a class 2M laser: Viewing the laser output with certain optical instruments, e.g. magnifying glasses, microscopes or binoculars, may result in eye damage.
Notice!
This symbol indicates text passages containing important information.
General information

1.2 Declaration of conformity

The light section sensors of the LRS series have been developed and manufactured in accordance with the applicable European standards and directives.
The series LRS is "UL LISTED" according to American and Canadian safety standards, and fulfills the requirements of Underwriter Laboratories Inc. (UL).
Notice!
The 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/Teck, possesses a certified quality assurance system in accordance with ISO 9001.
Leuze electronic Technical description LRS 9
TNT 35/7-24V
Safety notices

2 Safety notices

2.1 General safety notices

Documentation

All entries in this technical description must be heeded, in particular the present chapter "Safety notices". Keep this technical description in a safe place. It should be available at all times.

Safety regulations

Observe the locally applicable regulations and the rules of the employer's liability insurance association.

Repair

Repairs must only be carried out by the manufacturer or an authorized representative.

2.2 Safety standards

The LRS series light section sensors were developed, manufactured and tested in accordance with the applicable safety standards. They correspond to the state of the art.

2.3 Approved purpose

Attention!
The protection of personnel and the device cannot be guaranteed if the device is operated in a manner not complying with its intended use.
The light section sensors of the LRS series are laser sensors for presence detection of objects in defined areas.
In particular, unauthorized use includes:
• rooms with explosive atmospheres
• operation for medical purposes

Areas of application

The LRS series light section sensors are especially designed for the following areas of application:
• Zero check of cases
• Single or multiple track presence/absence detection on transport systems
• Check whether object or lid are present
10 Technical description LRS Leuze electronic

2.4 Working safely

Attention!
Access to or changes on the device, except where expressly described in this operating manual, are not authorized.
Safety regulations
Observe the locally applicable legal regulations and the rules of the employer's liability insurance association.
Qualified personnel
Mounting, commissioning and maintenance of the device must only be carried out by qualified personnel. Electrical work must be carried out by a certified electrician.
Attention, laser radiation!
If you look into the beam path over a longer time period, the retina of your eye may be damaged!
Never look directly into the beam path!
Do not point the laser beam of the LRS at persons!
When mounting and aligning the LRS, avoid reflections of the laser beam off reflective surfaces!
Safety notices
Viewing the laser output with certain optical instruments, e.g. magnifying glasses, microscopes or binoculars, may result in eye damage!
The light section sensors LRS comply with the safety standard EN 60825-1:2007 for a Laser class 2M product, and with US Regulation 21 CFR 1040.10 with the deviations pursuant to "Laser Notice No. 50", dated 24th June 2007.
Radiant Energy: The LRS uses a laser diode. The emitted wavelength is 658 nm. The maximum laser power, which is determined with measurement condition 3 acc. to EN 60825-1: 2007 (7 mm measuring diaphragm at a distance of 100mm from the virtual source), is 8.7mW.
Adjustments: Do not attempt any adjustments to or alterations of this product. Do not open the protective housing of the light section sensor. There are no user-serviceable parts inside.
The glass optics cover is the only aperture through which laser light may be observed on this product.
Leuze electronic Technical description LRS 11
TNT 35/7-24V
Safety notices
50111877
INSTRUMENTEN BETRACHTEN
Wellenlänge:
Impulsdauer:
Max. Leistung:
LASER KLASSE 2M
DIN EN60825-1:2008-05
658nm
8,7mW 3,0ms
ODER DIREKT MIT OPTISCHEN
NICHT IN DEN STRAHL BLICKEN
LASERSTRAHLUNG
INSTRUMENTEN BETRACHTEN
Wellenlänge:
Impulsdauer:
Max. Leistung:
LASER KLASSE 2M
DIN EN60825-1:2008-05
658nm
8,7mW 3,0ms
ODER DIREKT MIT OPTISCHEN
NICHT IN DEN STRAHL BLICKEN
LASERSTRAHLUNG
Maximum Output: Pulse duration:
OPTICAL INSTRUMENTS
OR VIEW DIRECTLY WITH
DO NOT STARE INTO BEAM
LASER LIGHT
Complies with 21 CFR 1040.10
IEC 60825-1:2007
CLASS 2M LASER PRODUCT
Wavelength: 658nm
8,7mW 3,0ms
Maximum Output: Pulse duration:
OPTICAL INSTRUMENTS
OR VIEW DIRECTLY WITH
DO NOT STARE INTO BEAM
LASER LIGHT
EN60825-1:2007
CLASS 2M LASER PRODUCT
Wavelength: 658nm
8,7mW 3,0ms
RAYONNEMENT
NE PAS REGARDER DANS
LE FAISCEAU NE PAS REGARDER
EN60825-1:2007
APPAREIL A LASE R CLASSE 2 M
AVEC DES INSTR. OPTIQUES
Longueur d'onde émis:
Puissance max: Durée d'impulse: 3,0ms
658nm
8,7mW
A Aperture label B Name plate C Stick-on labels supplied
A
B
C
50111330
Notice: The following shows a light section sensor as an example. An overview of the available types may be found in chapter 15.1
CAUTION: Use of controls or adjustments or performance of procedures other than specified herein may result in hazardous light exposure.
The use of optical instruments or devices in combination with the light section sensor increases the danger of eye damage!
The housing of the LRS is provided with warning notices on the housing and below the reading window as shown in the following figure:
Figure 2.1: Name plate and warning notices
Notice!
It is essential that you attach the stick-on labels (C in figure 2.1) to the device with which they are supplied! If the signs would be concealed as a result of the mounting situation of the LRS, attach the signs in the vicinity of the LRS such that reading the signs cannot lead to looking into the laser beam!
12 Technical description LRS Leuze electronic

3 Operating principle

CMOS
planar detector
Receiving optics
Laser with expansion optics
The zero point of the coordinate 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 Technical description LRS 13
TNT 35/7-24V
Operating principle
Laser occlusionReceiver occlusion
In these areas the laser does not strike the object. Thus it is not possible to determine any data here
The receiver does not "see" any object contours in this area because they are obscured by the upper right edge of the object. When the object is shifted to the left the object contour 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 Limits of light section sensors

3.2.1 Occlusion

The detection of high and wide objects from just one point poses the particular problem that depending on the object contour, parts of the object may be obscured by others. This effect is called occlusion.
The figure 3.2 illustrates the problem:
-Y
14 Technical description LRS Leuze electronic
Figure 3.2: Occlusion
+X
Z
-X
Operating principle
Laser occlusion
The measurement is carried out using a laser line, which strikes the object at variable angles. Thus object contours, which from the viewing position of the laser are obscured by other parts of the same object, will not be detected.
Possible measure against laser occlusion are:
• 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 21). This reliably prevents mutual interference of the sensors.
Receiver occlusion
The reflected light of the laser line is detected by the receiver located at a distance of approx. 100mm from the laser transmitter. The receiver can only detect object contours, which are visible from its viewing angle.
Possible measures against receiver occlusion are:
• Alignment of the measurement objects so that all profile data to be detected are visible to the receiver. Or:
• Installing a second sensor featuring a viewing direction rotated by 180° about the z-axis so that the objects can be viewed from 2 sides. In the example to the right, the left sensor detects the profile data on the left side of the product, and the right sensor the profile data on the right side. In this situation the second sensor is then cascaded. See "Cascading" on page 21.
TNT 35/7-24V
Y
Leuze electronic Technical description LRS 15
Operating principle
Object distance in Z direction [mm]
Typical minimum
object size [mm]

3.2.2 Minimum object size

The length of the laser line in X direction is variable and depends on the distance in Z direction. However, always the same number of measurement points is measured. The measurement points on the object in the detection field are crucial for detecting the object.
This implies that the minimum object size (i.e., the smallest detectable object) in the X direction increases with the distance in the direction of Z.
Small objects can be recognized better in the short range.
Due to the triangulation measurement principle the reflected laser beam strikes the CMOS receiver in varying angles depending on the object distance. As a consequence, the minimum object size in Z-direction also increases with distance.
The figure 3.3 shows this relation:
Figure 3.3: Typical minimum object size
7
6
X
Z
5
4
3
2
1
0
200 300 400 500 600 700 800
16 Technical description LRS Leuze electronic

4 Device description

Laser transmitter
Receiver (CMOS camera)
Display with key pad
Electrical connection and grounding terminal
Groove for dovetail mounting and mounting points
Notice: The following shows a light section sensor as an example. An overview of the available types may be found in chapter 15.1

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 detection/object measurement
• Measurement time/response time: 10ms
• Measurement range/detection area: 200 … 800mm
• Length of laser line: max. 600mm
• Configuration and transmission of process data via Fast Ethernet
• OLED display with key pad
• Measurement value display in mm on OLED display as an alignment aid
• Up to 16 inspection tasks
• Compact construction
• Robust design and easy operation
• Activation input, trigger input, cascading output
Leuze electronic Technical description LRS 17
TNT 35/7-24V
Device description
Single- or multi-track existence and absence
check on conveying equipment
Fill level monitoring

4.1.3 Line Range Sensor - LRS

Line Range Sensors are designed to perform proximity object detection along the laser line. Similar to a light barrier or a laser scanner, the sensor detects the presence of objects through scanning. With individual configuration, one sensor can be used to detect single or multiple objects.
Specific performance characteristics
• Configuration software LRSsoft
• Data calculation and processing directly inside the sensor
• Integrated PROFIBUS interface or 4 switching outputs
• Up to 16 detection fields with logic operation option
• Detailed information on analysis windows, switching state and sensor status via Ethernet and PROFIBUS
Typical areas of application
• Situation and position control
• Presence and absence detection of objects in defined areas
• Height and width monitoring
• Single or multiple track presence/ absence detection on transport systems
• Zero check of cases
18 Technical description LRS Leuze electronic

4.2 Operating the sensor

Laser off
Laser off
Exposing and measuring
Processing and transmitting
Laser
Activation input
Pin 2 at X1
Output
at interface
10ms between 2 consecutive laser pulses in "Free Running" mode
Axes: p = level, t = time
approx. 14ms
between laser pulse and
associated 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 interface (see "Connection X2 - Ethernet" on page 39) and are then set using the configuration software supplied LRSsoft.
Detection operation
In detection operation, the LRS 36/6 is connected to the process control via its 4 switching outputs; the LRS 36/PB is connected to the process control via PROFIBUS. Alternatively, the LRS can be operated via the Ethernet interface on X2, see chapter 10 "Integrating the LRS in the process control (Ethernet)". Additional sensor information is then available.

4.2.2 Activation - Laser on/off

Via activation input InAct (pin 2 on X1), via PROFIBUS (master output 'uActivation' = 1) or the 'Ethernet Trigger' command, the laser and data transmission can be specifically switched on and off. Thus possible glares due to laser radiation can be prevented during time periods when no measurements are performed.
Notice!
The sensor is delivered ex works with the Activation Input Disregard setting. The possible activation sources (activation input, PROFIBUS activation and Ethernet activation) are ignored - the measurement function of the sensor is enabled.
The activation function can be switched on via the LRSsoft 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 Technical description LRS 19
Figure 4.2: Activation input signal sequence
p
TNT 35/7-24V
t
Device description
p
t
A second trigger pulse before 10ms have elapsed has no effect
Trigger time (rising edge)
Laser
Activation input
Pin 2 at X1
Output
at interface
Data packets, approx. 1ms
t
fix
approx. 14ms
Trigger input
Pin 5 at X1
Axes: p = level, t = time
The figure 4.2 shows the effect of the activation on laser and measurement value output in "Free Running" mode.

4.2.3 Triggering - Free Running

The light section sensors can measure in two modes:
• In "Free Running" operation the light section sensor determines measurement results with a frequency of 100Hz and outputs these continuously via the interface X2.
• Alternatively, single measurements can also be carried out. For this purpose, the light section sensor needs either a trigger signal at the trigger input (pin 5 at X1), a PROFIBUS trigger or the Ethernet Trigger command in detection mode (see "Commands in detection mode" on page 81). When triggering via pin 5 at X1, note:
- Triggering occurs on the rising edge.
- The trigger pulse must be at least 100 μs long.
- Before the next trigger, the trigger cable must be on low-level for at least 1ms.
- Activation must occur at least 100 μs before the trigger edge.
- The shortest possible time interval between two successive trigger edges is 10ms.
Notice!
Ex works, the LRS is set to Free Running (shown on display: fRun). In order for it to respond to signals on the trigger input, the operating mode must be set via the LRSsoft configuration software to Input Triggered (shown on display: Trig).
20 Technical description LRS Leuze electronic
Figure 4.3: Trigger input signal sequence
PROFIBUS trigger
Laser
Measurement value output
Trigger input, pin 5 at X1 /
not required
Cascading output,
pin 6 at X1
Sensor 1 / Master
Laser
Measurement value output
Trigger input, pin 5 at X1
Cascading output,
pin 6 at X1
Sensor 2 / 1. slave
Laser
Measurement value output
Trigger input, pin 5 at X1
Cascading output,
pin 6 at X1
Sensor 3 / 2. slave
Figure 4.4: Signal sequence for cascading
So that a measurement can be triggered on each PROFIBUS cycle, the PROFIBUS trigger of the LRS responds to a change of master output byte uTrigger. The control only needs to increment the trigger value in order to initiate a new measurement.
The maximum trigger frequency is 100Hz. If triggering occurs during a measurement, the trigger signal is ignored, as is the case in the Free Running operating mode.

4.2.4 Cascading

Figure 4.5: Cascading application example
If several light section sensors are operated, there is the risk of mutual interference if the reflected laser beam of one sensor can be received by the receiver of another sensor at
Leuze electronic Technical description LRS 21
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 initiated following completion of the exposure by the first sensor. To achieve this, the cascading output of the first sensor must be connected to the trigger input of the second sensor. Up to 6 sensors can thus be operated cascaded.
Trigger settings
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
Device description
Notice!
In PROFIBUS operation, cascading only functions as described above via the InTrig and OutCas inputs/outputs at X1. In this case, the maximum detection rate of 100 Hz is achieved. Make certain, however, that the input data of the PROFIBUS light section sensors are still transmitted in the same bus cycle; monitor the scan numbers if necessary.
Alternatively, light section sensors with PROFIBUS can be selectively triggered in sequence. Master output 'uTrigger' of the sensor to be triggered is incremented on each PLC cycle; the master outputs of the other sensors do not change. The maximum detection rate of 100Hz is not achieved with this process.
If multiple sensors are triggered in a PROFIBUS cycle, mutual interference may occur between the sensors if they are in the same visual field and the time between updating byte 'uTrigger' is shorter than the maximum exposure time (Exposure Time) of 1.3 ms.

4.3 Detection functions LRS

The LRS lets you carry out presence/absence and area monitoring with stable switching behavior and simple configuration. The sensor configuration is stored in the individual inspection tasks in the configuration software LRSsoft to reflect the requirements of different applications.

4.3.1 Inspection Task

The LRS lets you operate with up to 16 individual inspection tasks, each of which may contain up to 16 rectangular analysis windows (AWs) that can be configured independently and that may overlap arbitrarily.
1-16 AWs can be defined for each inspection task. The results of the individual AWs may be combined via logic operations (AND, OR, NOT). A different logic operation can be defined for each of the 4 switching outputs Out1 to Out4.
The selection of the inspection tasks is carried out:
• via the switching inputs of connection X3 (inspection tasks 0-7 only)
•via PROFIBUS
• via LRSsoft (on a PC connected via X2)
• via Ethernet (on a process control connected via X2).

4.3.2 Analysis Window (AW)

The AWs are defined in the configuration software LRSsoft (see chapter 9.4 "Parameter settings/Parameters tab"). This software defines the spatial position, size and number of hit points to be detected for each AW.
An evaluation is carried out only within the active AWs. Areas outside the sensor's field of vision are also not evaluated. An object is detected if the number of hit points in the AW reaches or exceeds an arbitrarily defined minimum value.
22 Technical description LRS Leuze electronic
Device description
Notice!
The number of hit points does not necessarily correspond with the object size, since the number of hit points is dependent on distance z. At near distance to the sensor (e.g., 300 mm), an object expanded in the X direction has nearly twice as many hit points as it does at a far distance (e.g, 600mm). If the object distance is the same, the number of hit points remains nearly constant.
Analysis results
The analysis results of individual AWs can be combined logically via the LRSsoft configuration software. The result of this logic operation is output via the switching states of the four switching outputs Out1-Out4 at X3 or PROFIBUS.
Detailed evaluation results such as, e.g., the status of all AWs, the number of hit points and the state of the switching outputs are transmitted via Ethernet and can be queried via PROFIBUS. For more information please refer to chapter 10.
Leuze electronic Technical description LRS 23
TNT 35/7-24V
Device description
LRS
Detection range
Objects
Object points (hit points)
Line length 150mm
Line length
600mm
Result = 1, if hit points ≥ 5
Result = 0, if hit points <5
Analysis Window AW
x axis
z axis
No object detection due to
shadowing in the detection
range

4.3.3 Definition of AWs and analysis results

In figure 4.6, 5 AWs are defined (blue rectangles). For each AW, a minimum of 5 hit points must be detected for the analysis result to be "1". If fewer hit points are detected, the analysis result is "0".
Consider the example shown:
• AW1: 8 hit points (on O1) result =1
• AW2: 4 hit points (on O2) result =0
• AW3: 1 hit points (on O2) result =0
• AW4: 3 hit points (on O2) result =0
• AW5: 11 hit points (on O4) result =1
Why is O2 not detected?
O2 is not detected in AW2 because missing hit points are shadowed. For AW3, O2 is too far to the left. For AW4, the number of hit points to be detected would need to be lowered to 3.
Why is O3 not detected?
O3 is within AW3, but AW3 does not detect the object's upper edge and thus there is no detection. O3 is not detected within AW5 because, from the sensor's point of view, O4 is in front of it.
AW4
AW1 AW2 AW3
AW5
O4
O1 O2 O3
+X
Z
-X
Figure 4.6: Principle of object detection - areas with laser occlusion are shown in orange
24 Technical description LRS Leuze electronic

4.3.4 Application examples

Zero check of cases
In figure 4.7 AW1 and AW2 are used to check whether a container of a certain height and width is located at a predefined position in the detection range.
AW3 is used to check whether the container is empty. It is not empty if hit points are detected in AW3.
Device description
AW1 AW2
AW3
+X
Z
-X
Figure 4.7: Zero check of cases
Leuze electronic Technical description LRS 25
TNT 35/7-24V
Device description
Single or multiple track presence/absence detection on transport systems
In figure 4.8, as in figure 4.7, AW1 and AW2 are used to check whether a container of a certain height and width is located at a predefined position in the detection range.
AW3 to AW8 are used to check whether and where objects are located in the container and what their height is.
AW1 AW2
AW3 AW4 AW5
AW6 AW7 AW8
+X
Z
-X
Figure 4.8: Single or multiple track presence/absence detection on transport systems

4.3.5 Creation of inspection tasks

The settings necessary for the configuration of the AWs, the assignment of the AW states to the switching outputs and the configuration of general parameters such as operating mode, activation, cascading, detection range (FOV) etc. are carried out in LRSsoft, see chapter 9.4 "Parameter settings/Parameters tab" and chapter 9.7.
26 Technical description LRS Leuze electronic

5 Installation and mounting

Notice:
The following shows a light section sensor as an example. An overview of the available types may be found in chapter 15.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. Heed the required environmental conditions specified in the technical data.

Unpacking

Check the packaging for any damage. If damage is found, notify the post office or shipping agent as well as the supplier.
Check the delivery contents using your order and the delivery papers:
• Delivered quantity
• Device variant and model as indicated on the nameplate
• Laser warning signs
• Brief manual
The name plate provides information as to what light section sensor type your device is. For specific information, please refer to chapter 15.
Installation and mounting
Figure 5.1: Device name plate LRS
Save the original packaging for later storage or shipping.
If you have any questions concerning your shipment, please contact your supplier or your local Leuze electronic sales office.
Observe the local regulations regarding disposal of packaging material.
Leuze electronic Technical description LRS 27
TNT 35/7-24V
Installation and mounting
Dovetail fastening grooves
M4 Tapped holes

5.2 Mounting the LRS

The light section sensors can be mounted in different ways:
• By means of two M 4x6 screws on the back of the device.
• Using a BT 56 mounting device on the two fastening grooves.
• Using a BT 59 mounting device on the two fastening grooves.
Figure 5.2: Fastening options
Figure 5.3: Mounting example LRS
28 Technical description LRS Leuze electronic

5.2.1 BT 56 mounting device

Clamping jaws for mounting on the LRS
Clamp profile for mounting to round or oval pipes Ø16…20mm
A Rod holder, turnable by 360° B Rods Ø 16 … 20mm
All dimensions in mm
The BT 56 mounting device is available for mounting the LRS using the fastening grooves. It is designed for rod installation (Ø 16mm to 20mm). For ordering instructions, please refer to chapter "Type overview and accessories" on page 101.
Installation and mounting
Figure 5.4: BT 56 mounting device
Leuze electronic Technical description LRS 29
TNT 35/7-24V
Installation and mounting
Clamping jaws for mounting on the LRS
A Holder, turnable 360° B ITEM joint, angle adjustable ±90° C M8x16 screwable cylinder, M8 serrated
washer, M8 sliding block, connector for ITEM profile (2x)
All dimensions in mm

5.2.2 BT 59 mounting device

The BT 59 mounting device is available for mounting the LRS on ITEM profiles using the fastening grooves. For ordering instructions, please refer to chapter "Type overview and accessories" on page 101.
Figure 5.5: BT 59 mounting device
30 Technical description LRS Leuze electronic

5.3 Device arrangement

5.3.1 Selecting a mounting location

In order to select the right mounting location, several factors must be considered:
• The required resolution. This is a result of the distance and the resulting line length.
• The permissible cable lengths between the LRS and the host system depending on which interface is used.
• The display and control panel should be very visible and accessible.
When selecting a mounting location, pay further attention to:
• Maintaining the required environmental conditions (temperature, humidity).
• Possible soiling of the optics covers on transmitter and receiver by discharged liquids, abrasion from cartons or packaging residues.
• Lowest possible chance of damage to the LRS by mechanical collision or jammed parts.
• Possible extraneous light (no direct sunlight or sunlight reflected by the measurement object).
• The optimal perspective for detecting the relevant contours of objects, see chapter
3.2.1 "Occlusion".
Attention, laser radiation!
When mounting and aligning the LRS, avoid reflections of the laser beam off reflective surfaces!
Notice!
The prevention of ambient light due to shielding of the sensor for example, ensures stable and precise measurement values. Secondary reflections of the laser line on reflective objects must be avoided as these can result in faulty measurements. The best measurement results are obtained when:
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. Rotation along the Y-axis is not desirable.
The figure 5.6 illustrates the problem:
Leuze electronic Technical description LRS 31
TNT 35/7-24V
Installation and mounting
+X
Z
Figure 5.6: Alignment to the measuring plane
A rotation of the sensor about the y-axis distorts the entire coordinate system, which the measurement values relate to. The sensor measures along the solid line in the right picture, however the measuring plane is located on the dotted line, and a measurement towards the conveying belt shown in gray would result in a tilted plane.
When setting up an application it is therefore very important to ensure correct alignment and that the integrated alignment aid on the display is used.

5.4 Attach laser warning sign

Attention Laser!
Observe the safety notices in chapter 2.
+X
-X
-X
-Y
-Y
Z
It is essential that you attach the stick-on label (laser warning signs and laser beam exit symbol) supplied with the light section sensor to the light section sensor! If the signs would be concealed as a result of the mounting situation of the LRS, attach the signs in the vicinity of the LRS such that reading the signs cannot lead to looking into the laser beam! When installing the LRS in North America, also attach the stick-on label saying "Complies with 21 CFR 1040.10"

5.5 Cleaning

Clean the optics cover of the LRS with a soft cloth after mounting. Remove all packaging remains, e.g. carton fibers or styrofoam balls. In doing so, avoid leaving fingerprints on the optics cover of the LRS.
Attention!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
32 Technical description LRS Leuze electronic

6 Electrical connection

Notice:
The following shows a light section sensor as an example. An overview of the available types may be found in chapter 15.1
Notice: The following shows a light section sensor as an example. An overview of the available types may be found in chapter 15.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.
Notice!
The corresponding mating connectors and ready-made cables are available as accessories for all connections. For additional information, refer to chapter 15.
Figure 6.1: Location of the electrical connections
All the light section sensors are equipped with three M12 plugs / sockets which are A- and D-coded.
Electrical connection
Ready
X2
Tx+
1
2
Rx-
4
3
Tx-
X1
Act
GND
8
VIN
7
Trig
OutCas
X4
Rx+
X3
8
7
Figure 6.2: Connections of the LRS
The pin assignment of X1 and X2 is identical for all light section sensors; X3 and X4 differ depending on device type.
Leuze electronic Technical description LRS 33
TNT 35/7-24V
Electrical connection
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
LRS 36/6 Switching inputs / outputs Not used chapter 6.3.3 LRS 36/PB Not used PROFIBUS DP chapter 6.3.4
Table 6.1: Interface version of X3 and X4

6.1 Safety notices

Attention!
Do not open the light section sensor yourself under any circumstances! There is otherwise a risk of uncontrolled emission of laser radiation from the light section sensor. The housing of the LRS contains no parts that need to be adjusted or maintained by the user.
Before connecting the device please ensure that the supply voltage matches the value printed on the nameplate.
Connection of the device and cleaning must only be carried out by a qualified electrician.
If faults cannot be cleared, the LRS should be switched off from operation and protected against accidental use.
The LRS light section sensors are designed in accordance with safety class III for supply by PELV (protective extra-low voltage with reliable disconnection).
Notice!
Protection class IP 67 is achieved only if the connectors and caps are screwed into place! The connectors used must be equipped with O-ring seals. Therefore, preferably, please use the ready-made cables by Leuze electronic.
34 Technical description LRS Leuze electronic

6.2 Shielding and line lengths

The light section sensors LRS are equipped with modern electronics developed for industrial applications. In industrial environments, a number of sources of interference may affect the sensors. In the following, information is provided on EMC-compliant wiring of the sensors and of the other components in the switch cabinet and on the machine.
Observe the following maximum line lengths:
Connection Interface Max. line length Shielding
LRS – power supply unit X1 10 m required LRS – activation / cascading / trigger X1 10m required LRS – PC/Host X2 10m required LRS – switching inputs / outputs X3 10m required LRS – PROFIBUS DP X4 10m required
Table 6.2: Line lengths and shielding

Shielding the LRS:

1. Ground the LRS housing: Connect the housing of the LRS via the PE screw provided for this purpose (see figure 6.3, devices produced after April 2011) with the protective conductor on the machine star point. The cable should have an impedance as low as possible for high­frequency signals, i.e., be as short as possible and have a large cross-sectional area (grounding strip, …). If the LRS does not yet have a PE screw of its own, please use one of the M4 holes on the dovetail. Important: Place a lock washer underneath and check the penetration of the anodized coating of the LRS housing by measuring the electrical connection from PE star point to the connector sleeves without connected sensor cables so that other PE interrup­tions can be detected on the machine bed and profile rails as well.
2. Shield all connection cables to the LRS: Connect the shield to PE on both ends. On the LRS end, this is ensured if the LRS housing is connected to PE as described under 1. (shield fitted over the connector sleeves to the housing). In the switch cabinet, clamp the shield flat to PE. 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.
Electrical connection
TNT 35/7-24V
Leuze electronic Technical description LRS 35
Electrical connection
LRS Devices produced after April 2011 are equipped with an additional grounding terminal.
All LRS devices can also be connected to PE at the M4 threaded hole on the dovetail.
Attention!
Place lock washer underneath and check the penetration of the anodized coating!
5. Avoid leakage currents in the cable shield: Leakage currents arise from incorrectly implemented equipotential bonding. Therefore, carefully ground all parts of the machine. Notice: You can measure leakage currents with a clip-on ammeter.
6. Star-shaped cable connections: To avoid interference between various consumers, ensure that the devices are connected in a star shape. This will prevent cable loops.

General shielding information:

Avoid spurious emissions when using power components (frequency inverters, …). The technical descriptions of the power components provide the necessary specifications according to which the respective power component satisfies its CE conformity.
In practical work, the following measures have proven effective:
• Screw the mains filter, frequency inverter flat on the galvanized mounting plate.
• Mounting plate in the switch cabinet made of galvanized sheet steel, thickness ≥ 3mm.
• Keep cable between mains filter and inverter as short as possible and twist cables.
• Shield both ends of the motor cable.
• Ground the entire system well.
Carefully ground all parts of the machine and of the switch cabinet using copper strips, ground rails or grounding cables with large cross section.
Below, the EMC-compliant connection of the light section sensors LRS is described in practical use with images.

Connect the PE ground potential to the LRS light section sensors

Figure 6.3: Connecting the PE ground potential to the LRS
36 Technical description LRS Leuze electronic

Connecting the cable shield 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 shield in the switch cabinet

Connecting the cable shield to the PLC

Electrical connection
Figure 6.5: Connecting the cable shield to the PLC
Leuze electronic Technical description LRS 37
TNT 35/7-24V
Electrical connection
M12 plug
(A-coded)
Inputs Outputs

6.3 Connecting

6.3.1 Connection X1 - logic and power

Attention!
All cables must be shielded!
X1 (8-pin plug, A-coded)
X1
InAct
GND
OutReady
InTrig
Table 6.3: Pin assignment X1
Preferably, please use the ready-made cables "KB M12/8-…-BA", see chapter 15.2.2.
8
7
OutCas
Pin Name Remark
1 VIN +24V DC supply voltage 2 InAct Activation input 3 GND Ground
VIN
4 OutReady "Ready" output 5 InTrig Trigger input 6 OutCas Cascading output 7 Do not connect
8 Do not connect
X1-2/5
X1-3
10k
10k
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 14.
Activation input InAct
The activation input is used to switch the laser on and off via the process control. The sensor stops outputting data and does not respond to trigger commands or the trigger input. The equivalent circuit of the inputs at X1 is shown in figure 6.6.
Trigger input InTrig
The trigger input is used for synchronizing the measurement with the process and for synchronizing cascaded sensors. Detailed information on this topic can be found in chapter
4.2.3 and chapter 4.2.4. The internal equivalent circuit is shown in figure 6.6.
38 Technical description LRS Leuze electronic
Cascading output OutCas
M12 socket
(D-coded)
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 corresponds to the state of the green LED (see "LED status displays" on page 42).

6.3.2 Connection X2 - Ethernet

Attention!
All cables must be shielded!
The LRS makes either the Ethernet interface available as host interface.
X2
Tx+
1
3
Tx-
2
Rx+
Rx-
4
Electrical connection
X2 (4-pin socket, D-coded)
Pin Name Remark
1 Tx+ Transmit Data + 2 Rx+ Receive Data + 3 Tx- Transmit Data ­4 Rx- Receive Data -
Thread FE Functional earth (housing)
Table 6.4: Pin assignment X2
Preferably, please use the ready-made cables "KB ET-…-SA…", see chapter 15.2.3.
Ethernet cable assignment
X2 RJ 45
Tx+
1
Tx-
2
Rx+
3
Rx-
4
Figure 6.7: HOST / BUS IN cable assignments on RJ-45
Leuze electronic Technical description LRS 39
Tx+ (1) Tx- (2)
Rx+ (3)
Rx- (6)
TNT 35/7-24V
1
8
Electrical connection
M12 socket
(A-coded)
Notice for connecting the Ethernet interface!
Ensure adequate shielding. The entire connection cable must be shielded and earthed. The Rx+/Rx- and Tx+/Tx- wires must be stranded in pairs. Use CAT 5 cables for the connection.

6.3.3 Connection X3 - switching inputs/outputs (only LRS 36/6)

X3 (8-pin socket, A-coded)
X3
Out4
InSel 2
7
InSel 3
Out1
Table 6.5: Pin assignment X3
Switching outputs of connection X3
Each of Out1 to Out4 are a logic combination of analysis results of the individual AW's. This logic operation is defined in LRSsoft (see chapter 9.4 "Parameter settings/Parameters tab"). Up to 16 different logic combinations of the AW's and respective result mappings on Out1 to Out4 can be combined into inspection tasks.
Out2
8
InSel 1
Out3
GND
Pin Name Remark
1 Out4 Output detection result 4 2 Out3 Output detection result 3 3GND Ground 4 Out2 Output detection result 2 5 Out1 Output detection result 1 6 InSel3 Selection Inspection Task Bit 3 (MSB) 7 InSel2 Selection Inspection Task Bit 2
8 InSel1 Selection Inspection Task Bit 1 (LSB)
Switching inputs of connection X3
The 3 switching inputs InSel1-3 are used to select the inspection task 0-7. In this context, "000" stands for Inspection Task 0, "001" for Inspection Task 1, etc. The switching time between 2 inspection tasks is < 100ms.
Notice!
The Inspection Tasks 8-15 can be switched via PROFIBUS or Ethernet. The setting via Ethernet overwrites the inspection task set via input InSel1-3.
40 Technical description LRS Leuze electronic

6.3.4 Connection X4 - PROFIBUS DP (only LRS 36/PB)

M12 socket
(B-coded)
X4 (5-pin socket, B-coded)
X4
A 2
VP 1
Table 6.6: Pin assignment X3
Notice!
Connection X4 is assigned only at the LRS 36/PB.
The connection to the PROFIBUS DP is made via the 5-pole X4 M12-socket with an external Y plug adapter. Assignments correspond to the PROFIBUS standard. The Y plug adapter enables the replacement of the LRS 36/PB without interrupting the PROFIBUS cable.
The external Y plug adapter is also needed if the LRS 36/PB is the last network device. The external bus terminating resistor (termination) is then connected to this. The 5V-supply for the termination is connected to X4.
3
DGND
5
4
FE
B
Pin Name Remark
1 VP Supply voltage
2 A Receive/transmit data
3 DGND Data reference potential 4 B Receive/transmit data
5 FE Functional earth
Thread FE Functional earth (housing)
Electrical connection
+5V (termination)
RxD/TxD-N, green
RxD/TxD-P, red
Notice!
For the connection, we recommend our ready-made PROFIBUS cables (see chapter 15.2 "Accessories")
For the bus termination, we recommend our PROFIBUS terminating resistor (see chapter
15.2 "Accessories")
Leuze electronic Technical description LRS 41
TNT 35/7-24V
Display and control panel
OLED display 128 x 32 pixels
Key pad with 2 buttons
See "Control buttons" on page 43.
Device LEDs
green and yellow
See "LED status displays"
on page 42.
Laser beam

7 Display and control panel

7.1 Indicator and operating elements of the

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

7.1.1 LED status displays

LED State Display during measurement operation
Green Continuous light Sensor ready
Off Sensor not ready
Yellow Continuous light Ethernet connection established
Table 7.1: LED function indicator
42 Technical description LRS Leuze electronic
Flashing Ethernet data transmission active Off No Ethernet connection

7.1.2 Control buttons

waiting for PB
L450 M450 R450 T00 Q0000 fRun
T00 no PB fRun
Command Mode
The LRS is operated using the and  buttons, which are located next to the OLED display.

7.1.3 Displays

The display changes depending on the current operating mode. There are the following three display modes:
• Alignment aid and status display
•Command mode
• Menu display The menu display is accessed by pressing one of the two control buttons. Operation of the LRS via the menu is described in chapter 7.2.2.
With PROFIBUS devices, the bus state is first displayed after power-on (displayed for approx. 3s). If the PROFIBUS was detected, alignment aid and status are then displayed.
Alignment aid
As an alignment aid, the current measurement value at the left edge (Lxxx), in the middle (Mxxx) and at the right edge (Rxxx) of the detection range is displayed in the OLED display in units of millimeters. If no object is detected or if the distance is too small, distance value
Align the light section sensor by rotating it about the y-axis in such a way that the same value is indicated for L, M, R.
Status display
In the second line of the display, the selected inspection task (Txx), the state of the 4 switching outputs (Qxxxx) or, for PROFIBUS devices, Out1 Out4 of the input data byte uSensorInfo as well as the current sensor status (see chapter 4.2 "Operating the sensor") are displayed.
T12 means that Inspection Task 12 is currently active, for example. Value range: T00 to T15.
Q0100 means Out1=0, Out2=1, Out3=0, and Out4=0, for example. Value range: Q0000 to Q1111.
If, for PROFIBUS devices, no PROFIBUS is detected following power­on, no PB appears in the middle of the bottom line instead of Q0000.
The following options are available for the sensor status: fRUN means Free Running, Trig means triggered (see chapter 4.2.3 "Triggering - Free Running") and !ACK means that the sensor is deactivated (no laser line, see chapter 4.2.2 "Activation - Laser on/off").
Command mode
If the LRS is connected to a control, the control can put the LRS into a command mode in which it receives and executes commands (see chapter 10.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 Technical description LRS 43
Display and control panel

7.2 Menu description

7.2.1 Structure

Level 1 Level 2 Level 3 Explanation / Notes Default
Settings
Menu Exit
Table 7.2: Menu structure
Display
On
Display
On
Data Output
Ethernet
Data Output
Ethernet
Ethernet
Factory Settings
Ethernet
Factory Settings
Factory Settings
Inactive
Factory Settings
Inactive
E
E
E
E
Display
On
Display
Off
Display
Auto
Prescaler Value
001
IP Address
192.168.060.003
Net Mask Addr.
255.255.255.000
Port Num. local
9008
Port Num. Dest.
5634
Factory Settings
Inactive
Factory Settings
Execute
Always on with maximum brightness
Off; is switched back on after keyboard
actuation Display set to full brightness after keyboard actuation for approx. 1min., dimmed
thereafter
Attention: The value is permanently set to 1 and cannot be changed.
Here you can set the IP address of the LRS.
Here you can set the relevant subnet mask.
Here you can set the local port (at the LRS) for
Ethernet communication. Here you can set the destination port for
Ethernet communication (on the PC/process control). Notice: The values configured here are not applied immediately but only when the sensor is switched on the next time.
If you press  here, you can access the superordinate menu without resetting to
factory settings. If you press  here, you will reset the LRS
to factory settings (chapter 7.3).
X
X
44 Technical description LRS Leuze electronic
Display and control panel
Level 1 Level 2 Level 3 Explanation / Notes Default
Menu Exit
Settings
Table 7.2: Menu structure
Password Check
Inactive
Password Check
Inactive
Slave Address
126
Slave Address
126
Info
Display
E
E
E
E
Password Check
Inactive
Password Check
Activated
Slave Address
126
Part No.
50111325
Batch No.
0905A000012
Serial No.
020
Software
V01.10
Part No.
Locks access to the menu with the fixed password "165"
If you press  here, the password query will
not be activated.
If you press  here, the password query will
be activated.
Here, you can set the PROFIBUS address of the LRS (0 … 126). With address 126 (default), automatic address assignment by the commissioning master is supported.
The part number of the LRS is displayed here.
The production batch number of the LRS is
displayed here.
The three-digit batch serial number of the
LRS is displayed here.
The firmware version number of the LRS is
displayed here.
Notice! The complete information on the
product consists of Batch No. and Serial No.. If service is required, please
provide both numbers!
X
Notice!
If no button is pressed for three minutes, the LRS exits menu mode and switches to detection mode. The OLED display again displays the alignment aid and the sensor status display.
Notice!
After changing the PROFIBUS slave address, a power-on reset must be performed in order to permanently accept the address.
Leuze electronic Technical description LRS 45
TNT 35/7-24V
Display and control panel
Data Output
Ethernet
IP Address
IP Address
192.169.060.003
IP Address
1 92.168.060.003
IP Address
192.168.001.111
IP Address
192.168.001.111 IP Address
192.168.001.111
Display
On

7.2.2 Operation/navigation

In menu view, the OLED display has two lines. The currently active menu item is displayed with black text on a light-blue background. The and functions depending on the operating situation. These functions are represented via icons on the right edge of the display – i.e. to the immediate left of the buttons.
The following displays may appear:
Menu navigation
selects the next menu item (Ethernet)
switches to the submenu shown with inverted colors (Data Output)
selects the next menu item (IP Address)
returns to the next higher menu (). At the top menu level, the menu
can be exited here (Menu Exit). The number of bars at the left edge indicates the current menu level:
Selecting values or selection parameters for editing
selects the next menu item ( -> Net Mask Addr.)
selects edit mode for IP Address.
Editing value parameters
decrements the value of the currently selected digit (1).
selects the next digit to the right (9) for editing. After having clicked
through all the digits using right of the display. If an impermissible value was entered, the (new entry ) appears and no checkmark is offered for selection.
buttons both have different
a checkmark (5) appears at the bottom
symbol
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.
46 Technical description LRS Leuze electronic
appears.
6appears.
5appears.
 displays the next option for Display (Auto).
Display
Off
Display Off
Display Off
FactorySettings Execute
FactorySettings Execute
Really Reset Yes-Ret No-Dwn
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).
Notice
To ensure that values that were changed via the menu are also applied, you should disconnect 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 LRSsoft configuration software
As an example, the first of the methods mentioned above is described below:
When applying the supply voltage, press the  button to reset the configuration of the LRS to factory settings.
The display shown next to here appears.
button while connecting the supply voltage
Display and control panel
6appears.
5appears.
Leuze electronic Technical description LRS 47

Interrupting a reset

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

Executing a reset

Pressing the  button while the checkmark (5) is displayed causes the adjacent safety prompt to appear.
Pressing interrupts the reset process; reset cancelled appears in the display for approx. 2s. Afterward, the LRS returns to detection mode.
Pressing made previously are permanently lost.reset done appears in the display for approx. 2s; the LRS then returns to normal operation.
You can select the resetting to factory settings also via LRSsoft.
resets all parameters to the factory settings. All settings
In the Configuration menu select the entry Reset to Factory 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 LRS is in detection mode.
Notice
After a warmup time of 30 min., the light section sensor has reached the operating temperature required for an optimum measurement.

8.2 Establish connection to PC

The LRS is configured via a PC using the LRSsoft program before it is integrated into the process control.
In order to be able to establish an UDP communication with the PC, the IP address of your PC and the IP address of the LRS must lie in the same address range. The LRS has no built­in DHCP client, so that you need to set the address manually. This is done the easiest way via the PC.
Notice!
If you use a desktop firewall, please make certain that the PC can communicate with the LRS via the Ethernet interface by means of UDP on ports 9008 and 5634 (these ports are preset at the factory, but may have been changed by the user, see chapter 7.2 "Menu description"). Furthermore, the firewall must allow ICMP echo messages to pass through for the connection test (ping).
If the PC is usually connected to a network using DHCP address allocation, the easiest way to access the LRS is by applying an alternative configuration in the TCP/IP settings of the PC and connecting the LRS to the PC.
Check the network address of the LRS by pressing the  button during detection mode of the LRS twice in succession, then by pressing twice and followed by pressing the
button again.
This will take you to the Ethernet submenu and enable you to read the current settings of the LRS consecutively when pressing repeatedly.
Make a note of the values for IP-Address and Net Mask Addr..
The value in Net Mask Addr. specifies which digits of the IP address of the PC and LRS must match so that they can communicate with each other.
Address of the LRS Net mask Address of the PC
192.168.060.003 255.255.255.0 192.168.060.xxx
192.168.060.003 255.255.0.0 192.168.xxx.xxx
Table 8.1: Address allocation in the Ethernet
48 Technical description LRS Leuze electronic
Commissioning and configuration
Instead of xxx you can now allocate any numbers between 000 and 255 to your PC, but NOT THE SAME numbers as contained in the address of the LRS.
For example 192.168.060.110 (but not 192.168.060.003!). If LRS and PC have the same IP address, they cannot communicate with each other.

Setting an alternative IP address on the PC

Log into your PC as administrator.
Using Start->System control go to the Network connections (Windows XP) menu or
to the Network center and release center (Windows Vista) menu.
There, select LAN Connection and right-click to open the corresponding properties page.
Select Internet Protocol (TCP/IP) (scroll down if necessary) and click Properties.
In the Internet Protocol (TCP/IP) Properties window, select the Alternate Configuration tab.
Set the IP address of the PC in the address range of the LRS. Attention: do not use the same as for the LRS!
Set the subnet mask of the PC to the same value as on the LRS.
Close the settings dialog by confirming all windows with OK
Connect the interface X2 of the LRS directly to the LAN port of your PC.
KB ET-…-SA-RJ45 cable for the connection, see table 15.8
The PC first tries to establish a network connection via the automatic configuration. This takes a few seconds, after which the alternate configuration, which you just set, is activated. The PC can now communicate with the LRS.
Information about configuring with the LRSsoft can be found in chapter 9.
Use a
TNT 35/7-24V
Leuze electronic Technical description LRS 49
Commissioning and configuration

8.3 Commissioning

For the commissioning and integration of the sensor in the process control the following steps are necessary:
1. LRS configuration - see chapter 9.
2. Programming process control - see chapter 10 and chapter 11. or
3. Connect switching inputs and outputs accordingly - see chapter 6.3.
4. Adapt the IP configuration of the LRS such that it can communicate with the process control. The values corresponding to the following screenshot are preset in the LRS at the factory. If you would like to set different values, you must change the values via the display of the LRS in menu item Ethernet (see "Menu description" on page 44). You can test the changed values by entering them in the Configuration area in LRSsoft and then clicking the Check Connectivity button.
5. Connect the LRS to the process control. This can be performed for all LRS via the Ethernet interface or, depending on model, via the switching outputs or the PROFIBUS.
6. Establish connections for activation, triggering and cascading, if necessary.
Notice on connecting multiple light section sensors via Ethernet
If several sensors are to be activated, all sensors as well as the control must receive different IP addresses on the same subnet. For all sensors different ports must be configured in
the Sensor area as well as in the Client/PC area.
50 Technical description LRS Leuze electronic

9 LRSsoft 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

Notice!
If present, uninstall Matlab Runtime before beginning with the installation of the LXSsoft Suite.
The LXSsoft_Suite_Setup.exe installation program is located on the supplied CD.
Notice!
Copy this file from the CD to an appropriate folder on your hard drive. Administrator privileges are necessary for this purpose.
or faster Intel® processor > 1.5 GHz (Pentium 4, Celeron, Xeon)
®
Windows XP SP2/3 / Vista SP1
®
(Athlon 64, Opteron, Sempron)
LRSsoft configuration software
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 cannot deselect the first option, MATLAB Compiler Runtime, since this component is needed in all cases.
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 configuration in LRSsoft. 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 Technical description LRS 51
TNT 35/7-24V
LRSsoft configuration software
52 Technical description LRS Leuze electronic
LRSsoft 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 Technical description LRS 53
TNT 35/7-24V
LRSsoft 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.
54 Technical description LRS Leuze electronic
LRSsoft configuration software
It is essential that you retain the default folder in the window for the selection of the installation 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 Technical description LRS 55
TNT 35/7-24V
LRSsoft configuration software
The window for selecting the installation path for LPSsoft 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 for installation, upon completion of the LPSsoft installation, the same window then reappears for entering the installation path for LRSsoft.
Keep the default folder in this case as well and click on Next.
Upon completion of the installation process, the window shown above appears.
The installation routine added a new Leuze electronic program group in your Start menu that contains the installed programs LRSsoft / LPSsoft.
Click on Finish and then start the desired program from the Start menu.
56 Technical description LRS Leuze electronic

9.2.1 Possible error message

Depending on the system configuration the adjacent error message can appear at this point.
The cause of this error message is a bug in the MCR installation routine, which does not set the environment variable Path correctly in some systems.
That, however, can easily be corrected without reinstallation of the MCR.
Open the System properties window located in the System 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 LRSsoft by double-clicking on it.
Now the start screen of LRSsoft appears, as described in chapter 9.3.
LRSsoft configuration software
TNT 35/7-24V
Leuze electronic Technical description LRS 57
LRSsoft configuration software

9.3 Starting LRSsoft/Communication tab

Start LRSsoft via the respective entry in the Windows Start menu.
The following screen appears:
Figure 9.1: Initial screen LRSsoft
In the IP Configuration area, enter the settings for the LRS and click on Accept.
You had already determined this data in chapter 8.2.
Click on Check Connectivity to test the connection to the LRS.
If the following message appears, the Ethernet connection to the LRS is correctly configured: The connection attempt to sensor ... was successful.
Click on the button Connect to or disconnect from sensor:
As a result LRSsoft establishes a connection and displays the currently measured 2D profile. In the status line at the bottom left of the display you will now find Online highlighted in green instead of Offline highlighted in red.
Notice!
Once the LRSsoft has established a connection to the LRS, the laser beam flashes.
58 Technical description LRS Leuze electronic
LRSsoft configuration software

PROFIBUS settings (only LRS 36/PB)

For PROFIBUS devices, you can set the slave address and the baud rate in the PROFIBUS tab.
Figure 9.2: PROFIBUS settings
Automatic detection of the baud rate / automatic address assignment
The LRS 36/PB supports automatic detection of the baud rate and automatic address assignment via the PROFIBUS.
The address of the PROFIBUS participant can be set automatically by the commissioning tool of the PROFIBUS system (a class 2 PROFIBUS master). For this purpose, the slave address must be set to value 126 in the sensor (factory setting). This is performed by means of LRSsoft or via the display.
The commissioning master checks whether a slave has address 126 and then assigns this slave a slave address smaller than 126. This address is permanently stored in the participant. The changed address can then be queried (and, if necessary, changed again) via the display or LRSsoft.
The following baud rates can be set:
•Automatic •9.6kBaud
• 19.2kBaud • 45.45kBaud
• 93.75kBaud • 187.5kBaud
• 500kBaud • 1.5MBaud
•3MBaud •6MBaud
TNT 35/7-24V
Notice!
After changing the PROFIBUS slave address via the display or LRSsoft, a power-on reset must be performed in order to permanently accept the address.
Leuze electronic Technical description LRS 59
LRSsoft configuration software

9.4 Parameter settings/Parameters tab

Click on the Parameters tab to access the parameter settings:
Figure 9.3: LRSsoft parameter configuration
First go to the LRS Parameters panel and set the values required for operating the LRS. Then go to the Analysis Functions panel and define analysis windows and their logic combination for your inspection task. Finally, save these settings as an Inspection Task by clicking on Apply Settings or Transmit to Sensor.

9.4.1 LRS parameters area

Inspection Task Selection
In the Inspection Task Selection panel, you can select inspection tasks.
Notice!
By default, changeover of the inspection tasks via the switching inputs or the Profibus master (PLC) has priority over LRSsoft. In this field, the selection of the inspection task with LRSsoft is only possible if, under Global Parameters there is no tick in front of Enable External Inspection Task Selection. Otherwise, the inspection task can be selected only via the three inputs InSel1 to InSel3 or via software.
By removing the tick in the Enable External Inspection Task Selection check box, the inspection task cannot be changed via the inputs or the PROFIBUS while configuration is being performed. After configuring with LRSsoft and before transmitting the settings to the sensor ('Transmit to Sensor'), the 'Enable External Inspection Task Selection' check box must again be selected. Only then can inspection tasks be selected via the inputs or the PROFIBUS.
60 Technical description LRS Leuze electronic
LRSsoft configuration software
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 parameters are loaded and displayed. You can edit these parameters and save the edited parameters under the same name.
In the Name field, you can assign a meaningful name (max. 12 characters) to the inspection task selected above and save it by clicking on Accept.
By saving via the button Apply Settings, the currently displayed inspection task is temporarily stored in the sensor. When switched off, the data/settings are lost.
By saving via Configuration -> Transmit to Sensor menu command all inspection tasks created are transmitted to the sensor, where they are permanently stored.
Notice!
If an inspection task was changed, permanent storage in the sensor should be performed with Configuration -> Transmit to Sensor.
The common procedure for creating an d storing inspection tasks is described in chapter 9.7.
Operation Mode
In Operation Mode you can configure using Free Running that the LRS continuously detects and outputs measurement data (factory setting). With Input Triggered, the LRS captures measurement data only if a rising edge is present at the trigger input, a PROFIBUS trigger is pending 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 Input
Under Activation Input the Regard setting has the effect that the laser is switched on and off according to the level at the activation input or via PROFIBUS. Detailed information on this topic can be found in chapter 4.2.2.
When the Disregard setting has been selected, the laser always remains switched on, independent from the level at the activation input or the PROFIBUS activation (factory setting).
Cascading Output
Using Cascading Output you can activate the cascading output using Enable. 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 measurement 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.
Leuze electronic Technical description LRS 61
TNT 35/7-24V
LRSsoft configuration software
Field of View
Using Field of View you can restrict the detection range of the LRS. The same happens if you click on the square handles of the detection range framed in blue with the mouse and then pull.
Factory settings for Field of View:
Min X: -300; Max X: 300
Min Y: 190; Max Y: 810
By restricting to the necessary detection range, ambient light or undesired reflections can be suppressed.
Apply Settings
The Apply Settings button temporarily transmits the settings for the current inspection task to the sensor. When switched off, the data/settings are lost.
Notice!
If an inspection task was changed, permanent storage in the sensor should be performed with Configuration -> Transmit to Sensor.
62 Technical description LRS Leuze electronic

9.4.2 Analysis Functions area

Notice!
After changing the detection range by dragging the black frame with the mouse, click the button Accept Analysis Window Rectangle so that the new values are accepted. If you click somewhere else in the Analysis Window Definitions window, the values prior to changing the detection range by mouse are restored.
Define AW Definitions
After clicking the Define AW Definitions button, the following window appears:
Figure 9.4: Window "Analysis Window Definitions"
When clicking on the check box Active in one of the 16 lines AW01 to AW16, a black frame with handles appears in the display of the detection range on the left:
LRSsoft configuration software
Figure 9.5: Definition of analysis windows (AW)
Leuze electronic Technical description LRS 63
TNT 35/7-24V
LRSsoft configuration software
Using the mouse
Click and drag the handles of the analysis window using the mouse to change its size and position.
Notice!
The font of the Accept Analysis Window Rectangle button turns black after size and/ or position of the analysis window have been changed using the mouse. You have to click
the button in order to accept the new values.
Direct input
Alternatively, you can enter the desired position values directly into the Minimum/Maximum X/Z columns.
In the Current Hits column, LRSsoft displays the number of hit points that are detected in the analysis window.
Notice!
The current settings regarding detection range and analysis windows must first be transmitted to the sensor via Apply Settings. The column Current Hits then shows values.
In the Hits On column, you specify the number of hit points that must be detected for the evaluation result of the relevant AW to be "1", or for a green LED to be displayed in the column Current Status.
The LED remains green until the number of detected hit points is equal to or smaller than the value you set in the Hits Off column.
The entries in Hits On and Hits off thus let you configure a switching hysteresis to prevent an (unwanted) change of the switching state under admissible changes in the object position or other physical quantities.
In figure 9.5, a total of three analysis areas have been defined. The task is to detect objects of the same width but different heights, and the position of the objects in the detection range:
AW01 detects that at least 2 objects of the specified width are present
AW02 detects that at least 1 tall object is present
AW03 detects that one tall object is present to the right
AW04 detects that one low object is present to the left
By using a logic combination of the analysis results of these 4 AWs, you can configure the switching behavior of outputs Out1 to Out4 and the PROFIBUS process data in the Analysis Window Combination Tables panel.
64 Technical description LRS Leuze electronic
LRSsoft configuration software
Define AW Combinations
Click on the Define AW Combinations button and the following window appears:
Figure 9.6: "Analysis Window Combination Tables" window
Parameter in the Analysis Window Combination Tables window:
Parameter Description Value range
Out1 - Out4 Switching output 1-4 or with PROFIBUS:
Active Activation of the switching output On/Off Ana. Depth Analysis depth
Negation Negation of the result of the OR line On/Off
OR line Results of the &-columns. These results are combined via OR and yield the state of
&-column Logical AND combination of the results of the selected AWs
AW01 - AW16 Specifies whether the result of the AW is considered in the &-combination (+) or
state of the uSensorInfo sensor outputs (byte 2)
1)
are required for the switching output to toggle
the switching output according to the settings for Active, Anal. Depth and
Negation
whether it is considered in its negated form (-)
, i.e. number of the successive evaluations with identical result that
Table 9.1: Parameter settings for control of the switching outputs
1) Notice on analysis depth: By selecting a large value for the analysis depth, the LRS has a reliable switching behavior; the response time of the sensor increases correspondingly (example: analysis depth = 3
-> response time 3 x 10ms = 30 ms). Interfering signals of individual scans are suppressed. If an analysis depth of "1" (factory stetting beginning with firmware version 01.25) is selected, the response time is 10 ms.
Green = active = 1 / Red = not active = 0
1 … 255
Green = 1 / Red = 0
+/-
TNT 35/7-24V
In the window of figure 9.7, you specify logic combinations of the evaluation results of individual AWs:
For each output (Out1 to Out4), you first determine in the first &-column which AWs you want to combine via AND. The result of this combination is displayed the line OR above the respective column as 1 or 0. Where applicable, define further AND-combinations in the remaining &-columns.
You may thus define up to four different AND-combinations of individual outputs in the 4 columns per output.
The results of these 4 columns are automatically combined via OR.
The output thus toggles when one of the 4 AND-combinations results in a 1.
Leuze electronic Technical description LRS 65
LRSsoft configuration software
Example:
Figure 9.7: Definition of logic combinations of several AWs
In the example above, the AW definitions of figure 9.5 apply. This means that, with the setting for the switching outputs shown:
OUT1 is active (=1)
- if an object is present in AW01 (AW01+)
OR
- if an object is present in AW03 (AW03+).
OUT2 is not active (=0, because the Negation tick is set)
- if no object is present in AW01 (AW01-) AND if an object is present in AW02 (AW02+)
OR
- if an object is present in AW04 (AW04+).
OUT3 is active (=1)
- if an object is present in AW03 (AW03+) AND if an object is present in AW04 (AW04+).
OUT4 is active (=1)
- if an object is present in AW03 (AW03+)
As figure 9.7 shows, logic combinations can thus b e used to def ine various detection tasks.
The good/bad result of the logic column links is shown in color in line OR. In the example shown here, column 2 is green for OUT1 because an object is present in AW03.
Because the columns of OUT1 are linked with OR, OUT1 is active and displayed in green.
The analysis depth Ana. Depth is set to 10. This means that 10 identical evaluations must occur in sequence in order to cause the switching output to toggle.
AND
if no object is present in AW02 (AW02-)
AND
if no object is present in AW04 (AW04-)
66 Technical description LRS Leuze electronic

9.4.3 Single Shot Mode area

In Single Shot Mode, the sensor carries out an individual analysis only when you click on the Request Measurement button and displays the result in LRSsoft until Request Measurement is clicked again.

9.4.4 Global Parameters area

Under Global Parameters, you can use Enable External Task Selection to configure whether or not the inspection tasks 0-7 can be selected via the inputs InSel1­InSel3 or PROFIBUS.
Inspection tasks 0-15 can be selected via PROFIBUS.
Notice!
If Enable External Inspection Task Selection is ticked, the inspection task can only be selected via the inputs or PROFIBUS. In this case, the drop-down menu under Inspection Task Selection has no function.
LRSsoft configuration software
Leuze electronic Technical description LRS 67
TNT 35/7-24V
LRSsoft configuration software

9.5 Detection function/Visualization tab

Click the Visualization tab to display the chronological trend of the states of AWs and switching outputs or of the states of the uSensorInfo sensor outputs (byte 2) for the PROFIBUS device:
Figure 9.8: LRSsoft Visualization

9.5.1 Evaluating saved detection data

To evaluate a detection data set, you can record, store and reopen detection data as described in chapter 9.6.3. A stored detection data set can be opened with LRSsoft via the Recording -> Archive -> Open Record menu.
Notice!
After opening a detection data set, the current parameter setting of the LRS should be transmitted (see chapter 9.6.2) so that the current sensor configuration is displayed on Hits On and Hits Off.
In default mode, the detection data in the Visualization tab run through continuously. To stop this continuous display and to be able to examine individual data sets you must click on the arrow on the toolbar.
The sliders in the Replay Control area serve to evaluate them.
Spooling permits the fast shifting of the displayed section of 100 individual results across all data of the detection data set (which can easily contain several hundred individual results).
Here, the value in First Status shows the number of the measurement that is displayed at 0 and the value in Last Status the number of the measurement displayed at 100.
68 Technical description LRS Leuze electronic
LRSsoft configuration software
Use the Status Selection slider to specify which of the individual data sets displayed in the right window area is shown in the individual results of the AWs and switching outputs or the states of the uSensorInfo sensor outputs (byte 2) for the PROFIBUS device. The associated data set number is displayed under Profile No. The Show Plane option marks this individual data set with a solid black line.
Leuze electronic Technical description LRS 69
TNT 35/7-24V
LRSsoft 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 LRS is reconfigured via Inspection Tasks. A parameter file stored on a data carrier can only be used with LRSsoft 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 LRSsoft is opened.
In addition, the File menu offers the possibility to export the following views format to data carriers (available formats: *.png, *.jpg, *.bmp, *.tif):
Profile View: the current view as 2D view
AW States View: chronological trend of the state of all 16 AW's
Output States View: chronological trend of the states of the 4 switching outputs or of the states of the uSensorInfo sensor outputs (byte 2) for the PROFIBUS device

9.6.2 Transmitting parameter settings/Configuration menu

The Configuration menu is used to exchange parameter data with the connected LRS.
Load from Sensor loads all parameter settings for all defined inspection tasks from the LRS and displays them in the software.
Transmit to Sensor permanently stores all parameter settings of all defined inspection tasks from the configuration software in the LRS.
Reset to factory settings resets the LRS to factory settings.
70 Technical description LRS Leuze electronic
LRSsoft configuration software
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

9.6.3 Managing detection data/Measure Records menu

Detection data are defined here as the results of individual analysis windows and the states of the switching outputs.
The Recording menu is used for managing detection data in *.csv format on the PC.
New... creates a new detection data set. Following a file name query dialog, another dialog appears. It requires you to enter how many single scans (2D profiles) are to be saved in the file.
Archive -> Open Record opens a saved detection data set.
Archive -> Close record closes the opened detection data set.

9.6.4 Zoom and Pan/toolbar

The Zoom in / Zoom out and Pan buttons of the toolbar allow individual areas of the view to be enlarged for better visual evaluation:
Figure 9.9: Zoom function
After activating the magnifying glass, each click on the view enlarges the displayed section. The enlarged section can then be shifted with the activated hand function to display the area of interest.
Notice!
The click-and-drag method for zooming known from other programs is not possible here.
Leuze electronic Technical description LRS 71
TNT 35/7-24V
LRSsoft configuration software

9.7 Definition of inspection tasks

Typical procedure

1. Start LRSsoft and connect the sensor: Click on the Connect to or disconnect from sensor button: .
2. Fetch the configuration from the sensor via Load from Sensor or load it from the data carrier with Open.
3. Remove the tick at Enable Selection Inputs.
4. Use Inspection Task Selection to select the inspection task to be modified.
5. Display and, if necessary, enlarge 2D view of the detection range in the Parameters tab.
6. Define the required AWs via mouse or keyboard in the Analysis Windows Definitions window (Define AW Definitions button). Confirm each AW that has been set with Apply Settings:
- Within an AW, the pixels of the current 2D profile are determined by the LRS (Current Hits).
- For each AW, the user then configures an upper and a lower limit for the hits (Hits On/Off) and thus a switching hysteresis.
- The result is an ok or not ok status, signaled via a green or red status display.
Notice!
The number of Current Hits does not necessarily correspond with the object size, since the number of hits is dependent on distance z. At near distance to the sensor (e.g., 300 mm) an object expanded in the X direction has nearly twice as many hits as it does at a far distance (e.g, 600mm). If the object distance is the same, the number of hits remains nearly constant.
7. Generate switching information for the outputs Out1 to Out 4 or PROFIBUS process data in the Analysis Window Combination Tables window (button Define AW Combinations):
- Columnar AND combination of the results (inverted, if applicable) of individual AWs
- OR combination in line OR of up to four AND results
- If applicable, inversion of the result of the OR combination (tick in Negation)
- Input for the evaluation depth
8. Check the switching behavior in the Analysis Window Combination Tables window.
9. Assign a name (Name) to the inspection task and confirm with Accept.
10. Temporarily save the inspection task with Apply Settings.
11. Where applicable: define further inspection tasks with steps 5.-9.
12. Transfer the configuration including all inspection tasks with Transmit to Sensor.
13. Where applicable: save the configuration to data carrier with Save As…
14. Set the tick at Enable Selection Inputs again.
72 Technical description LRS Leuze electronic
Integrating the LRS in the process control (Ethernet)

10 Integrating the LRS in the process control (Ethernet)

10.1 General information

The LRS communicates with the process control via UDP/IP using the protocol described in chapter 10.2. The protocol operates in two different modes:
• Detection mode
•Command mode
In detection mode, the LRS transmits the evaluation telegram. This is continuously transmitted in "Free Running" operation; in triggered operation, it is transmitted only once per trigger.
In command mode the LRS reacts to commands from the control. The commands available are described in chapter 10.3.
Notice!
If you use a firewall, please make certain that the control can communicate with the LRS via the Ethernet interface by means of UDP on ports 9008 and 5634 (these ports are preset at the factory, but may have been changed by the user, see chapter 7.2 "Menu description"). Furthermore, the firewall must allow ICMP echo messages to pass through for the connection test (ping).
The integration of PROFIBUS device model LRS 36/PB in the process control via PROFIBUS is described in chapter 11 "Integration of the LRS 36/PB in the PROFIBUS" on page 83.

10.2 Protocol structure: Ethernet

Notice!
The sequence in which the individual bytes are saved varies depending on the operating system. The commands in chapter 10.3 and the protocol description are represented in "big­endian" format, i.e., the high-byte first followed by the low-byte (0x… hexadecimal).
Windows PCs (and many controls, such as the Siemens S7), however, store data in the "little­endian" format, i.e. the low byte first followed by the high byte.
If, in your process environment, the LRS does not respond to commands from the control even though communication with LRSsoft functions properly, check whether the problem lies with the byte order.
Example: for command 43 4E (Connect to Sensor), a Windows PC must transmit 4E 43 in order for it to be understood by the LRS. In the transaction number of the answer from LRS, there is then also 4E 43. The LRS sends data as "little endian", i.e., first the low byte and then the high byte.
The possible values of individual bytes and their meaning are described below.
Leuze electronic Technical description LRS 73
TNT 35/7-24V
Integrating the LRS in the process control (Ethernet)

Protocol structure

The protocol consists of the Header (30 bytes) followed by the user data (0 … 53 data words @ 2 bytes). The protocol is used both in command mode when transmitting commands and when acknowledging sensor commands as well as in detection mode.

Header

Startseq. 1
Startseq. 2
Fill character
Command No.
Fill character
Packet no.
Fill character
Transaction no.
value range:
Length 2 bytes,
0x0000 … 0xFFFF
Status
value range:
Length 2 bytes,
0x0000 … 0xFEFF
0xFFFF 0xFFFF 0x0000 0x0059 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0003
0xFFFF
0xFFFF
fixed value:
Length 4 bytes,
0x0000
fixed value:
Length 2 bytes,
Length 2 bytes,
Length 2 bytes,
possible values:
see chapter 10.3
0x0000
fixed value:
Length 2 bytes,
fixed value:
value range:
Length 2 bytes,
0x0000 … 0xFFFF
0x0000
Length of the header: 30 bytes
1) For sensor models with encoder input, these 4 bytes contain the encoder value. With the LRS, this value is always 0x0000 0000.
Encoder H
value range:
0x0000 0000
Length 4 bytes,
Encoder L
1)
0xFFFF FFFF
Fill character
0x0000
fixed value:
Length 2 bytes,
Scan no.
value range:
Length 2 bytes,
0x0000 … 0xFFFF
Type
Number of user data words
0x0010
fixed value:
Length 2 bytes,
0x0003 / 0x0178
0x0000 / 0x0001 / 0x0002 /
Length 2 bytes, possible values:

User data

The user data have a variable length of 0, 1, 2, 3 or 53 data words (0, 2, 4, 6 or 106 bytes).
For commands to the sensor, the user data – if any are passed – contain additional parameters.

10.2.1 Command number

The command number specifies both the command from the control to the sensor as well as the command from the sensor to the control (see chapter 10.3).
In detection mode, the sensor always sends an evaluation telegram with command number 0x5354.

10.2.2 Packet number

The packet number serves internal maintenance purposes of the manufacturer.
74 Technical description LRS Leuze electronic

10.2.3 Transaction number

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

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 - - - - Detection mode
--------0010----Menu mode
- - - - - - - - 0 1 0 0 - - - - Command mode
--------1000----Error mode
- - - - - - - 0 - - - - - - - - Sensor deactivated via activation input
-------1 --------Sensor activated via activation input
- - - - - - 0 - - - - - - - - No warning
------1 --------Warning, temporary sensor malfunction
- - 0 - - - - - - - - - - - - - No error
--1 -------------Error, permanent sensor malfunction
The LSB of the high byte is always set to 1 as long as the parameter Activation Input has been set to Disregard (Always on) in LRSsoft.
If parameter Activation Input is set to Regard, the state of the bit corresponds to the state of the signal of an activation source (input, Ethernet activation).
Integrating the LRS in the process control (Ethernet)
Notice!
Independent of the mode that is currently active, the sensor switches to menu mode if a button if the display is touched and then neither responds to commands nor does it transmit measurement data. Menu mode automatically ends after 3 minutes if no buttons are pressed. Alternatively, the user can end menu mode with the Exit menu item.

10.2.5 Encoder High / Low

The encoder counter is implemented in sensor models with encoder input. All other sensors permanently display 0x00000000.
The 4 bytes in Encoder High and Encoder Low specify the encoder counter value for light section sensors with encoder interface. The maximum value is 0xFFFF FFFF. Beyond that an overflow to 0x0000 0000 occurs.
Leuze electronic Technical description LRS 75
TNT 35/7-24V
Integrating the LRS in the process control (Ethernet)

10.2.6 Scan number

The 2 bytes of the scan number indicate the number of single measurements in chronological order. After each measured profile, this number increases by 1. The maximum value is 0xFFFF. Beyond that an overflow to 0x0000 occurs.

10.2.7 Type

Specifies how the detection data are to be interpreted. The fixed default value is 0x0010.

10.2.8 Number of user data

Indicates the number of user data transferred. The fixed default value in detection mode is 0x0059.

10.2.9 Evaluation telegram

In detection mode for the LRS, the evaluation telegram is transmitted with command number 0x5354. After the header are 53 user data words with the following structure:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - N4 N3 N2 N1 Number of the current inspection task
33…34 AW16AW15AW14AW13AW12AW11AW10AW9AW8AW7AW6AW5AW4AW3AW2AW1Results of the individual analysis windows
35…36 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 1
37…38 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 2
39…40 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 3
41…42 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 4
43…44 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 5
45…46 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 6
47…48 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 7
49…50 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 8
51…52 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 9
53…54 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 10
55…56 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 11
57…58 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 12
59…60 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 13
61…62 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 14
63…64 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 15
65…66 - - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of hit points (Current Hits) in analysis window 16
67…68 O4C4O4C3O4C2O4C1O3C4O3C3O3C2O3C1O2C4O2C3O2C2O2C1O1C4O1C3O1C2O1C1Column results of the AND operatio n for the outputs. See "Analysis Functions
69…70 - - - - - - - - - - - - O4 O3 O2 O1 Switching state of the outputs Out1 - Out4. See "Analysis Functions area"
71…72 - - - - - - - - T8 T7 T6 T5 T4 T3 T2 T1 Current counter state for the analysis depth of Output 1
area" on page 63. Example: O1/C3 = Output 1, Column 3
on page 63.
76 Technical description LRS Leuze electronic
Integrating the LRS in the process control (Ethernet)
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
73…74 - - - - - - - - T8 T 7 T6 T5 T4 T3 T2 T1 Current counter sta te for the analysis depth of Output 2
75…76 - - - - - - - - T8 T7 T6 T5 T4 T3 T2 T1 Current counter sta te for the analysis depth of Output 3
77…78 - - - - - - - - T8 T 7 T6 T5 T4 T3 T2 T1 Current counter sta te for the analysis depth of Output 4
79…80 - - - - - - - - - - - - - I3 I2 I1 State of the three inputs for the selection of the inspection task
81…136 - - - - - - - - - - - - - - - - The remaining user data are us ed for internal maintenance purposes of the
manufacturer.

10.3 Ethernet commands

Notice!
The sequence in which the individual bytes of the commands and of the protocol must be transmitted in order to be processed by the LRS corresponds to the "little-endian" byte sequence. The response of the LRS also corresponds to the "little-endian" standard. For further information, see the notice in chapter 10.2.
In detection mode, however, only Connect to Sensor, Disconnect from Sensor, Enter Command mode and Ethernet Trigger can be processed (is acknowledged with 0x4141).
All other commands are acknowledged with 414E; the command is not processed, however.
Considerably more commands can be processed in command mode. The Enter Command Mode command, on the other hand, makes no sense here.

10.3.1 Elementary commands

Notice!
The elementary commands for connection- and operating mode control transmit no user data words.
Leuze electronic Technical description LRS 77
TNT 35/7-24V
Integrating the LRS in the process control (Ethernet)
Using the Connect to sensor and Disconnect from sensor commands, a connection between control and sensor is established or terminated. The communication with the LRS is carried out via the ports previously configured in LRSsoft.
Command from control to LRS Answer from LRS to control
Command No. Meaning Command No. Meaning
0x434E Connect to Sensor 0x4141 Connection established, the sensor
0x414E The transmitted command was not
0x4443 Disconnect from Sensor 0x4141 Connection terminated.
0x414E The transmitted command was not
Table 10.1: Connection commands
After switching on the sensor and establishing a connection, the sensor is initially in detection mode and continuously transmits evaluation data (Free Running) or waits for a trigger signal for transmitting evaluation data.
To switch between detection mode and command mode the Enter Command Mode and Exit Command Mode commands are available.
Command from control to LRS Answer from LRS to control
Command No. Meaning Command No. Meaning
0x3132 Enter Command Mode 0x4141 Sensor in command mode.
0x3133 Exit Command Mode 0x4141 Sensor back to detection mode.
Table 10.2: 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.
0x414E The transmitted command was not
0x414E The transmitted command was not
is permanently connected. The sensor status (bytes 17 and 18) can be used to detect whether the sensor is connected.
processed (possible sensor status: sensor is already connected or in menu mode, detailed info see chap­ter 10.2.4 "Status").
processed (possible sensor status: sensor was already disconnected or in menu mode, detailed info see chapter 10.2.4 "Status").
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.
78 Technical description LRS Leuze electronic
Integrating the LRS in the process control (Ethernet)

10.3.2 Commands in command mode

The following commands are available in command mode:
Command from control to LRS Answer from LRS to control
Command No.
0x0001 Set Laser Gate
0x0049 Get Actual Inspection Task
0x004B Set Actual Inspection Task
Table 10.3: Sensor control commands
Meaning
Laser activation and deactivation (toggle), see chapter 10.3.3
Get number of the current inspection task
Set number of the current inspection task, see chapter
10.3.3
1) 0x4141 = Acknowledge: Execution of the command is confirmed
2) 0x414E = Not Acknowledge or Error: Command has not been executed
User
Command
data words
No.
Meaning
0x4141 Command carried out 0 0x414E Command was not executed.
1
0x004A In the user data area the task
0
number is transferred. (0 = Task0 - 15 = Task15)
1)
0x4141
2
0x414E
The inspection task has been set
2)
The transmitted command was not processed.
User data words
0
1
0
0
Leuze electronic Technical description LRS 79
TNT 35/7-24V
Integrating the LRS in the process control (Ethernet)

10.3.3 User data in command mode (command parameters)

Set Laser Gate
For sensor control command 0x0001, one word of user data is transmitted to the sensor:
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 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 LRS.
Get Actual Inspection Task
The LRS responds to sensor control command 0x0049 with 0x004A and one word of user data:
Byte MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32 - - - - - - - - - - - - N4 N3 N2 N1 Number of the configured inspection task
(0 = Task0 … 15 = Task 15)
SF
SF = SaveFlag
(0 = Task0 … 15 = Task 15)
80 Technical description LRS Leuze electronic
Integrating the LRS in the process control (Ethernet)

10.3.4 Commands in detection mode

The following commands are available in detection mode:
Command from control to LRS Answer from LRS to control
Command No.
0x4554 Ethernet Trigger
Table 10.4: Commands in detection mode
Meaning
With the Ethernet Trigger command, a single measure­ment is triggered in detection mode, similar to triggering via the trigger input. Prerequisite is that the LRS be configured with LRSsoft under Operation Mode to Input
Tri gg er ed .
A connection to the sensor must exist before the Ethernet Trigger command can be used.
User
Command
data
No.
words
0x5354 The evaluation telegram is sent
0x414E The transmitted command was
0
Meaning
as an answer (status and switching information), see chapter 10.2.9
not processed.
User data words
1
packet
@ 53
0
Leuze electronic Technical description LRS 81
TNT 35/7-24V
Integrating the LRS in the process control (Ethernet)

10.4 Working with the protocol (Ethernet)

Notice!
The representation is in "big endian" or C-notation with prefix "0x". For further information, see the notice in chapter 10.2.

Command without user data

Connect to Sensor
PC to LRS:
Startseq. 1
Startseq. 2
Fill character
Command
no.
Fill character
Packet no.
Fill character
Trans. No.
Trans. No.
Status
Status
0xFFFF 0xFFFF 0x0000 0x434E 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
LRS to PC (command executed):
Startseq. 1
Startseq. 2
Fill character
Command
no.
Fill character
Packet no.
0xFFFF 0xFFFF 0x0000 0x4141 0x0000 0x0000 0x0000 0x434E 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
Fill character

Command with user data

Set Actual Inspection Task (LRS in command mode, activate Task 15 and do not store in volatile memory)
PC to LRS:
Encoder H
Encoder H
Encoder L
Encoder L
Fill character
Scan no.
Fill character
Scan no.
Type
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
LRS to PC (command executed):
Startseq. 1
Startseq. 2
Fill character
Command
no.
Fill character
Packet no.
Fill character
Trans. No.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
0xFFFF 0xFFFF 0x0000 0x4141 0x0000 0x0000 0x0000 0x004B 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
No. of data
82 Technical description LRS Leuze electronic
User data
Integration of the LRS 36/PB in the PROFIBUS

11 Integration of the LRS 36/PB in the PROFIBUS

11.1 General information

The LRS 36/PB is designed as a PROFIBUS DP/DPV1 compatible slave. The input/output functionality of the sensor is defined by the corresponding GSD file. The baud rate of the data to be transmitted is max. 6MBit/s under production conditions.
For operation, the GSD file is to be appropriately modified.
The LRS 36/PB supports automatic detection of the baud rate

Characteristics of LRS 36/PB

• Ethernet and PROFIBUS can be used simultaneously in detection mode as fully­fledged interfaces.
• If the sensor is in menu mode, the PROFIBUS is active. Queries from the control are not processed and the process data are frozen (indicated by the constant scan number).
• If the sensor is in command mode, the PROFIBUS is active. Queries from the control are not processed and the process data are frozen (indicated by the constant scan number).
• If the sensor is simultaneously operated with LRSsoft and PROFIBUS, the PROFIBUS is active. Queries from the control are processed with a delay; the process data are also updated with a delay (indicated by the slowly increasing scan numbers). The update occurs every 200ms.
• The input signals via Ethernet, PROFIBUS and signal lines have equal priority. The first incoming signal is executed.
• The sensor is configured via the LRSsoft configuration software.
Compared to device model LRS 36/6 with switching outputs, the PROFIBUS model has the following additional functions:
• Output of the status of 16 analysis windows
• Output of hits (current hits) in up to 16 analysis windows
• Result of logic combinations
• Transmission of scan number and sensor status
• Selection of up to 16 inspection tasks
• Activation and trigger via PROFIBUS
The restriction on the selection of maximum 8 inspection tasks via the switching inputs for the LRS 36/6 does not exist for the LRS 36/PB. Up to 16 different inspection tasks can be activated by the control.
Leuze electronic Technical description LRS 83
TNT 35/7-24V
Integration of the LRS 36/PB in the PROFIBUS

11.2 PROFIBUS address assignment

The various possibilities for setting the slave address are described in the following.Automatic address assignment via the PROFIBUS (slave address 126) is preset.

Automatic address assignment

The LRS 36/PB supports automatic detection of the baud rate and automatic address assignment via the PROFIBUS.
The address of the PROFIBUS participant can be set automatically by the commissioning tool of the PROFIBUS system (a class 2 PROFIBUS master). For this purpose, the slave address must be set to value 126 in the sensor (factory setting).
The commissioning master checks whether a slave has address 126 and then assigns this slave a node address smaller than 126. This address is permanently stored in the participant. The changed address can then be queried (and, if necessary, changed again) via the display or LRSsoft.

Address assignment with LRSsoft

The PROFIBUS slave address can be set via LRSsoft. This setting can be stored on the PC together with the other sensor settings.
Figure 11.1: PROFIBUS address assignment with LRSsoft

Address assignment with key pad and display

Setting the address with the key pad and display allows the sensor to be integrated in a PROFIBUS system while in the field with no additional tools. See "Slave Address" on page 45. The set address can also be queried by the user with no additional tools.
Notice!
After changing the PROFIBUS slave address via LRSsoft or with the display/key pad, a power-on reset must be performed in order to permanently accept the address.
84 Technical description LRS Leuze electronic
Integration of the LRS 36/PB in the PROFIBUS

11.3 General information about the GSD file

If the LRS is operated in a PROFIBUS network, configuration can be performed exclusively via the LRSsoft configuration software. The functionality of the inputs/outputs of the light section sensor to the control is defined via modules. Using a user-specific configuration tool, the respective required modules are integrated and configured according to the measurement application during PLC programming.
During operation of the light section sensor on the PROFIBUS, the functionality of the inputs/ outputs is assigned default values. If these values are not changed by the user, the device operates with the default settings set by Leuze electronic on delivery. Please refer to the following module descriptions for the default settings of the device.
Notice!
At least one module from the GSD file must be activated in the configuration tool of the control, usually module M1 or M2.
Notice!
Some controls make available a so-called "universal module". This module must not be activated for the LRS36/PB.
Attention!
The device makes available a PROFIBUS interface and an Ethernet interface. Both interfaces can be operated in parallel.
Notice!
For test purposes, parameters can be changed on a LRS 36/PB operated on PROFIBUS. At this time, object detection is not possible on PROFIBUS.
Notice!
All input and output modules described in this documentation are described from the perspective of the control: Described inputs (I) are inputs in the control. Described outputs (O) are outputs in the control. Described parameters (P) are parameters of the GSD file in the control.
Notice!
The current version of the GSD file LEUZE401.GSD for the LRS 36/PB can be found on the Leuze website at Download -> detect -> Measuring sensors.
Leuze electronic Technical description LRS 85
TNT 35/7-24V
Integration of the LRS 36/PB in the PROFIBUS

11.4 Overview of the GSD files

The LRS 36/PB has one module slot. Select the corresponding module from the GSD to set the process data of the LRS 36/PB that are to be transmitted . Several modules are available for selection. Beginning with the simplest input module M1, additional inputs are included with the subsequent modules. All available output data are already contained in module M1. The modules with higher numbers the modules with the lower numbers (example: M2 contains M1 and the extensions of M2).
Notice!
As the module number increases, so too does the number of user data bytes that are to be transmitted. The maximum detection rate of 100Hz can only be ensured up to module M3.
Therefore, only modules which contain the data actually required should be selected, i.e. the smallest possible module number should be selected.
Notice!
All input and output modules described in this documentation are described from the perspective of the control: Described inputs (I) are inputs in the control. Described outputs (O) are outputs in the control. Described parameters (P) are parameters of the GSD file in the control.

Ouptut data (from viewing position of control)

Position
Name Bits in byte Va lue
(bytes)
0 uTrigger Trig_7 Trig_6 Trig_5 Trig_4 Trig_3 Trig_2 Trig_1 Trig_0 0 … 255 Triggering via PROFIBUS (in the case of changes)
1 uActivation - - - - - - - Act_On 0…1 Activation (=1) or deactivation (=0) of the sensor
2 uInspTask - - - IT_b3 IT_b2 IT_b1 IT_b0 0 … 15 Inspection task of PROFIBUS master and save flag (B7)
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
range
Meaning
Table 11.1: PROFIBUS - Overview of output data (from viewing position of control)
86 Technical description LRS Leuze electronic
Integration of the LRS 36/PB in the PROFIBUS

Input data (from viewing position of control)

GSE
Posi-
Module
tion
(bytes)
M1
4 byte
M2
6 byte
M3
16 byte
M4
24 bytes
M5
38 bytes
0 wScanNum (HighByte) SN_b15 SN_b14 SN_b13 SN_b12 SN_b11 SN_b10 SN_b9 SN_b8 0 … 255 Scan number (Highbyte)
1 wScanNum (LowByte) SN_b7 SN_b6 SN_b5 SN_b4 SN_b3 SN_b2 SN_b1 SN_b0 0 … 255 Scan number (Lowbyte)
2 uSensorInfo Out4 Out3 Out2 Out1 IT_b3 IT_b2 IT_b1 IT_b0 0 … 255 Sensor info (Insp. Task No., outputs)
3 uSensorState ErrM Cmd Menu Meas ErrF WarnF active connect 0 … 255 sensor state
4 wResultAWs (HighByte) AW16 AW15 AW14 AW13 AW 12 AW11 AW10 AW9 0 … 255 State of AWs (Highbyte)
5 wResultAWs (LowByte) AW8 AW7 AW6 AW5 AW4 AW3 AW2 AW1 0 … 255 State of AWs (Lowbyte)
6wActObjPtsAW1 (HighByte)-------OP_b801Current number of hit points
7 wActObjPtsAW1 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
8 wActObjPtsAW2 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
9 wActObjPtsAW2 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
10wActObjPtsAW3 (HighByte)-------OP_b801Current number of hit points
11 wActObjPtsAW3 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
12 wActObjPtsAW4 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
13 wActObjPtsAW4 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
14wActObjPtsAW5 (HighByte)-------OP_b801Current number of hit points
15 wActObjPtsAW5 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
16 wActObjPtsAW6 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
17 wActObjPtsAW6 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
18wActObjPtsAW7 (HighByte)-------OP_b801Current number of hit points
19 wActObjPtsAW7 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
20 wActObjPtsAW8 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
21 wActObjPtsAW8 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
22wActObjPtsAW9 (HighByte)-------OP_b801Current number of hit points
23 wActObjPtsAW9 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
24 wActObjPtsAW10 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
25 wActObjPtsAW10 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
26wActObjPtsAW11 (HighByte)-------OP_b801Current number of hit points
27 wActObjPtsAW11 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
28 wActObjPtsAW12 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
29 wActObjPtsAW12 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
30wActObjPtsAW13 (HighByte)-------OP_b801Current number of hit points
31 wActObjPtsAW13 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
32 wActObjPtsAW14 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
33 wActObjPtsAW14 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
34wActObjPtsAW15 (HighByte)-------OP_b801Current number of hit points
35 wActObjPtsAW15 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
36 wActObjPtsAW16 (HighByte) - - - - - - - OP_b8 0…1 Current number of hit points
37 wActObjPtsAW16 (LowByte) OP_b7 OP_b6 OP_b5 OP_b4 OP_b3 OP_b2 OP_b1 OP_b0 0 … 255
Table 11.2: PROFIBUS - Overview of input data (from viewing position of control)
Name Bits in byte Value
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
range
(Current Hits) in analysis window 1
(Current Hits) in analysis window 2
(Current Hits) in analysis window 3
(Current Hits) in analysis window 4
(Current Hits) in analysis window 5
(Current Hits) in analysis window 6
(Current Hits) in analysis window 7
(Current Hits) in analysis window 8
(Current Hits) in analysis window 9
(Current Hits) in analysis window 10
(Current Hits) in analysis window 11
(Current Hits) in analysis window 12
(Current Hits) in analysis window 13
(Current Hits) in analysis window 14
(Current Hits) in analysis window 15
(Current Hits) in analysis window 16
Meaning
TNT 35/7-24V
Leuze electronic Technical description LRS 87
Integration of the LRS 36/PB in the PROFIBUS

11.5 Output data description

PROFIBUS trigger

So that a measurement can be triggered on each PROFIBUS cycle, the PROFIBUS trigger of the LRS responds to a change of master output byte uTrigger. The control only needs to increment the trigger value in order to initiate a new measurement.
The maximum trigger frequency is 100Hz. If triggering occurs during a measurement, the trigger signal is ignored, as is the case in the Free Running operating mode (shown on display: fRun).

Activation - Sensor activation

Alternatively, activation can be switched on in detection mode via activation input InAct (pin 2 on X1) or master output uActivation =1.
Notice!
With the Disregard parameter setting in LRSsoft, the sensor is always activated; input InAct and activation via PROFIBUS are ignored.

Inspection Tasks - Selection of inspection tasks

With master output uInspTask (bits IT_b3 … IT_b0 in output data byte 2), inspection tasks 0 … 15 can be selected. The changeover occurs in cyclical IO operation and lasts approx. 70ms. During the changeover, the PROFIBUS IO data are frozen and the internal reconfiguration occurs. This is indicated by the scan number, which does not increase.
After changing the inspection task, the PROFIBUS IO data of the sensor are again updated. Value uSensorInfo in the input data then indicates the inspection task set in the sensor and the scan number again increases with each new measurement.
Attention!
While configuring the LRS with LRSsoft via Ethernet, global parameter Enable External Inspection Task Selection should be switched off so that the inspection task is not
automatically changed by the control during configuration.
After configuring, the check box for this parameter must be selected again before the configuration is transmitted to the sensor by means of Transmit Configuration To Sensor.
Otherwise, inspection tasks can no longer be selected via PROFIBUS!
88 Technical description LRS Leuze electronic

11.6 Input data description

Several modules are available for selection. Beginning with the simplest input module M1, additional inputs are included with the subsequent modules. All available output data are already contained in module M1. The modules with higher numbers also contain the modules with the lower numbers (example: M2 contains M1 and the extensions of M2).

11.6.1 Module M1

Module M1 provides the minimum required PROFIBUS data
The maximum detection rate of 100Hz is ensured if this module is set.
Scan number
The scan number is made available as PROFIBUS master input. This is a 16-bit value (bytes wScanNum, HighByte and LowByte).
The scan number is increased by 1 on each measurement. In FreeRunning mode, the scan number also increases even if no sensor is explicitly activated. In triggered mode, the scan number is increased on each (successful) trigger.
If the inspection task is changed, the PROFIBUS IO data of the sensor are frozen and the scan number does not change.
Notice!
It is recommended that the scan number be monitored in the application in order to determine whether the data are actually new.
Sensor info
Byte uSensorInfo contains states of the internal (virtual) switching outputs of the sensor Out4 Out1 in the high-nibble (bit 7 … 4) and the inspection task set in the sensor IT_b3 IT_b0 in the low-nibble (bit 3 … 0).
Integration of the LRS 36/PB in the PROFIBUS
Bit Designation Meaning
7 Out4 State of the (virtual) switching output 4: 0 = not active, 1 = active 6 Out3 State of the (virtual) switching output 3: 0 = not active, 1 = active 5 Out2 State of the (virtual) switching output 2: 0 = not active, 1 = active 4 Out1 State of the (virtual) switching output 1: 0 = not active, 1 = active 3 IT_b3 2 IT_b2 1 IT_b1 0 IT_b0
Number of the currently set inspection task. Value range 0 … 15
Table 11.3: Input data byte uSensorInfo
Leuze electronic Technical description LRS 89
TNT 35/7-24V
Integration of the LRS 36/PB in the PROFIBUS
Sensor state
Sensor status byte uSensorState contains the following information:
Bit Designation Meaning
7 ErrM Error mode, permanent sensor malfunction. 6 Cmd Command mode: the sensor is in command mode. The queries from the control are not processed
5 Menu Menu mode: the sensor is operated by the user via the display/key pad. The queries from the control
4 Meas Detection mode: the sensor is in detection mode.
3 ErrF Error, permanent sensor malfunction. 2 WarnF Warning, temporary sensor malfunction. 1 Active Sensor activated. 0 Connect Sensor connected via Ethernet.
Table 11.4: Input data byte uSensorState

11.6.2 Module M2

The maximum detection rate of 100Hz is ensured if this module is set.
Notice!
Module M2 contains the input data from module M1. Only the additional input data are described in this section.
Evaluation results of the analysis window
The binary evaluation results of the 16 analysis windows (Analysis Windows) AW1 … AW16 (see chapter 9.4.2 "Analysis Functions area") are provided as PROFIBUS master input. This is a 16-bit value (bytes wResultAWs HighByte and wResultAWs LowByte).
and the measurement data are frozen (indicated by the constant scan number).
are not processed and the measurement data are frozen (indicated by the constant scan number).
This is the normal operating state in which the maximum detection rate is attained.
Byte Bit Designation Meaning
7 AW16 Evaluation result on analysis window 16: 1 = On; 0 = Off 6 AW15 Evaluation result on analysis window 15: 1 = On; 0 = Off 5 AW14 Evaluation result on analysis window 14: 1 = On; 0 = Off 4 AW13 Evaluation result on analysis window 13: 1 = On; 0 = Off 3 AW12 Evaluation result on analysis window 12: 1 = On; 0 = Off 2 AW11 Evaluation result on analysis window 11: 1 = On; 0 = Off 1 AW10 Evaluation result on analysis window 10: 1 = On; 0 = Off
wResultAWs (high byte)
0 AW9 Evaluation result on analysis window 9: 1 = On; 0 = Off 7 AW8 Evaluation result on analysis window 8: 1 = On; 0 = Off 6 AW7 Evaluation result on analysis window 7: 1 = On; 0 = Off 5 AW6 Evaluation result on analysis window 6: 1 = On; 0 = Off 4 AW5 Evaluation result on analysis window 5: 1 = On; 0 = Off 3 AW4 Evaluation result on analysis window 4: 1 = On; 0 = Off 2 AW3 Evaluation result on analysis window 3: 1 = On; 0 = Off 1 AW2 Evaluation result on analysis window 2: 1 = On; 0 = Off
wResultAWs (low byte)
0 AW1 Evaluation result on analysis window 1: 1 = On; 0 = Off
Table 11.5: Input data byte wResultAWs (high and low byte)
90 Technical description LRS Leuze electronic
The PLC thereby obtains direct access to the evaluation results of all AWs and can include these in logic combinations of its own.
Notice!
The restriction for the logic combinations in the LRS 36/6 to 4 switching outputs can thereby be circumvented and the control can define further switching outputs itself via logic combinations of its own.

11.6.3 Module M3

The maximum detection rate of 100Hz is ensured if this module is set.
Notice!
Module M3 contains the input data from module M2. Only the additional input data are described in this section.
Number of hit points (Current Hits) in analysis window 1
This 16-bit value (bytes wActObjPtsAW1, HighByte and LowByte) specifies the number of detected object points (Current Hits) in analysis window 1 (AW1). The PLC can thereby make its own evaluation within the analysis window without taking into account the input and output thresholds (HitsOn/HitsOff) configured in the sensor (see chapter 9.4.2 "Analysis Functions area").
Number of hit points (Current Hits) in analysis window 2
Integration of the LRS 36/PB in the PROFIBUS
:::: ::
Number of hit points (Current Hits) in analysis window 5
See description under "Number of hit points (Current Hits) in analysis window 1"
Notice!
By evaluating the number of hit points (Current Hits) in an analysis window, a qualitative determination of the object size/expansion in the X direction at a constant distance can be realized.

11.6.4 Module M4

If this module is set, the maximum detection rate is reduced to less than 100 Hz, depending on bus load.
Notice!
Module M4 contains the input data from module M3. Only the additional input data are described in this section.
Leuze electronic Technical description LRS 91
TNT 35/7-24V
Integration of the LRS 36/PB in the PROFIBUS
Number of hit points (Current Hits) in analysis window 6
:::: ::
Number of hit points (Current Hits) in analysis window 9
See description under Number of hit points (Current Hit s) in an al ys is wi nd ow 1 in chapter
11.6.3
Notice!
By evaluating the number of hit points (Current Hits) in an analysis window, a qualitative determination of the object size/expansion in the X direction at a constant distance can be realized.

11.6.5 Module M5

If this module is set, the maximum detection rate is reduced to less than 100 Hz, depending on bus load.
Notice!
Module M5 contains the input data from module M4. Only the additional input data are described in this section.
Number of hit points (Current Hits) in analysis window 10
:::: ::
Number of hit points (Current Hits) in analysis window 16
See description under Number of hit points (Current Hit s) in an al ys is wi nd ow 1 in chapter
11.6.3
Notice!
By evaluating the number of hit points (Current Hits) in an analysis window, a qualitative determination of the object size/expansion in the X direction at a constant distance can be realized.
92 Technical description LRS Leuze electronic

12 Diagnostics and troubleshooting

12.1 General causes of errors

Error Possible error cause Measures
Control receives no measurement data
Object contours not detected
Sensor does not respond to commands
No laser line Sensor not activated Activate sensor via PIN 2 on X1 or via PROFIBUS.
Table 12.1: General causes of errors
Ethernet connection interrupted Control not connected to sensor Occlusion See "Occlusion" on page 14. Soiling of the optics covers Ambient light Prevent ambient light, shield sensor, see "Selecting a
Reflections Avoid reflections.
Unsuitable exposure setting
Object not in measurement 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
Sensor not activated Activate sensor via PIN 2 on X1 or via PROFIBUS.
Laser was deactivated in command mode with the "Set Laser Gate" command Sensor in trigger mode Activate single measurement by means of Ethernet
Diagnostics and troubleshooting
Check connection with LRSsoft. See "Commissioning" on page 50. Command Connect to sensor.
Clean optics covers, see "Cleaning" on page 96.
mounting location" on page 31. Limit detection range with LPSsoft, see "Field of View" on page 62.
Limit detection range with LPSsoft, see "Field of View" on page 62. Adapt exposure duration to the reflective properties of the objects to be detected. See "Light Exposure" on page 61. Visual assessment with LRSsoft, reduce working distance/position of the sensor to the object. See "LRS parameters area" on page 60. Configure detection range with LRSsoft. See "Field of View" on page 62. Change inspection task with LRSsoft or use Ethernet command Set Actual Inspection Task. See "Set Actual Inspection Task" on page 80. Exit menu view on OLED display. Connect sensor to control. Switch sensor to command mode if necessary.
sensor to control.
Switch off activation input. See "Activation Input" on page 61.
Switch on laser. See "Set Laser Gate" on page 80.
trigger or via PIN 5 on X1 or via PROFIBUS.
TNT 35/7-24V
Leuze electronic Technical description LRS 93
Diagnostics and troubleshooting
Error Possible error cause Measures
Sensor does not respond to trigger
Sensor cannot be deactivated via the activation input
Table 12.1: General causes of errors
Sensor in command mode Exit command mode with the Exit Command
Triggering too fast Reduce trigger rate. The shortest possible interval
Activation Input set to Disregard

12.2 Interface error

Error Possible error cause Measures
No connection Yellow LED not illuminated No connection Yellow LED not illuminated
Table 12.2: Interface error
Wiring error Check Ethernet cable.
DHCP activated in network, no fixed or alternate network address assigned Incorrect IP address/ subnet mask set on LRS
Incorrect port assigned to LRS / control
Firewall blocks ports Switch off firewall temporarily and repeat connection
Mode command.
between two successive trigger signals is 10 ms.See "Triggering - Free Running" on page 20. Use LRSsoft to configure the activation input to "Regard". See "Activation Input" on page 61.
Assign alternate IP address, see "Establish connection to PC" on page 48.
Check IP address/subnet mask, IP addresses of LRS and control must be different, subnet mask however must be the same, see table 8.1 "Address a llocation in the Ethernet" on page 48. Using ping command check whether the sensor responds. If so, check port assignment to LRS and control. The set ports must match.
test.
94 Technical description LRS Leuze electronic
Diagnostics and troubleshooting
Notice!
Please use chapter 12 as a master copy should servicing be required.
Please cross the items in the "Measures" column that you have already examined, fill out the following address field, and fax the pages together with your service contract to the fax number listed below or send the information via e-mail.
Customer data (please complete)
Device type:
Serial number:
Firmware version:
Configuration software version:
Display on OLED display:
Company:
Contact partner / department:
E-mail address:
Phone (direct):
Fax:
Street / No:
ZIP code/City:
Country:
Have the following information ready for the service department:
- File: LRSsoft.log (located in the installation directory of LRSsoft)
- Configuration file *.lrs, if necessary screenshots, figures, etc.
Leuze Service fax number:
+49 7021 573 - 199
Leuze Service e-mail for the LOS product unit:
service.erkennen@leuze.de
Leuze electronic Technical description LRS 95
TNT 35/7-24V
Maintenance

13 Maintenance

13.1 General maintenance information

Usually, the light section sensor does not require any maintenance by the operator.

Cleaning

In the event of dust buildup, clean the LRS with a soft cloth; use a cleaning agent (commercially available glass cleaner) if necessary.
Notice!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the . Use of improper cleaning agents can damage the optical window.

13.2 Repairs, servicing

Repairs to the device must only be carried out by the manufacturer.
Contact your Leuze distributor or service organization should repairs be required. The addresses can be found on the inside of the cover and on the back.
Notice!
When sending light section sensors to Leuze electronic for repair, please provide an accurate description of the error.

13.3 Disassembling, packing, disposing

Repacking

For later reuse, the device is to be packed so that it is protected.
Notice!
Electrical scrap is a special waste product! Observe the locally applicable regulations regarding disposal of the product.
96 Technical description LRS Leuze electronic

14 Specifications

14.1 General specifications

Specifications
Optical data
Detection range
1)
200 … 800mm (z direction) Light source laser Wavelength 658nm (visible red light) Max. output power < 8 mW Pulse duration 3ms Laser line 600x3mm at 800mm
Object detection
Minimum object size in x direction Minimum object size in z direction
2)
2)
2…3mm
2…6mm
Timing
Response time 10ms (configurable) Delay before start-up approx. 1.5 s
Electrical data
Operating voltage U Residual ripple 15% of U
3)
B
18 … 30VDC (incl. residual ripple)
B
Open-circuit current ≤ 200 mA Ethernet interface UDP Switching outputs 1 (ready) / 100mA / push-pull on X1
1 (cascading) / 100mA / push-pull on X1
4 / 100mA / push-pull 4) on X3
4) 5)
(only LRS 36/6)
Inputs 1 (trigger) on X1
1 (activation) on X1
3 (inspection task selection) on X3
(only LRS 36/6) Signal voltage high/low ≥ (U
-2V)/2V
B
PROFIBUS (only LRS 36/PB)
Interface type 1x RS 485 on X4 (only LRS 36/PB) Protocols PROFIBUS DP/DPV1 slave Baud rate 9.6kBaud … 6stMBaud
Indicators
Green LED continuous light ready
off no voltage
Yellow LED continuous light Ethernet connection available
flashing Ethernet data transmission active
off no Ethernet connection available
4)
4)
TNT 35/7-24V
Leuze electronic Technical description LRS 97
Specifications
Mechanical data
Housing aluminum frame with plastic cover Optics cover glass Weight 620g Connection type M12 connector
Environmental data
Ambient temp. (operation/storage) Protective circuit VDE safety class III, protective extra-low voltage Protection class IP 67 Laser class 2M (according to EN 60825-1 and
Standards applied IEC/EN 60947-5-2, UL 508
1) Luminosity coefficient 6% ... 90 %, entire detection range, at 20°C after 30minutes warmup
2) Minimum value, depends on measurement distance and object, requires testing under
3) For UL applications: for use in class 2 circuits according to NEC only
4) The push-pull switching outputs must not be connected in parallel
5) Number of detection fields: up to 16 with the option of logic combination
6) 1=transient protection, 2=polarity reversal protection, 3=short circuit protection for all
-30°C … +50°C/-30°C … +70°C
6)
1, 2, 3
21 CFR 1040.10 with Laser Notice No. 50)
time, medium range U
application conditions
Number of inspection tasks: up to 16 (8 of these can be activated via inputs)
outputs, requires external protective circuit for inductive loads
B
98 Technical description LRS Leuze electronic
Loading...