X K 3 1 9 0 - D S 1
7
XOR
=
2
⊕
3
Indicator will output the content as diagram2-3
:
Diagram 2-3
example
(
command A
)
The X byte
Instruction
content Code(binary)
1
Start from 02(XON)
XON
02
2
Address code A
~
Z
(
*NOTE
2-2
)
A 41
Command A
:
handshake
Command B
:
send GW
Command C
:
send TARE
Command D
:
send NW
Command E
:
get vehicle number
Command F
:
get cargo number
Command G
:
get customer number
A
~
H
Command H
:
get remark number
3
EOT(0x04)
:
wrong command
A 41
4
…
n
Send data according to command
No data
No data
n+1
XOR 4 high bit
30
n+2
XOR 4 low bit
XOR
=
00
30
n+3
03(X0FF) stop
XOFF
03
XOR
=
2
⊕
3
⊕
……
(
n-1
)
⊕
n
The content which is sent by the indicator are as following diagram 2-4
:
Diagram 2-4
Command A
No data
Each frame is composed by
6 groups data
GW, format:
a
:
or-)
b
:
GW value ( 6 bit)
… (from high to low)
g
Command B
h
:
the decimal point is from right to left( 0
~
Each frame is composed by
14 groups data
TARE, format:
a
:
signal (+or-)
b
:
TARE value ( 6 bit)
… (from high to low)
g
Command C
h
:
the decimal point is from right to left( 0
~
Each frame is composed by
14 groups data