GS ( A pL pH n m
[Name] | Execute test print |
|
|
|
|
|
| |
[Format] | ASCII | GS | ( | A | pL | pH | n | m |
| Hex | 1D | 28 | 41 | pL | pH | n | m |
| Decimal | 29 | 40 | 65 | pL | pH | n | m |
[Range] | (pL + (pH ×256) ) = 2 | (where | pL = 2, pH = 0) |
| ||||
| 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 |
|
|
|
|
| ||
| 1 ≤ m ≤ 3, 49 ≤ n ≤ 51 |
|
|
|
|
|
[Description]
•Executes a test print with a specified test pattern on a specified paper.
•pL and pH specifies the number of the parameter such as n,m to (pL + (pH ×256) ) bytes.
•n specifies the paper to be tested.
n | Paper | |
0, 48 | Basic sheet (paper roll) | |
1, 49 | Paper roll | |
2, 50 | ||
|
•m specifies a test pattern.
nTest pattern
1, 49 | Hexadecimal dump |
2, 50 | Printer status print |
3, 51 | Rolling pattern print |
[Notes]
•When the hexadecimal dump is printed by this command, the data which is transmitted after the command may not be printed because the printer clears the receive buffer. To avoid this, transmit data from the host after the printer prints the starting message of the hexadecimal dump.
•This command is enabled only when processed at the beginning of a line in standard mode.
61
GS I n
[Name] | Transmit printer ID |
|
| |
[Format] | ASCII | GS | I | n |
| Hex | 1D | 49 | n |
| Decimal | 29 | 73 | n |
[Range] |
| 1 ≤ n ≤ 3 |
|
|
| ||||||
[Function] |
| Transmits the printer ID specified by n as follows: | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
Bit |
|
| Printer ID |
|
| Specification |
| ID (hexadecimal) | |||
1,49 |
| Printer model ID |
|
| 0D | ||||||
2,50 |
| Type ID |
| below |
|
| |||||
3,51 |
| ROM version ID |
| ROM version |
| ||||||
n = 2, Type ID |
|
|
|
|
| ||||||
Bit |
| Off/On |
| Hex | Decimal | Function | |||||
0 |
| Off |
| 00 |
| 0 |
| ||||
|
| On |
| 01 |
| 1 |
| ||||
1 |
| Off |
| 00 |
| 0 |
| Auto cutter not equipped. |
| ||
|
| On |
| 02 |
| 2 |
| Auto cutter equipped. |
| ||
2 |
| - |
| - |
| - |
| Undefined. |
| ||
3 |
| - |
| - |
| - |
| Undefined. |
| ||
4 |
| Off |
| 00 |
| 0 |
| Not used. Fixed to Off. |
| ||
5 |
| - |
| - |
| - |
| Undefined. |
| ||
6 |
| - |
| - |
| - |
| Undefined. |
| ||
7 |
| Off |
| 00 |
| 0 |
| Not used. Fixed to Off. |
|
[Notes]
•The printer ID is transmitted 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.
[Reference]
62