GS B n
[Name] | Turn white/black reverse printing mode on/off. | |||
[Format] | ASCII | GS | B | n |
| Hex | 1D | 42 | n |
| Decimal | 29 | 66 | n |
[Range] | 0 ≤n ≤255 |
|
| |
[Description] | Turns on or off white/black reverse printing mode. |
*When the LSB is 0, white/black reverse printing mode is turned off.
*When the LSB is 1, white/black reverse printing mode is turned on.
GS H n
[Name] | Select printing position of HRI characters. | |||||
[Format] | ASCII | GS | B | n | ||
|
| Hex | 1D | 48 | n | |
|
| Decimal | 29 | 72 | n | |
[Description] | Selects the printing position of HRI characters when printing a bar code. | |||||
|
| n selects the printing position as follows : | ||||
|
|
|
|
| ||
| n |
| Printing position |
| ||
| 0, 48 |
| Not printed. |
|
| |
| 1, 49 |
| Above bar code. |
| ||
| 2, 50 |
| Below bar code. |
| ||
| 3, 51 |
| Both above and below the bar code. | |||
|
| * HRI indicates Human Readable Interpretation. | ||||
|
|
|
|
|
| |
GS I n |
|
|
|
|
| |
[Name] | Transmit printer ID. |
|
| |||
[Format] | ASCII | GS | I | n | ||
|
| Hex | 1D | 49 | n | |
|
| Decimal | 29 | 73 | n |
[Range] | 1 ≤n ≤3, 49 ≤n ≤51 |
| ||
[Description] | Transmits the printer ID specified by n as follows : |
| ||
|
|
|
|
|
n |
| Printer ID | Specification | ID (hexadecimal) |
1, 49 |
| Printer model ID | 20 | |
2, 50 |
| Type ID |
| 02 |
3, 51 |
| ROM version ID | Depends on ROM version | 02 |
GS L nL nH
[Name] | Set left margin. |
|
|
| |
[Format] | ASCII | GS | L | nL | nH |
| Hex | 1D | 4C | nL | nH |
| Decimal | 29 | 76 | nL | nH |
[Range] | 0 ≤nL ≤255, 0 ≤nH ≤255 |
| |||
[Description] | Sets the left margin using nL and nH. | ||||
| * The left margin is set to |
|
|
[(nL + nH ×256) ×horizontal motion unit] inches.
GS P x y
[Name] | Set horizontal and vertical motion units. | ||||
[Format] | ASCII | GS | P | x | y |
| Hex | 1D | 50 | x | y |
| Decimal | 29 | 80 | x | y |
[Range] | 0 ≤x ≤255, 0 ≤y ≤255 |
|
| ||
[Description] | Sets the horizontal and vertical motion units to approximately 25.4/x mm | ||||
| {1/x inch and } and approximately 25.4/y mm {1/y inches }, respectively. | ||||
| When x and y are set to 0, the default setting of each value is used. |
①GS V m , ② GS V m n
[Name] | Select cut mode and cut paper. |
| ||||
[Format] | ① | ASCII | GS | V | m |
|
|
| Hex | 1D | 56 | m |
|
|
| Decimal | 29 | 86 | m |
|
| ② | ASCII | GS | V | m | n |
|
| Hex | 1D | 56 | m | n |
|
| Decimal | 29 | 86 | m | n |
[Range] | ① m = 1, 49 |
|
|
|
|
②m = 66, 0 ≤n ≤255
[Description] Selects a mode for cutting paper and executes paper cutting.
The value of m selects the mode as follows :
m Print mode
0, 1, 49 Partial cut (one point left uncut)
66Feeds paper (cutting position + [nX(vertical motion unit)]), and cuts the paper partially (one point left uncut).
42 | 43 |