
Ethernet TCP/IP interface
60
AMS 308
i
Leuze electronic
Example: Transfer single position value
•
Transaction ID (16Bit):
Value between 0x0000 and 0xFFFF
• Protocol ID (16Bit):
Always 0x4C31
• Length (16Bit):
Always 0x0002
• 0xFF (8Bit):
Always 0xFF
•
Function code (8Bit):
0xF1 (value depending on the function between 0xF1 and 0xF8)
9.4.2
Answer telegram of the AMS 308
i
9.4.2.4
TCP user data area
Answer telegram for the F1 to F7 function code
Laser (control)
0 = laser ON
1 = laser OFF
IO1
0 = signal level inactive
1 = signal level active
0xF6
246
Transfer single speed value
0xF7
247
Start cyclical transmission of the velocity value
0xF8
248
Transfer single position and velocity value
Table 9.1:
Functions
ETHERNET HEADER
(Ethernet addresses)
IP HEADER
(IP addresses)
TCP HEADER
(Port numbers)
TCP USER DATA AREA
FCS
Transaction ID
(16Bit)
Protocol ID
(16Bit)
Length
(16Bit)
0xFF
(8Bit)
Status
(16Bit)
Data
(24Bit )
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
LASER
IO2
IO1
0
0
0
0
1
READY
LSR
TMP
ERR
ATT
PLB
OVFL
SIGN
2
D23
D22
D21
D20
D19
D18
D17
D16
3
D15
D14
D13
D12
D11
D10
D9
D8
4
D7
D6
D5
D4
D3
D2
D1
D0
Table 9.2:
Answer telegram