6059
Control commands list
Chapter 5
GS a n
[Name] Enable/Disable Automatic Status Back
[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:
1 GS V m2 GS V m n
[Name] Feeds paper for cutting position.
[Format] 1 ASCll GS V m
Hex 1D 56 m
Decimal29 86 m
2 ASCll GS V m n
Hex 1D 56 m n
Decimal29 86 m n
[Range] 1 m = 1, 49 2 m = 66, 0 n 255
[Description] Feeds paper for cutting position as follows;
[Notes]
This command is effective only at the beginning of a line.
When n = 0, the printer feeds the paper to the cutting position.
When n , 0,the printer feeds the paper to
(cutting position +[ n x 0.122 mm {1/192 inches}]).
Bit
1, 49
66
Print mode
Partial cut (one portion left uncut)
Feeds paper for ( cutting position + [n x 0.122 mm {1/192 inches}]), and partial cut.
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
Off
On
-
-
-
-
Hex
00
01
00
02
00
04
00
08
-
-
-
-
Decimal
0
1
0
2
0
4
0
8
-
-
-
-
Status for ASB
Drawer kick-out connector pin 3 status disabled.
Drawer kick-out connector pin 3 status enabled.
On-line/off-line disabled.
On-line/off-line enabled
Error status disabled.
Error status enabled.
Paper roll sensor status disabled.
Paper roll sensor status enabled.
Undefined.
Undefined.
Undefined.
Undefined.
[Notes]
Even if only one of the statuses is enabled, the status is sent when
this command is executed. Subsequently, whenever the state of a
valid status changes, that status is sent. In this case, because the
current state is shown for each status, there is a possibility of a
state change for a status for which ASB is not enabled.
If all statuses are disabled, the Automatic Status Back (ASB)
function is disabled.
When transmitting a status, the printer transmits only four bytes.
Four bytes of status data must be consecutive, except for XOFF code.
This command is executed when the data in the receive buffer is
developed. Therefore, there may be a time lag between receiving
this command and transmitting the status, depending on the
receive buffer status.
When the printer is disabled by ESC = (Select peripheral device),
this command is disabled but ASB is not disabled.
The status to be transmitted are as follows: