User`s manual
16
1) Scale Information of ICL Protocol [SF-5.a=0]
DATA FORMAT (ICL PROTOCOL)
The format of the data string from the scale is;
STX
02
H
ID W5 W4 W3 W2 W1 BCC
ETX
03
H
These bytes are defined as follows;
< ID >
ID is an identification byte defining maximum capacity and minimum increments of the scale. Typical
capacities and increments are listed below with allocated codes. Further combinations of the codes may
be added at the request of scale vendors.
If the weight is under or over the capacity, the weight data of zero (30
H
) will be transmitted with bit 4
(X) of the ID byte set to 1.
< W5 ~ W1 >
ASCII code is used for the weight data. In cases where MSD (Most Significant Digit) or LSD (Least
Significant Digit) are not required, a 'NUL' character will be transmitted in the unused position.
ID
(byte)
Maximum
Capacity
Minimum
Increment
Weight data recognized by ECR
11X1000 25 lb 1/8 oz
→
XX lb XXX/8 oz
11X1001 15 kg 0.005 kg
→
XX.XXX kg
11X1010 30 lb 0.01 lb
→
XX.XX lb
(W1 = NUL)
11X1011 6 kg 0.002 kg
→
X.XXX kg
(W5 = NUL)
11X1100 50 lb 0.01 lb
→
XX.XX lb
(W4 = NUL)
Weight Data (byte)
W5 (MSD) tens of lbs or kgs
W4 units of lbs or kgs
W3 tens of ozs or tenths of kg/lbs
W2 unit of ozs or hundredths of kg/lbs
W1 (LSD) eighths of ozs or thousandths of kg
For example, when the "15kg" capacity is used and the weight is 2.345 kg, the data will be;
STX
02
H
ID
NUL
00
H
2
32
H
3
33
H
4
34
H
5
35
H
BCC
ETX
03
H
Then, the ECR recognizes the data as "2.345" kg.
< BCC >
Block Check Character is calculated as the even column parity of all characters except the STX and
ETX.