GS W nL nH
[Name] | Set printing area width. |
|
| ||
[Format] | ASCII | GS | W | nL | nH |
| Hex | 1D | 57 | nL | nH |
| Decimal | 29 | 87 | nL | nH |
[Range] | 0 ≤nL ≤255, 0 ≤nH ≤255 |
| |||
[Description] | Sets the printing area width to the area specified by nL and nH. | ||||
| * The printing area width is set to |
| |||
| [(nL + nH ×256) ×horizontal motion unit] inches. |
GS ₩ nL nH
[Name] | Set relative vertical print position in page mode. | ||||
[Format] | ASCII | GS | ₩ | nL | nH |
| Hex | 1D | 5C | nL | nH |
| Decimal | 29 | 92 | nL | nH |
[Range] | 0 ≤nL ≤255, 0 ≤nH ≤255 |
| |||
[Description] | Sets the relative vertical print starting position from the current position in | ||||
| page mode. |
|
|
|
*This command sets the distance from the current position to [(nL + nH ×256) ×vertical or horizontal motion unit] inches.
GS ^ r t m
[Name] | Execute macro. |
|
|
|
| |
[Format] | ASCII | GS | ^ | r | t | m |
| Hex | 1D | 5E | r | t | m |
| Decimal | 29 | 94 | r | t | m |
[Range] | 0 ≤r ≤255, 0 ≤t ≤255 |
|
|
| ||
[Description] | m = 0, 1 |
|
|
|
|
|
Executes a macro. |
|
|
|
|
*r specifies the number of times to execute the macro.
*t specifies the waiting time for executing the macro.
*m specifies macro executing mode.
When the LSB of m = 0
The macro executes r times continuously at the interval specified by t. When the LSB of m = 1 :
After waiting for the period specified by t, the PAPER OUT LED indicators blink and the printer waits for the FEED button to be pressed. After the button is pressed, the printer executes the macro once. The printer repeats the operation r times.
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 : |
|
|
| ||
|
|
|
|
|
|
|
| |
Bit |
| Off/On |
| Hex |
| Decimal | Status for ASB | |
0 |
| Off |
| 00 |
|
| 0 | Drawer |
| On |
| 01 |
|
| 1 | Drawer | |
|
|
|
|
| ||||
1 |
| Off |
| 00 |
|
| 0 | |
| On |
| 02 |
|
| 2 | ||
|
|
|
|
| ||||
2 |
| Off |
| 00 |
|
| 0 | Error status disabled. |
| On |
| 04 |
|
| 4 | Error status enabled. | |
|
|
|
|
| ||||
3 |
| Off |
| 00 |
|
| 0 | Paper roll sensor status disabled. |
| On |
| 08 |
|
| 8 | Paper roll sensor status enabled. | |
|
|
|
|
| ||||
| - |
| - |
|
| - | 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 la 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.
*The status to be transmitted are as follows :
44 | 45 |