Programmer’s Guide
TH200
57
GS a n
Enable/Disable Automatic Status Back (ASB)
Code:
Range:
Description:
Notes:
ASCII GS a n
Hex
1D 61 n
Decimal 29 97 n
0
≤
n
≤
255
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
Drawer kick-out connector pin 3 status disabled.
0
on
01
1
Drawer kick-out connector pin 3 status
enabled.
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.
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.
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 the printer is disabled by
ESC =
(Select peripheral device), the four status bytes
are transmitted whenever the status changes.
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
Drawer kick-out connector pin 3
2
On
04
4
Drawer kick-out connector pin 3
Off
00
0
On-line.
3
On
08
8
Off-line.
4
On
10
16
Not used. Fixed to On.
5
Off
00
0
Cover is closed.
Summary of Contents for TH200
Page 1: ...TH200 High Speed Thermal Printer Programmer s Guide TH200 March 2005 ...
Page 19: ...Programmer s Guide TH200 19 When font B 9 17 is selected ...
Page 21: ...Programmer s Guide TH200 21 When 24 dot bit image is selected ...
Page 73: ...Programmer s Guide TH200 73 pattern 3 2 PAGE1 Katakana ...
Page 74: ...Programmer s Guide TH200 74 3 3 Page 2 PC850 Multilingual ...
Page 75: ...Programmer s Guide TH200 75 3 4 Page 3 PC860 Portuguese ...
Page 76: ...Programmer s Guide TH200 76 3 5 Page 4 PC863 Canadian French ...
Page 77: ...Programmer s Guide TH200 77 3 6 Page 5 PC865 Nordic ...
Page 78: ...Programmer s Guide TH200 78 3 7 Page 18 PC852 Latin2 ...
Page 79: ...Programmer s Guide TH200 79 3 8 Page 19 PC858 ...
Page 80: ...Programmer s Guide TH200 80 3 9 Page 16 WPC1252 ...
Page 81: ...Programmer s Guide TH200 81 3 10 Page 17 PC866 Cyrillic 2 ...
Page 82: ...Programmer s Guide TH200 82 3 11 Thai character code 11 ...
Page 83: ...Programmer s Guide TH200 83 3 12 International Character Set ...