X K 3 1 9 0 - D S 1
6
Diagram 2-1
instruction
example ( send
+
20
.
00 )
The X byte
content
Content code
content
Hex code
1 Start (XON) 02
XON 02
2 +or- Symbol
bit
2B/2D
+
2B
3 Highest
bit
30
~
39
0
30
4
30
~
39
0
30
5
30
~
39
2
32
6
30
~
39
0
30
7
30
~
39
0
30
8
Weighing
data
Lowest bit
30
~
39
0
30
9
Decimal From right to left
(
0
~
4
)
30
~
34
2
32
10
4 high bit
(
*
NOTE2-1
)
31
11
XOR
4 low bit
XOR
=
0x1B
42
12 stop
X0FF
03
XOFF 03
XOR
=
2
⊕
3
⊕
……8
⊕
9
NOTE 2-1:
The definition of the higher or lower 4 bits for the XOR calibration
If the higher 4 or lower 4 bits for the XOR calibration is not more than nine, you should add 30h
and have it transmitted into ASCII code. Otherwise, you should add 37h and have it transmitted
into alphabet ASCII code. For example, when the higher 4 bits for the XOR calibration is 6, you can
add 30h. Obviously 36 will be transmitted as ASII code 6. Also, when the higher 4 bits for the XOR
calibration is B, you can add 37h, and 42h will be transmitted as ASCII code B.
(2). Command method (TF=1)
:
The indicator will output the data according to the computer command, each time the
computer send the command, the indicator will accordingly send a frame of data. The computer
command is as following diagram 2-2
Diagram 2-2
:
Instruction example
The X byte
Content instruction Content
Command code
(
hex
code
)
1 Start
XON
(
02
)
XON
02
2 Address
code
A
~
Z
(
*
note 2-2
)
Adr=1 41
Command A
:
shakehand
Command B
:
read GW
Command C
:
read TARE
Command D
:
read NW
Command E
:
get vehicle number
Command F
:
get cargo number
Command G
:
get customer
3
command
(
A~H
)
Command H
:
get remark number
example
:
command A
41
4
4 high bit
30
5
XOR
4 low bit
XOR
2
⊕
3
=
00
30
6 Stop
03(X0FF)
XOFF
03