Figure 9.8:Application example 2: height and width monitoring of cubic objects . . . . . . . . . 85
Figure 9.9:Application example 3.1: width monitoring of cubic objects with object detection . 88
Figure 9.10:Application example 3.2: width monitoring of cubic objects with object detection . 89
The symbols used in this technical description are explained below.
Attention!
This symbol precedes text messages which must strictly be observed. Failure to comply with
this information results in injuries to personnel or damage to the equipment.
Attention Laser!
This symbol warns of possible danger caused by hazardous laser radiation.
The light section sensors of the LES series use a class 2M laser: Viewing the laser output
with certain optical instruments, e.g. magnifying glasses, microscopes or binoculars, may
result in eye damage.
Notice!
This symbol indicates text passages containing important information.
General information
1.2Declaration of conformity
The laser light section sensors of the 36 and 36HI series have been developed and manufactured in accordance with the applicable European standards and directives. They comply
with the safety standards UL508 and CSA C22.2 No. 14 (Industrial Control Equipment).
Notice!
The CE Declaration of Conformity for these devices can be requested from the manufacturer.
The manufacturer of the product, Leuze electronic GmbH & Co. KG in D-73277 Owen,
possesses a certified quality assurance system in accordance with ISO 9001.
Leuze electronicTechnical description LES11
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 LES 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 LES series are laser distance sensors for presence detection
of dimensions of objects using their edges.
In particular, unauthorized use includes:
• Rooms with explosive atmospheres
• Operation for medical purposes
Areas of application
The LES series light section sensors are especially designed for the following areas of
application:
• Edge and height measurement of web material products and paper rolls
• Width and height measurement of cartons
• Edge and height measurement of stackable materials (e.g. chipboards)
• Complex object detection with window tracking
12Technical description LESLeuze 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 light section sensors at persons!
When mounting and aligning the light section sensors, 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 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 light section sensors use 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 (7mm measuring diaphragm at a distance of 100mm
from the virtual source), is 8.7mW.
Adjustments: Do not attempt any adjustments to or alterations of this product. Do not
open the protective housing of the light section sensor. There are no user-serviceable
parts inside.
The glass optics cover is the only aperture through which laser light may be observed
on this product.
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!
Operation notice in accordance with UL certification:
CAUTION – Use of controls or adjustments or performance of procedures other than
specified herein may result in hazardous light exposure.
The light section sensors are provided with warning notices on the housing and below the
reading window as shown in the following figure:
Figure 2.1:Name plate and warning notices
14Technical description LESLeuze electronic
Safety 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 device, attach the signs in the vicinity of the light section sensor such that reading the
signs cannot lead to looking into the laser beam!
Leuze electronicTechnical description LES15
TNT 35/7-24V
Operating principle
+X
-X
Z
-Y
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.
3Operating principle
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.
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.
16Technical description LESLeuze electronic
3.2Limits of light section sensors
Laser occlusionReceiver occlusion
In the red areas the laser does not
strike the object. Thus it is not possible to determine any data here.
The receiver does not "see" any object contours in the
red area because they are obscured by the upper right
edge of the object.
When the object is shifted to the left the object contour will still be detected by the laser but the laser line
does not lie within the receiver's field of view at that
point, and therefore no measurement values can be
detected.
3.2.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:
Operating principle
Leuze electronicTechnical description LES17
Figure 3.2:Occlusion
-Y
+X
TNT 35/7-24V
Z
-X
Operating principle
Y
Possible measure against laser occlusion
• Using multiple light section sensors with rotated
viewing direction. In the application example on
the right you can clearly see that the fields of vision
of the three sensors complement each other and
merge. The first of the sensors is operated as a
master, the two others are cascaded (see "Cascading" on page 24). This reliably prevents mutual
interference of the sensors.
Possible measures against receiver occlusion
• Alignment of the measurement objects so that all profile data to be measured can be
seen by the receiver.
Or:
• Installing a second sensor featuring a viewing
direction rotated by 180° about the z-axis so that
the objects can be viewed from 2 sides.
In the example to the right, the left sensor detects
the profile data on the left side of the product, and
the right sensor the profile data on the right side.
In this situation the second sensor is then cascaded. See "Cascading" on page 24.
18Technical description LESLeuze electronic
3.2.2Resolution
0
0,5
1,0
1,5
2,0
2,5
3,0
3,5
200 300 400 500 600 700 800
X
Z
Object distance in Z-direction in mm
Typical resolution in mm
0
0,1
0,2
0,3
0,4
0,5
0,8
0,9
0,6
0,7
200300400500600
X
Z
Object distance in Z direction [mm]
Typical minimum
object size [mm]
In this context resolution means the smallest possible change in distance of the measurement object, which causes a unique change of the output signal. Resolution is higher in the
short range than in the distant range. Small objects can be recognized better in the short
range.
The length of the laser line in the X-direction is dependent on the distance Z of the measurement object from the sensor . Always the same number of measurement points is measured.
From this it follows that the resolution in X-direction decreases with increasing distance in
Z-direction.
The following illustration shows this relation:
Figure 3.3:Typical resolution LES 36…
The output resolution of the measurement values on the process interface is 1/10mm with
Standard-Connect, 1/100mm with HI-Connect (only with LES 36HI/VC6).
Operating principle
Figure 3.4:Typical minimum object size LES 36HI…
Leuze electronicTechnical description LES19
TNT 35/7-24V
Device description
Laser transmitter
Receiver
(CMOS camera)
Display with key pad
Electrical connection and
grounding terminal
Groove for dovetail
mounting and
mounting points
Notice:
The following shows a light section sensor as an example.
An overview of the available types may be found in chapter 15.1
4Device description
4.1Overview of light section sensors
4.1.1Mechanical design
Figure 4.1:Mechanical design of Leuze light section sensors
4.1.2General performance characteristics
• Light section sensor for object measurement (width, height and position detection)
• Measurement time/response time: 10ms
• Measurement range/detection area: 200 … 800mm
• Measurement range/detection area: LES 36…: 200 to 800mm,
LES 36HI…: up to 600mm
• Length of laser line: max. 600mm
• Length of the laser line: LES 36…: max. 600mm, LES 36HI…: max. 140 mm
• 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 edge sensors determine the positions and
dimensions of objects via their edges. The
sensor determines the edge positions in mm
and, from those, calculates the object width and
height. These data are transferred to the
process control. One sensor can be used to
simultaneously detect up to four value pairs of
edges.
Specific performance characteristics
• Configuration software LESsoft
• Data calculation and processing directly
inside the sensor
• Integrated PROFIBUS interface or analog
output
• Up to four edge analysis windows with
two edge-value pairs each
• Up to 8 analysis windows with logic
operation option
• Detailed information on measurement
function, analysis windows, detection
functions and sensor state via Ethernet
and PROFIBUS
Device description
Typical areas of application
• Edge and height measurement of web
material products and paper rolls
• Width and height measurement of cartons
• Edge and height measurement of stackable materials (e.g. chipboards)
Leuze electronicTechnical description LES21
TNT 35/7-24V
Device description
Laser off
Laser off
Exposing and measuring
Processing and transmitting
Laser
Activation input
Pin 2 at X1
Output
10ms between 2 consecutive
laser pulses in "Free Running"
mode
Axes: p = level, t = time
approx. 14ms
between laser pulse and
associated data output
4.2Operating the sensor
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 48) and are then set using the configuration
software supplied LESsoft.
Measurement operation
In measurement operation, the LES 36/VC is connected to the process control via its analog
output, the LES 36/PB is connected to the process control via PROFIBUS. Alternatively, the
LES can be operated via the Ethernet interface on X2, see chapter 10 "Integrating the LES
in the process control (Ethernet)". Additional sensor information is then available.
4.2.2Activation - laser on/off
The laser and the data transmission can selectively be switched on and off via the activation
input InAct (pin 2 at X1) or via the 'Ethernet Trigger' command. Thus possible glares due
to laser radiation can be prevented during time periods when no measurements are
performed.
Notice!
The sensor is delivered ex works with the Activation Input Disregard setting. The
possible activation sources (activation input and Ethernet activation) are ignored - the
measurement function of the sensor is enabled.
The activation function can be switched on via the configuration software. To do this, the
Activation Input parameter must be set to Regard. The sensor then only measures if
one of the activation sources is activated. If the sensor is waiting for activation, it displays
!Act in the display.
p
Figure 4.2:Activation input signal sequence
22Technical description LESLeuze electronic
t
The figure 4.2 shows the effect of the activation on laser and measurement value output in
A second trigger
pulse before 10ms
have elapsed has
no effect
Trigger time (rising edge)
Laser
Activation input
Pin 2 at X1
Output
(Ethernet)
Data packets, approx. 1ms
t
fix
approx. 14ms
Trigger input
Pin 5 at X1
Axes: p = level, t = time
"Free Running" mode.
4.2.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 requires a trigger signal at the trigger input (pin 5 on X1), a PROFIBUS
trigger or the Ethernet Trigger command in measure mode (see chapter
10.3.4"Commands in measure mode" on page 110).
When triggering via pin 5 at X1, note:
- Triggering occurs on the rising edge.
-The trigger pulse must be at least 100μs long.
- Before the next trigger, the trigger cable must be on low-level for at least 1 ms.
- Activation must occur at least 100μs before the trigger edge.
- The shortest possible time interval between two successive trigger edges is 10ms.
Notice!
Ex works, the LES 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 LESsoft configuration
software to Input Triggered (shown on display: Trig).
Device description
Leuze electronicTechnical description LES23
p
Figure 4.3:Trigger input signal sequence
TNT 35/7-24V
t
Device description
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
PROFIBUS trigger
So that a measurement can be triggered on each PROFIBUS cycle, the PROFIBUS trigger
of the LES 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
24Technical description LESLeuze electronic
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
Sensor 1, or the master, can be operated in this 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.
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.3Measurement functions: LES
With the LES, you can reliably detect objects and measure their edge position, height and
width. Adaptation of the LES to an application is performed using the LESsoft configuration
software. All settings for the application are made there and stored in up to 16 inspection
tasks.
Functional principle of object and edge detection with the LES
The distance profile of the application is determined along the laser line in 376 measurement
points. Rectangular analysis windows, used for object and edge detection, can be defined
in the measurement range.
Object detection
The number of measurement points is counted in the analysis window (Analysis
Window = AW or Edge Analysis Window = EAW) and compared with two adjustable limits.
From this, the logical state ok or not ok of the analysis window is determined. For unique
object detection, it may be necessary to combine multiple analysis windows. For this
purpose, the LES offers the AND combination and inversion of multiple analysis windows.
The logic combinations ensure the detection of problematic objects.
Edge detection:
Windows for edge detection are called Edge Analysis Windows (EAW). In an EAW, object
detection can be performed as described above. Also determined in an EAW are the X and
Z coordinates of the first ("left-most") and the last ("right-most") measurement point. By
appropriately selecting the size and position of the EAWs, it is possible to determine coordinates of edge positions. From these, the width and height of an object are calculated. For
robust edge detection, the "Sequent Hits" parameter was introduced. The minimum number
of measurement points set there must occur in succession in the EAW to detect a valid edge.
Outliers or missing measurement points reset the counter.
Device description
TNT 35/7-24V
Leuze electronicTechnical description LES25
Device description
4.3.1Inspection Task
The LES supports up to 16 individual inspection tasks. Grouped together in an inspection
task are all parameter settings relevant for an application:
• Operation Mode (Free Running, Input Triggered)
• Activation Input (switch laser on and off)
• Cascading Output
• Light Exposure (exposure duration of the laser)
• Field of View (sensor detection range)
• Edit Analysis Windows (size and position of four AWs and four EAWs, object detection
and edge detection parameters)
• Edit Logical Combinations (logic combination of AWs and EAWs, definition of the
values that are available via the Profibus)
• Analog Output (analog output definitions)
The selection of the inspection tasks is carried out:
• via the switching inputs of connection X3 (inspection tasks 0-7 only)
•via PROFIBUS
• via LESsoft (on a PC connected via X2)
• via Ethernet (on a process control connected via X2)
• via the control panel of the sensor beginning with firmware V01.40
4.3.2Edge Analysis Window (EAW)
EAWs are used for edge detection; they can also be used for object detection. EAWs are
configured in the LESsoft configuration software (see chapter 9.4 "Parameter settings/
Parameters tab", figure 9.3). Here, position and size of each EAW are defined. To ensure
stable measurement of edge positions, it is also possible to
• check the edge quality (Sequent Hits, see below),
• count the number of measurement points to be detected in the EAW (a quasi minimum
object size).
An evaluation is carried out only within the active EAWs. Areas outside of the measurement
range and field of view are ignored.
Characteristics of EAWs
• EAWs are rectangular and may overlap freely.
• The coordinates of the left-most measurement point ("leftmost" LX, LZ) and right-most
measurement point ("rightmost" RX, RZ) are determined in each EAW.
• EAWs usually have an absolute position. If the object position varies, an EAW can also
be positioned relative to a found edge position in the previous EAW and thus tracked.
26Technical description LESLeuze electronic
Device description
LES
Measurement range
Object
Measurement points
H = height difference of two edges
W = object width
Edge Analysis Window
EAW
x axis
z axis
No object detection due to
shadowing in the
measurement range
Right edge
(coordinates RX, RZ)
Left edge
(coordinates LX, LZ)
Conveyor path
Figure 4.6:Edge detection with EAWs
4.3.3Definition of EAWs and their analysis results
Edge detection
Edge detection with the LES is possible if the following prerequisites are met:
There are enough successive measurement points in the EAW at both the right and the left
edge. This serves the plausibility of the edge detection.
Edges are only detected if the number of successive measurement points is greater
than or equal to the defined minimum number of measurement points (Sequent Hits).
If there are not enough successive measureme nt poi nts in an EAW , no edg e de tecti on
and no object measurement is possible within this EAW.
Configuration of the edge detection in EAWs is performed with LESsoft (Edit Analysis
Windows -> Edge Detection Definitions).
EAW01
W
H
O1
+X-X
Z
TNT 35/7-24V
Leuze electronicTechnical description LES27
Device description
Z
+X-X
EAW02
O1
EAW01
LES
Measurement range
x axis
z axis
Right edge in EAW02
(for Sequent Hits = 1)
Left edge in EAW01
(for Sequent Hits
6)
Conveyor path
Right edge in EAW01
(for Sequent Hits =
3)
Left edge in EAW02
(for Sequent Hits
5)
Right edge in EAW02
(for 2 Sequent Hits
5)
Notice!
If there are not enough successive measurement points on the edges of an EAW, the found
edge positions are shifted away from the edges of the EAW (see figure 4.7, different right
edge position with different parameters for Sequent Hits).
Figure 4.7:Meaning of Sequent Hits for edge detection
For each EAW, up to two measurement values can be output (configuration with LESsoft:Edit Logical Combinations):
• Edge positions: LX, LZ, RX, RZ (LX = left edge, X-coordinate, LZ = left edge,
Z-coordinate, RX = right edge, X-coordinate, RZ = right edge, Z-coordinate).
• Width of objects: W (calculated from the distance of RX and LX in the X direction).
28Technical description LESLeuze electronic
LZ in the Z-direction).
• Height difference of left and right edge: H (calculated from the distance of RZ and
Device description
LES
Measurement range
Object
Measurement points
H = height difference of two edges
W = object width
Edge Analysis Window
EAW
x axis
z axis
No object detection due to
shadowing in the measure-
ment range
Right edge
(coordinates RX, RZ)
Left edge
(coordinates LX, LZ)
Conveyor path
Figure 4.8:Edge detection with EAWs
EAW01
W
H
O1
+X-X
Z
TNT 35/7-24V
Leuze electronicTechnical description LES29
Device description
Z
+X-X
O1
EAW01
H
W
EAW02
LES
Measurement range
Object
Measurement points
H = height difference of two edges
W = object width
Edge Analysis Window
EAW
x axis
z axis
No object detection due to
shadowing in the
measurement range
Right edge
(coordinates RX, RZ)
Left edge
(coordinates LX, LZ)
Conveyor path
Relative window positioning
If the position tolerance of the measurement object exceeds the possible size of the analysis
window, it is possible to move the EAW relative to the position of the measurement object.
Figure 4.9:Edge detection with varying object position
For precise definition of the reference edg e, the measurement object is placed within EAW01
and acquisition of measurement data is stopped (pause button) as soon as the desired
reference edge has been found.
In the now static measurement profile, a further analysis window (e.g. EAW02) can be
positioned relative to the right or left object edge found in EAW01. This window now tracks
all position changes of the object edge to be measured, both in the X-direction and Z-direction.
Notice!
The evaluation functions are defined using LESsoft (see chapter 9.4).
30Technical description LESLeuze electronic
Device description
Object detection
In addition to edge detection, functions for object detection are also available in the LES.
By way of the optional configuration of the detection functions, even problematic objects
can be reliably measured.
• During object detection, the number of measurement points in an EAW/AW are ascertained and compared with two adjustable limits. From this, the logical object detection
state ok or not ok of the EAW is determined. Configuration of the object detection in
EAWs/AWs is performed with LESsoft (Edit Analysis Windows -> Analysis Window Definitions).
For unique object detection, it may be necessary to combine EAWs or AWs. For this
purpose, the LES offers the AND combination and inversion of multiple analysis windows.
The configuration of applications with additional object detection with logic combinations
is performed with LESsoft (Edit Logical Combinations -> AW Logic panel).
The result of combinations can be output via PROFIBUS or Ethernet. Detailed evaluation
results such as, e.g., the status of all EAWs/AWs, the number of measurement points within
the EAW/AW and the state of the complete object detection are transmitted via Ethernet.
For more information please refer to chapter 10 and chapter 11.
Notice!
An object detection is carried out only within the active EAWs. Areas outside of the
measurement range and field of view are likewise not evaluated. An object is detected if the
number of measurement values in the EAW reaches or exceeds an arbitrarily defined minimum value.
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.
In the example shown above, the edge position of web material is to be determined. Analysis
is performed in Edge Analysis Window EAW01. The edge coordinates for edge LX, LZ are
determined in EAW01.
32Technical description LESLeuze electronic
Device description
Z
+X-X
O1
EAW01
EAW03
LES
Measurement range
H = height difference of two edges
x axis
z axis
Conveyor path
Left edge EAW03
(coordinates LX3, LZ3)
Left edge EAW01
(coordinates LX1, LZ1)
Right edge EAW01
(coordinates RX1, RZ1)
Right edge EAW03
(coordinates RX3, RZ3)
Application example: height and width measurement of a cubic object
Figure 4.11: Application example: height and width measurement of a cubic object
In the application example shown above, the height and width of a cubic object O1 is to be
determined. The object is on a transport system. The width is measured in edge analysis
window EAW0; the height is measured in EAW03. The following measurement values are
obtained:
• in EAW01:Object Width W = LX1 - RX1
• in EAW03:Object Height H = RZ3 - LZ3
Leuze electronicTechnical description LES33
TNT 35/7-24V
Device description
4.4Analysis Window (AW)
In addition to the EAWs, four AWs can be configured with the LES. In AWs, only object detection is possible.
During object detection, the number of measurement points in an AW is determined and
compared with two adjustable limits. From this, the logical object detection state ok or notok of the AW is determined. If there are not enough measurement points in the AW, the
object detection state is not ok. Configuration of the object detection in EAWs/AWs is
performed with LESsoft (Edit Analysis Windows -> Analysis WindowDefinitions). The position and size of the AW are configured here for each AW.
For unique object detection, it may be necessary to combine AWs or EAWs. For this
purpose, the LES offers the AND combination and inversion of multiple analysis windows.
The configuration of applications with additional object detection with logic combinations
is performed with LESsoft (Edit Logical Combinations -> AW Logic panel).
The result of combinations can be output via PROFIBUS or Ethernet. Detailed evaluation
results such as, e.g., the status of all EAWs/AWs, the number of measurement points within
the EAW/AW and the state of the complete object detection are transmitted via Ethernet.
For more information please refer to chapter 10 and chapter 11.
Notice!
An object detection is carried out only within the active EAWs. Areas outside of the
measurement range and field of view are likewise not evaluated. An object is detected if the
number of measurement values in the EAW reaches or exceeds an arbitrarily defined
minimum value.
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.
34Technical description LESLeuze 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 LES
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 LES35
TNT 35/7-24V
Installation and mounting
Dovetail fastening grooves
M4 Tapped holes
5.2Mounting the LES
The light section sensors can be mounted in different ways:
• By means of two M4x6 screws on the back of the device.
• Using a BT 56 mounting device on the two fastening grooves.
• Using a BT 59 mounting device on the two fastening grooves.
Figure 5.2:Fastening options
Figure 5.3:Mounting example LES
36Technical description LESLeuze electronic
5.2.1BT 56 mounting device
Clamping jaws for
mounting on the LES
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 LES 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 132.
Installation and mounting
Figure 5.4:BT 56 mounting device
Leuze electronicTechnical description LES37
TNT 35/7-24V
Installation and mounting
Clamping jaws for
mounting on the LES
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 LES on ITEM profiles using the
fastening grooves. For ordering instructions, please refer to chapter "Type overview and
accessories" on page 132.
Figure 5.5:BT 59 mounting device
38Technical description LESLeuze 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 LES 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 LES 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 LES, 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 LES39
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 LES, attach the signs in
the vicinity of the LES such that reading the signs cannot lead to looking into the laser
beam!
When installing the LES in North America, also attach the stick-on label saying "Complies
with 21 CFR 1040.10"
5.5Cleaning
Clean the optics cover of the LES 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 LES.
Attention!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
40Technical description LESLeuze 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
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2
X3
X4
7
8
X1
VIN
Act
Trig
Ready
OutCas
GND
7
8
Notice:
The following shows a light section
sensor as an example.
An overview of the available types may
be found in chapter 15.1
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.1.
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
TNT 35/7-24V
Leuze electronicTechnical description LES41
Figure 6.2:Connections of the LES
The pin assignment of X1 and X2 is identical for all light section sensors; X3 and X4 differ
depending on device type.
Electrical connection
Using the name plate check the exact type designation. The version of X3/X4 is contained
in the following table:
Type designationX3X4Relevant chapter
LES 36/VCNot usedAnalog output voltage/currentLES 36/VC6Switching inputs / outputsAnalog output voltage/currentchapter 6.3.3
LES 36/PBNot usedPROFIBUSchapter 6.3.4
LES 36HI/VC6Switching inputs / outputsAnalog output voltage/currentchapter 6.3.3
Table 6.1:Interface version of X3 and X4
6.1Safety notices
Attention!
Do not open the light section sensor yourself under any circumstances! There is otherwise
a risk of uncontrolled emission of laser radiation from the light section sensor. The housing
of the LES 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 LES should be switched off from operation and protected
against accidental use.
The LES 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.
42Technical description LESLeuze electronic
6.2Shielding and line lengths
The light section sensors of the 36/36HI series are equipped with modern electronics developed for industrial applications. In industrial environments, a number of sources of interference may affect the sensors. In the following, information is provided on EMC-compliant
wiring of the sensors and of the other components in the switch cabinet and on the machine.
Observe the following maximum line lengths:
Connection to the sensorInterfaceMax. line lengthShielding
1.Ground the LES housing:
Connect the housing of the LES via the functional earth (FE) screw provided for this
purpose (see figure 6.3, devices produced after April 2011) with the protective
conductor on the machine star point. The cable should have an impedance as low as
possible for high-frequency signals, i.e., be as short as possible and have a large
cross-sectional area (grounding strip, …).
If the LES does not yet have an FE screw of its own, please use one of the M4 holes
on the dovetail.
Important: Place a lock washer underneath and check the penetration of the anodized
coating of the LES housing by measuring the electrical connection from FE star point
to the connector sleeves without connected sensor cables so that other FE interruptions can be detected on the machine base and profile rails as well.
2.Shield all connection cables to the LES:
Ap pl y t he sh ie ld to FE on bo t h s id es . O n t he LE S e nd , t hi s i s e ns ur ed if t he LE S h ou si n g
is connected to FE (PE) as described under 1. (shield fitted over the connector sleeves
to the housing).
In the switch cabinet, clamp the shield flat to FE. To do this, use special shielding clamps (e.g., Wago, Weidmüller, …).
Keep the length of the shieldless end of the cable as short as possible.
The shield should not be connected at a terminal in a twisted fashion (no "RF braid").
3.Disconnect power and control cables:
Lay the cables for the power components (motor cables, lifting magnets, frequency
inverters, …) as far from the sensor cables as possible (distance > 30 cm). Avoid laying
power and sensor cables parallel to one another.
Cable crossings should be laid as perpendicular as possible.
Electrical connection
TNT 35/7-24V
Leuze electronicTechnical description LES43
Electrical connection
4.Lay cables close to grounded metal surfaces:
This measure reduces interference coupling in the cables.
5.Avoid leakage currents in the cable shield:
Leakage currents arise from incorrectly implemented equipotential bonding. 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 LES is described in
practical use with images.
44Technical description LESLeuze electronic
Electrical connection
Devices produced after April 2011 are
equipped with an additional grounding terminal.
All devices can also be connected
to ground potential at the M4
threaded hole on the dovetail.
Attention!
Place lock washer
underneath and
check the penetration
of the anodized
coating!
• Shield connected flat to PE
• Connect PE star point with short cables
• Galvanized mounting sheet steel
Comment:
Depicted shield components from Wago,
series 790 ...:
- 790-108 Shield clamping bracket 11 mm
- 790-300 Busbar holder for TS35
Connect the ground potential to the light section sensors
Figure 6.3:Connecting the ground potential to the light section sensor
Connecting the cable shield in the switch cabinet
Figure 6.4:Connecting the cable shield in the switch cabinet
Leuze electronicTechnical description LES45
TNT 35/7-24V
Electrical connection
• 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
Connecting the cable shield to the PLC
Figure 6.5:Connecting the cable shield to the PLC
46Technical description LESLeuze electronic
6.3Connecting
X1
VIN
InAct
InTrig
OutReady
OutCas
GND
7
8
M12 plug
(A-coded)
X1-2/5
10k
10k
X1-3
InputsOutputs
6.3.1Connection X1 - logic and power
Attention!
All cables must be shielded!
X1 (8-pin plug, A-coded)
PinNameCore colorRemark
1VINWH+24 V DC supply voltage
2InActBNActivation input
3GND GNGround
4OutReadyYE"Ready" output
5InTrigGYTrigger input
6OutCasPKCascading output
7BUDo not connect
8
Table 6.3:Pin assignment X1
Preferably, please use the ready-made cables "K-D M12A-8P…", see chapter 15.2.2.
RD
Electrical connection
Do not connect
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.
Leuze electronicTechnical description LES47
TNT 35/7-24V
Electrical connection
M12 socket
(D-coded)
Twisted pair
Twisted pair
Cascading output OutCas
In order to operate several light section sensors cascaded this output must be connected
directly to the trigger input of the following sensor. Detailed information on this topic can
be found in chapter 4.2.4. The internal equivalent circuit is shown in figure 6.6.
Output "ready" OutReady
This output indicates operational readiness of the sensor. The state of the output corresponds to the state of the green LED (see "LED status displays" on page 53).
6.3.2Connection X2 - Ethernet
Attention!
All cables must be shielded!
The LES makes either the Ethernet interface available as host interface.
X2
Tx+
1
3
Tx-
2
Rx+
Rx-
4
X2 (4-pin socket, D-coded)
PinNameCore colorRemark
1Tx+YETransmit Data +
2Rx+WHReceive Data +
3Tx-ORTransmit Data 4Rx-BUReceive Data -
ThreadFE-Functional earth (housing)
Table 6.4:Pin assignment X2
Preferably, please use the ready-made cables "KB ET-…-SA…", see chapter 15.2.3.
Ethernet cable assignment
X2RJ 45
Tx+
1
3
Tx-
2
Rx+
Rx-
4
Figure 6.7:HOST / BUS IN cable assignments on RJ-45
Notice for connecting the Ethernet interface!
Ensure adequate shielding. The entire connection cable must be shielded and earthed. The
Rx+/Rx- and Tx+/Tx- wires must be stranded in pairs.
Use CAT 5 cables for the connection.
48Technical description LESLeuze electronic
Tx+ (1)
Tx- (2)
1
Rx+ (3)
Rx- (6)
8
Electrical connection
Out4
InSel 1
Out3
GND
Out2
InSel 3
InSel 2
Out1
X3
7
8
M12 socket
(A-coded)
6.3.3Connection X3 - switching inputs/outputs (only LES 36/VC6 and LES 36HI/VC6)
X3 (8-pin socket, A-coded)
PinNameCore colorRemark
1Out4WHOutput detection result 4
2Out3BNOutput detection result 3
3GNDGNGround
4Out2YEOutput detection result 2
5Out1GYOutput detection result 1
6InSel3PKSelection Inspection Task Bit 3
7InSel2BUSelection Inspection Task Bit 2
8InSel1
RDSelection Inspection Task Bit 1
Table 6.5:Pin assignment X3
Switching outputs of connection X3
Out1 to Out4 are each a logic combination of analysis results of the individual AWs. This
logic operation is defined in LRSsoft (see chapter 9.4 "Parameter settings/Parameters tab").
Up to 16 different logic combinations of the AW's and respective result mappings on Out1
to Out4 can be combined into inspection tasks.
Switching inputs of connection X3
The 3 switching inputs InSel1-3 are used to select the inspection task 0-7. In this context,
"000" stands for Inspection Task 0, "001" for Inspection Task 1, etc. The switching time
between 2 inspection tasks is < 100ms
(MSB)
(LSB)
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.
Leuze electronicTechnical description LES49
TNT 35/7-24V
Electrical connection
X4
VP 1
2
3
4
A
B
DGND
FE
5
M12 socket
(B-coded)
6.3.4Connection X4 - PROFIBUS DP (only LES 36/PB)
X4 (5-pin socket, B-coded)
PinNameRemark
1VPSupply voltage
2AReceive/transmit data
3DGNDData reference potential
4BReceive/transmit data
5FEFunctional earth
ThreadFEFunctional earth (housing)
Table 6.6:Pin assignment X4 for LES 36/PB
Notice!
Connection X4 PROFIBUS DP is assigned only on the LES 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 LES 36/PB without interrupting the PROFIBUS cable.
The external Y plug adapter is also needed if the LES 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.
+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")
50Technical description LESLeuze electronic
Electrical connection
X4
n. c.
1-10V
4-20mA
AGND
FE
1
2
3
4
5
M12 socket
(A-coded)
6.3.5Connection X4 - voltage/current output (LES 36/VC, LES 36HI/VC6)
X4 (5-pin socket, A-coded)
PinNameCore colorRemark
1n.c.BNnot used
24-20mAWHAnalog current output
3AGNDBUReference potential for the analog
41-10VBKAnalog voltage output
5FEGYFunctional earth
ThreadFEFunctional earth (housing)
Table 6.7:Pin assignment X4 for LES 36/VC
Notice!
Connection X4 analog output is assigned only on the LES 36/VC, LES 36HI/VC6.
Analog outputs 1-10V (voltage) and 4-20mA (current) may only be used alternately; the
selection is made with LESsoft in the Analog Output tab.
Connection of the analog output is made via the 5-pin, M12-socket X4.
Attention!
When connecting the analog output, note the permissible load resistance:
• Voltage output 1 … 10VDC:R
• Current output 4 … 20mADC:R
2k
L
500
L
output
Characteristic curve of the analog output
Response of the analog output
The LES is equipped with an analog output with linear response within the respective
measurement range. There is a departure from linearity above and below the linear area. In
spite of this, values above the maximum (> 20 mA or > 10 V) or below the minimum (< 4 mA
or < 1V) specified for the measurement range can still clearly be seen for the output values.
The analog output can be conveniently configured with LESsoft. To obtain the most exact
resolution possible, the range of the analog output should be set as small as the application
will permit (the minimum adjustment range is 10mm). The characteristic output curve can be
configured as rising or falling. For this purpose, both distance values Position Min. Val.
and Position Max. Val. for the minimum and maximum analog output value are set
accordingly, see figure 6.8.
Leuze electronicTechnical description LES51
TNT 35/7-24V
Electrical connection
No measurement
is possible
Measurement possible, measurement
result below lower limit, signal not linear
Measurement possible, measurement
result above upper limit, signal not linear
Measurement possible,
measurement result above upper limit,
signal constant
No measurement
is possible
Measurement
Output value
[mm]
Lower limitUpper l imit
U [V]
approx. 10.5
10
1
0
I [mA]
approx. 21
20
4
1
Value range
0,53
0,42
Figure 6.8:Response of analog output LES
Possible value ranges depending on set analog output value:
LES 36…LES 36HI…
X-coordinate-300 … +300mm-70 … +70 mm
Z-coordinate+200 … +800 mm+200 … +800 mm
Height difference0 … 600mm 0 … 400mm
Width0 … 600mm 0 … 140mm
Notice!
Valid Z-values are output 10mm above and beyond the max. measurement range:
190 … 810mm.
52Technical description LESLeuze electronic
7Display and control panel
OLED display
128 x 32 pixels
Key pad with 2 buttons
See "Control buttons" on
page 53.
Device LEDs
green and yellow
See "LED status displays"
on page 53.
Laser beam
7.1Indicator and operating elements of the
Figure 7.1:Indicator and operating elements of the LES
After switching on the supply voltage +U
the green LED illuminates continuously: the LES is in measure mode. The OLED display
shows the alignment aid and the status display.
and following error-free initialization of the device,
B
Display and control panel
7.1.1LED status displays
LEDStateDisplay during measurement operation
GreenContinuous lightSensor ready
YellowContinuous lightEthernet connection established
Table 7.1:LED function indicator
7.1.2Control buttons
The LES is operated using the and buttons, which are located next to the OLED
display.
Leuze electronicTechnical description LES53
OffSensor not ready
FlashingEthernet data transmission active
OffNo Ethernet connection
TNT 35/7-24V
Display and control panel
waiting for PB
L450 M450 R450
T00 X-151 fRun
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 LES 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
Displayed on the second line of the display is the selected inspection
task (Txx), a measurement value as well as the current sensor state (see
chapter 4.2 "Operating the sensor").
The indication of the sensor state in the display has the following meaning:
• fRun = Free Running
• Trig = Triggering
• !ACt = Activation (laser on/off)
T12 means that Inspection Task 12 is currently active, for example. Value range: T00 to T15.
Meaning of the measurement value display:
• X-151 means that the X-coordinate of the right-most measurement point is at position
-151mm.
• x 040 means that the X-coordinate of the left-most measurement point is at position
+40mm.
• Z 600 means that the Z-coordinate of the right-most measurement point is at position
600mm.
• Z 500 means that the Z-coordinate of the left-most measurement point is at position
+500mm.
• W 230 means that the width of the object is 230mm.
• H 059 means that the height of the object is 59mm.
000 (mm) appears in the display.
54Technical description LESLeuze electronic
Display and control panel
T00 no PB fRun
Command Mode
Definition of the displayed measurement value:
• For analog sensors, the measurement value assigned to the analog output is displayed
in mm.
• For sensors with PROFIBUS, the measurement value assigned under Edge 1 - Profibus Inputs 1 is displayed.
If, for PROFIBUS devices, no PROFIBUS is detected following
power-on, no PB appears in the middle of the bottom line.
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 LES is connected to a control, the control can put the LES into a command mode in
which it receives and executes commands (see chapter 10.2.9 "Evaluation telegram"). In
command mode, the OLED display has one line.
Command Mode appears on the first line of the display.
Notice!
If errors occur during operation, these are shown on the display. Notices can be found in
chapter 12.3.
Leuze electronicTechnical description LES55
TNT 35/7-24V
Display and control panel
7.2Menu description
7.2.1Structure
Level 1Level 2Level 3Explanation / NotesDefault
Settings
Menu Exit
Table 7.2:Menu structure
Set Act. Insp. Task
00: Task 0
Set Act. Insp. Task
00: Task 0
Ext. Task Selection
1
Ext. Task Selection
1
Display
On
Display
On
Data Output
Ethernet
Data Output
Ethernet
Ethernet
Factory Settings
Set Act. Insp. Task
00: Task 0
Set Act. Insp. Task
15: Task 15
Ext. Task Selection
1
Ext. Task Selection
0
Display
On
Display
Off
Display
Auto
Prescaler Value
IP Address
192.168.060.003
001
Here you select the active task 00 to
15.
If you press here, external task
changeover will be activated. Task
changeover via the display / menu is
NOT possible.
If you press here, task changeover
will be activated via the display /menu.
External task changeover is
possible.
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
LES.
NOT
X
56Technical description LESLeuze electronic
Display and control panel
Level 1Level 2Level 3Explanation / NotesDefault
Ethernet
Factory Settings
Factory Settings
Inactive
Factory Settings
Inactive
Password Check
Inactive
Password Check
Inactive
Slave Address
126
Slave Address
126
Table 7.2:Menu structure
Net Mask Address
255.255.255.000
Port Number Local
9008
Port Number Dest.
5634
Factory Settings
Inactive
Factory Settings
Execute
Password Check
Inactive
Password Check
Activated
Slave Address
126
Here you can set the relevant subnet
mask.
Here you can set the local port (at the
LES) 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
LES to factory settings (chapter 7.3).
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 LES (0 … 126). With
address 126 (default), automatic
address assignment by the commissioning master is supported.
X
X
TNT 35/7-24V
Leuze electronicTechnical description LES57
Display and control panel
Level 1Level 2Level 3Explanation / NotesDefault
Menu Exit
Settings
Table 7.2:Menu structure
Notice!
If no button is pressed for three minutes, the LES exits menu mode and switches to measure
mode. The OLED display again displays the alignment aid and the sensor status display.
Notice!
After changing the PROFIBUS slave address, a power-on reset must be performed in order
to permanently accept the address.
Info
Set Act. Insp. Task
Part no.
50111325
Serial No.
0905A000012
Ext. Info
008
Software
V01.10
Part no.
The part number of the LES is
displayed here.
The serial number of the LES is
displayed here.
The three-digit batch number of the
LES is displayed here.
The firmware version number of the
LES is displayed here.
Notice! The complete information on
the product consists of Serial No.
and Ext. Info. If service is
required, please provide both
numbers!
58Technical description LESLeuze electronic
7.2.2Operation/navigation
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
In menu view, the OLED display has two lines. The currently active menu item is displayed
with black text on a light-blue background. The and
tions depending on the operating situation. These functions are represented via icons on
the right edge of the display – i.e. to the immediate left of the buttons.
The following displays may appear:
Menu navigation
selects the next menu item (
switches to the submenu shown with inverted colors (
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.
Display and control panel
buttons both have different func-
Ethernet
a checkmark () appears at the bottom
).
Data Output
symbol
).
Leuze electronicTechnical description LES59
changes the edit mode,
saves the new value (192.168.001.111).
changes the edit mode,
selects the first digit (1) for renewed editing.
changes the edit mode,
rejects the new value (in this example, the factory setting
192.168.060.003 remains saved).
Editing selection parameters
displays the next option for Display (Off).
returns to the next-higher menu level and retains On.
appears.
appears.
appears.
TNT 35/7-24V
Display and control panel
Display
Off
Display
Off
Display
Off
FactorySettings
Execute
FactorySettings
Execute
Really Reset
Yes-Ret No-Dwn
reset canceled
reset done
displays the next option for Display (Auto).
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 LESsoft 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
LES to factory settings.
The display shown next to here appears.
button while connecting the supply voltage
appears.
appears.
Interrupting a reset
Pressing causes the adjacent display to appear. If you now press the
button, you will exit the menu without resetting the LES to factory
settings.
Executing a reset
Pressing the button while the checkmark () is displayed causes
the adjacent safety prompt to appear.
Pressing interrupts the reset process; reset canceled appears in
the display for approx. 2s. Afterward, the LES returns to measure mode.
Pressing
made previously are permanently lost. reset done appears in the
display for approx. 2s; the LES then returns to measure mode.
You can select the resetting to factory settings also via LESsoft.
60Technical description LESLeuze electronic
resets all parameters to the factory settings. All settings
In the Configuration menu select the entry Reset to Factory Settings.
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 LES is in measure 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 LES is configured via a PC using the LESsoft 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 LES must lie in the same address range. The LES 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
LES 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 LES is by applying an alternative configuration in the TCP/IP settings of the
PC and connecting the LES to the PC.
Check the network address of the LES by pressing the button during measure mode
of the LES 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 LES 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 LES
must match so that they can communicate with each other.
Address of the LESNet 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
Leuze electronicTechnical description LES61
TNT 35/7-24V
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 LES.
For example 192.168.060.110 (but not 192.168.060.003!). If LES and PC have the same IP
address, they cannot communicate with each other.
Setting an alternative IP address on the PC
Log into your PC as administrator.
Using Start->System control go to the
Network connections (Windows XP) menu or
to the Network center and release center
(Windows Vista) menu.
There, select LAN Connection and right-click
to open the corresponding properties page.
Select the Internet protocol (TCP/IP) (by
scrolling down, if necessary) and click on
Properties.
In the Internet protocol (TCP/IP)
Properties window select the
Alternate configuration tab.
Set the IP address of the PC in the address
range of the LES.
Attention: do not use the same as for the LES!
Set the subnet mask of the PC to the same value as on the LES.
Close the configuration dialog by confirming all windows using OK.
Connect the interface X2 of the LES directly to the LAN port of your PC. Use a
KB ET-…-SA-RJ45 cable for the connection, see table 15.9
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 LES.
Information about configuring with the LESsoft can be found in chapter 9.
62Technical description LESLeuze electronic
8.3Commissioning
For the commissioning and integration of the sensor in the process control the following
steps are necessary:
1.LES configuration - see chapter 9.
2.Programming process control - see chapter 10 and chapter 11.
or
3.Connect analog output accordingly - see chapter 6.3.5.
4.Connect switching inputs and outputs accordingly - see chapter 6.3.3.
5.When connecting in the Ethernet process controls, the IP configuration of the LES is
to be adjusted so that the LES can communicate with the process control.
The values corresponding to the following screenshot are preset in the LES at the factory. If you would like to set different values, you must change the values via the display
of the LES in menu item Ethernet (see "Menu description" on page 56). You can test
the changed values by entering them in the Configuration area in LESsoft and then
clicking the Check Connectivity button.
6.Connect LES to the process control. This can be performed for all LES via the Ethernet
interface or, depending on model, via the analog outputs or the PROFIBUS.
7.Establish connections for activation, triggering and cascading, if necessary.
Commissioning and configuration
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.
Leuze electronicTechnical description LES63
TNT 35/7-24V
LESsoft configuration software
9LESsoft 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.
Alternatively, you can download the program in the Internet at www.leuze.com.
Notice!
Copy this file from the CD to an appropriate folder on your hard drive. Administrator
privileges are necessary for this purpose.
Please note that the standard text size setting is used. For Windows XP, the necessary DPI
setting is 96 DPI, for Windows 7, the display is to be set to "Smaller - 100%".
To start the installation process, double-click on file LXSsoft_Suite_Setup.exe.
In the first window, click on Next.
In the next window, you can select which configuration software you would like to install.
You will need LPSsoft for configuring light section sensors of the LPS series.
You will need LRSsoft for configuring light section sensors of the LRS series.
You will need LESsoft for configuring light section sensors of the LES series.
Select the desired options and click on Next and, in the next window, click on Install.
The installation routine starts. After a few seconds, the window for selecting the installation
language for the Matlab Compiler Runtime (MCR) appears. The MCR is used for the configuration in LESsoft. It is only available in English or Japanese.
64Technical description LESLeuze electronic
LESsoft configuration software
Therefore keep in the Choose Setup Language window the selection English and
click on OK.
Leuze electronicTechnical description LES65
TNT 35/7-24V
LESsoft 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.
66Technical description LESLeuze electronic
LESsoft configuration software
After some time (up to several minutes depending on the system configuration) the start
screen of the MCR installer will appear.
Click on Next.
The window for entering user data appears.
Enter your name and the company name and then click on Next.
Leuze electronicTechnical description LES67
TNT 35/7-24V
LESsoft 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.
68Technical description LESLeuze electronic
LESsoft configuration software
The window for selecting the installation path for LESsoft/LPSsoft/LRSsoft now appears
(provided you selected this option).
Keep the default folder and click on Next.
The installation of LPSsoft starts. If you also selected LRSsoft and LESsoft for installation,
upon completion of the LPSsoft installation, the same window then reappears for entering
the installation path for LRSsoft and LESsoft.
Keep the default folder in this case as well and click on Next.
Upon completion of the installation process, the window shown above appears.
The installation routine added a new Leuze electronic program group in your Start
menu that contains the installed programs LESsoft/LPSsoft/LRSsoft.
Click on Finish and then start the desired program from the Start menu.
Leuze electronicTechnical description LES69
TNT 35/7-24V
LESsoft configuration software
9.2.1Possible error message
Depending on the setting of the display, the "Width and Height must be >0" error message
may be output. The cause is an incompatible setting of the display.
Notice!
For Windows XP, the necessary DPI setting is 96 DPI. For Windows 7, the display is to be
set to "Smaller - 100% (default)".
The setting can be adjusted as follows.
Adjust the display for Windows XP by selecting the value " 96 DPI" under Properties
For Windows 7, adjust the display via Control Panel -> Display by setting
the display to "Smaller - 100% (default)".
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 LESsoft by double-clicking on it.
Now the start screen of LESsoft appears, as described in chapter 9.3.
70Technical description LESLeuze electronic
9.3Starting LESsoft/Communication tab
Start LESsoft via the respective entry in the Windows Start menu.
The following screen appears:
Figure 9.1:Initial screen LESsoft
In the IP Configuration area, enter the settings for the LES and click on Accept.
You had already determined this data in chapter 8.2.
Click on Check Connectivity to test the connection to the LES.
If the following message appears, the Ethernet connection
to the LES is correctly configured: The connectionattempt to sensor ... was successful.
Click on the button Connect to sensor:
As a result LESsoft 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.
LESsoft configuration software
TNT 35/7-24V
Leuze electronicTechnical description LES71
LESsoft configuration software
Notice!
The following additional information is displayed in the status line:
• Sensor connection status (Sensor status)
• Number of the Active Inspection Task
• Scan number (Profile Number)
• Encoder value dependent on the sensor type (Encoder Value)
• Connected sensor type
• Analog output status (Analog Output)
Notice!
Once the LESsoft has established a connection to the LES, the laser beam flashes.
72Technical description LESLeuze electronic
LESsoft configuration software
PROFIBUS settings (only LES 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 LES 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 LESsoft 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 LESsoft.
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 LESsoft, a power-on reset
must be performed in order to permanently accept the address. For the changed settings
to take effect, they must be transferred to the sensor!
Leuze electronicTechnical description LES73
LESsoft configuration software
9.4Parameter settings/Parameters tab
Click on the Parameters tab to access the parameter settings:
Figure 9.3:Parameter settings LESsoft
The LES is adapted to applications in the Parameters tab (Standard tab). First go to the
Task Parameters panel and set the values required for operating the LES. Then go to
the Analysis Functions panel and define analysis windows (EAWs, AWs) for edge and
object detection.
Finally, save these settings as an Inspection Task by clicking on Apply Settings or
Transmit to Sensor.
The analog output is configured in the Analog Output tab (chapter 9.4.5).
74Technical description LESLeuze electronic
9.4.1Standard tab - Task Parameters panel
Inspection Task Selection
In the Inspection Task Selection panel, you can select inspection tasks.
Notice!
By default, changeover of the inspection tasks via the PROFIBUS master (PLC) has priority
over LESsoft. In this field, the selection of the inspection task with LESsoft is only possible
if, under Global Parameters there is no tick in front of Enable External InspectionTask Selection. Otherwise, the inspection task can only be selected via the process
interface.
By removing the tick in the Enable External Inspection Task Selection check
box, the inspection task cannot be changed via the process interface while configuration is
being performed. After configuring with LESsoft and before transmitting the settings to the
sensor ('Transmit to Sensor'), the Enable External Inspection Task Selection
check box must again be selected. Only then can inspection tasks be selected via the process interface.
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 and storing inspection tasks is described in chapter
9.6, "Definition of inspection tasks" on page 94 .
LESsoft configuration software
TNT 35/7-24V
Operation Mode
In Operation Mode you can configure using Free Running that the LES continuously
detects and outputs measurement data (factory setting). With Input Triggered the LES
captures measurement data only if a rising edge is present at the trigger input or if one of
the "Ethernet Trigger" (chapter 10.3.4) or PROFIBUS Trigger (chapter 11.5) commands is
being used. Detailed information on this topic can be found in chapter 4.2.3.
Leuze electronicTechnical description LES75
LESsoft configuration software
Activation
Under Activation the Regard setting has the effect that the laser is switched on and off
according to the level at the activation input or via PROFIBUS. Detailed information on this
topic can be found in chapter 4.2.2.
When the Disregard setting has been selected, the laser always remains switched on,
independent from the level at the activation input or the PROFIBUS activation (factory
setting).
Trigger Output Mode
Under Trigger Output Mode you can activate the cascading output using Cascading.
Detailed information on this topic can be found in chapter 4.2.4. When the Disable setting
has been selected, the cascading output will not be set (factory setting).
Light Exposure
Using Light Exposure you can control the exposure duration of the laser during measure-
ment value detection and adapt it to the reflective properties of the objects to be detected.
Select an exposure setting that displays a continuous line around the object contour.
Then try to achieve a line on a flat surface that is as continuous as possible.
Field of View
Using Field of View you can restrict the measurement range of the LPS. The same
happens if you click on the square handles of the measurement range framed in blue with
the mouse and then pull.
Factory settings for Field of View:
LES 36…LES 36HI…
Min X-300-70
Max. X30070
Min. Y190190
Max. Y810610
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.
76Technical description LESLeuze electronic
9.4.2Standard tab - Analysis Functions panel
In the Analysis Functions panel, the primary settings of the LES for realizing applications are made.
Edit Analysis Windows
In the Analysis Functions panel, use the Edit Analysis Windows button to define
the rectangular analysis window. You can define up to four edge analysis windows (EAW Edge Analysis Window) and up to four normal analysis windows (AW - Analysis Window).
Notice!
EAWs are used for edge detection; they can also be us ed for ob ject detection. In AWs, only
object detection is possible. How evaluation of the measurements functions with EAWs and
AWs is described in chapter 4.3 and chapter 4.4.
Click the Edit Analysis Windows button to open the table for defining the analysis
windows.
LESsoft configuration software
Leuze electronicTechnical description LES77
TNT 35/7-24V
LESsoft configuration software
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 Edge Analysis Window Definitions window, the values prior
to changing the detection range by mouse are
restored.
Notice!
After you have defined the size and position of
an analysis window, the settings must be transmitted to the sensor. To do so, click the Apply Settingsbutton.
If the settings are to be saved permanently in
the sensor, you must also execute the command Transmit to Sensor in the
Configuration menu.
Figure 9.4:Edit Analysis Windows
Alternatively, the spatial position and size of EAWs and AWs can be configured with the
mouse or by means of keyboard entries. After selecting the Active check box (by clicking),
a black frame with handles appears at the left in the display of the detection area. You can
now use the mouse or keyboard to position the analysis window.
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 values in the 2D representation.
78Technical description LESLeuze electronic
LESsoft configuration software
Keyboard input
Alternatively, you can enter the desired position values directly into the Minimum/Maximum
X/Z columns under Dimensions.
Notice!
The changed settings must be transferred to the sensor with Apply Settings.
Position type
Here you determine whether the coordinates of an analysis window are to be absolute, or
whether the position of an EAW is to change relative to a found edge.
The first analysis window provides the reference and must therefore be configured with
absolute coordinates. The other analysis windows can be defined relative to an edge in one
of the previous EAWs.
Relative to Edge
Here you select the reference edge (e.g. within EAW1) for relative tracking of EAW2. Possible
settings are:
• Tracking in X-direction: Rightmost X, Leftmost X
• Tracking in Z-direction: Rightmost Z, Leftmost Z
• Simultaneous tracking in X and Z-direction: Rightmost XZ, Leftmost XZ
Offset X / Offset Z
If you have selected relative tracking for an analysis window, you can define the offset of
the X and Z-position relative to the reference edge.
You define the window width / height with Width / Height. The values Min X, Max. X, Min Z,
Max. Z are ignored in this case.
Edge Detection Definitions
Here, you define the parameters for edge detection in up to four EAWs. Select the check
box in the Active column to activate the respective EAW.
For the edge plausibility check, the Sequent Hits parameter determines the minimum
number of successive measurement points (see chapter 4.3.3). For orientation as to how
the Sequent Hits parameter is to be selected, the currently measured number of successive
object points in the EAW is shown in the Current Sequent Hits Left and CurrentSequent Hits Right columns.
An edge is detected if Current Sequent Hits Left or Current Sequent Hits Right
is greater than or equal to Sequent Hits. In this case, the status of the EAW in the Current
Status column is green (ok). If an edge is detected, the status of the EAW in the Current
Status column is red (not ok). If the EAW is not activated, the status is gray.
If not enough measurement points occurred in succession in an EAW, edge detection and
object measurement within this EAW is not possible.
Leuze electronicTechnical description LES79
TNT 35/7-24V
LESsoft configuration software
Analysis Window Definitions
Here, you define the parameters for object detection in up to four EAWs and four AWs. Select
the check box in the Active column to activate object detection in the respective analysis
window. The optionally selectable object detection enables stable measurement results
even under problematic conditions.
In the Current Hits column, LESsoft displays the number of measurement points that
are detected in the analysis window. In the Hits On column, you define how many measurement points must be detected in order for the evaluation result of the object detection to
be ok in the respective analysis window. If the result is ok, a green dot is displayed in the
Current Status column. The state remains green until the number of detected hit points
becomes 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.
The further processing and combination of results from object detection occurs by pressing
the Edit Logical Combinations button.
Notice!
The changed settings must be transferred to the sensor with Apply Settings.
80Technical description LESLeuze electronic
LESsoft configuration software
Edit Logical Combinations
By clicking on the Edit Logical Combinations button, the following window appears.
The AND combination result of the Object Point/EAW State (edge detection state) line
and the AW Logic Analysis Depth (state of the logic for object detection) line are
displayed here for each EAW.
If no object detection was configured, the Edge State corresponds to the status of edge
detection.
• Green state = edge detection and object detection ok
• Red state = edge detection and object detection not ok
Notice!
For sensors with analog output, a valid measurement value transmission for edges only
occurs at the analog output if the Edge State is ok.
Leuze electronicTechnical description LES81
TNT 35/7-24V
LESsoft configuration software
Object Point/EAW State (result of edge detection)
For each EAW, the result of the edge plausibility check is displayed here for the left edge
(Left Most) and right edge (Right Most).
• Green state = edge detected = ok
• Red state= no edge detected = not ok
The result is identical to the status under Edit Analysis Windows -> Edge DetectionDefinitions.
Notice!
A valid measurement value transmission for edges only occurs if the Object Point/EAW
State is ok.
Show Edge
If the check box is selected, the left edge position is displayed in the 2D view with a green
coordinate cross, the right edge position with a blue coordinate cross.
Figure 9.6:Display of the edge positions (green and blue) in the 2D display
82Technical description LESLeuze electronic
LESsoft configuration software
X, Width (X), Z, Height (Z)
In the fields of these lines, the current measurement values LX, RX, LZ, RZ, W and H are
displayed for each EAW in mm (see chapter 4.3.3), provided the EAW was defined.
Measurement values and their meaning:
• Edge positions: LX, LZ, RX, RZ
- LX = Left edge X-coordinate
- LZ = Left edge Z-coordinate
- RX = Right edge X-coordinate
- RZ = Right edge Z-coordinate.
• Width of objects: W (calculated from the distance of RX and LX in the X direction).
• Height difference of left and right edge: H (calculated from the distance of RZ and LZ
in the Z-direction).
Profibus Inputs 1 , Profibus Inputs 2
The selection of which process values are transmitted via PROFIBUS is made here. With
PROFIBUS devices, two measurement values (LX, RX, LZ, RZ, W or H; see chapter 4.3.3)
can be output per EAW via the PROFIBUS. In the Profibus Inputs 1 and
Profibus Inputs 2 fields, you can configure which measurement values these are for
up to four edge analyses.
Notice!
The changed settings must be transferred to the sensor with Apply Settings.
Leuze electronicTechnical description LES83
TNT 35/7-24V
LESsoft configuration software
Application example 1: web edge measurement
In the following example, the right edge position of web material is to be ascerta in ed . Edg e
analysis window EAW1 is positioned in the measurement range so that the web material is
located within the window.
The ascertained position of the right edge is -9.6mm (column
The distance from the edge to the sensor is 366.6mm (column
Edge1
Edge1
->
Right Most
->
Right Most
-> line X).
->line Z).
Figure 9.7:Application example 1: web edge measurement
84Technical description LESLeuze electronic
LESsoft configuration software
Application example 2: height and width monitoring of cubic objects
In the following example, the height and width of a carton are measured. For the width
measurement, EAW1 is positioned above the support surface. For the height measurement,
EAW2 is positioned to the side of the carton. The height of EAW2 is configured so that both
the support surface as well as the top side of the carton are located in EAW2.
The ascertained width of the carton is 49.7mm (column Edge1 -> line Width (X)). The
ascertained height is 49.6mm (column Edge2 -> line Height (Z)).
All measurement results are displayed in the window to the right of the 2D view.
Figure 9.8:Application example 2: height and width monitoring of cubic objects
Leuze electronicTechnical description LES85
TNT 35/7-24V
LESsoft configuration software
Additional object detection with LES sensors
In the lower part of the Edge Analysis Window Combination Tables window (see
figure 9.5), an additional object detection can be configured.
Notice!
Object detection is only possible if object detection was activated in the EAW/AW. This is
performed in LESsoft by selecting the check box in the Active column under EditAnalysis Windows -> Analysis Window Definitions.
EAW1 … EAW4, AW05 … AW08
Specify here which analysis windows are to be logically AND linked with one another with
respect to the analysis of the Current Hits . With the "+" selection, the (E)AW state is
taken into account in the AND combination. If "-" is selected, the inverse of the (E)AW state
is taken into account.
The result of the logic combination is displayed in the AW Logic line.
Notice!
An entry is only possible if object detection was activated in the EAW/AW.
AW Logic
The status display of the AND combination result of EAW1 … EAW4, AW05 … AW08 is
shown here:
• Green state = ok
• Red state = not ok
Notice!
A display appears only if object detection was activated in an EAW/AW.
Analysis Depth
The analysis depth is entered here. The analysis depth is the number of successive evaluations with the same result that are necessary for a change of the combination result (value
range: 1 … 255).
Notice!
A display appears only if object detection was activated in an EAW/AW.
Notice!
Select a larger value for the analysis depth to give the LES a reliable switching behavior. The
response time of the sensor during object detection increases accordingly (example: analysis
depth = 3 -> response time 3 x 10ms = 30 ms). Interfering signals of individual scans are
suppressed. If an analysis depth = 1 (factory stetting beginning with firmware version 01.25)
is selected, the response time is 10ms.
86Technical description LESLeuze electronic
LESsoft configuration software
AW Logic Analysis Depth (result of object detection)
The status display of the combination result of AW Logic appears here, taking into account
the analysis depth.
• Green state = ok
• Red state = not ok
Notice!
A display appears only if object detection was activated in an EAW/AW.
Notice!
The changed settings must be transferred to the sensor with Apply Settings.
Leuze electronicTechnical description LES87
TNT 35/7-24V
LESsoft configuration software
Application example 3: width monitoring of cubic objects with object detection
(narrow objects are not to be detected)
The application example is similar to application example 2. The width of cartons is to be
measured. For narrow objects, the measurement is to be suppressed. For width measurement, EAW1 is to be positioned above the support surface as in application example 2. In
addition, object detection is configured in the Edit Analysis Windows window ->
Analysis Window Definitions.
Notice!
Object detection is only possible if object detection was activated in the EAW/AW. This is
performed in LESsoft by selecting the check box in the Active column under EditAnalysis Windows -> Analysis Window Definitions.
The threshold for object detection in EAW1 is 60 hits. In figure 9.9 there is a wide object
with Current Hits = 68 in the measurement range of the LES. The object is detected,
the state of object detection is green (ok). In the Edge Analysis Window CombinationTables window, the additional object detection is activated by selecting + under EAW1.
All results are green (ok). The ascertained width of the carton is 49.2mm (column Edge1
-> line Width (X)).
Figure 9.9:Application example 3.1: width monitoring of cubic objects with object detection
88Technical description LESLeuze electronic
LESsoft configuration software
In figure 9.10 there is a narrow object with Current Hits = 20 in the measurement range
of the LES. The object is considered to be not detected, the state of object detection in the
Edge Analysis Window Definitions window -> Analysis Window Definitions
is red (not ok).
Figure 9.10: Application example 3.2: width monitoring of cubic objects with object detection
In the Edge Analysis Window Combination Tables window, the additional object
detection is activated by selecting + under EAW1. The result for object detection is not ok
(red state). The Edge State (AND combination of the results of edge and object detection)
is displayed red (not ok). The ascertained width of the object is 14.2mm (column Edge1
-> line Width (X)).
Notice!
For sensors with analog output, a valid measurement value transmission for edges only
occurs at the analog output if the Edge Status is ok (see page 81).
In the case of sensors with digital switching outputs at X3 (LES 36/VC6, LES 36 HI/VC6),
the status of Edge 1 to 4 is signaled at outputs Out1 to Out4 (HIGH active).
Leuze electronicTechnical description LES89
TNT 35/7-24V
LESsoft configuration software
9.4.3Standard tab - Single Shot Mode panel
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 LESsoft until RequestMeasurement is clicked again.
9.4.4Standard tab - Global Parameters panel
Under Global Parameters you can use Enable External Inspection Task
Selection to configure whether or not the 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 PROFIBUS. In this case, the drop-down menu under InspectionTask Selection has no function.
90Technical description LESLeuze electronic
LESsoft configuration software
9.4.5Analog Output tab - configuring the analog output (only LES 36/VC)
For analog devices, you can configure the analog voltage and current output of the
LES 36/VC in the Analog Output tab.
Figure 9.11: Parameter settings in LRSsoft
The following settings can be made for the analog output:
Edge
Selection of from which EAW (Edge Analysis Window) the measurement value is to be
transmitted.
Output Mode
Selection of whether the current or voltage output is to be used as the process interface.
Data
Selection of which value of the selected EAW is to be output at the analog output. Select
from the following measurement values:
• Edge positions: LX, LZ, RX, RZ
- LX = Left edge X-coordinate
- LZ = Left edge Z-coordinate
- RX = Right edge X-coordinate
- RZ = Right edge Z-coordinate
• Width of objects: W
• Height difference of left and right edge: H
Leuze electronicTechnical description LES91
TNT 35/7-24V
LESsoft configuration software
Notice!
The selected value is appears in the measurement value display of the display (2nd line) in
the middle.
mm For Min. Val.
Measurement value in mm for the lower range limit of the voltage or current (1V/4mA).
mm For Max. Val.
Measurement value in mm for the upper range limit of the voltage or current output
(10V/20mA).
Notice!
The minimum adjustable range between the upper and lower range limit of the analog output
is 10mm.
Notice!
The changed settings must be transferred to the sensor with Apply Settings.
92Technical description LESLeuze electronic
LESsoft configuration software
9.5Menu commands
9.5.1Saving parameter settings/File menu
The File menu i s 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 LES is reconfigured via
Inspection Tasks. A parameter file stored on a
data carrier can only be used with LESsoft 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 LESsoft 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
9.5.2Transmitting parameter settings/Configuration menu
The Configuration menu is used to exchange parameter
data with the connected LES.
• Load from Sensor loads all parameter settings for all
defined inspection tasks from the LES 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 LES.
• Reset to factory settings resets the LES to factory settings.
TNT 35/7-24V
Leuze electronicTechnical description LES93
LESsoft 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.5.3Zoom 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.12: Zoom function
After activating the magnifying glass, each click on the view enlarges the displayed section.
The enlarged section can then be shifted with the activated hand function to display the
area of interest.
Notice!
The click-and-drag method for zooming known from other programs is not possible here.
Before LPSsoft is operated further, the tool buttons (Zoom, Pan, …) must be activated.
9.6Definition of inspection tasks
Typical procedure
1.Start LESsoft and connect the sensor:
Click on the Connect to sensor button:
2.Fetch the configuration from the sensor via Load from Sensor or load it from the
data carrier with Open.
3.Remove the tick at Enable Selection Inputs.
4.Use Inspection Task Selection to select the inspection task to be modified.
94Technical description LESLeuze electronic
LESsoft configuration software
5.Display and, if necessary, enlarge 2D view of the detection range in the Parameters
tab.
6.Standard tab - Task Parameters panel: define required (E)AWs with mouse or keyboard
in the Analysis Windows Definitions window (Edit Analysis Windows
button); confirm each of the set (E)AWs with Apply Settings.
Configure the Sequent Hits limit value for the edge plausibility check for each EAW.
7.Configure PROFIBUS process data in the Edge Analysis Window Combination
Tables window (Edit Logical Combinations button) in lines Profibus
Inputs 1 and Profibus Inputs 2, or, alternatively, configure the analog output
via the Analog Output tab.
8.Check the process reliability in the Edge Analysis Window Combination Tables
window and in the 2D view.
9.Assign a name (Name) to the inspection task and confirm with Accept.
10. Temporarily transfer the inspection task with Apply Settings.
11. Where applicable: define further inspection tasks with steps 5.-9.
12. Tick Enable Selection Inputs again.
13. Permanently transfer the configuration including all inspection tasks to the sensor with
Transmit to Sensor.
14. Where applicable: save the configuration to data carrier with Save As…
15. Finally, disconnect the connection to the sensor:
click on the button Disconnect from sensor:
Leuze electronicTechnical description LES95
TNT 35/7-24V
Integrating the LES in the process control
10Integrating the LES in the process control
10.1General information
The LES communicates with the process control via UDP/IP using the protocol described
in chapter 10.2.9. The protocol operates in two different modes:
• Measure mode
•Command Mode
In measure mode, the LES 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 LES reacts to commands from the control. The commands available
are described in chapter 10.2.9.
Notice!
If you use a firewall, please make certain that the control can communicate with the LES 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 LES 36/PB in the process control via PROFIBUS
is described in chapter 11 "Integration of the LES 36/PB in the PROFIBUS" on page 113.
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.2.9 and the protocol description are represented in "big
endian" format, i.e., the high-byte first followed by the low-byte
(0x… hexadecimal).
Windows PCs (and many controls, such as the Siemens S7), however, store data in the "little
endian" format, i.e. the low byte first followed by the high byte.
If, in your process environment, the LES does not respond to commands from the control
even though communication with LESsoft functions properly, check whether the problem
lies with the byte order.
Example: for command 0x434E (Connect to Sensor) a Windows PC must transmit 0x4E and
0x43 in order for it to be understood by the LES. In the transaction number of the answer
from LES there is then also 0x4E43 (byte sequence 0x43, 0x4E).
The LES 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.
96Technical description LESLeuze electronic
Integrating the LES in the process control
Protocol structure
The protocol consists of the header (30 bytes) followed by the user data (0 … 75 data
words @ 2 bytes). The protocol is used both in command mode when transmitting
commands and when acknowledging sensor commands as well as in measure mode.
1) For sensor models with encoder input, these 4 bytes contain the encoder value.
With the LES, this value is always 0x0000 0000.
Number of user data words
0x0010
fixed value:
Length 2 bytes,
0x0000 / 0x0001 / 0x0002 /
Length 2 bytes, possible values:
0x0003 / 0x0178
10.2.1 Command number
The command number specifies both the command from the control to the sensor as well
as the command from the sensor to the control (see chapter 10.2.9).
In measure mode, the sensor always sends an evaluation telegram with command number
0x5354.
10.2.2 Packet number
The packet number serves internal maintenance purposes of the manufacturer.
10.2.3 Transaction number
In measure mode, 0x0000 is always displayed here.
In command mode, the command acknowledgment of the sensor contains the command
number of the command that is answered.
Leuze electronicTechnical description LES97
TNT 35/7-24V
Integrating the LES in the process control
10.2.4 Status
Indicates the state of the sensor. The state is coded as follows:
MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
--1 -------------Error detected, measurement data are still
The LSB of the high byte is always set to 1 as long as the parameter Activation Input
has been set to Disregard (Always on) in LESsoft.
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).
sent if applicable, the sensor then switches
into error mode
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.
98Technical description LESLeuze electronic
Integrating the LES in the process control
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. The Z- and X-data belonging to a
measurement are identified via the same scan number.
10.2.7 Type
Specifies how the detection data are to be interpreted. The fixed default value is 0x0010.
10.2.8 Number of user data
The user data have a variable length of 0, 1, 2, 3 or 75 data words (0, 2, 4, 6 or 150 bytes).
Indicates the number of user data transferred. The fixed default value in detection mode is
0x0059.
10.2.9 Evaluation telegram
In detection mode for the LES, the evaluation telegram is transmitted with command number
0x5354. After the header are 75 user data words with the following structure:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32- - - - - - - - - - - - N4 N3 N2 N1 Number of the cur rent inspection task
33…34- - - - - - - -
35…36- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW1
37…38- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW2
39…40- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW3
41…42- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW4
43…44- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW5
45…46- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW6
47…48- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW7
49…50- - - - - - - A9 A8 A7 A6 A5 A4 A3 A2 A1 Current number of measurement points (Current Hits) in EAW8
51…52- - - - - - - - - - - - E4 E3 E2 E1 Results of logic line AW Logic for Edge1 … Edge4
53…54E4 E3 E2 E1 Results of logic line AW Logic Analysis Depth for Edge1 … Edge4
55…56E4 E3 E2 E1 Results of edge d etection in line Object Point/EAW State
57…58E4 E3 E2 E1 Results of Edge State line (edge and object detection)
59…60Current Sequent Hits Left in EAW1
61…62Current Sequent Hits Right in EAW1
63…64Left edge X-value LX in EAW1
65…66Left edge Z-value LZ in EAW1
67…68Right edge X-value RX in EAW1
69…70Right edge Z-value RZ in EAW1
71…72Width W in EAW1
73…74Height H in EAW1
AW8 AW7 AW6 AW5 EAW4EAW3EAW2EAW
Results of the individual analysis windows
1
TNT 35/7-24V
Leuze electronicTechnical description LES99
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.