Axetris AG
LGD Compact Integration Guide V1.8
04.12.2019
26/34
The general
Command
structure for data transmission to the sensor is given in
given in
Table 7
General
Command
structure for data transmission to the sensor
Byte
Value
Description
1
“{“
Start of the packet
2
{ P C M I S V}
Command ID
3
0x08
Size of the packet LSB (least significant bit)
4
0x00
Size of the packet MSB (most significant bit)
5
0xXX
Extended command and parameter
0x00
Additional zeros to reach multiple of 8
n -1
Check sum
Check sum (sum from 1 to n-1= 0)
n
“}”
End of the packet
Table 8
Example of a
Command
to transmit data to the sensor (Ping user calibration)
Command in Hex
7B 50
08 00 10 00
1D
7D
Command in ASCII
{ P
. .
. .
.
}
Description
Start of packet {
Command (P = ping)
Packet size (here 8 bytes)
Extended command and Parameter (here 10)
Additional zeros to reach multiple of 8
Checksum
End of packet }
Analog to the
Command
structure, the
Response
packets have the same general format and are given in
, with an example in
Table 9
General structure of the sensor
Response
Byte
Value
Description
1
“{“
Start of the packet
2
{S P C M I V}
Command ID
3-4
N=Size of the packet
Size of the packet (in bytes)
5
Error status Flags
[E W x x x x x x] Bit
0
: Error Flag; Bit
1
: Warning Flag.
The other 6 Bits are negligible.
6
Error status Code
See Annex
Fehler! Verweisquelle konnte nicht g
efunden werden.
and
Fehler! Verweisquelle konnte
nicht gefunden werden.
Data
Additional zeros to reach multiple of 8
n - 1
Check sum
Check sum (sum from 1 to n-1 = 0)
n
“}”
End of the packet