2 1 . 3 . 7 . 6 .
C a n c e l w e i g h t a u t o - t a r e
STX [No.c] [RA] CHK ETX
STX [No. c] (CHR$(6)) ETX
(OK)
STX [No. c] (CHR$(21)) ETX
(ERROR)
2 1 . 3 . 7 . 7 .
W r i t e S e t
STX [No.c] [WSn] [pppppp] CHK ETX
where n of WSn = No of set
STX [No. c] (CHR$(6)) ETX
(OK)
STX [No. c] (CHR$(21)) ETX
(ERROR)
2 1 . 3 . 7 . 8 .
C a l c u l a t i o n o f t h e C h e c k s u m
Proceed as follows to calculate the checksum:
Carry out the XOR of all characters received, except for STX CHK and ETX
The resulting decimal number must be turned into hexadecimal and divided into two
ASCII characters that must be transmitted (CHK).
E.g.:
STX 129 [R] [P] CHK ETX
129
xor \
[R]
xor \
[P]
=
129
xor
82
xor
80
=
131
in hexadecimal
83
H
The checksum will be
[8] [3]
and the string to be transmitted will be:
STX 129 [R] [P] [8] [3]
ETX
36/41
Summary of Contents for ROBOPAC ECOPLAT
Page 22: ...22 41 ...