Integrating the LES in the process control (Ethernet)
Leuze electronic
LES 36
96
TNT
35/7-2
4
V
The possible values of individual bytes and their meaning are described below.
Protocol structure
The protocol consists of the
header
(30 bytes) followed by the
user data
(0 … 75 data
words @ 2 bytes). The protocol is used both in command mode when transmitting
commands and when acknowledging sensor commands as well as in measure mode.
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.2.9).
In
measure mode,
the sensor always sends an evaluation telegram with command number
0x5354
.
10.2.2
Packet number
The packet number serves internal maintenance purposes of the manufacturer.
10.2.3
Transaction number
In
measure mode
, 0x0000 is always displayed here.
In
command mode
, the command acknowledgment of the sensor contains the command
number of the command that is answered.
Startseq. 1
Startseq. 2
Fill character
Command no.
Fill character
Packet no.
Fill character
Transaction no.
Status
Encoder H
Encoder L
Fill character
Scan no.
Type
Number of
user data words
0xFFFF 0xFFFF 0x0000 0x0059 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0010 0x0003
Length 4
b
ytes,
fixed value:
0xFFFF
0xFFFF
Length 2
b
ytes,
fixed value:
0x
0000
Length 2
b
ytes,
possible values:
se
e C
Length 2
b
ytes,
fixed value:
0x
0000
Length 2
b
ytes,
value range:
0x00
00 … 0xFFFF
Length 2
b
ytes,
fixed value:
0x
0000
Length 2
b
ytes,
value range:
0x00
00 … 0xFFFF
Length 2
b
ytes,
value range:
0x00
00 … 0xFEFF
Length 4
b
ytes,
value range:
0x0000
0000
…
0xFFFF FFFF
1)
1)
For sensor models with encoder input, these 4 bytes contain the encoder value.
With the LES, this value is always 0x0000 0000.
Length 2
b
ytes,
fixed value:
0x
0000
Length 2
b
ytes,
value range:
0x00
00 … 0xFFFF
Length 2
b
ytes,
fixed value:
0x
0010
Length 2
b
ytes, possible values:
0x0000
/ 0x0001 / 0x
0002 /
0x0003 / 0x
0178
Length of the header: 30 bytes