
39
38
SPECIAL DATA TYPE
7.2
7. SERIAL AND USB
7.2.5 TYPE-4 INTERFACE
> NCI ECR(NCR2170), SAMSUNG ER-5100,ER-5115, CRS .etc
1) PROTOCOL
POS/ECR
SCALE (DSW-100)
<W> ------------>
<CR> ------------>
========================================== Inquiry
<------------ <LF> XX.XXX LB <CR>
<------------ <LF> S b1b2 <CR><ETX>
========================================== lb CASE
<------------ <LF> XX.XXX KG <CR>
<------------ <LF> S b1b2 <CR><ETX>
========================================== kg CASE
Weight unit ascii code table
(A) XX.XXX = Weight value (Decimal point: variable)
(B) S = The Character S
(C) b1b2 = Two status Characters
i> Status Bytes
No
UNIT
Unit Character
ASCII CODE
The Characters l and b
The Characters k and g
The Characters ” “and g
The Characters o and z
LB
(0x6C)
(0x6B)
(0x20)
(0x6F)
(0x62)
(0x67)
(0x67)
(0x7A)
KG
g
OZ
1
2
3
4
Bit No
B1
Parity Bit
Parity Bit
1 (Always 1)
1 (Always 1)
1 (Always 1)
1 = Scale at Zero
0 = Not at Zero
1 = Scale in Motion
0 = Stable
1 = Under Capacity
0 = Not Under Capacity
1 = Over Capacity
0 = Not Over Capacity
1 (Always 1)
0
0
0
0
0
0
B2
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
7. SERIAL AND USB
7.3 Standard serial port protocol
ii>Simplified Status Codes
iii> Serial Communication 9600 Baud rate, 7 Data bit, Even
Parity, 1 Stop bit
※Response time: Typ. 100ms, Max. 300ms
7.2.6 TYPE-5 INTERFACE
> NCI GENERAL , SAMSUNG ER-5115, ER-5100 and Most P.O.S
Software
1) PROTOCOL
POS/ECR
SCALE (DSW-100)
<W> ------------>
<CR> ------------>
========================================= Inquiry
<------------ <LF> XX.XXX LB <CR>
<------------ <LF> S b1b2 <CR><ETX>
========================================= lb CASE
<------------ <LF> XX.XXX KG <CR>
<------------ <LF> S b1b2 <CR><ETX>
========================================= kg CASE
Weight unit ascii code table
(A) XX.XXX = Weight value (Decimal point: variable)
(B) S = The Character S(0x53)
(C) b1b2 = Two status Characters
B1
0 (30H)
1 (31H)
1 (31H)
2 (32H)
2 (32H)
0 (30H)
0 (30H)
OK
0 (30H)
0 (30H)
Motion
Scale at Zero
Over capacity
Under capacity
0 (30H)
ASCII Character
(ASCII Code)
ASCII Character
(ASCII Code)
STATUS
Definition
B2
No
UNIT
Unit Character
ASCII CODE
The Characters l and b
The Characters k and g
The Characters ” “and g
The Characters o and z
LB
(0x6C)
(0x6B)
(0x20)
(0x6F)
(0x62)
(0x67)
(0x67)
(0x7A)
KG
g
OZ
1
2
3
4