Select your printer model
Parameters are refined by the selected printer.
- EU-m30
- TM-J2000
- TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30III
- TM-m30III-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-T100
- TM-U220
- TM-U220II
- TM-U230
GS a
[Name]
Enable/disable Automatic Status Back (ASB)
[Format]
ASCII
|
|
GS
|
|
a
|
|
n
|
Hex
|
1D
|
61
|
n
|
|||
Decimal
|
29
|
97
|
n
|
[Range]
n = 0 – 255
[Default]
n: different depending on the printers
[Description]
Enables or disables basic ASB (Automatic Status Back) and specifies the status items
to include, using n as follows:
n: Bit
|
Binary
|
Function
|
Hex
|
Decimal
|
---|---|---|---|---|
0
|
0
|
Drawer or optional external buzzer status disabled.
|
00
|
0
|
1
|
Drawer or optional external buzzer status enabled.
|
01
|
1
|
|
1
|
0
|
Online/offline status disabled.
|
00
|
0
|
1
|
Online/offline status enabled.
|
02
|
2
|
|
2
|
0
|
Error status disabled.
|
00
|
0
|
1
|
Error status enabled.
|
04
|
4
|
|
3
|
0
|
Roll paper sensor status disabled.
|
00
|
0
|
1
|
Roll paper sensor status enabled.
|
08
|
8
|
|
4,5
|
0
|
(Reserved)
|
00
|
0
|
6
|
0
|
Panel switch status disabled.
|
00
|
0
|
1
|
Panel switch status enabled.
|
40
|
64
|
|
7
|
0
|
(Reserved)
|
00
|
0
|
[Notes]
-
ASB is the function that transmit the status of [cover open/close], [Online/Offline] from the printer automatically. It is called [ASB function] and the status is [ASB status]. If you use ASB, application can acquire the printer change in a real-time and passively.
-
Select any status enabled (except n = 0) and basic ASB starts. Then transmit the current basic ASB status. After that, while ASB is active the selected enabled basic ASB status is transmitted whenever the status changes.
-
When n = 0, basic ASB is disabled. When ASB is disabled, basic ASB status is not transmitted.
-
Multiple status items can be selected.
-
When ASB is active, ASB status is transmitted whenever the status changes even if the printer is disabled by ESC =.
-
This command setting is effective until ESC @ is executed, the printer is reset or power is turned off.
-
Any basic ASB status represents the enabled status whenever the status changes. Therefore the disabled status items may change, because each status transmission represents the current status.
-
The basic ASB statuses, corresponding to each bit for n are as follows:
-
nASB statusBitFunctionBitStatus0Drawer kick-out connector statusBit 2 of the first byteDrawer kick-out connector pin 3 status1Online/offline statusBit 3 of the first byteOnline/ offline statusBit 5 of the first byteCover statusBit 6 of the first bytePaper is being fed by paper feed button statusBit 0 of the second byteWaiting for online recovery statusBit 0 and 1 of the third byte (∗1)Roll paper near-end sensor statusBit 2 and 3 of the third byte (∗1)Roll paper end sensor status2Error statusBit 2 of the second byteRecoverable error statusBit 3 of the second byteAutocutter error statusBit 5 of the second byteUnrecoverable error statusBit 6 of the second byteAutomatically recoverable error status3Roll paper sensor statusBits 0 and 1 of the third byteRoll paper near-end sensor statusBits 2 and 3 of the third byteRoll paper end sensor status6Panel switch statusBit 1 of the second bytePaper feed status
-
(∗1) The bits are valid in case the sensor is selected to stop printing with ESC c 4.
-
Basic ASB status is 4-byte configuration [first byte – fourth byte].
-
First byte (printer information)
-
BitBinaryStatusHexDecimal00Fixed00010Fixed00020Drawer kick-out connector pin 3 is LOW. (∗1)0001Drawer kick-out connector pin 3 is HIGH. (∗1)04430Online.0001Offline.08841Fixed101650Cover is closed.0001Cover is open.203260Paper is not being fed by the paper feed button.0001Paper is being fed by the paper feed button.406470Fixed000
-
(∗1) If the optional external buzzer is connected to the drawer kick-out connector, the bit is HIGH while the buzzer is sounding, and LOW otherwise.
-
Second byte (printer information)
-
BitBinaryStatusHexDecimal00Not waiting for online recovery.0001Waiting for online recovery.01110Paper feed button is not pushed (off)0001Paper feed button is pushed (on)02220No recoverable error (except for autocutter error).0001Recoverable error occurred (except for autocutter error).04430No autocutter error.0001Autocutter error occurred.08840Fixed00050No unrecoverable error.0001Unrecoverable error occurred.203260No automatically recoverable error.0001Automatically recoverable error occurred.406470Fixed000
-
-
Online recovery wait (bit 0) is changed when GS ^ is executed, the printer waits for the button to be pressed for removing a label, or roll paper to be replaced for some models.
-
If recoverable error (bit 2) or autocutter error (bit 3) occurs due to paper jams or the like, it is possible to recover by correcting the cause of the error and executing DLE ENQ (n = 2).
-
If an unrecoverable error (bit 5) occurs, turn off the power as soon as possible.
-
The cause of the error can be checked by the offline response (when an offline cause is added). See GS ( H <Function 49> .
-
-
Third byte (paper sensor information)
-
BitBinaryStatusHexDecimal0, 100Roll paper near-end sensor: paper adequate.00011Roll paper near-end sensor: paper near-end.0332, 300Roll paper end sensor: paper present.00011Roll paper end sensor: paper not present.0C1240Fixed0005, 6−(Reserved)−−70Fixed000
-
-
Some paper sensors are not present, depending on the printer model. The names of some paper sensors are different, depending on the printer model.
-
-
Fourth byte (paper sensor information)
-
BitBinaryStatusHexDecimal0 – 3−(Reserved)−−40Fixed0005, 6−(Reserved)−−70Fixed000
-
During Block data [header – NUL] transmission, ASB is disabled temporarily. Therefore you cannot get the printer status change through ASB status when block data [header – NUL] is transmitted.
-
With a serial interface, the printer transmits a 4-byte ASB status message without confirming whether the host can receive data.
-
With a parallel interface, when ASB status is used, it is desirable for the host to be in a reverse idle state. However, if the host computer cannot always be in the reverse idle state, it is necessary to enter Reverse Mode regularly to watch for ASB status. If the host is not in the Reverse Mode for a long time, and the printer has to store ASB status changes to be transmitted, the following 2 sets (8 bytes) of ASB status are changed to special data and transmitted prior to other transmission data when the host enters Reverse Mode:
-
-
ASB-1: Status information that shows whether status changes occurred
-
ASB-2: The latest ASB status information
-
-
If bits have a different value between (ASB-1) and (ASB-2), this means at least one change has occurred. An example is shown below:First byteSecond byteThird byteFourth byteASB-10011 10000000 00000110 00110000 1111ASB-20001 00000000 00000110 00110000 1111Bit 5 and 3 of the first byte are different from (ASB-1) and (ASB-2). From this information, you can see that [The cover is shutting now and On line though Off line (Bit 3) by cover opening Bit 5)].
-
Basic ASB status can be differentiated by other transmission data by Bit 0, 1, 4, and 7 of the first byte. Process the transmitted data from the printer as ASB status which is consecutive 3 byte if it is "0xx1xx00" [x = 0 or 1]. However, the processing shown in the following is necessary in the identifying processing of ASB status.
-
-
When the host communicates with the printer by XON/XOFF control, 4 bytes of data may interrupt ASB status; therefore, 4-byte code except for the XOFF code, is processed as ASB status. ASB status configuration is different from that of the XOFF code.
-
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ESC/POS® includes patented or patent pending commands. The contents must not be disclosed
to third parties.
- Introduction
- Command Lists
- Commands in Code Order
- Applicable printers
- Command List by Model
- EU-m30
- TM-J2000, TM-J2100
- TM-L90
- TM-L90 LFC
- TM-L100
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60
- TM-P60II
- TM-P80
- TM-P80II
- TM-T100
- TM-T20
- TM-T20II
- TM-T20III
- TM-T20IIIL
- TM-T20IV-L
- TM-T20X
- TM-T20X-II
- TM-T70
- TM-T70II
- TM-T81III
- TM-T82II
- TM-T82III
- TM-T82IIIL
- TM-T82IV-L
- TM-T82X
- TM-T82X-II
- TM-T83III
- TM-T83IV
- TM-T88IV
- TM-T88V
- TM-T88VI
- TM-T88VII
- TM-T90
- TM-U220
- TM-U220II
- TM-U230
- Obsolete Commands
- Commands Arranged by Function
- Print Commands
- Line Spacing Commands
- Character Commands
- Printing Paper Commands
- Label and black mark control
- Print Position Commands
- Paper Sensor Commands
- Mechanism Control Commands
- Bit Image Commands
- Bit Image
- GS ( L / GS 8 L
- GS D
- Graphics
- NV Graphics
- Download Graphics
- Panel Button Commands
- Status Commands
- Barcode Commands
- Two-dimensional Code Commands
- GS ( k
- PDF417
- QR Code
- MaxiCode
- 2-dimensional GS1 DataBar
- Composite Symbology
- Aztec Code
- DataMatrix
- Macro Function Commands
- Kanji Commands
- Miscellaneous Commands
- DLE ENQ
- DLE DC4 <fn=1>
- DLE DC4 <fn=2>
- DLE DC4 <fn=3>
- DLE DC4 <fn=7>
- DLE DC4 <fn=8>
- ESC ( Y
- ESC =
- ESC @
- ESC L
- ESC S
- ESC p
- GS ( A
- GS ( D
- GS I
- GS P
- GS g 0
- GS g 2
- GS z 0
- Response or status transmission
- Print control methods
- Beeper tone control
- Graphics drawing
- Receipt enhancement control
- Page mode control
- Customize Commands
- User setup
- GS ( E
- GS ( E <fn=1>
- GS ( E <fn=2>
- GS ( E <fn=3>
- GS ( E <fn=4>
- GS ( E <fn=5>
- GS ( E <fn=6>
- GS ( E <fn=7>
- GS ( E <fn=8>
- GS ( E <fn=9>
- GS ( E <fn=10>
- GS ( E <fn=11>
- GS ( E <fn=12>
- GS ( E <fn=13>
- GS ( E <fn=14>
- GS ( E <fn=15>
- GS ( E <fn=16>
- GS ( E <fn=48>
- GS ( E <fn=49>
- GS ( E <fn=50>
- GS ( E <fn=51>
- GS ( E <fn=52>
- GS ( E <fn=99>
- GS ( E <fn=100>
- Printer customization
- NV user memory
- User setup
- Counter Printing Commands
- Programming Examples
- Appendixes