http://www.woosim.com
79
7
7
.
.
3
3
.
.
1
1
.
.
F
F
o
o
r
r
m
m
a
a
t
t
o
o
f
f
P
P
r
r
i
i
n
n
t
t
D
D
a
a
t
t
a
a
F
F
r
r
a
a
m
m
e
e
7
7
.
.
3
3
.
.
2
2
.
.
F
F
o
o
r
r
m
m
a
a
t
t
o
o
f
f
E
E
N
N
Q
Q
F
F
r
r
a
a
m
m
e
e
C0H
'D'
(0x44)
DATA
ID
Number
kh{h
Length
Print DATA
CHECK
SUM
C1H
1
Byte
4
Bytes
kG
2
Bytes
Data ID number : ‘0’
‘9’(0x30~0x39). Every time the host sends a new
print data frame, it increases this number.
Data Length : “0001”
“9999”. Each number must be an ascii code.
Checksum : 2 bytes. The first byte is the result of XOR of even number of
data in Print data field and the second byte is that of odd number.
(Example)
If “SAMPLE TEST” is in Print Data field, the data length will be
“0011 (0x30 0x30 0x31 0x31)” and the first byte of checksum will
be the result of XOR of S, M, L, space, E, and T and the second
byte that of A, P, E, T, and S.
It is recommended that the host goes back to the initial stage in case
that it receives neither EOT nor NACK from the printer 1 sec after it has
sent the print data frame.
C0H 0x05 C1H
It is recommended that the host send the same ENQ frame up to 10 times with 400ms
time interval in case of no response from the printer.