![Custom Engineering s'print User Manual Download Page 27](http://html1.mh-extra.com/html/custom-engineering/sprint/sprint_user-manual_2700880027.webp)
2. INTERFACES
5
2-
DPT100-B/I/BT
DATA
[LUNG bytes] = data to be communicated to the printer.
The datafield may include both data to be printed and command characters (see
Section 3 “Printer Functions”).
ID JOB [1byte]
= ID of the data packet received. The $00 value of this data field is reserved. This
number must be different for each transmission: a data packet with the same ID JOB
as the previous data packet is formally accepted (an ACK message is transmitted),
but it is not interpreted by the printer.
CKS
[1byte]
= Check sum of the transmitted bytes: the check sum is calculated as an 8 bit sum of
all previous fields (STX, LUNG, DATI, ID JOB)
One of three responses may be sent back to the printer: ACK, NACK and BUSY. The structure of these
responses is as follows:
e
t
y
B
1
e
t
y
B
1
e
t
y
B
1
X
T
S
E
P
Y
T
S
T
S
STX
[1byte]
= $02 Start Transmission ID
TYPE
[1byte]
= Response type: ACK ($06), NACK ($15) and BUSY ($13))
STS
[1byte]
= Printer status: the byte is structured like that
ti
B
n
O
/f
f
O
x
e
H
l
a
m
i
c
e
D
n
o
it
c
n
u
F
0 1
,
ff
O
0
0
0
t
n
e
s
e
r
p
r
e
p
a
p
,
e
s
o
l
c
r
e
v
o
C
n
O
03
3
g
n
i
k
r
o
w
t
o
n
r
o
s
n
e
s
r
e
p
a
p
r
o
n
e
p
o
r
e
v
o
C
3
,
2
ff
O
0
0
0
:
r
o
s
n
e
s
d
n
e
-
r
e
p
a
P
t
n
e
s
e
r
p
r
e
p
a
P
n
O
C
0
2
1
:
r
o
s
n
e
s
d
n
e
-
r
e
p
a
P
t
n
e
s
e
r
p
t
o
n
r
e
p
a
P
4
ff
O
0
0
0
]
d
e
v
r
e
s
e
R
[
5
ff
O
0
0
0
t
c
e
r
r
o
c
e
r
u
t
a
r
e
p
m
e
t
d
a
e
H
n
O
0
2
2
3
r
o
r
r
e
e
r
u
t
a
r
e
p
m
e
t
d
a
e
H
6
ff
O
0
0
0
t
c
e
r
r
o
c
e
g
a
tl
o
v
y
r
e
tt
a
B
n
O
0
4
4
6
r
o
r
r
e
e
g
a
tl
o
v
y
r
e
tt
a
B
7
-
-
-
]
d
e
v
r
e
s
e
R
[
An ACK response is returned in the event the entire protocol was interpreted correctly and the check sum
calculated is the same as that received by the host.
A NACK response is returned in the event of transmission errors that cause a discrepancy between the
calculated and received check sums.
A BUSY response is returned in the event the printer does not have sufficient memory to store the transmitted
data. If this response is returned, use the STS byte to find the cause that generated the BUSY condition. If
there are no errors (no paper, head overheating or incorrect electrical voltage), the BUSY message has been
generated because the buffer is full and it is necessary to wait for the buffer to empty; then change the IDJOB
field and repeat the transmission.
EXAMPLE:
To use this protocol to print the text “CUSTOM” in double height and width, send the following data to the
printer :
Summary of Contents for s'print
Page 1: ...DPT100 B I BT User Manual Portable thermal printer s print www custom biz...
Page 10: ...INTRODUCTION DPT100 B I BT 4 Blank page...
Page 34: ...2 INTERFACES 12 2 DPT100 B I BT Blank page...
Page 55: ...4 TECHNICAL SPECIFICATIONS 6 4 DPT100 B I BT Blank page...
Page 57: ...5 CHARACTER SETS 2 5 DPT100 B I BT Blank page...