The symbols used in this technical description are explained below.
Attention!
This symbol precedes text messages which must strictly be observed. Failure to observe
the provided instructions could lead to personal injury or damage to equipment.
Attention Laser!
This symbol warns of possible danger through hazardous laser radiation.
The light section sensors of the LPS series use a class 2M laser: Viewing the laser output
with certain optical instruments, e.g. magnifying glasses, microscopes or binoculars, may
result in eye damage.
Note!
This symbol indicates text passages containing important information.
General information
1.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).
Note!
The CE Declaration of Conformity for these devices can be requested from the manufacturer.
The manufacturer of the product, Leuze electronic GmbH & Co. KG in D-73277 Owen,
possesses a certified quality assurance system in accordance with ISO 9001.
Leuze electronicLPS 368
TNT 35/7-24V
2Safety
This sensor was developed, manufactured and tested in line with the applicable safety standards. It corresponds to the state of the art.
2.1Intended use
The Light section sensors of the LPS series are laser distance sensors to determine 2D
profiles.
Areas of application
The LPS series Light section sensors are especially designed for the following areas of
application:
• 3D Measurement of moving objects
• Manipulator control
• Measurement of free formed surfaces
• Case picking
CAUTION
Observe intended use!
The protection of personnel and the device cannot be guaranteed if the device is operated
in a manner not complying with its intended use.
Only operate the device in accordance with its intended use.
Leuze electronic GmbH + Co. KG is not liable for damages caused by improper use.
Read these operating instructions before commissioning the device. Knowledge of
this document is required in order to use the equipment for its intended purpose.
Safety
NOTE
Comply with conditions and regulations!
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
OPERATION NOTICE IN ACCORDANCE WITH UL CERTIFICATION:
CAUTION – Use of controls or adjustments or performance of procedures other than
specified herein may result in hazardous light exposure.
Leuze electronicLPS 369
TNT 35/7-24V
CAUTION
UL applications!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC
(National Electric Code).
2.2Foreseeable misuse
Any use other than that defined under "Intended use" or which goes beyond that use is
considered improper use.
In particular, use of the device is not permitted in the following cases:
• in rooms with explosive atmospheres
• as stand-alone safety component in accordance with the machinery directive
• for medical purposes
NOTE
Do not modify or otherwise interfere with the device!
Do not carry out modifications or otherwise interfere with the device.
The device must not be tampered with and must not be changed in any way.
The device must not be opened. There are no user-serviceable parts inside.
Repairs must only be performed by Leuze electronic GmbH + Co. KG.
Safety
1)
2.3Competent persons
Connection, mounting, commissioning and adjustment of the device must only be carried
out by competent persons.
Prerequisites for competent persons:
• They have a suitable technical education.
• They are familiar with the rules and regulations for occupational safety and safety at
work.
• They are familiar with the technical description of the device.
• They have been instructed by the responsible person on the mounting and operation
of the device.
1) Use as safety-related component within the safety function is possible, if the component combination is designed correspondingly by the machine manufacturer.
Leuze electronicLPS 3610
TNT 35/7-24V
Certified electricians
Electrical work must be carried out by a certified electrician.
Due to their technical training, knowledge and experience as well as their familiarity with
relevant standards and regulations, certified electricians are able to perform work on electrical systems and independently detect possible dangers.
In Germany, certified electricians must fulfill the requirements of accident-prevention regulations BGV A3 (e.g. electrician foreman). In other countries, there are respective regulations that must be observed.
2.4Exemption of liability
Leuze electronic GmbH + Co. KG is not liable in the following cases:
• The device is not being used properly.
• Reasonably foreseeable misuse is not taken into account.
• Mounting and electrical connection are not properly performed.
• Changes (e.g., constructional) are made to the device.
2.5Laser safety notices
ATTENTION, LASER RADIATION – LASER CLASS 2M
Never look directly into the beam or point the beam in the direction of telescope
users!
The device fulfills the IEC 60825-1:2007 (EN 60825-1:2007) safety regulations for a
product in laser class 2M as well as the U.S. 21 CFR 1040.10 regulations with deviations
corresponding to "Laser Notice No. 50" from June 24th, 2007.
Never look directly into the laser beam or in the direction of reflected laser beams!
If you look into the beam path over a longer time period, there is a risk of injury to the
retina.
Do not point the laser beam of the device at persons!
Interrupt the laser beam using a non-transparent, non-reflective object if the laser
beam is accidentally directed towards a person.
When mounting and aligning the device, avoid reflections of the laser beam off reflec-
tive surfaces!
CAUTION! The use of operating or adjusting devices other than those specified here
or carrying out of differing procedures may lead to dangerous exposure to radiation.
The use of optical instruments or devices (e.g., magnifying glasses, binoculars) with
the product will increase eye danger.
Observe the applicable statutory and local laser protection regulations.
The device must not be tampered with and must not be changed in any way.
There are no user-serviceable parts inside the device.
Repairs must only be performed by Leuze electronic GmbH + Co. KG.
Safety
TNT 35/7-24V
Leuze electronicLPS 3611
Safety
A Laser aperture
B Laser warning sign
C Laser information sign with laser parameters
B
C
A
NOTE
Affix laser information and warning signs!
Laser warning and laser information signs are affixed to the device (see Figure 2.1):
In addition, self-adhesive laser warning and information signs (stick-on labels) are supplied
in several languages (see Figure 2.2).
Affix the laser information sheet to the device in the language appropriate for the place
of use.
When using the device in the U.S.A., use the stick-on label with the "Complies with
21 CFR 1040.10" notice.
Affix the laser information and warning signs near the device if no signs are attached
to the device (e.g., because the device is too small) or if the attached laser information
and warning signs are concealed due to the installation position.
Affix the laser information and warning signs so that they are legible without exposing
the reader to the laser radiation of the device or other optical radiation.
Figure 2.1:Laser apertures, laser warning signs
Leuze electronicLPS 3612
TNT 35/7-24V
AVOID EXPOSURE – LASER RADIATION
IS EMITTED FROM THIS APERTURE
EXPOSITION DANGEREUSE – UN RAYONNEMENT
LASER EST ÉMIS PAR CETTE OUVERTURE
LASERSTRAHLUNG
NICHT IN DEN STRAHL BLICKEN
ODER DIREKT MIT OPTISCHEN
INSTRUMENTEN BETRACHTEN
LASER KLASSE 2M
DIN EN 60825-1:2008-05
Max. Leistung (peak):
Impulsdauer:
Wellenlänge:
LASER RADIATION
DO NOT STARE INTO BEAM
OR VIEW DIRECTLY WITH
OPTICAL INSTRUMENTS
CLASS 2M LASER PRODUCT
EN 60825-1:2007
Maximum Output (peak):
Pulse duration:
Wavelenght:
RADIACIÓN LÁSER
NO MIRAR FIJAMENTE AL HAZ
NI MIRAR DIRECTAMENTE CON
INSTRUMENTOS ÓPTICOS
PRODUCTO LÁSER DE CLASE 2M
EN 60825-1:2007
Potencia máx. (peak):
Duración del impulso:
Longitud de onda:
RADIAÇÃO LASER
NÃO OLHAR FIXAMENTE O FEIXE
NEM OLHAR DIRECTAMENTE
COM INSTRUMENTOS ÓPTICOS
EQUIPAMENTO LASER CLASSE 2M
EN 60825-1:2007
Potência máx. (peak):
Período de pulso:
Comprimento de onda:
LASER RADIATION
DO NOT STARE INTO BEAM
OR VIEW DIRECTLY WITH
OPTICAL INSTRUMENTS
CLASS 2M LASER PRODUCT
IEC 60825-1:2007
Complies with 21 CFR 1040.10
Maximum Output (peak):
Pulse duration:
Wavelength:
0伊䉏⏘ℶ❐
GB7247.1-2012
㦏⮶戢⒉᧤⽿⋋᧥
厘⑁㖐兼㢅梃
㽱栎
䉏⏘戟⺓
▎䦃展㒥抩扖⏘ⷵ
ⅹ⣷䦃㘴屑䦚⏘㧮
8,7 mW
3 ms
658 nm
8.7 mW
3 ms
658 nm
8,7 mW
3 ms
658 nm
8,7 mW
3 ms
658 nm
8,7 mW
3 ms
658 nm
8,7 mW
3 ms
658 nm
8.7 mW
3 ms
658 nm
8.7 mW
3 ms
658 nm
50111877-02
Safety
Figure 2.2:Laser warning and information signs – supplied stick-on labels
TNT 35/7-24V
Leuze electronicLPS 3613
3Operating principle
CMOS area
detector
Receiving optics
Laser with expansion optics
The zero point of the coordinate system is the intersection
of optical axis and front edge of
the housing.
3.1Generation of 2D profiles
Light section sensors work according to the triangulation principle. Using transmission
optics a laser beam is expanded to a line and aimed at an object. The light remitted by the
object is received by a camera, which consists of receiver optics and the CMOS area
detector.
Operating principle
-X
+X
-Y
Z
Figure 3.1:Light section sensor design
Depending on the distance of the object the laser line is projected to a different position on
the CMOS planar detector as shown in Figure 3.1. By means of this position the distance
of the object can be calculated.
Leuze electronicLPS 3614
TNT 35/7-24V
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 electronicLPS 3615
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 22). This reliably prevents mutual
interference of the sensors.
Possible measures against receiver occlusion
• Alignment of the measurement objects so that all profile data to be measured can be
seen by the receiver.
Or:
• Installing a second sensor featuring a viewing
direction rotated by 180° about the z-axis so that
the objects can be viewed from 2 sides.
In the example to the right, the left sensor detects
the profile data on the left side of the product, and
the right sensor the profile data on the right side.
In this situation the second sensor is then cascaded. See "Cascading" on page 22.
Leuze electronicLPS 3616
TNT 35/7-24V
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 in mm
Typical resolution in 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 LPS 36…
The output resolution of the measurement values on the process interface is 1/10mm with
Standard-Connect, 1/100mm with HI-Connect (only with LPS 36HI/EN).
Operating principle
Figure 3.4:Typical resolution LPS 36HI…
Leuze electronicLPS 3617
TNT 35/7-24V
4Device description
Laser transmitter
Receiver
(CMOS camera)
Display with membrane
keyboard
Electrical connection and
grounding terminal
Groove for dovetail mounting and fastening holes
Note:
The following shows a light section sensor as an example.
An overview of the available types may be found in Chapter 14.1
4.1Overview of light section sensors
4.1.1Mechanical design
Figure 4.1:Mechanical design of Leuze light section sensors
Device description
4.1.2General performance characteristics
• Light section sensor for object/contour measurement
• Measurement time/response time: 10ms
• Measurement range/detection area: 200 … 800mm
• Measurement range/detection area: LPS 36…: 200 to 800 mm, LPS 36HI…: 200 to
600mm
• Length of laser line: max. 600 mm
• Length of the laser line: LPS 36…: max. 600 mm, LPS 36HI…: max. 140 mm
• Configuration and transmission of process data via Fast Ethernet
• OLED display with membrane keyboard
• Measurement value display in mm on OLED display as an alignment aid
Wherever stationary or moving objects of
various sizes and positions are to be measured
or detected, the LPS sensor is used. 3D data are
provided reliably due to precise 2D profile
measurements in connection with mobile scanning. Thus numerous application possibilities
are available to determine positions, surfaces
and contents.
Specific performance characteristics
• Measurement data transfer via Ethernet
• LPSsoft configuration software
• Optional: Interface for incremental
encoder
Typical areas of application
• Case picking
• Manipulator control
• Measurement of free formed surfaces
• 3D Measurement of moving objects
Device description
Leuze electronicLPS 3619
TNT 35/7-24V
4.2Operating the sensor
p
t
Laser off
Laser off
Exposing and measuring
Processing and transmitting
Laser
Activation input
Pin 2 at X1
Output
10ms between 2 consecutive
laser pulses in "Free Running"
mode
Axes: p = level, t = time
Approx. 14ms
between laser pulse and as-
sociated data output
4.2.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 36) and are then set using the configuration
software supplied LPSsoft.
Measurement operation
In measurement operation the Light section sensors are connected to a process control via
the same X2 interface, and communicate with it via Ethernet (UDP), see chapter 10 "Integrating the LPS in the process control (Ethernet)".
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.
Note!
The sensor is delivered ex works with the Activation Input Disregard setting. The
possible activation sources (activation input and Ethernet activation) are ignored - the 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.
Device description
Leuze electronicLPS 3620
Figure 4.2:Activation input signal sequence
TNT 35/7-24V
The Figure 4.2 shows the effect of the activation on laser and measurement value output in
A second trigger
pulse before 10ms
have elapsed has
no effect
Trigger time (rising edge)
Laser
Activation input
Pin 2 at X1
Output
(Ethernet)
Data packets, approx. 1ms
t
fix
Approx. 14ms
Trigger input
Pin 5 at X1
Axes: p = level, t = time
"Free Running" mode.
4.2.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 either a trigger signal at the trigger input (pin 5 on X1) or the
Ethernet Trigger command in measure mode (see Chapter 10.3.4"Commands in
measure mode" on page 91).
When triggering via pin 5 at X1, note:
- Triggering occurs on the rising edge.
-The trigger pulse must be at least 100μs long.
- Before the next trigger, the trigger cable must be on low-level for at least 1 ms.
- Activation must occur at least 100μs before the trigger edge.
- The shortest possible time interval between two successive trigger edges is 10ms.
Note!
Ex works, the LPS is set to Free Running (shown on display:
respond to signals on the trigger input, the operating mode must be set via the LPSsoft configuration software to Input Triggered (shown on display:
Device description
fRun
). In order for it to
Trig
).
Leuze electronicLPS 3621
p
Figure 4.3:Trigger input signal sequence
TNT 35/7-24V
t
4.2.4Cascading
Laser
Measurement value output
Trigger input, pin 5 at X1
/ not required
Cascading output,
pin 6 at X1
Sensor 1 / Master
Laser
Measurement value output
Trigger input, pin 5 at X1
Cascading output,
pin 6 at X1
Sensor 2 / 1st slave
Laser
Measurement value output
Trigger input, pin 5 at X1
Cascading output,
pin 6 at X1
Sensor 3 / 2nd slave
Figure 4.4:Signal sequence for cascading
Figure 4.5:Cascading application example
If several Light section sensors are operated, there is the risk of mutual interference
if the reflected laser beam of one sensor can
be received by the receiver of another
sensor at the time of reading.
This can easily be seen in Figure 4.5. Here
three Light section sensors are used to
determine the log thickness reliably from all
sides.
To prevent mutual interference the Light
section sensors can be operated cascaded: the exposure by the second sensor will be initi-
Leuze electronicLPS 3622
ated following completion of the exposure by the first sensor. To achieve this, the cascading
output of the first sensor must be connected to the trigger input of the second sensor. Up
to 6 sensors can thus be operated cascaded.
Trigger settings
Se nso r 1, or the m ast er, can be ope rat ed i n th is c ase bot h tr igg ere d as wel l as con tin uou sly.
All other sensors must be operated triggered.
Cascading settings
For all sensors except the last slave, the cascading output must be enabled via configuration
software: Cascading Output: Enable.
Device description
TNT 35/7-24V
4.3Inspection Task
The LPS supports up to 16 individual inspection tasks. Grouped together in an inspection
task are all parameter settings relevant for an application:
• Operation Mode (Free Running, Input Triggered)
• Activation Input (switch laser on and off)
• Cascading Output
• Light Exposure (exposure duration of the laser)
• Field of View (sensor detection range)
The selection of the inspection tasks is carried out:
• via LPSsoft (on a PC connected via X2)
• via Ethernet (on a process control connected via X2)
• via the control panel of the sensor beginning with firmware V01.40.
Device description
Leuze electronicLPS 3623
TNT 35/7-24V
5Installation and mounting
Note:
The following shows a light section sensor as an example. An
overview of the available types may be found in Chapter 14.1
5.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.
Ensure compliance with the approved environmental conditions listed in the specifications.
Unpacking
Check the packaging content for any damage. If damage is found, notify the post office
or shipping agent as well as the supplier.
Check the delivery contents using your order and the delivery papers:
• Delivered quantity
• Device variant and model as indicated on the nameplate
• Laser warning signs
• Brief manual
The name plate provides information as to what Light section sensor type your device is.
For specific information, please refer to Chapter 14.
Installation and mounting
Figure 5.1:Device name plate LPS
Save the original packaging for later storage or shipping.
If you have any questions concerning your shipment, please contact your supplier or your
local Leuze electronic sales office.
Observe the applicable local regulations when disposing of the packaging materials.
Leuze electronicLPS 3624
TNT 35/7-24V
5.2Mounting the LPS
Dovetail fastening grooves
M4 threaded holes
The Light section sensors can be mounted in different ways:
• By means of two M4x6 screws on the back of the device
• Using a BT 56 mounting device on the two fastening grooves.
• Using a BT 59 mounting device on the two fastening grooves.
Figure 5.2:Fastening options
Installation and mounting
Figure 5.3:Mounting example LPS
Leuze electronicLPS 3625
TNT 35/7-24V
5.2.1BT 56 mounting device
Clamping jaws for
mounting on the LPS
Clamp profile for
mounting to round or
oval pipes
Ø16…20mm
A Rod holder, turnable 360°
B Rods Ø 16 … 20mm
all dimensions in mm
The BT 56 mounting device is available for mounting the LPS using the fastening grooves.
It is designed for rod mounting (Ø 16 mm to 20mm). For order guide, please refer to chapter
"Type overview and accessories" on page 106.
Installation and mounting
Figure 5.4:BT 56 mounting device
Leuze electronicLPS 3626
TNT 35/7-24V
5.2.2BT 59 mounting device
Clamping jaws for
mounting on the LPS
A Holder, turnable 360°
B ITEM joint, angle adjustable ±90°
C M8x16 screw cylinder, M8 serrated washer,
M8 sliding block, connectors for ITEM profile (2x)
all dimensions in mm
The BT 59 mounting device is available for mounting the LPS on ITEM profiles using the
fastening grooves. For order guide, please refer to chapter "Type overview and accessories"
on page 106.
Installation and mounting
Figure 5.5:BT 59 mounting device
Leuze electronicLPS 3627
TNT 35/7-24V
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 LPS and the host system depending on
which interface is used.
• The display and control panel should be very visible and accessible.
When selecting a mounting location, pay further attention to:
• Maintaining the required environmental conditions (temperature, humidity).
• Possible soiling of the optics covers on transmitter and receiver by discharged liquids,
abrasion from cartons or packaging residues.
• Lowest possible chance of damage to the LPS by mechanical collision or jammed
parts.
• Possible extraneous light (no direct sunlight or sunlight reflected by the measurement
object).
• The optimal perspective for detecting the relevant contours of objects, see
chapter 3.2.1 "Occlusion".
Attention, laser radiation!
When mounting and aligning the LPS, avoid reflections of the laser beam off reflective surfaces!
Note!
The prevention of ambient light due to shielding of the sensor for example, ensures stable
and precise measurement values. Secondary reflections of the laser line on reflective objects
must be avoided as these can result in faulty measurements.
The best measurement results are obtained when:
Installation and mounting
- You adapt the operating mode (light/dark) to the application
- You do not measure high-gloss objects.
- There is no direct sunlight.
5.3.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.
A rotation about the y-axis is undesirable as this then necessitates a coordinate transformation of the measurement values.
The Figure 5.6 illustrates the problem:
Leuze electronicLPS 3628
TNT 35/7-24V
Installation and mounting
+X
-X
Z
-Y
-X
+X
Z
-Y
Figure 5.6:Alignment to the measuring plane
A rotation of the sensor about the y-axis distorts the entire coordinate system, which the
measurement values relate to. The sensor measures along the solid line in the right picture,
however the measuring plane is located on the dotted line, and a measurement towards the
conveying belt shown in gray would result in a tilted plane.
A conversion into correct X/Z-coordinates is possible but to achieve this the user has to
carry out a coordinate transformation in the process control. The Light section sensor does
not offer a conversion option internally.
When setting up an application it is therefore very important to ensure correct alignment
and that the integrated alignment aid on the display is used.
5.4Attach laser warning sign
Attention Laser!
Observe the safety notices in Chapter 2.
It is essential that you attach the stick-on label (laser warning signs and laser beam exit
symbol) supplied with the Light section sensor to the Light section sensor! If the signs
would be concealed as a result of the mounting situation of the LPS, attach the signs in
the vicinity of the LPS such that reading the signs cannot lead to looking into the laser
beam!
When installing the LPS in North America, also attach the stick-on label saying "Complies
with 21 CFR 1040.10"
5.5Cleaning
Clean the optics cover of the LPS with a soft cloth after mounting. Remove all packaging
remains, e.g. carton fibers or styrofoam balls. In doing so, avoid leaving fingerprints on
the optics cover of the LPS.
Attention!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
Leuze electronicLPS 3629
TNT 35/7-24V
6Electrical connection
Note:
The following shows a light section sensor as an example.
An overview of the available types may
be found in Chapter 14.1
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2
X3
X4
7
8
X1
VIN
Act
Trig
Ready
OutCas
GND
7
8
Note:
The following shows a light section sensor as an example.
An overview of the available types may
be found in Chapter 14.1
The Light section sensors are connected using variously coded M12 connectors. This
ensures unique connection assignments.
For the locations of the individual device connections, please refer to the device detail shown
below.
Note!
The corresponding mating connectors and ready-made cables are available as accessories
for all connections. For additional information, refer to Chapter 14.
Figure 6.1:Location of the electrical connections
All the Light section sensors are equipped with three M 12 plugs / sockets which are A- and
D-coded.
Electrical connection
TNT 35/7-24V
Leuze electronicLPS 3630
Figure 6.2:Connections of the LPS
The pin assignment of X1 and X2 is identical for all Light section sensors; X3 and X4 differ
depending on device type.
Using the name plate check the exact type designation. The version of X3/X4 is contained
in the following table:
Do not open the Light section sensor yourself under any circumstances! There is otherwise
a risk of uncontrolled emission of laser radiation from the Light section sensor. The housing
of the LPS contains no parts that need to be adjusted or maintained by the user.
Before connecting the device, be sure that the supply voltage agrees with the value printed
on the name plate.
Connection of the device and cleaning must only be carried out by a qualified electrician.
If faults cannot be cleared, the LPS should be switched off from operation and protected
against accidental use.
The LPS Light section sensors are designed in accordance with protection class III for supply
by PELV (protective extra-low voltage with reliable disconnection).
Electrical connection
Note!
Degree of protection IP 67 is achieved only if the connectors and caps are screwed into
place! The connectors used must be equipped with O-ring seals. Therefore, preferably,
please use the ready-made cables by Leuze electronic.
Leuze electronicLPS 3631
TNT 35/7-24V
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 sensorInterfaceMax. cable lengthShielding
Power supply unitX150mrequired
Activation / cascading / triggerX150mrequired
PC/HostX250mrequired
EncoderX350mrequired
Table 6.2:Cable lengths and shielding
Shielding:
1.Ground the LPS housing:
Connect the housing of the LPS via the functional earth (FE) screw provided for this
purpose (see Figure 6.3, devices produced after April 2011) with the protective 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 crosssectional area (grounding strip, …).
If the LPS does not yet have an FE screw of its own, please use one of the M4 holes
on the dovetail.
Important: Place a lock washer underneath and check the penetration of the anodized
coating of the LPS housing by measuring the electrical connection from FE star point
to the connector sleeves without connected sensor cables so that other FE interruptions can be detected on the machine base and profile rails as well.
2.Shield all connection cables to the LPS:
Apply the shield to FE on both sides. On the LPS end, this is ensured if the LPS housing
is connected to FE (PE) as described under 1. (shield fitted over the connector sleeves
to the housing).
In the switch cabinet, clamp the shield flat to FE. To do this, use special shielding clamps (e.g., Wago, Weidmüller, …).
Keep the length of the shieldless end of the cable as short as possible.
The shield should not be connected at a terminal in a twisted fashion (no "RF braid").
3.Disconnect power and control cables:
Lay the cables for the power components (motor cables, lifting magnets, frequency
inverters, …) as far from the sensor cables as possible (distance > 30 cm). Avoid laying
power and sensor cables parallel to one another.
Cable crossings should be laid as perpendicular as possible.
4.Lay cables close to grounded metal surfaces:
This measure reduces interference coupling in the cables.
5.Avoid leakage currents in the cable shield:
Leakage currents arise from incorrectly implemented equipotential bonding. Therefore, carefully ground all parts of the machine.
Note: You can measure leakage currents with a clip-on ammeter.
Electrical connection
TNT 35/7-24V
Leuze electronicLPS 3632
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!
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.
• Properly ground the total system.
Carefully ground all parts of the machine and of the switch cabinet using copper strips,
ground rails or grounding cables with large cross section.
Below, the EMC-compliant connection of the Light section sensors LPS is described in practical use with images.
Connect the ground potential to the light section sensors
Figure 6.3:Connecting the ground potential to the light section sensor
Leuze electronicLPS 3633
TNT 35/7-24V
Connecting the cable shielding in the switch cabinet
• Shield connected flat to PE
• Connect PE star point with short cables
• Galvanized mounting sheet steel
Comment:
Depicted shield components from Wago,
series 790 ...:
- 790-108 Shield clamping bracket 11 mm
- 790-300 Busbar holder for TS35
• Where possible, use shielded
sensor cables
• Connect shield flat to PE using
shield clamping system
• Mounting rails must be well
grounded
Comment:
Depicted shield components
from Wago, series 790 ...:
- 790-108 Shield clamping
bracket 11 mm
- 790-112 Carrier with
grounding foot for TS35
Figure 6.4:Connecting the cable shielding in the switch cabinet
Connecting the cable shielding to the PLC
Electrical connection
Figure 6.5:Connecting the cable shielding to the PLC
Preferably, please use the ready-made cables KD S-M12-8A-P1-…", see Chapter 14.2.2.
RD
Electrical connection
not connected
18 - 30 VDC
100 mA (max. 250 mA)
GND
X1-1
X1-4/6
X1-3
Figure 6.6:Internal wiring at X1
Power supply
For power supply specifications please refer to Chapter 13.
Activation input InAct
The activation input is used to switch the laser on and off via the process control. The sensor
stops outputting data and does not respond to trigger commands or the trigger input. The
equivalent circuit of the inputs at X1 is shown in Figure 6.6.
Trigger input InTrig
The trigger input is used for synchronizing the measurement with the process and for
synchronizing cascaded sensors. Further information can be found in Chapter 4.2.3 and
Chapter 4.2.4. The internal equivalent circuit is shown in Figure 6.6.
Leuze electronicLPS 3635
TNT 35/7-24V
Cascading output OutCas
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2
M12 socket
(D-coded)
Tx+
1
2
3
4
Rx+
Rx-
Tx-
X2RJ 45
Tx+ (1)
Tx- (2)
Rx+ (3)
Rx- (6)
1
8
Twisted pair
Twisted pair
In order to operate several Light section sensors cascaded this output must be connected
directly to the trigger input of the following sensor. Detailed information on this topic can
be found in Chapter 4.2.4. The internal equivalent circuit is shown in Figure 6.6.
Output "ready" OutReady
This output indicates operational readiness of the sensor. The state of the output corresponds to the state of the green LED (see "LED status indicators" on page 42).
6.3.2Connection X2 - Ethernet
Attention!
All cables must be shielded!
The LPS makes either the Ethernet interface available as host interface.
Electrical connection
X2 (4-pin socket, D-coded)
PinNameCore colorComment
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 "KS(S) ET-M12-4A-…", see
Chapter 14.2.3.
Ethernet cable assignment
Figure 6.7:HOST / BUS IN cable assignments on RJ-45
Notice for connecting the Ethernet interface!
Leuze electronicLPS 3636
Ensure adequate shielding. The entire interconnection cable must be shielded and earthed.
The Rx+/Rx- and Tx+/Tx- wires must be stranded in pairs.
Use CAT 5 cables for the connection.
TNT 35/7-24V
6.3.3Connection X3 - incremental encoder
M12 socket
(A-coded)
The LPS 36/EN and LPS 36HI/EN are equipped with an interface for an incremental encoder.
Differential signals (5 V) or 24V signals against GND can be processed. For reasons of interference rejection, differential connection is recommended.
Attention!
All cables must be shielded!
Note!
The X3 connection is assigned only at the LxS 36/EN!
X3 (8-pin socket, A-coded)
PinNameCore
1 Enc. +24VDCwh+24VDC supply voltage for incre-
X3
Enc. +24 V DC
Enc. B-
7
Enc. B+
Enc. A-
Enc. A+
Table 6.5:Pin assignment X3
Preferably, please use the ready-made cables "KS S-M12-8A-P1-…", see
Chapter 14.2.4.
The maximum permissible current consumption of connected encoders is 140mA. The
maximum pulse frequency is 300kHz.
V DC
+5
8
(GND)
GND
2(GND)brGround
3GND gnGround
Out
4Enc. A+yeIncremental encoder connection
5Enc. A-grIncremental encoder connection
6Enc. B+piIncremental encoder connection
7Enc. B-buIncremental encoder connection
8+5V DC OutRD+5 V DC supply voltage for incre-
Electrical connection
Comment
color
mental encoder
A+
A-
B+
B-
mental encoder
TNT 35/7-24V
Note!
New with firmware V01.20:
• Support of single-channel and two-channel encoders.
• Single mode (no pulse duplication), i.e., "single evaluation", or
Double Mode (pulse doubling)
• Quadruple mode (pulse quadrupling) is no longer supported
• Overflow value 0xFFFF FFF, 0xFEFF FFFF or 0x7FFF FfFF
Leuze electronicLPS 3637
Electrical connection
Attention!
Up to firmware V01.20, encoder evaluation was permanently set to Quadruple Mode (count
all 4 edges on both encoder channels). This mode is no longer supported beginning with
firmware V01.20.
Note!
New factory settings beginning with firmware V01.20 and with configuration software
LPSsoft V1.3. Together with the new functions, encoder devices with the following factory
settings are shipped:
• Encoder type: 2 Channel Encoder
•Evaluation mode: Double Mode
Previously: Quadruple Mode, this mode is no longer supported beginning with firmware V01.20. Up to firmware V01.20, encoder evaluation was permanently set to
Quadruple Mode (count all four edges on both encoder channels).
• Counter Value Overflow: 0xFFFF FFFF
Previously: 0xFEFF FFFF, the new Counter Overflow value 0xFFFF FFFF permits
distance calculation in Double Mode with 32-bit values without manual correction.
Leuze electronicLPS 3638
TNT 35/7-24V
Electrical connection
ENCODERLPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
A
B
GND
+U
B
Interconnection cable must be shielded!
Channel A: Example of NPN output
Channel B: Example of PNP output
Voltage supply for the incremental encoder is provided by the LPS
ENCODERLPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
A
GND
+U
B
B
Interconnection cable must be shielded!
Voltage supply for the incremental encoder is provided by the LPS
Two-channel incremental encoder with open collector outputs
Figure 6.8:Two-channel incremental encoder connection: example with NPN/PNP open collector
Two-channel incremental encoder, single-ended
Figure 6.9:Two-channel incremental encoder connection: single-ended example
Leuze electronicLPS 3639
TNT 35/7-24V
Electrical connection
ENCODERLPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
GND
+U
B
B
A
A
A
A
B
B
B
Interconnection cable must be shielded, connect shield to housing
at both sides.
Both cable pairs A and B must be produced with twisted-pair
cables.
Voltage supply for the incremental encoder is provided by the LPS
In general, it is recommended to use incremental encoders with RS 422 interface and 24V
supply. That way, signals can be transmitted safely even across larger distances (depending
on the pulse frequency to 50m).
Leuze electronicLPS 3640
TNT 35/7-24V
Electrical connection
ENCODER / PLCLPS 36 / EN
A+
4
5
6
7
8/1
2/3
A-
+5V/24V
GND
B+
B-
clock
GND
+U
B
direction
Interconnection cable must be shielded!
Voltage supply for the incremental encoder is provided by the LPS
Single-channel incremental encoder (beginning with firmware V01.20)
In this setting, pulses of an initiator or of a PLC output can be counted. In addition, the count
direction can be toggled, e.g., via a control.
New beginning with firmware V01.20 and with configuration software LPSsoft V1.3:
• The counting direction of the encoder pulse counter can be reversed with LPSsoft.
• When operating single-channel encoders, the pulses are counted on the A-channel.
The counting direction can be changed by means of an additional direction signal on
channel B:
- Low level on pins 6/7 of X3 = upward pulse counting.
- High level on pins 6/7 of X3 = downward pulse counting.
Figure 6.11: Single-channel incremental encoder connection: single-ended example (schematic illustration)
Single-channel encoders have only one output channel (here clock - channel A). As a result,
it is generally only possible to detect the movement, not, however, the direction of movement
(counting).
The count/movement direction can be preset by applying a signal (here direction) at
channel B:
• 0 - upward counting (default, if no signal is connected to channel B)
• 1 - downward counting
Leuze electronicLPS 3641
TNT 35/7-24V
7Display and control panel
OLED display
128 x 32 pixels
Key pad with 2 buttons
See "Control buttons" on
page 42.
Device LEDs
Green and yellow
See "LED status indica-
tors" on page 42.
Laser beam
7.1Indicators and operational controls
Figure 7.1:Indicator and operating elements of the LPS
After switching on the supply voltage +U
the green LED illuminates continuously: the LPS is in measure mode. The OLED display
shows the alignment aid and the status display.
and following error-free initialization of the device,
B
Display and control panel
7.1.1LED status indicators
LEDStateDisplay during measurement operation
GreenContinuous lightSensor ready
OffSensor not ready
YellowContinuous lightEthernet connection established
FlashingEthernet data transmission active
OffNo Ethernet connection
Table 7.1:LED function indicator
7.1.2Control buttons
The LPS is operated using the and buttons, which are located next to the OLED
display.
Leuze electronicLPS 3642
TNT 35/7-24V
7.1.3Indicators in the display
L450 M450 R450
T00 fRun
Command Mode
The display changes depending on the current operating mode. There are the following three
display modes:
• Alignment aid and status display
•Command mode
• Menu display
The menu display is accessed by pressing one of the two control buttons. Operation
of the LPS via the menu is described in Chapter 7.2.2.
Alignment aid
As an alignment aid, the current measurement value at the left edge
(Lxxx), in the middle (Mxxx) and at the right edge (Rxxx) of the detection
range is displayed in the OLED display in units of millimeters. If no object
is detected or if the distance is too small, distance value
Align the Light section sensor by rotating it about the y-axis in such a way that the same
value is indicated for
L, M, R
Status indicator
Displayed on the second line of the display is the selected inspection
task (Txx) as well as the current sensor state (see chapter 4.2 "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.
The following options are available for the sensor status: fRun means Free Running, Trig
means triggered (see chapter 4.2.3 "Triggering - Free Running") and !ACK means that the
sensor is deactivated (no laser line, see chapter 4.2.2 "Activation - laser on/off").
Command mode
If the LPS is connected to a control, the control can put the LPS into a command mode in
which it receives and executes commands (see chapter 10.3 "Ethernet commands"). In
command mode, the OLED display has one line.
Command Mode appears on the first line of the display.
Display and control panel
000 (mm) appears in the display.
.
TNT 35/7-24V
Leuze electronicLPS 3643
Note!
If errors occur during operation, these are shown on the display. Notes can be found in
Chapter 11.3.
Setting for the subnet mask
(default: 255.255.255.000)
Default gateway for Ethernet communication
Setting for the IP address of the default
gateway (default: 000.000.000.000)
Local port of the sensor for Ethernet communication
Setting for the local port9008
Destination port of the PC or control for
Ethernet communication
Setting for the destination port5634
Return to menu level 2
Data output
Prescaler Value indicates the time interval
between two scan transmissions.
1 = every scan is transmitted
2 = every second scan is transmitted
3 = every third scan is transmitted, etc.
Return to menu level 2
Display settings
Setting "On": always on with maximum
brightness
Setting "Off": off; is switched back on after
keyboard actuation
Setting "Auto": full brightness for approximately 1minute after button is pressed,
then dimmed
1) The inspection tasks can be switched via the control panel.
2) The setting of the active inspection task applies only if "Ext. Selection" = "Disabled"
3) The application settings apply for the currently selected inspection task. Individual application settings
can be made for each task.
4) With "Manual Settings", the value preset via LPSsoft is used.
5) The values configured here are not applied immediately but only when the sensor is switched on the
next time.
6) This parameter is used to reduce the measurement rate (data reduction), value range: 1 … 999
Note!
If no button is pressed for three minutes, the LPS exits menu mode and switches to measure
mode. The OLED display again displays the alignment aid and the sensor status display.
Leuze electronicLPS 3646
TNT 35/7-24V
7.2.2Operation/navigation
Ethernet
Display
IP Address
IP Address
192.169.060.003
IP Address
1 92.168.060.003
IP Address
192.168.001.111
IP Address
192.168.001.111
IP Address
192.168.001.111
Display
On
In menu view, the OLED display has two lines. The currently active menu item is displayed
with black text on a light-blue background. The and
tions depending on the operating situation. These functions are represented via icons on
the right edge of the display – i.e. to the immediate left of the buttons.
The following displays may appear:
Menu navigation
selects the next menu item (Display)
selects the next menu item (IP Address)
can be exited here (Menu Exit). The number of bars at the left edge
indicates the current menu level:
Selecting values or selection parameters for editing
selects the next menu item ( -> Net Mask Addr.)
Editing value parameters
decrements the value of the currently selected digit (1).
through all the digits using
right of the display. If an impermissible value was entered, the
(new entry ) appears and no checkmark is offered for selection.
Display and control panel
buttons both have different func-
switches to the submenu shown with inverted colors (Ethernet)
returns to the next higher menu (). At the top menu level, the menu
selects edit mode for IP Address
selects the next digit to the right (9) for editing. After having clicked
a checkmark () appears at the bottom
symbol
Leuze electronicLPS 3647
changes the edit mode,
saves the new value (192.168.001.111).
changes the edit mode,
selects the first digit (1) for renewed editing.
changes the edit mode,
rejects the new value(in this example, the factory setting
192.168.060.003 remains saved)
Editing selection parameters
displays the next option for Display (Off).
returns to the next-higher menu level and retains On.
appears.
appears.
or appears.
TNT 35/7-24V
displays the next option for Display (Auto).
Display
Off
Display
Off
Display
Off
FactorySettings
Execute
FactorySettings
Execute
Really Reset?
Yes (
) No ()
reset canceled
reset done
selects the new value Off and displays the menu for confirmation:
changes the edit mode;
saves the new value (Off).
changes the edit mode,
rejects the new value (On remains saved).
Note
To ensure that values that were changed via the menu are also applied, you should 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 LPSsoft configuration software
As an example, the first of the methods mentioned above is described below:
When applying the supply voltage, press the
LPS to factory settings.
The display shown next to here appears.
button while connecting the supply voltage
Display and control panel
appears
appears.
button to reset the configuration of the
Leuze electronicLPS 3648
Interrupting a reset
Pressing causes the adjacent display to appear. If you now press the
button, you will exit the menu without resetting the LPS to factory
settings.
Executing a reset
Pressing the
the adjacent safety prompt to appear.
Pressing interrupts the reset process; reset canceled appears in
the display for approx. 2s. Afterward, the LPS returns to measure mode.
Pressing
made previously are permanently lost. reset done appears in the
display for approx. 2s; the LPS then returns to measure mode.
You can select the resetting to factory settings also via LPSsoft.
In the Configuration menu select the entry Reset to Factory Settings.
button while the checkmark () is displayed causes
resets all parameters to the factory settings. All settings
TNT 35/7-24V
Commissioning and configuration
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 LPS is in measure mode.
Note
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 LPS is configured via a PC using the LPSsoft program before it is integrated into the
process control.
In order to be able to establish an UDP communication with the PC, the IP address of your
PC and the IP address of the LPS must lie in the same address range. The LPS has no builtin DHCP client, so that you need to set the address manually. This is done the easiest way
via the PC.
Note!
If you use a desktop firewall, please make certain that the PC can communicate with the
LPS via the Ethernet interface by means of UDP on ports 9008 and 5634 (these ports are
preset at the factory, but may have been changed by the user, see chapter 7.2 "Menu
description"). Furthermore, the firewall must allow ICMP echo messages to pass through
for the connection test (ping).
If the PC is usually connected to a network using DHCP address allocation, the easiest way
to access the LPS is by applying an alternative configuration in the TCP/IP settings of the
PC and connecting the LPS to the PC.
To check the network address of the LPS, switch to the Settings menu from detection
mode of the LPS with the touch of a button.
In the Ethernet submenu (see Chapter 7.2.1), you can read the current settings of the LPS
one after the next by pressing .
Make a note of the values for IP-Address and Net Mask Addr..
The value in Net Mask Addr. specifies which digits of the IP address of the PC and LPS
must match so that they can communicate with each other.
Address of the LPSNet 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
Instead of xxx you can now allocate any numbers between 000 and 255 to your PC, but
NOT THE SAME numbers as contained in the address of the LPS.
Leuze electronicLPS 3649
TNT 35/7-24V
Commissioning and configuration
For example 192.168.060.110 (but not 192.168.060.003!). If LPS and PC have the same IP
address, they cannot communicate with each other.
Setting the default gateway
The IP address for the default gateway can optionally be set using the Std. Gateway
submenu item (default: 000.000.000.000).
Note
The IP address of the default gateway (Std. Gateway) and the destination port of the PC
or control (Port Num. Dest.) are stored in the sensor configuration beginning with firmware
V01.50 and LRSsoft V2.40.
Setting an alternative IP address on the PC
Log in to your PC as administrator.
Using Start->System control go to the 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 Prop-
erties.
In the Internet protocol (TCP/IP) Properties window select the
Alternate configuration tab.
Configure the IP address of the PC in the
address range of the LPS.
Attention: do not use the same as for the LPS!
Set the subnet mask of the PC to the same value as on the LPS.
Close the configuration dialog by confirming all windows using OK
Connect the interface X2 of the LPS directly to the LAN port of your PC. Use a
KB ET-…-SA-RJ45 cable for the connection, see Table 14.10
The PC first tries to establish a network connection via the automatic configuration. This
takes a few seconds, after which the alternate configuration, which you just set, is activated.
The PC can now communicate with the LPS.
Information about configuring with the LPSsoft can be found in Chapter 9.
TNT 35/7-24V
Leuze electronicLPS 3650
8.3Commissioning
For the commissioning and integration of the sensor in the process control the following
steps are necessary:
1.LPS configuration - see Chapter 9.
2.Programming process control - see Chapter 10.
3.When connecting in the Ethernet process controls, the IP configuration of the LPS is
to be adjusted so that the LPS can communicate with the process control.
The values corresponding to the following screenshot are preset in the LPS at the factory. If you would like to set different values, you must change the values via the display
of the LPS in menu item Ethernet (see "Menu description" on page 44). You can test
the changed values by entering them in the Configuration area in LPSsoft and then
clicking the Check Connectivity button.
4.Connect LPS to process control via the Ethernet interface.
5.Establish connections for activation, triggering and cascading, if necessary.
Notice on connecting multiple Light section sensors via Ethernet
If several sensors are to be activated, all sensors as well as the control must receive different
IP addresses on the same subnet. For all sensors different ports must be configured in
the
Sensor
area as well as in the
Client/PC
Commissioning and configuration
area.
Leuze electronicLPS 3651
TNT 35/7-24V
9LPSsoft 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
Note!
If present, uninstall Matlab Runtime before beginning with the installation of the LXSsoft
Suite.
The LXSsoft_Suite_Setup.exe installation program can be downloaded from
www.leuze.com. You can find it for the respective product in the Downloads tab under
Copy the downloaded file into a suitable folder on your hard drive. Administrator privileges
are necessary for this purpose.
Please note that the standard text size setting is used. For Windows XP, the necessary DPI
setting is 96 DPI, for Windows 7, the display is to be set to "Smaller - 100%".
To start the installation process, double-click on file LXSsoft_Suite_Setup.exe.
In the first window, click on Next.
In the next window, you can select which configuration software you would like to install.
You will need LPSsoft for configuring light section sensors of the LPS series.
You will need LRSsoft for configuring light section sensors of the LRS series.
You will need LESsoft for configuring light section sensors of the LES series.
Select the desired options and click on Next and, in the next window, click on Install.
The installation routine starts. After a few seconds, the window for selecting the installation
language for the Matlab Compiler Runtime (MCR) appears. The MCR is used for the configuration in LPSsoft. It is only available in English or Japanese.
Therefore keep in the Choose Setup Language window the selection English and
click on OK.
Leuze electronicLPS 3652
TNT 35/7-24V
LPSsoft configuration software
Leuze electronicLPS 3653
TNT 35/7-24V
LPSsoft configuration software
Depending on the configuration of your Windows system, the dialog shown below may then
appear (missing component VCREDIST_X86).
Click on Install.
Two additional installation windows will appear, which do not require any further entry.
Leuze electronicLPS 3654
TNT 35/7-24V
LPSsoft configuration software
After some time (up to several minutes depending on the system configuration) the start
screen of the MCR installer will appear.
Click on Next.
The window for entering user data appears.
Enter your name and the company name and then click on Next.
Leuze electronicLPS 3655
TNT 35/7-24V
LPSsoft configuration software
It is essential that you retain the default folder in the window for the selection of the installation path (Destination Folder).
The standard path is C:\Programs\MATLAB\MATLAB Compiler Runtime\.
Click on Next and in the next window click on Install.
The installation will start and a status window will be displayed. This can again take several
minutes.
Following successful MCR installation, the InstallShield Wizard Completed window
appears.
Click on Finish to end the MCR-installation.
Leuze electronicLPS 3656
TNT 35/7-24V
LPSsoft configuration software
The window for selecting the installation path for LPSsoft/LPSsoft/LRSsoft now appears
(provided you selected this option).
Keep the default folder and click on Next.
The installation of LPSsoft starts. If you also selected LRSsoft and LESsoft for installation,
upon completion of the LPSsoft installation, the same window then reappears for entering
the installation path for LRSsoft and LESsoft.
Keep the default folder in this case as well and click on Next.
Upon completion of the installation process, the window shown above appears.
The installation routine added a new Leuze electronic program group in your Start
menu that contains the installed programs LPSsoft/LPSsoft/LRSsoft.
Click on Finish and then start the desired program from the Start menu.
Leuze electronicLPS 3657
TNT 35/7-24V
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.
Note!
For Windows XP, the necessary DPI setting is 96 DPI. For Windows 7, the display is to be
set to "Smaller - 100% (default)".
The setting can be adjusted as follows.
Adjust the display for Windows XP by selecting the value "96 DPI" under Properties
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 LPSsoft by double-clicking on it.
Now the start screen of LPSsoft appears, as described in Chapter 9.3.
LPSsoft configuration software
TNT 35/7-24V
Leuze electronicLPS 3658
9.2.2Device list update
At the time of purchase of a new sensor, the LPS/LES/LRS software corresponds to the
state of the art. If you are already using software from earlier devices and now purchase a
different model from the LxS series, it is possible that the installed software does not yet
recognize the current device.
The software indicates this with the following notice:
You do, however, have the possibility to install a device list
to implement new device models in the software. This can
be downloaded from www.leuze.com in the download
area for your device under "Device list".
Install this and restart the software. The previously
unknown sensor is then recognized.
Note!
If the software continues to output this or a similar warning after updating the device list, it
is to be assumed that the currently installed software is no longer up-to-date. A new firmware
version is available on the Internet.
Please download this new version, install it and restart the program.
LPSsoft configuration software
Leuze electronicLPS 3659
TNT 35/7-24V
9.3Starting LPSsoft/Communication tab
Start LPSsoft via the respective entry in the Windows Start menu.
The following screen appears:
Figure 9.1:Initial screen LPSsoft
In the IP Configuration area, enter the settings for the LPS and click on Accept.
You had already determined this data in Chapter 8.2.
Click on Check Connectivity to test the connection to the LPS.
If the following message appears, the Ethernet connection
to the LPS is correctly configured: The connectionattempt to sensor ... was successful.
Click on the button Connect to sensor:
If the connected sensor type does not correspond with the
standard type stored in LPSsoft, an inquiry appears asking
whether the current parameter set should be saved in
LPSsoft.
As a result LPSsoft establishes a connection and displays the currently measured 2D profile.
In the status line at the bottom left of the display you will now find Online highlighted in
green instead of Offline highlighted in red.
LPSsoft configuration software
TNT 35/7-24V
Leuze electronicLPS 3660
LPSsoft configuration software
Note!
The following additional information is displayed in the status line:
• Sensor connection status (Sensor status)
• Number of the Active Inspection Task
• Scan number (Profile Number)
• Encoder value dependent on the sensor type (Encoder Value)
• Connected sensor type
• Analog output status (Analog Output)
Leuze electronicLPS 3661
TNT 35/7-24V
9.4Parameter settings/Parameters tab
Click on the Parameters tab to access the parameter settings:
Figure 9.2:Parameter settings in LPSsoft when LPS 36Hi is connected
In the Standard tab, a median-3-filter can be activated in the Standard Parameters
area. By activating the median filter in the checkbox, the Z-coordinates of the measurement
values are smoothed out, while occurring edges are retained.
LPSsoft configuration software
9.4.1Standard tab - Task Parameters panel
Inspection Task Selection
In the Inspection Task Selection panel, you can select inspection tasks.
The inspection task is selected either in this field or via Ethernet commands.
The upper drop-down menu Inspection Task Selection lets you select one of the 16
possible inspection tasks. After the selection of the inspection task, the associated 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.
Note!
If an inspection task was changed, permanent storage in the sensor should be performed
with Configuration -> Transmit to Sensor.
Leuze electronicLPS 3662
TNT 35/7-24V
LPSsoft configuration software
The common procedure for creating and storing inspection tasks is described in
Chapter 9.7, "Definition of inspection tasks" on page 70.
Operation Mode
In Operation Mode you can configure using Free Running that the LPS continuously
detects and outputs measurement data (factory setting). With Input Triggered, the LPS
captures measurement data only if a rising edge is present at the trigger input or the
"Ethernet Trigger" command (Chapter 10.3.4) is used. Detailed information on this topic can
be found in Chapter 4.2.3.
Activation
Under Activation the Regard setting has the effect that the laser is switched on and off
according to the level at the activation input. Detailed information on this topic can be found
in Chapter 4.2.2.
When the Disregard setting has been selected, the laser always remains switched on,
independent from the level at the activation input (factory setting).
Trigger Output Mode
Under Trigger Output Mode you can activate the cascading output using Cascading.
Detailed information on this topic can be found in Chapter 4.2.4. When the Disable setting
has been selected, the cascading output will not be set (factory setting).
Light Exposure
Using Light Exposure you can control the exposure duration of the laser during measure-
ment value detection and adapt it to the reflective properties of the objects to be detected.
Select an exposure setting that displays a continuous line around the object contour.
Then try to achieve a line on a flat surface that is as continuous as possible.
Field of View
Using Field of View you can restrict the measurement range of the LPS. The same
happens if you click on the square handles of the measurement range framed in blue with
the mouse and then pull.
Factory settings for Field of View:
LPS 36…LPS 36HI…
Min X-300-70
Max. X30070
Min. Y190190
Max. Y810610
By restricting to the necessary detection range, ambient light or undesired reflections can
be suppressed.
Leuze electronicLPS 3663
TNT 35/7-24V
Apply Settings
The Apply Settings button temporarily transmits the settings for the current inspection
task to the sensor. When switched off, the data/settings are lost.
Note!
If an inspection task was changed, permanent storage in the sensor should be performed
with Configuration -> Transmit to Sensor.
9.4.2Encoder tab - Encoder Parameters area
With the LPS 36/EN and LPS 36HI/EN, you can configure the model and the characteristics
of the connected encoder in the Encoder tab.
LPSsoft configuration software
Figure 9.3:Encoder settings
Encoder Type
Specify whether the encoder is a single-channel encoder (1 Channel Encoder) or twochannel encoder (2 Channel Encoder) here.
Two-channel encoders have an A and a B channel whose signals are shifted 90° with respect
to one another. This allows the direction of movement to be detected (forward/backward).
Note!
Up to firmware V01.10, only two-channel encoders were supported.
Single-channel encoders have only an A-channel. If necessary, the counting direction can
be changed by means of an additional direction signal on channel B (see chapter 6.3.3
"Connection X3 - incremental encoder"):
• Low level on pins 6/7 of X3 = upward pulse counting.
• High level on pins 6/7 of X3 = downward pulse counting.
If channel B is not connected, counting is upward (factory setting).
Leuze electronicLPS 3664
TNT 35/7-24V
LPSsoft configuration software
Evaluation Mode
The selection box can be used to select two count modes for the encoder pulse counter
(see structure of the protocol header in Chapter 10.2 on Page 71, Encoder_H/Encoder_L
data words):
• Single Mode (for single- and two-channel encoders)
Each encoder pulse on channel A increases the encoder counter value by +1.
Only one edge of the pulse is counted.
• Double Mode (for single- and two-channel encoders)
Each encoder pulse on channel A increases the encoder counter value by +2.
Both edges of the pulse are counted.
The Change Counting Direction check box can be used to reverse the upward/downward counting direction of the encoder pulse counter.
Note!
For two-channel encoders, the counting direction can also be reversed by exchanging the
connections of channels A and B.
Counter Value Overflow
Use the check boxes in the Counter Value Overflow area to select the maximum value
of the encoder pulse counter above which an overflow occurs (the counter restarts with
0x0000 0000):
• 0xFFFF FFFF (Full Range):for Double Mode only
• 0xFEFF FFFF (Compatibility Range): for Double Mode only
(compatible up to firmware V01.10)
• 0x7FFFF FFFF (Half range):for Single Mode only
Factory settings:
• Encoder type: 2 Channel Encoder
• Evaluation Mode: Double Mode
Previously: Quadruple Mode, this mode is not supported beginning with firmware
V01.20. Up to firmware V01.20, encoder evaluation was permanently set to
Quadruple Mode (count all 4 edges on both encoder channels).
• Counter Value Overflow: 0xFFFF FFFF
Previously: 0xFEFF FFFF, the new Counter Overflow value 0xFFFF FFFF permits
distance calculation in Double Mode with 32-bit values without manual correction.
TNT 35/7-24V
Leuze electronicLPS 3665
LPSsoft configuration software
9.5Measurement function/Visualization tab
Click on the Visualization tab to view a 3D visualization of your measurement data:
Figure 9.4:3D Visualization with LPSsoft
The left image shows the familiar 2D-view; displayed at the right are the measurement values
in chronological order.
You can adapt the 3D view:
• Display Point Count specifies how many of
the 376 single measurement values in total will be
displayed along the laser line.
• Profile Depth Count specifies how many consecutive single measurements will be displayed in
the 3D diagram in chronological order.
•The Rotate 3D tool on the toolbar enables free
and arbitrary rotation of the 3D view.
TNT 35/7-24V
In the 2D view you can view precise measurement values
at individual points of the laser line using the
Data Cursor tool.
Leuze electronicLPS 3666
9.5.1Evaluating saved measurement data
To evaluate a measurement data set, you can record/store measurement data and reopen
as described in Chapter 9.6.3. After opening the file, the data are initially continuously fed
into the 3D-view. To stop this continuous display and to be able to examine individual
profiles and again restart the display, click on the arrow in the toolbar.
The sliders in the Display Control area are used for evaluation; the function of these
sliders is described in the following.
Figure 9.5:Evaluating saved 3D data
Spooling enables scrolling through all single data sets from the first to the last one within
the measurement data set.
You can configure how many data sets are displayed in the 3D view by using ProfileDepth Count.
Using the Profile Selection slider you can configure which of the displayed single data
sets (profiles) from the 3D view will be shown in 2D view. The associated data set number
is displayed under Profile No. The Show Plane option displays this single data set also
in 3D view.
LPSsoft configuration software
Leuze electronicLPS 3667
TNT 35/7-24V
LPSsoft configuration software
9.6Menu commands
9.6.1Saving parameter settings/File menu
The File menu is used to save parameter data to the PC.
In this way, settings for various detection tasks can be
defined within the scope of commissioning and stored on
data carriers and parameter files. During operation, the LPS
is reconfigured via Inspection Tasks. A parameter file
stored on a data carrier can only be used with LPSsoft
configuration software!
• New creates a new configuration file.
• Open opens a configuration file from the data carrier.
• Save saves the open configuration file with the same name.
• Save as saves the open configuration file under a different name.
• Save as default saves the open configuration as the default setting which is always
loaded when LPSsoft is opened.
In addition, the File menu offers the possibility to export the following views format to data
carriers (available formats: *.png, *.jpg, *.bmp, *.tif):
• 2D View: the current 2D view
• 3D View: the current 3D view
9.6.2Transmitting parameter settings/Configuration menu
The Configuration menu is used to exchange parameter
data with the connected LPS.
• Load from Sensor loads all parameter settings for all
defined inspection tasks from the LPS and displays them
in the software.
• Transmit to Sensor permanently stores all parameter settings of all defined
inspection tasks from the configuration software in the LPS.
• Reset to factory settings resets the LPS to factory settings.
TNT 35/7-24V
9.6.3Saving measurement data/Measure Records menu
The Measure Records menu is used for saving
measurement data (including the encoder values) on the
PC in *.csv format.
• New... creates a new measurement data set. Following a file name query dialog, another dialog
appears. It requires you to enter how many single
measurements (profiles) are to be saved in the file.
• Archive -> Open Record opens a saved measurement data set.
• Archive -> Close record closes the opened measurement data set.
Leuze electronicLPS 3668
Note!
Zoom In
Enlarge area:
1.Select Zoom in
2.Click in the view
3.Select Pan
4.Shift the area to be examined into the center of the
screen
Repeat until the desired view is reached
Use Reset plots to initial settings to
restore the original size.
Zoom Out
PanReset plots to initial
settings
With measurement data open, LPSsoft cannot establish a connection to the sensor. A
connection with the sensor is only possible after closing the measurement data set.
9.6.4Zoom and Pan/toolbar
The Zoom in / Zoom out and Pan buttons of the toolbar allow individual areas of the view
to be enlarged for better visual evaluation:
LPSsoft configuration software
Figure 9.6:Zoom function
After activating the magnifying glass, each click on the view enlarges the displayed section.
The enlarged section can then be shifted with the activated hand function to display the
area of interest.
Note!
The click-and-drag method for zooming known from other programs is not possible here.
Before LPSsoft is operated further, the tool buttons (Zoom, Pan, …) must be activated.
Leuze electronicLPS 3669
TNT 35/7-24V
9.7Definition of inspection tasks
Typical procedure
1.Start LPSsoft and connect the sensor:
Click on the Connect to sensor button:
If the connected sensor type does not correspond
with the standard type stored in LPSsoft, an inquiry
appears asking whether the current parameter set
should be saved in LPSsoft.
2.Fetch the configuration from the sensor via Loadfrom Sensor or load it from the data carrier with Open.
3.Use Inspection Task Selection to select the inspection task to be modified.
4.Display and, if necessary, enlarge 2D view of the detection range in the Parameters
tab.
5.Set LPS parameters (see "Standard tab - Task Parameters panel" on page 62)
6.Assign a name (Name) to the inspection task and confirm with Accept.
7.Temporarily transfer the inspection task with Apply Settings.
8.Where applicable: define further inspection tasks with steps 4.-6.
9.Tick Enable Selection Inputs again.
10. Permanently transfer the configuration including all inspection tasks to the sensor with
Transmit to Sensor.
11. Where applicable: save the configuration to data carrier with Save As…
12. Finally, disconnect the connection to the sensor:
click on the button Disconnect from sensor:
LPSsoft configuration software
Leuze electronicLPS 3670
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
10Integrating the LPS in the process control (Ethernet)
10.1General information
The LPS communicates with the process control via UDP/IP using the protocol described
in Chapter 10.2. The protocol operates in two different modes:
•Measure Mode
•Command Mode
In measure mode the LPS transmits measurement data. In the "Free Running" measurement
operating mode, measurements are performed continuously with a maximum measurement
frequency of 100Hz and the measurement data are sent without an additional request being
made. In triggered mode, measurement is performed after a rising edge on the trigger input
or as a response to the "Ethernet Trigger" command (see chapter 10.3.4 "Commands in
measure mode").
In command mode the LPS reacts to commands from the control. The commands available
are described in Chapter 10.3.
Note!
If you use a firewall, please make certain that the control can communicate with the LPS via
the Ethernet interface by means of UDP on ports 9008 and 5634 (these ports are preset at
the factory, but may have been changed by the user, see chapter 7.2 "Menu description").
Furthermore, the firewall must allow ICMP echo messages to pass through for the connection test (ping).
10.2Protocol structure
Note!
The sequence in which the individual bytes are saved varies depending on the operating system. The commands in Chapter 10.3 and the protocol description are represented in "big
endian" format, i.e., the high-byte first followed by the low-byte
(0x… hexadecimal).
Windows PCs (and many controls, such as the Siemens S7), however, store data in the "little
endian" format, i.e. the low byte first followed by the high byte.
If, in your process environment, the LPS does not respond to commands from the control
even though communication with LPSsoft functions properly, check whether the problem
lies with the byte order.
Example: for command
and
0x43
in or de r f or it to be un de rstood by the LPS. In the transaction number of the answer
from LPS there is then also
The LPS sends data as "little endian", i.e., first the low byte and then the high byte.
The possible values of individual bytes and their meaning are described below.
Leuze electronicLPS 3671
0x434E
(Connect to Sensor) a Windows PC must transmit
0x4E43
(byte sequence 0x43, 0x4E).
0x4E
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Protocol structure
The protocol consists of the Header (30 bytes) followed by the User data. The protocol is
used both in command mode when transmitting commands and when acknowledging
sensor commands as well as in measure mode.
1) The maximum value is determined here by the setting for the encoder type, see "Counter
Value Overflow" on page 65.
User data
Number of
0x0010
fixed value:
Length 2 bytes,
0x0000 / 0x0001 / 0x0002 /
Length 2 bytes, possible values:
user data words
0x0003 / 0x0178
User data
0x000…0x03C0
User data
Length of the user data: see number of user data words in the header
10.2.1 Command number
The command number specifies both the command from the control to the sensor as well
as the command from the sensor to the control (see Chapter 10.3).
In measure mode, a differentiation is made between 2 varieties of measurement data
transfer:
• Standard-Connect:
Command number 0x5858 signalizes that the data packet of the sensor contains
X-coordinates. Command number 0x5A5A signalizes that the data packet contains
Z-coordinates.
• HI-Connect (only with LPS 36HI/EN):
Command number 0x5A58 signalizes that the data packet contains X- and Z-coordinates.
Leuze electronicLPS 3672
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
10.2.2 Packet number
The packet number serves internal maintenance purposes of the manufacturer.
10.2.3 Transaction number
In measure mode, 0x0000 is always displayed here.
In command mode, the command acknowledgment of the sensor contains the command
number of the command that is answered.
10.2.4 Status
Indicates the state of the sensor. The state is coded as follows:
MSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
--1 -------------Error detected, measurement data are still
The LSB of the high byte is always set to 1 as long as the parameter Activation Input
has been set to Disregard (Always on) in LPSsoft.
If parameter Activation Input is set to Regard, the state of the bit corresponds to the
state of the signal of an activation source (input, Ethernet activation).
TNT 35/7-24V
sent if applicable, the sensor then switches
into error mode
Note!
Independent of the mode that is currently active, the sensor switches to menu mode if a
button if the display is touched and then neither responds to commands nor does it transmit
measurement data. Menu mode automatically ends after 3 minutes if no buttons are pressed.
Alternatively, the user can end menu mode with the
Leuze electronicLPS 3673
Exit
menu item.
Integrating the LPS in the process control (Ethernet)
10.2.5 Encoder High / Low
The encoder counter is implemented in sensor models with encoder input. All other sensors
permanently display 0x00000000.
The 4 bytes in Encoder High and Encoder Low specify the encoder counter value for light
section sensors with encoder interface. The maximum value is 0xFFFF FFFF. Beyond that
an overflow to 0x0000 0000 occurs (see chapter 9.4.2 "Encoder tab - Encoder Parameters
area"). Beyond that an overflow to 0x0000 0000 occurs.
10.2.6 Scan number
The 2 bytes of the scan number indicate the number of single measurements in 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 data are to be interpreted. The fixed default value is 0x0010. That equates
to 16 bit data.
10.2.8 Number of user data words
Number of user data words specifies how many data words of the data type defined in
the previous field are contained in the packet.
The user data have a variable length of 0, 1, 2, 3 or 376 or 480 data words (0, 2, 4, 6 or 752
or 960 bytes).
10.2.9 User data
In command mode, the commands can contain user data. These are then described in more
detail in the corresponding command description.
In measure mode, the measurement values of the sensor are transmitted to the user data.
These are differentiated according to the type of establishment of connection to the sensor
(Standard-Connect or HI-Connect).
All variants of the LPS 36 and the LPS 36HI/EN support Standard-Connect:
For each measurement, a packet of Z-data (command number 0x5A5A) and then a
packet of X-data (command number 0x5858), each with 376 values of 2 bytes, are
transmitted. With the LPS 36HI/EN, values 241 … 376 are set to 0 (compatibility). The
resolution is 1/10mm. The Z- and X-data packets have the same scan number; this
should be checked in the control.
The Z-data has a value range of 0 … 8100.
The X-data is transferred as signed values in two's complement. 0 … 32767 are positive X-values, 32768 … 65535 are negative X-values (where 65535 corresponds to the
value -1). For negative values (>32768), the process control must therefore subtract
65536 from the transferred X-values to obtain the actual X-values.
Leuze electronicLPS 3674
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
The LPS 36HI/EN also supports HI-Connect:
The Z- and X-data is transmitted in one packet (command number 0x5A58) with 480
values of 2 bytes. The resolution is 1/100mm.
User data words 1 … 240 contain Z-data, value range 0 … 61000. The X-data follow
as signed values in the -7000 … +7000 range.
Invalid measurement values have a Z- and X-value of 0.
If an LPS 36HI/EN is used in a system instead of an LPS 36 without the establishment
of connection being changed (Standard-Connect), it behaves compatibly to the standard LPS 36. Whether the application profits from the higher resolution of the
LPS 36HI/EN can also be easily tested this way.
Note!
If the detection range has previously been limited using LPSsoft, the measuring points, which
were not detected, will be transferred with 0 value. Invalid measurement values (e.g. due to
occlusion, object reflectivity too low, …) are also transmitted with a Z- and X-value of 0.
Leuze electronicLPS 3675
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
10.3Ethernet commands
Attention!
The scope of the available commands has grown from firmware version to firmware version.
You can find a revision history / feature list in the appendix in Chapter 15.2.
The commands described in the following refer to the current firmware version of the LPS.
Note!
The sequence in which the individual bytes of the commands and of the protocol must be
transmitted in order to be processed by the LPS corresponds to the "little-endian" byte
sequence. The response of the LPS also corresponds to the "little-endian" standard. For
further information, see the note in Chapter 10.2.
Note!
If the LPS is operated in command mode, the LPS transmits no data (useful for operation
with PLC controls).
In measure mode, commands Connect to Sensor, Disconnect from Sensor, Enter
Command mode, Ethernet Trigger and Ethernet Activation can be processed (is
acknowledged with 'Ack'=0x4141). All other commands are acknowledged with 'Not
Ack'=0x414E; the command is not processed.
Additional commands are available in command mode.
Leuze electronicLPS 3676
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
10.3.1 Elementary commands
Note!
Command syntax (header/user data), see Chapter 10.2
Using the Connect to sensor and Disconnect from sensor commands, a connection
between control and sensor is established or terminated. The communication with the LPS
is carried out via the ports previously configured in LPSsoft.
Command from control to LPSAnswer from LPS to control
Command no. MeaningCommand no. Meaning
0x434EConnect to Sensor0x4141Connection established, the sensor
0x4443Disconnect from Sensor0x4141Connection terminated.
Table 10.1:Connection commands
When first connecting after switching on, the sensor is always in measure mode and continuously transmits measurement data ("Free Running") or waits for a trigger signal for transmitting measurement data.
is permanently connected.
The sensor status (bytes 17 and 18)
can be used to detect whether the
sensor is connected.
0x414EThe transmitted command was not
processed (possible sensor status:
sensor is already connected or in
menu mode, detailed info see
chapter 10.2.4 "Status").
0x414EThe transmitted command was not
processed (possible sensor status:
sensor was already disconnected or
in menu mode, detailed info see
chapter 10.2.4 "Status").
Leuze electronicLPS 3677
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
If the LPS 36HI is connected with the Connect to Sensor command and a user data value
of 0x0001, then the sensor is connected via HI-Connect.
Command from control to LPSAnswer from LPS to control
Command no. MeaningCommand no. Meaning
0x434EConnect to Sensor0x4141Connection established, the sensor
is permanently connected.
The sensor status (bytes 17 and 18)
can be used to detect whether the
0x414EThe transmitted command was not
Table 10.2:Connection commands
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32
SF
To switch between measure mode and command mode the Enter Command Mode and
Exit Command Mode commands are available.
Command from control to LPSAnswer from LPS to control
Command no. MeaningCommand no. Meaning
0x3132Enter Command Mode0x4141Sensor in command mode
0x414EThe transmitted command was not
0x3133Exit Command Mode0x4141Sensor back to measure mode
0x414EThe transmitted command was not
Table 10.3:Command mode control commands
1) Detailed info on possible sensor states see chapter 10.2.4 "Status". You can determine
whether the sensor is in menu mode with a quick glance at the display. Menu mode can
be ended with the Exit menu item.
sensor is connected.
processed (possible sensor status:
sensor is already connected or in
menu mode, detailed info see
chapter 10.2.4 "Status").
SF = 0: Standard-Connect
2 separate data packets for Z- and X-coordinates
with 782 bytes each
SF = 1: HI-Connect, only LPS 36HI/EN
1 common data packet for Z- and X-coordinates with
990 bytes
processed (possible sensor status:
sensor currently in menu mode and
cannot execute any commands.
Sensor is already in command
1)
mode)
.
processed because the sensor was
not in command mode.
TNT 35/7-24V
Leuze electronicLPS 3678
Integrating the LPS in the process control (Ethernet)
10.3.2 Commands in command mode
Note!
Command syntax (header/user data), see Chapter 10.2
The following commands are available in command mode:
Command from control to LPSAnswer from LPS to control
Command no.
0x0001Set Laser Gate
0x0003
0x0011
0x0013
0x005F Get ZX Coordinates
0x0029
Table 10.4:Sensor control commands
Meaning
laser activation and deactivation
(toggle),
See Chapter 10.3.3
1)
Trigger Single Measurement
2)
Get X Coordinates
Query X-coordinates of the previously triggered single measurement. Repeated queries
yield always the same values
without retriggering.
2)
Get Z Coordinates
Query Z-coordinates of the previously triggered single measurement. Repeated queries
yield always the same values
without retriggering.
Only for LPS 36HI which is connected with HI-Connect. X- and
Z-coordinates are transferred in
one packet.
Repeated queries yield always
the same values without retriggering.
5)
Set Encoder Value
Set encoder counter value (see
Chapter 10.3.3).
Number of
Com-
user
data
mand no.
Meaning
words
0x4141Command executed0
0x414ECommand was not executed.
1
0x4141Single measurement carried out0
0
0x414ESingle measurement not carried
out
0x0012
In the user data area 376 values
are always transferred. The Xcoordinates are transferred as
0
"signed" values. If the LPS 36HI
has been connected with HI-Connect (see Chapter 10.3.1), the
measurement values are transmitted in the 1/100mm unit.
0x0014
In the user data area 376 values
are always transferred. If the
LPS 36HI has been connected
0
with HI-Connect (see
Chapter 10.3.1), the measurement values are transmitted in the
1/100mm unit.
0x0060In the user data area 480 values
are always transferred. The user
data structure corresponds to
0
that of HI-Connect.
0x4141Encoder counter value set0
2
0x414EThe transmitted command was
not processed.
Number of
user
data
words
0
0
376
376
TNT 35/7-24V
376
0
Leuze electronicLPS 3679
Integrating the LPS in the process control (Ethernet)
Command from control to LPSAnswer from LPS to control
Num-
Command no.
Meaning
0x004BSet Actual Inspection Task
Set number of the current
inspection task, see
Chapter 10.3.3
0x0049Get Actual Inspection Task
Get number of the current
inspection task
0x0053Set Scan Number
Set scan number,
see Chapter 10.3.3.
Ensure identical scan numbers
with multiple sensors; for
description, see "Set Scan Number" on page 82
0x0059
5)
Set Single User Parameter
Writes specific LPS parameters
in the sensor, e.g., deactivate
output of X-coordinates
.
0x005B
5)
Get Single User Parameter
Reads specific LPS parameters,
e.g.,
whether the output of X-coordinates is deactivated.
0x006DSet Single Inspection Task
parameter
Writes individual inspection task
parameters temporarily or permanently in the sensor.
0x006FGet Single Inspection Task
parameter
Reads individual inspection task
parameters.
Table 10.4:Sensor control commands
1) Command cannot be processed up to firmware V01.26 if the LPS is set to "Input Triggered"
Operation Mode (see chapter 9.4.1 "Standard tab - Task Parameters panel", Operation
Mode on Page 62).
2) Commands 0x0011 and 0x0013 can be transmitted no sooner than 30ms after command
0x0003 in order to obtain valid measurement data.
3) 0x4141 = Acknowledge: Execution of the command is confirmed
4) 0x414E = Not Acknowledge or Error: Command has not been executed
ber of
Com-
user
data
words
2
mand no.
0x4141
0x414E
Meaning
3)
The inspection task has been set0
4)
The transmitted command was
not processed.0
0x004AIn the user data area the task
0
number is transferred.
(0 = Task0, up to 15 = Task15)
0x4141Scan number set0
0x414EThe transmitted command was
not processed.
1
0x4141Parameter was set0
0x414EThe transmitted command was
3
not processed.
0x005CParameter is output1
0x414EThe transmitted command was
1
not processed.
0x4141Parameter was set0
0x414EThe transmitted command was
3…14
not processed.
0x0070Parameter is output9…20
0x414EThe transmitted command was
1
not processed.0
Number of
user
data
words
1
0
0
0
0
TNT 35/7-24V
Leuze electronicLPS 3680
Integrating the LPS in the process control (Ethernet)
5) The command acts globally on all inspection tasks.
Attention!
If the command is used to deactivate the output of X-coordinates, only Z-coordinates are
transmitted. LPSsoft Can be used to depict 2D- and 3D-views. The sensor can only be reset
to again transmit X- and Z-coordinates by means of command number 0x0059 when using
parameter ID 0x07D4. The sensor can also be reset to factory settings via the keyboard
and display, but all other sensor settings are lost as well.
10.3.3 Explanation of user data in command mode (command parameters)
Set Laser Gate
For sensor control command 0x0001, one word of user data is transmitted to the sensor:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
Encoder value LowWord
(value range: 0x0000 … 0xFFFF)
Encoder value HighWord
(value range: 0x0000 … 0xFFFF)
Note!
Please note that the transmitted encoder values must not exceed the maximum value of the
encoder pulse counter (see parameter
Counter Value Overflow
in LPSsoft, Chapter 9.4.2)
Leuze electronicLPS 3681
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Set Actual Inspection Task
For sensor control command 0x004B, two words of user data are transmitted to the sensor:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32- - - - - - - - - - - - N4 N3 N2 N1 Number of the inspection task to be configured
33…34 ---------------
If SF=0 then the inspection task is changed only temporarily.
If SF=1 then the newly set inspection task is retained even after a restart of the LPS.
Get Actual Inspection Task
The LPS responds to sensor control command 0x0049 with 0x004A and one word of user
data:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32- - - - - - - - - - - - N4 N3 N2 N1 Number of the configured inspection task
Set Scan Number
For sensor control command 0x0053, one word of user data is transmitted to the sensor:
(0 = Task0 … 15 = Task 15)
SF
SF = SaveFlag
(0 = Task0 … 15 = Task 15)
ByteMSB High-Byte LSBMSB Low-Byte LSB Meaning of the bits
31…32S16 S15 S14 S13 S12 S11 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 New scan number that is to be set
With the sensor control command Set Scan Number, it is possible to set a uniform scan
number for the transmission protocol for multiple sensors operated in cascaded operation.
A description of cascaded operation can be found in Chapter 4.2.4.
Note!
1.Switch the master (sensor 1) to command mode. Continuous measurement is stopped
as a result. In command mode, the cascading output is not active!
2.Set an arbitrary scan number with command 0x0053 for the master.
3.Successively switch all slaves (sensor 2, 3, …) to command mode and set the same
scan number for each individual slave that you set previously under item 2 for the
master.
4.Switch the slaves back to measure mode.
5.Switch the master to measure mode.
Leuze electronicLPS 3682
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Set Single User parameter
Switching transmission of X-coordinates on/off in measure mode
When used with parameter ID 0x07D4, sensor control command 0x0059 can switch the
transmission of X-coordinates in measure mode on and off. The quantity of data transmitted
in measure mode can thereby be reduced by one half (useful for applications that only
require Z-coordinates and for controls with small Ethernet receive buffer).
When using sensor control command 0x0059 with parameter ID 0x07D4, three words of
user data are transmitted to the sensor:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32- - - - - - - - - - - - - - -SFSF = SaveFlag
33…34 0000011111010100Parameter ID for Disable x-Output = 0x07D4
If SF=0 then the output of X-coordinates is changed only temporarily.
If SF=1 then the output of X-coordinates is retained even after a restart of the LPS.
If OF=0 then X- and Z-coordinates are transmitted.
If OF=1 then only Z-coordinates are transmitted (X-coordinates are deactivated).
Extension of the transmission pause between the Z- and X-data packets
When used with parameter ID 0x07D8, sensor control command 0x0059 can be used to
extend the transmission pause between the Z- and X-data packets from 0.1ms (factory
setting) to up to 1ms (useful in applications with controls with slow, small Ethernet receive
buffer).
When using sensor control command 0x0059 with parameter ID 0x07D8, three words of
user data are transmitted to the sensor:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32- - - - - - - - - - - - - - -SFSF = SaveFlag
33…34 0000011111011000Parameter ID for transmission pause = 0x07D8
35…36- - - - - - - - - - - - P4 P3 P2P1Duration of the transmission pause between the
Z- and X-data packets in 0.1ms increments
(0 = 0.1ms … 9 = 1.0 ms)
If SF=0, the duration of the transmission pause is changed only temporarily.
If SF=1, the duration of the transmission pause is retained even following a restart of the LPS.
Note!
If the transfer of X-coordinates is switched off in measure mode, no visualization of measurement data can be performed in the 2D- and 3D-views in LPSsoft.
Leuze electronicLPS 3683
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Activating the median filter for Z-coordinates
When using parameter ID 0x07DB, sensor control command 0x0059 can be used to activate
a median filter for the Z-coordinates. By activating the median filter, the Z-coordinates of
the measurement values are smoothed out, while occurring edges are retained. If the median
filter is activated, small interferences and structures can be suppressed.
When using sensor control command 0x0059 with parameter ID 0x07DB, three words of
user data are transmitted to the sensor:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32- - - - - - - - - - - - - - -SFSF = SaveFlag
33…3411111011011Parameter ID for median filter = 0x07DB
If OF=0 then X- and Z-coordinates are transmitted.
If OF=1 then only Z-coordinates are transmitted (X-coordinates are deactivated).
Type
No. of data
Querying the transmission pause between the Z- and X-data packets
When using parameter 0x07D8, sensor control command 0x005B can be used to query the
duration of the transmission pause between the Z- and X-data packets.
When using sensor control command 0x005B with parameter ID 0x07D8, one word of user
data is transmitted to the sensor:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
0x0BBBEnabling of activation0=Activation Input: Disregard;
0x0BBCEnabling of the cascading output0=Cascading Output: Disable;
0x0BBDExposure duration of the laser0 = Normal (approx. 261 μs)
is saved as a 16-bit word
1=Operation Mode Input Triggered
1=Activation Input: Regard
1=Cascading Output: Enable
1 = Bright Objects (approx. 97μs)
2 = Dark Objects (approx. 655μs)
3 = Normal to Bright Objects (approx. 328μs)
4 = Manual Setting (the exposure time is set using
parameter ID 0x0BBE)
SF
SF = SaveFlag
data type
CHAR12
UINT81
UINT81
UINT81
UINT81
Number of
parameter values
TNT 35/7-24V
Leuze electronicLPS 3687
Integrating the LPS in the process control (Ethernet)
Parameter ID Parameter meaningValid parameter valuesParameter
0x0BBEManual adjustment of the exposure
0x0BBFX-coordinate detection range2 signed X-values for Field of View,
0x0BC0Z-coordinate detection range2 unsigned Z-values for Field of View, value 1: Mini-
(exposure time unit in 1/10μs).
The duration of exposure is set incrementally in the
sensor. The actual duration of exposure can deviate
slightly from the parameter value transmitted. The
exposure duration set can be accessed with the "Get
Single Inspection Task Parameter" (0x006F) command
in combination with parameter ID 0x0BBD.
Value 1: Minimum X Value,
Value 2: Maximum X Value,
Permissible value range
0x4141 "Ack": the command has been successfully executed.0
0x414E"Not Ack": the command has not been executed.0
Number of
parameter values
Leuze electronicLPS 3688
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Get Single Inspection Task Parameter
Individual parameters of the active inspection task can be output with sensor control
command 0x006F. The following parameters can be accessed:
• Name of the active inspection task
• Number of the active inspection task
• Operation Mode: Free Running or Input Triggered
• Setting of activation (Activation Input: Regard or Disregard)
• Setting of cascading output (Cascading Output: Enable or Disable)
• Exposure duration of the laser (Light Exposure)
• Detection range of the LPS (Field of View).
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32Parameter ID which can be accessed
Parameters and settings:
Parameter IDParameter meaning
0x0BB8Number of the active inspection task
0x0BB9Name of an inspection task
0x0BBAOperating mode
0x0BBBEnabling of activation
0x0BBCEnabling of the cascading output
0x0BBDExposure duration of the laser
0x0BBEManual adjustment of the exposure duration
0x0BBFX-coordinate detection range
0x0BC0Z-coordinate detection range
Sensor response:
The sensor responds with 0x0070 and returns 9 … 20 user data words.
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
31…32Parameter ID for parameter selection
33…34Data type:
35…36Number of parameter values (byte 47 and following)
37…38Lower limit of parameter value (HighWord)
39…40Lower limit of parameter value (LowWord)
41…42Upper limit of parameter value (HighWord)
43…44Upper limit of parameter value (LowWord)
45…46No meaning
47…70Parameter value(s) of accessed parameter ID
1 = UINT8; 2 = UINT16, 5 = SINT16, 7 = CHAR
Leuze electronicLPS 3689
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
Meaning of the bits:
Parameter ID Parameter meaningValid parameter valuesParameter data
0x0BB8Number of the active inspection task 0-15UINT81
0x0BB9Name of the active inspection taskMaximum length: 12 ASCII characters, each charac-
0x0BBBEnabling of activation0=Activation Input: Disregard;
0x0BBCEnabling of the cascading output0=Cascading Output: Disable;
0x0BBDExposure duration of the laser0 = Normal (approx. 261μs)
0x0BBEManual adjustment of the exposure
0x0BBFX-coordinate detection range2 signed X-values for Field of View, value 1: Minimum
0x0BC0Z-coordinate detection range2 unsigned Z-values for Field of View, value 1: Mini-
duration
ter is saved as a 16-bit word
1=Operation Mode Input Triggered
1=Activation Input: Regard
1=Cascading Output: Enable
1 = Bright Objects (approx. 97μs)
2 = Dark Objects (approx. 655μs)
3 = Normal to Bright Objects (approx. 328μs)
4 = Manual Setting (the exposure time is set using
parameter ID 0x0BBE)
Permissible value ranges
(exposure time unit in 1/10μs),
The duration of exposure is set incrementally in the
sensor. The actual duration of exposure can deviate
slightly from the parameter value transmitted. The
exposure duration set can be accessed with the "Get
Single Inspection Task Parameter" (0x006F) command in combination with parameter ID 0x0BBD.
X Value,
value 2: Maximum X Value,
permissible value range
LPS 36HI/EN: -700…700;
LPS 36, LPS 36/EN: -3000….3000,
(unit in 1/10mm)
mum Z Value,
Value 2: Maximum Z Value (unit in mm),
permissible value range
LPS 36HI/EN: 1950…6100;
LPS 36, LPS 36/EN: 1900….8100,
(unit in 1/10mm)
type
CHAR12
UINT81
UINT81
UINT81
UINT81
UINT161
SINT162
UINT162
Number of
parameter values
TNT 35/7-24V
Leuze electronicLPS 3690
Integrating the LPS in the process control (Ethernet)
10.3.4 Commands in measure mode
Note!
Command syntax (header/user data), see Chapter 10.2
The following commands are available in measure mode:
Command from control to LPSAnswer from LPS to control
Command no.
0x4554Ethernet Trigger
Table 10.5:Commands in measure mode
Meaning
With the Ethernet Trigger command, a single measurement is
triggered in measure mode, similar to triggering via the trigger
input..
Prerequisite is that the LPS be
configured with LPSsoft under
Operation Mode to Input Triggered.
A connection to the sensor must
exist before the Ethernet Trigger
command can be used.
Number of
Com-
user
mand no.
data
words
0x5A5A
and
0x5858
0x5A5AWith deactivated output of X-
0
0x5A58Only with LPS 36HI, when HI-
0x414EThe transmitted command was
Meaning
With activated output of X-coordinates:
A response follows first with
command number 0x5A5A. In
the user data area, a data packet
with Z-coordinates is output. A
response then follows with command number 0x5858 and a data
packet containing X-coordinates
is output in the user data area.
coordinates:
A response follows with command number 0x5A5A.
In the user data area, a data
packet with Z-coordinates is output.
Connect is activated. In the user
data area, a data packet with Zand X-coordinates is output.
not processed.
Number of
user
data
words
2 pack-
ets @
376
1
packet
@ 376
1
packet
@ 480
0
TNT 35/7-24V
Leuze electronicLPS 3691
Integrating the LPS in the process control (Ethernet)
Command from control to LPSAnswer from LPS to control
Num-
Command no.
Meaning
0x4541Ethernet Activation
The Ethernet Activation command is used to switch the measurement operation on and off
corresponding to the user data
word.
Prerequisite is that the LPS be
configured with LPSsoft under
Activation Input Mode to
Regard.
A connection to the sensor must
exist before the command can be
used.
Table 10.5:Commands in measure mode
1) The answer listed in the table applies only for the activated state, in FreeRun mode or in
the triggered mode, if triggered. In the deactivated state, there is no response to the command.
ber of
Com-
user
data
mand no.
Meaning
words
0x5A5A
and
0x5858
With activated output of X-coordinates:
A response follows first with
command number 0x5A5A. In
the user data area, a data packet
with Z-coordinates is output. A
response then follows with command number 0x5858 and a data
packet containing X-coordinates
is output in the user data area.
0x5A5AWith deactivated output of X-
1
coordinates:
A response follows with command number 0x5A5A.
In the user data area, a data
packet with Z-coordinates is out-
1)
put.
0x5A58Only with LPS 36HI, when HI-
Connect is activated. In the user
data area, a data packet with
Z- and X-coordinates is
1)
output.
0x414EThe transmitted command was
not processed.
1)
Number of
user
data
words
2 pack-
ets @
376
1)
1
packet
@ 376
1
packet
@ 480
0
TNT 35/7-24V
Leuze electronicLPS 3692
Integrating the LPS in the process control (Ethernet)
10.3.5 Explanation of user data in measure mode (command parameters)
Ethernet Activation
For sensor control command 0x4541, one word of user data is transmitted to the sensor:
ByteMSB High-Byte LSB MSB Low-Byte LSB Meaning of the bits
EA=0 switches off measurement operation,
EA=1 switches on measurement operation.
Leuze electronicLPS 3693
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
10.4Working with the protocol
Note!
The values are displayed in hexadecimal representation (0x…). The values are only transmitted in "Little-Endian" format. For further information, see the note in Chapter 10.2.
Command without user data
Connect to Sensor
PC to LPS:
Startseq. 1
Startseq. 2
Fill character
Command
no.
0xFFFF 0xFFFF 0x0000
0x434E
LPS to PC (command executed):
Startseq. 1
Startseq. 2
0xFFFF 0xFFFF 0x0000
Fill character
0x4141
Command with user data
Set Actual Inspection Task (LPS in command mode, activate Task 15 and do not store
in volatile memory)
Integrating the LPS in the process control (Ethernet)
10.5Operation with LxS_Lib.dll
The LxS_Lib.dll is a .NET 2.0-compatible collection of functions which considerably facilitates the integration of all Leuze light section sensors (LPS, LRS and LES) into PC environments. The LxS_Lib.dll can be used in a variety of programming languages, such as C#,
Visual Basic, etc. The integration into MatLab is also possible.
The DLL can control several light section sensors via Ethernet.
The LxS_Lib.dll supports the following functions, among others:
• Establishment/deactivation of sensor connection
• Evaluation of sensor state
• Triggering, activation via Ethernet
• Activation of individual inspection tasks
• Loading and saving all created inspection tasks
• Activation of inspection tasks
• Parameter changes of the active inspection task
In addition, the LxS_Lib.dll enables the evaluation of specific user data of the LPS, LES or
LRS. With the LRS and LES, all sensor information and intermediate results are available
so that much more complicated evaluations can be realized in the process control.
Access
The library is contained on the supplied product CD. Alternatively, you can download the
program in the Internet at www.leuze.com.
10.6Operation with native C++ DLL
The native C++ DLL was created specifically for integration in C++ programs. It consists
primarily of the LxS Lib functions:
• Establishment/deactivation of sensor connection
• Evaluation of sensor state
• Triggering, activation via Ethernet
• Activation of individual inspection tasks
• Activation of inspection tasks
• Parameter changes of the active inspection task
Only the loading / saving of all created inspection tasks is not possible and must be
performed via the supplied LxSsoft.
Leuze electronicLPS 3695
TNT 35/7-24V
Integrating the LPS in the process control (Ethernet)
10.7Operating with HALCON® image processing software
Benefits
The HALCON® image processing library from MVtec Software GmbH®
(http://www.mvtec.com) can be used to evaluate the recorded 2D profiles.
To simplify the data import step for the user, an Image Acquisition Interface is available
that directly controls the LPS sensors and can read the measurement data (X, Z-coordinates
and encoder values).
Access
The Image Acquisition Interface is contained on the supplied product CD. Alternatively, you
can download the program in the Internet at www.leuze.com.
Note!
For error-free operation of LPS 36/EN (encoder devices) in combination with the HALCON
Vision Acquisition Interface, use the following settings:
• Encoder overflow on 0xFEFF FFFF (corresponds to the factory settings of
firmware V01.10, see Chapter 9.4.2).
10.8Additional support when integrating sensors
Additional tools (e.g. MatLab example, function modules S7, protocol plain-text decoding,
UDP terminal) are available. Please contact your Leuze distributor or service organization
to acquire these.
®
TNT 35/7-24V
Leuze electronicLPS 3696
11Diagnostics and troubleshooting
11.1General causes of errors
ErrorPossible error causesMeasures
Control receives no measurement data
Object contours not
detected
Sensor does not respond to
commands
Table 11.1:General causes of errors
Ethernet connection
interrupted
Control not connected to
sensor
OcclusionSee "Occlusion" on page 15.
Soiling of the
optics covers
Ambient lightPrevent ambient light, shield sensor, see "Selecting a
ReflectionsAvoid reflections.
Unsuitable exposure setting
Object not in measurement range
Detection range selected
too small
Wrong inspection task
selected
Sensor in measure/menu
mode
Sensor not connectedCheck settings of the Ethernet interface. Connect sen-
Sensor not activatedActivate sensor via PIN 2 on X1.
Diagnostics and troubleshooting
Check connection with LPSsoft.
See "Commissioning" on page 51.
Use "To sensor" command.
Clean lens covers,
see "Cleaning" on page 101.
mounting location" on page 28.
Limit detection range with LPSsoft, see "Field of
View" on page 63.
Limit detection range with LPSsoft, see "Field of
View" on page 63.
Adapt exposure duration to the reflective properties of
the objects to be detected. See "Light Exposure" on
page 63.
Visual assessment with LPSsoft,
reduce working distance/position of the sensor to the
object. See "Standard tab - Task Parameters panel"
on page 62.
Configure detection range with LPSsoft.
See "Field of View" on page 63
Change inspection task with LPSsoft or use Ethernet
command "Set Actual Inspection Task". See "Set
Actual Inspection Task" on page 82.
Exit menu view on OLED display.
Connect sensor to control. Switch sensor to command
mode if necessary.
sor to control
Switch off activation input. See "Activation" on
page 63.
TNT 35/7-24V
Leuze electronicLPS 3697
ErrorPossible error causesMeasures
No laser lineSensor not activatedActivate sensor via PIN 2 on X1.
Sensor does not respond to
trigger
Sensor cannot be deactivated via the activation
input
Table 11.1:General causes of errors
11.2Interface error
ErrorPossible error causesMeasures
No connection
Yellow LED not illuminated
No connection
Yellow LED not illuminated
Table 11.2:Interface error
Diagnostics and troubleshooting
Laser was deactivated in
command mode with the
"Set Laser Gate" command
Sensor in trigger modeActivate single measurement by means of Ethernet
Sensor in command mode Exit command mode with the "Exit Command Mode"
Triggering too fast.Reduce trigger rate. The shortest possible interval
Activation Input set to
"Disregard"
Wiring errorCheck Ethernet cable.
DHCP activated in network, no fixed or alternate
network address
assigned.
Incorrect IP address/subnet mask set on LPS.
Incorrect port assigned to
LPS / control
Firewall blocks portsSwitch off firewall temporarily and repeat connection
Switch on laser.
See "Set Laser Gate" on page 81.
trigger or via PIN 5 on X1.
command.
between two successive trigger signals is 10 ms.
See "Triggering - Free Running" on page 21.
Use LPSsoft to configure the activation input to
"Regard". See "Activation" on page 63.
Assign alternate IP address, see "Establish connection to PC" on page 49.
Check IP address/subnet mask, IP addresses of LPS
and control must be different, subnet mask however must be the same, see Table 8.1 "Address allocation
in the Ethernet" on page 49.
Using ping command check whether the sensor
responds. If so, check port assignment to LPS and
control. The set ports must match.
test.
TNT 35/7-24V
Leuze electronicLPS 3698
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.