Integrating the LES in the process control (Ethernet)
Leuze electronic
LES 36
114
TNT
35/7-2
4
V
10.5
Operation with LxS_Lib.dll
The LxS_Lib.dll is a .NET 2.0-compatible collection of functions which considerably facili-
tates the integration of all Leuze light section sensors (LPS, LRS and LES) into PC environ-
ments. The LxS_Lib.dll can be used in a variety of programming languages, such as C#,
Visual Basic, etc. The integration into MatLab is also possible.
The DLL can control several light section sensors via Ethernet.
The LxS_Lib.dll supports the following functions, among others:
• Establishment/deactivation of sensor connection
• Evaluation of sensor state
• Triggering, activation via Ethernet
• Activation of individual inspection tasks
• Loading and saving all created inspection tasks
• Activation of inspection tasks
• Parameter changes of the active inspection task
In addition, the LxS_Lib.dll enables the evaluation of specific user data of the LPS, LES or
LRS. With the LRS and LES, all sensor information and intermediate results are available
so that much more complicated evaluations can be realized in the process control.
Access
The library is contained on the supplied product CD. Alternatively, you can download the
program in the Internet at
www.leuze.com
.
10.6
Operation with native C++ DLL
The native C++ DLL was created specifically for integration in C++ programs. It consists
primarily of the LxS Lib functions:
• Establishment/deactivation of sensor connection
• Evaluation of sensor state
• Triggering, activation via Ethernet
• Activation of individual inspection tasks
• Activation of inspection tasks
• Parameter changes of the active inspection task
Only the loading / saving of all created inspection tasks is not possible and must be
performed via the supplied LxSsoft.
10.7
Additional support when integrating sensors
Additional tools (e.g. MatLab example, function modules S7, protocol plain-text decoding,
UDP terminal) are available. Please contact your Leuze distributor or service organization
to acquire these.