ESC/POS Command Manual
40
Any setting that exceeds the specified printing area is ignored.
This command function as follows, depending on the print starting position set
by ESC T:
①
When the starting position is set to the upper left or lower right of the
printing, the
vertical motion unit (
y
) is used.
②
When the starting position is set to the upper right or lower left of the printing
area, the
horizontal motion unit (
x
) is used.
[Reference]
ESC $, ESC T, ESC W, ESC
\
, GS $
GS a
n
[Name]
Enable/Disable Automatic Status Back (ASB)
[Format]
ASCII GS
a
n
Hex 1D
61
n
Decimal 29
97
n
[Range]
0
≤
n
≤
255
[Description]
Enables or disables ASB and specifies the status items to include, using n as
follows:
Bit
Off/ On
Hex
Decimal
Status for ASB
Off
00
0
.
0
On
01
1
Off
00
0
On-line/off-line status disabled.
1
On
02
2
On-line/off-line status enabled
Off
00
0
Error status disabled
2
On
04
4
Error status enabled.
Off
00
0
Paper roll sensor status disabled.
3
On
08
8
Paper roll sensor status enabled.
4–7
-
-
-
Undefined.
[Details]
If any of the status items in the table above are enabled, the printer
transmits
the status when this command is executed. The printer automatically transmits
the status whenever the enabled status item changes. The disabled status
items may
change, in this case, because each status transmission represents
the current status.
If all status items are disabled, the ASB function is also disabled.
If the ASB is enabled as a default, the printer transmits the status when the printer data
reception and transmission is possible at the first time from when
the printer is turned on.
The following four status bytes are transmitted without confirming whether the
host is ready to
receive data. The four status bytes must be consecutive,
except for the XOFF code.
Since this command is executed after the data is processed in the receive
buffer, there may be a time lag between data reception and status transmission.
When using DLE EOT, GS I , or GS r, the status transmitted by these
commands and ASB status must be differentiated.
The status to be transmitted are as follows:
First byte (printer information)
Bit
Off/On
Hex
Decimal
Status for ASB
0
Off
00
0
Not used. Fixed to Off
1
Off
00
0
Not used. Fixed to Off
Off
00
0
2
On
04
4
3
Off
00
0
On-line