Integration of the LES 36…/PB in the PROFIBUS
Leuze electronic
LES 36
121
TNT
35/7-2
4
V
11.6
Description of the input data
Several modules are available for selection. Beginning with the simplest input module
M1
,
additional inputs are included with the subsequent modules. All available output data are
already contained in module
M1
. The modules with higher numbers the modules with the
lower numbers (example:
M2
contains
M1
and the extensions of
M2
).
11.6.1
Module M1
Module
M1
provides the minimum required PROFIBUS data.
The maximum measurement rate of 100Hz is ensured if this module is set.
Scan number
The scan number is made available as PROFIBUS master input. This is a 16-bit value (bytes
wScanNum
, HighByte and LowByte).
The scan number is increased by 1 on each measurement. In
FreeRunning
mode, the scan
number also increases even if no sensor is explicitly activated. In triggered mode, the scan
number is increased on each (successful) trigger.
If the inspection task is changed, the PROFIBUS IO data of the sensor are frozen and the
scan number does not change.
Note!
It is recommended that the scan number be monitored in the application in order to deter-
mine whether the data are actually new.
Sensor info
Byte
uSensorInfo
contains in the high nibble (bits 7 … 4) the
Edge State
(state of edge
detection) of the sensor of all four EAWs
Edge1
…
Edge4
and in the low nibble (bits 3 … 0)
the inspection task
IT_b3
…
IT_b0
set in the sensor.
Bit
Designation
Meaning
7
Edge4
State of the edge detection (Edge State) in EAW4: 0 =
not ok
(red), 1 =
ok
(green)
6
Edge3
State of the edge detection (Edge State) in EAW3: 0 =
not ok
(red), 1 =
ok
(green)
5
Edge2
State of the edge detection (Edge State) in EAW2: 0 =
not ok
(red), 1 =
ok
(green)
4
Edge1
State of the edge detection (Edge State) in EAW1: 0 =
not ok
(red), 1 =
ok
(green)
3
IT_b3
Number of the currently set inspection task. Value range 0 … 15
2
IT_b2
1
IT_b1
0
IT_b0
Table 11.2:
Input data byte
uSensorInfo