Shielding the LRS:35
General shielding information:36
Connect the PE ground potential to the LRS light section sensors36
Connecting the cable shield in the switch cabinet37
Connecting the cable shield to the PLC37
Number of hit points (Current Hits) in analysis window 191
Number of hit points (Current Hits) in analysis window 291
Number of hit points (Current Hits) in analysis window 591
Number of hit points (Current Hits) in analysis window 692
Number of hit points (Current Hits) in analysis window 992
Number of hit points (Current Hits) in analysis window 1092
Number of hit points (Current Hits) in analysis window 1692
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.2Declaration 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 electronicTechnical description LRS9
TNT 35/7-24V
Safety notices
2Safety notices
2.1General 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.2Safety 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.3Approved 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
10Technical description LRSLeuze electronic
2.4Working 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.
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!
12Technical description LRSLeuze electronic
3Operating 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.1Generation 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 electronicTechnical description LRS13
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.2Limits of light section sensors
3.2.1Occlusion
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
14Technical description LRSLeuze 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 "Cascading" 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 electronicTechnical description LRS15
Operating principle
Object distance in Z direction [mm]
Typical minimum
object size [mm]
3.2.2Minimum 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
16Technical description LRSLeuze electronic
4Device 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.1Overview of light section sensors
4.1.1Mechanical design
Figure 4.1:Mechanical design of Leuze light section sensors
Device description
4.1.2General 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
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
18Technical description LRSLeuze electronic
4.2Operating 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.1Connection 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.2Activation - 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 electronicTechnical description LRS19
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.3Triggering - 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).
20Technical description LRSLeuze 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.4Cascading
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 electronicTechnical description LRS21
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.3Detection 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.1Inspection 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.2Analysis 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.
22Technical description LRSLeuze 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 electronicTechnical description LRS23
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.3Definition 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 AW2AW3
AW5
O4
O1O2O3
+X
Z
-X
Figure 4.6:Principle of object detection - areas with laser occlusion are shown in orange
24Technical description LRSLeuze electronic
4.3.4Application 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
AW1AW2
AW3
+X
Z
-X
Figure 4.7:Zero check of cases
Leuze electronicTechnical description LRS25
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.
AW1AW2
AW3AW4AW5
AW6AW7AW8
+X
Z
-X
Figure 4.8:Single or multiple track presence/absence detection on transport systems
4.3.5Creation 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.
26Technical description LRSLeuze electronic
5Installation 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.1Storage, 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 electronicTechnical description LRS27
TNT 35/7-24V
Installation and mounting
Dovetail fastening grooves
M4 Tapped holes
5.2Mounting 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
28Technical description LRSLeuze electronic
5.2.1BT 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 electronicTechnical description LRS29
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.2BT 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
30Technical description LRSLeuze electronic
5.3Device arrangement
5.3.1Selecting 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.2Aligning 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 electronicTechnical description LRS31
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.4Attach 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.5Cleaning
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.
32Technical description LRSLeuze electronic
6Electrical 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 electronicTechnical description LRS33
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:
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.
34Technical description LRSLeuze electronic
6.2Shielding 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.
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 highfrequency 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 interruptions 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 electronicTechnical description LRS35
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
36Technical description LRSLeuze 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 electronicTechnical description LRS37
TNT 35/7-24V
Electrical connection
M12 plug
(A-coded)
InputsOutputs
6.3Connecting
6.3.1Connection 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
PinNameRemark
1VIN+24V DC supply voltage
2InActActivation input
3GNDGround
VIN
4OutReady"Ready" output
5InTrigTrigger input
6OutCasCascading output
7Do not connect
8Do 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.
38Technical description LRSLeuze 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.2Connection 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)
PinNameRemark
1Tx+Transmit Data +
2Rx+Receive Data +
3Tx-Transmit Data 4Rx-Receive Data -
ThreadFEFunctional 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
X2RJ 45
Tx+
1
Tx-
2
Rx+
3
Rx-
4
Figure 6.7:HOST / BUS IN cable assignments on RJ-45
Leuze electronicTechnical description LRS39
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.
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
PinNameRemark
1Out4Output detection result 4
2Out3Output detection result 3
3GNDGround
4Out2Output detection result 2
5Out1Output detection result 1
6InSel3Selection Inspection Task Bit 3 (MSB)
7InSel2Selection Inspection Task Bit 2
8InSel1Selection 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.
40Technical description LRSLeuze electronic
6.3.4Connection 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
PinNameRemark
1VPSupply voltage
2AReceive/transmit data
3DGNDData reference potential
4BReceive/transmit data
5FEFunctional earth
ThreadFEFunctional 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 electronicTechnical description LRS41
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
7Display and control panel
7.1Indicator 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.1LED status displays
LEDStateDisplay during measurement operation
GreenContinuous lightSensor ready
OffSensor not ready
YellowContinuous lightEthernet connection established
Table 7.1:LED function indicator
42Technical description LRSLeuze electronic
FlashingEthernet data transmission active
OffNo Ethernet connection
7.1.2Control 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.3Displays
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 poweron, 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 electronicTechnical description LRS43
Display and control panel
7.2Menu description
7.2.1Structure
Level 1Level 2Level 3Explanation / NotesDefault
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
44Technical description LRSLeuze electronic
Display and control panel
Level 1Level 2Level 3Explanation / NotesDefault
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 electronicTechnical description LRS45
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.2Operation/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.
46Technical description LRSLeuze 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.3Reset 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 electronicTechnical description LRS47
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
8Commissioning and configuration
8.1Switching 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.2Establish 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 builtin 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 LRSNet maskAddress of the PC
192.168.060.003255.255.255.0192.168.060.xxx
192.168.060.003255.255.0.0192.168.xxx.xxx
Table 8.1:Address allocation in the Ethernet
48Technical description LRSLeuze 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 electronicTechnical description LRS49
Commissioning and configuration
8.3Commissioning
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.
50Technical description LRSLeuze electronic
9LRSsoft configuration software
9.1System 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.2Installation
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.
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 electronicTechnical description LRS51
TNT 35/7-24V
LRSsoft configuration software
52Technical description LRSLeuze 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 electronicTechnical description LRS53
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.
54Technical description LRSLeuze 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 electronicTechnical description LRS55
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.
56Technical description LRSLeuze electronic
9.2.1Possible 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 electronicTechnical description LRS57
LRSsoft configuration software
9.3Starting 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 connectionattempt to sensor ... was successful.
Click on the button Connect to or disconnect fromsensor:
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.
58Technical description LRSLeuze 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 electronicTechnical description LRS59
LRSsoft configuration software
9.4Parameter 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.1LRS 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 EnableExternal 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.
60Technical description LRSLeuze 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 inspectiontasks 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 electronicTechnical description LRS61
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.
62Technical description LRSLeuze electronic
9.4.2Analysis 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 electronicTechnical description LRS63
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.
64Technical description LRSLeuze electronic
LRSsoft configuration software
Define AW Combinations
Click on the Define AW Combinations button and the following window appears:
Parameter in the Analysis Window Combination Tables window:
ParameterDescriptionValue range
Out1 - Out4Switching output 1-4 or with PROFIBUS:
ActiveActivation of the switching outputOn/Off
Ana. DepthAnalysis depth
NegationNegation of the result of the OR lineOn/Off
OR lineResults of the &-columns. These results are combined via OR and yield the state of
&-columnLogical AND combination of the results of the selected AWs
AW01 - AW16Specifies 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 electronicTechnical description LRS65
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-)
66Technical description LRSLeuze electronic
9.4.3Single 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 RequestMeasurement is clicked again.
9.4.4Global 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 InSel1InSel3 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 electronicTechnical description LRS67
TNT 35/7-24V
LRSsoft configuration software
9.5Detection 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.1Evaluating 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 HitsOn 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.
68Technical description LRSLeuze 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 electronicTechnical description LRS69
TNT 35/7-24V
LRSsoft configuration software
9.6Menu commands
9.6.1Saving 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.2Transmitting 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.
70Technical description LRSLeuze 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
PanReset plots to initial
settings
9.6.3Managing 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.4Zoom 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 electronicTechnical description LRS71
TNT 35/7-24V
LRSsoft configuration software
9.7Definition 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 WindowsDefinitions 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.
72Technical description LRSLeuze electronic
Integrating the LRS in the process control (Ethernet)
10Integrating the LRS in the process control (Ethernet)
10.1General 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.2Protocol 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 "bigendian" 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 "littleendian" 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 electronicTechnical description LRS73
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.
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 electronicTechnical description LRS75
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:
ByteMSB High-Byte LSBMSB Low-Byte LSBMeaning of the bits
31…32- - - - - - - - - - - - N4 N3 N2 N1 Number of the current inspection task
33…34AW16AW15AW14AW13AW12AW11AW10AW9AW8AW7AW6AW5AW4AW3AW2AW1Results 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…68O4C4O4C3O4C2O4C1O3C4O3C3O3C2O3C1O2C4O2C3O2C2O2C1O1C4O1C3O1C2O1C1Column 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
Integrating the LRS in the process control (Ethernet)
ByteMSB High-Byte LSBMSB Low-Byte LSBMeaning 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.3Ethernet 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 CommandMode 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 electronicTechnical description LRS77
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 LRSAnswer from LRS to control
Command No. MeaningCommand No. Meaning
0x434EConnect to Sensor0x4141Connection established, the sensor
0x414EThe transmitted command was not
0x4443Disconnect from Sensor0x4141Connection terminated.
0x414EThe 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 LRSAnswer from LRS to control
Command No. MeaningCommand No. Meaning
0x3132Enter Command Mode0x4141Sensor in command mode.
0x3133Exit Command Mode0x4141Sensor 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.
0x414EThe transmitted command was not
0x414EThe 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 chapter 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.
78Technical description LRSLeuze 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 LRSAnswer from LRS to control
Command
No.
0x0001Set Laser Gate
0x0049Get Actual Inspection Task
0x004BSet 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
0x4141Command carried out0
0x414ECommand was not executed.
1
0x004AIn 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 electronicTechnical description LRS79
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:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
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:
ByteMSB 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:
ByteMSB 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)
80Technical description LRSLeuze 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 LRSAnswer from LRS to control
Command
No.
0x4554Ethernet Trigger
Table 10.4:Commands in detection mode
Meaning
With the Ethernet Trigger
command, a single measurement 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
0x5354The evaluation telegram is sent
0x414EThe 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 electronicTechnical description LRS81
TNT 35/7-24V
Integrating the LRS in the process control (Ethernet)
10.4Working 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.
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 fullyfledged 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 electronicTechnical description LRS83
TNT 35/7-24V
Integration of the LRS 36/PB in the PROFIBUS
11.2PROFIBUS 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.
84Technical description LRSLeuze electronic
Integration of the LRS 36/PB in the PROFIBUS
11.3General 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 electronicTechnical description LRS85
TNT 35/7-24V
Integration of the LRS 36/PB in the PROFIBUS
11.4Overview 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
NameBits in byteVa lue
(bytes)
0uTrigger 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)
1uActivation-------Act_On 0…1 Activation (=1) or deactivation (=0) of the sensor
2uInspTask---IT_b3 IT_b2 IT_b1 IT_b0 0 … 15 Inspection task of PROFIBUS master and save flag (B7)
Bit7 Bit6Bit5 Bit4 Bit3Bit2 Bit1 Bit0
range
Meaning
Table 11.1:PROFIBUS - Overview of output data (from viewing position of control)
Table 11.2:PROFIBUS - Overview of input data (from viewing position of control)
NameBits in byteValue
Bit7 Bit6Bit5 Bit4Bit3 Bit2Bit1 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 electronicTechnical description LRS87
Integration of the LRS 36/PB in the PROFIBUS
11.5Output 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!
88Technical description LRSLeuze electronic
11.6Input 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
BitDesignationMeaning
7Out4State of the (virtual) switching output 4: 0 = not active, 1 = active
6Out3State of the (virtual) switching output 3: 0 = not active, 1 = active
5Out2State of the (virtual) switching output 2: 0 = not active, 1 = active
4Out1State of the (virtual) switching output 1: 0 = not active, 1 = active
3IT_b3
2IT_b2
1IT_b1
0IT_b0
Number of the currently set inspection task. Value range 0 … 15
Table 11.3:Input data byte uSensorInfo
Leuze electronicTechnical description LRS89
TNT 35/7-24V
Integration of the LRS 36/PB in the PROFIBUS
Sensor state
Sensor status byte uSensorState contains the following information:
BitDesignationMeaning
7ErrMError mode, permanent sensor malfunction.
6CmdCommand mode: the sensor is in command mode. The queries from the control are not processed
5MenuMenu mode: the sensor is operated by the user via the display/key pad. The queries from the control
4MeasDetection mode: the sensor is in detection mode.
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.
ByteBitDesignationMeaning
7AW16Evaluation result on analysis window 16: 1 = On; 0 = Off
6AW15Evaluation result on analysis window 15: 1 = On; 0 = Off
5AW14Evaluation result on analysis window 14: 1 = On; 0 = Off
4AW13Evaluation result on analysis window 13: 1 = On; 0 = Off
3AW12Evaluation result on analysis window 12: 1 = On; 0 = Off
2AW11Evaluation result on analysis window 11: 1 = On; 0 = Off
1AW10Evaluation result on analysis window 10: 1 = On; 0 = Off
wResultAWs (high byte)
0AW9Evaluation result on analysis window 9: 1 = On; 0 = Off
7AW8Evaluation result on analysis window 8: 1 = On; 0 = Off
6AW7Evaluation result on analysis window 7: 1 = On; 0 = Off
5AW6Evaluation result on analysis window 6: 1 = On; 0 = Off
4AW5Evaluation result on analysis window 5: 1 = On; 0 = Off
3AW4Evaluation result on analysis window 4: 1 = On; 0 = Off
2AW3Evaluation result on analysis window 3: 1 = On; 0 = Off
1AW2Evaluation result on analysis window 2: 1 = On; 0 = Off
wResultAWs (low byte)
0AW1Evaluation result on analysis window 1: 1 = On; 0 = Off
Table 11.5:Input data byte wResultAWs (high and low byte)
90Technical description LRSLeuze 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 electronicTechnical description LRS91
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.
92Technical description LRSLeuze electronic
12Diagnostics and troubleshooting
12.1General causes of errors
ErrorPossible error causeMeasures
Control receives no
measurement data
Object contours not
detected
Sensor does not respond to
commands
No laser lineSensor not activatedActivate sensor via PIN 2 on X1 or via PROFIBUS.
Table 12.1:General causes of errors
Ethernet connection
interrupted
Control not connected to
sensor
OcclusionSee "Occlusion" on page 14.
Soiling of the
optics covers
Ambient lightPrevent ambient light, shield sensor, see "Selecting a
ReflectionsAvoid 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 connectedCheck settings of the Ethernet interface. Connect
Sensor not activatedActivate sensor via PIN 2 on X1 or via PROFIBUS.
Laser was deactivated in
command mode with the
"Set Laser Gate"
command
Sensor in trigger modeActivate 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 electronicTechnical description LRS93
Diagnostics and troubleshooting
ErrorPossible error causeMeasures
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 fastReduce trigger rate. The shortest possible interval
Activation Input
set to Disregard
12.2Interface error
ErrorPossible error causeMeasures
No connection
Yellow LED not illuminated
No connection
Yellow LED not illuminated
Table 12.2:Interface error
Wiring errorCheck 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 portsSwitch 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.
94Technical description LRSLeuze 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 electronicTechnical description LRS95
TNT 35/7-24V
Maintenance
13Maintenance
13.1General 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.2Repairs, 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.3Disassembling, 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.
96Technical description LRSLeuze electronic
14Specifications
14.1General specifications
Specifications
Optical data
Detection range
1)
200 … 800mm (z direction)
Light sourcelaser
Wavelength658nm (visible red light)
Max. output power< 8 mW
Pulse duration3ms
Laser line600x3mm 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 interfaceUDP
Switching outputs1 (ready) / 100mA / push-pull on X1
Yellow LEDcontinuous light Ethernet connection available
flashing Ethernet data transmission active
off no Ethernet connection available
4)
4)
TNT 35/7-24V
Leuze electronicTechnical description LRS97
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 classIII, protective extra-low voltage
Protection class IP 67
Laser class2M (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
98Technical description LRSLeuze electronic
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.