Control Command List (ESC/POS)
Control Command List (ESC/POS)
4. Revision History
[Format] ASCII HT
Hex 09
Decimal 9
[Description] Move the print position to the next horizontal tab position.
LF
[Name] Print and line feed.
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Print the data in the print buffer and feeds one line based on the current line spacing.
FF
[Name] Print and return to standard mode in page mode.
[Format] ASCII FF
Hex 0C
Decimal 12
[Description] Print the data in the print buffer collectively and returns to standard mode.
CR
[Name] Print and carriage return.
[Format] ASCII CR
Hex 0D
Decimal 13
CAN
[Name] Cancel print data in page mode.
Hex 18
Decimal 24
[Description] In page mode, deletes all the print data in the current printable area.
Hex 10 04 n
Decimal 16 4 n
[Range] 1≤n≤4
[Description] Transmit the selected printer status specified by n in real time, according to the following parameters:
[n = 1 : Printer status]
OFF 00 0 On-line.
3
ON 08 8 Off-line.
5 - - - Undefined.
6 - - - Undefined.
[n = 2 : Off-line status]
OFF 00 0 Paper is not being fed by using the PAPER FEED button.
3
ON 08 8 Paper is being fed by the PAPER FEED button.
OFF 00 0 No error.
6
ON 40 64 Error occurs.
• Bit 5 : Becomes on when the paper end sensor detects paper end and printing stops.
2 - - - Undefined.
• Bit 5 : If these errors occur due to paper jams or the like, it is possible to recover by correcting the cause of the error
and executing DLE ENQ n(1 ≤ n ≤ 2). If an error due to a circuit failure (e.g. wire break) occurs, it is impossible to recover.
• Bit 6 : When printing is stopped due to high print head temperature until the print head temperature drops sufficiently or when the
Hex 10 05 n
Decimal 16 5 n
[Range] 1≤n≤2
[Description] Recover from an error and restart printing from the line where the error occurred
n Request
Works the same as when the paper FEED button is pressed once during waiting status during the operation of
0
the GS ^ command.
1 Recovers from an error and restarts printing from the line where the error occurred.
HEX 10 14 1 m t
Decimal 16 20 1 m t
[Range] 0≤m≤8
1≤t≤8
[Description] Output the pulse specified by t in real-time to the connector pin specified by m as follows:
m Connector Pin #
HEX 10 14 2 a b
Decimal 16 20 2 a b
[Range] a=1
b=8
HEX 10 14 2 d1… d7
Decimal 16 20 2 d1… d7
[Range] d1 = 1 d2 = 3 d3 = 20 d4 = 1 d5 = 6 d7 = 2 d8 = 8
[Description] Clear all data stored in the receive buffer and the print buffer.
ESC FF
[Name] Print data in page mode
Hex 1B 0C
Decimal 27 12
[Description] In page mode, print all buffered data in the printing area collectively.
ESC SP n
[Name] Set right-side character spacing.
Hex 1B 20 n
Decimal 27 32 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
[Description] Set the character spacing for the right side of the character to [n x horizontal or vertical motion units].
Hex 1B 21 n
Decimal 27 33 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
1 - - - Undefined.
2 - - - Undefined.
6 - - - Undefined.
ESC $ nL nH
[Name] Set absolute print position.
Hex 1B 24 nL nH
Decimal 27 36 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Set the distance from the beginning of the line to the position at which subsequent characters are to be printed.
The distance from the beginning of the line to the print position is [(nL + nH x 256) x (vertical or horizontal motion unit)] inches.
Hex 1B 25 n
Decimal 27 37 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
[Range] y=3
32 ≤ c1 ≤ c2 ≤ 126
• c1 specifies the beginning character code for the definition, and c2 specifies the final code.
ESC * m nL nH d1…dk
[Name] Select bit-image mode.
Hex 1B 2A m nL nH d1 … dk
Decimal 27 42 m nL nH d1 … dk
[Range] m = 0, 1, 32, 33
0 ≤ d ≤ 255
• The model corresponding to “180 DPI(including 180/2 DPI and 180/3 DPI)” is as follows
- ELLIX30II/40II Series, ELLIX35II/45II Series, ELLIX30III/35III Series, GIANT-100 and GIANT PRO Printers.
• The model corresponding to “203 DPI(including 203/2 DPI and 203/3 DPI)” is as follows
ESC _ n
[Name] Turn underline mode on/off.
Hex 1B 2D n
Decimal 27 45 n
[Range] 0≤n≤2
48 ≤ n ≤ 50
[Default] n=0
n Function
ESC 2
[Name] Select default line spacing.
Hex 1B 32
Decimal 27 50
[Description] Select 1/6-inch line (180DPI : approximately 4.23 mm, 203 DPI : approximately 3.75 mm) spacing.
Hex 1B 33 n
Decimal 27 51 n
[Range] 0 ≤ n ≤ 255
[Default] 1/6 “ (180 DPI : Approximately 4.23 mm, 203 DPI : Approximately 3.75 mm)
[Description] Set the line spacing to [n × vertical or horizontal motion unit] inches.
ESC = n
[Name] Set peripheral device.
Hex 1B 3D n
Decimal 27 61 n
[Range] 0≤n≤1
[Description] Select device to which host computer sends data, using n as follows:
1-7 - - - Undefined.
ESC ? n
[Name] Cancel user-defined characters.
Hex 1B 3F n
Decimal 27 63 n
[Range] 32 ≤ n ≤ 126
ESC @
[Name] Initialize printer.
Hex 1B 40
Decimal 27 64
[Description] Clear the data in the print buffer and reset the printer mode to the mode that was in effect when the power was turned on.
Hex 1B 44 n1...nk 00
Decimal 27 68 n1...nk 0
[Range] 1 ≤ n ≤ 255
0 ≤ k ≤ 32
• n specifies the column number for setting a horizontal tab position from the beginning of the line.
ESC E n
[Name] Turn emphasized mode on/off.
Hex 1B 45 n
Decimal 27 69 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
ESC G n
[Name] Turn on/off double-strike mode.
Hex 1B 47 n
Decimal 27 71 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
Hex 1B 4A n
Decimal 27 74 n
[Range] 0 ≤ n ≤ 255
[Description] Print the data in the print buffer and feeds the paper [n × vertical or horizontal motion unit] inches unit.
ESC L
[Name] Select page mode
Hex 1B 4C
Decimal 27 76
ESC M n
[Name] Select character font.
Hex 1B 4D n
Decimal 27 77 n
[Range] n = 0, 1, 48, 49
[Default] n=0
n Function
• NOTICE : ‘Font B’ function is not supported in ‘2-Byte printer’. (Korean, Chinese, Japanese and other 2-Byte printers)
ESC R n
[Name] Select an international character set.
Hex 1B 52 n
Decimal 27 82 n
[Range] n=0
0 ≤ n ≤ 13
0 U.S.A. 7 Spain
1 France 8 Japan
2 Germany 9 Norway
3 U.K. 10 Denmark II
4 Denmark I 11 Spain II
6 Italy 13 Korea
ESC S
[Name] Select standard mode
Hex 1B 53
Decimal 27 83
ESC T n
[Name] Select print direction in page mode
Hex 1B 54 n
Decimal 27 84 n
[Range] 0≤n≤3
48 ≤ n ≤ 51
[Default] n=0
A →→→→
D→→→
0, 48 Left to right Upper left (A in the figure)
Print area
2, 50 Right to left Lower right (C in the figure)
B →→→
3, 51 Top to bottom Upper right (D in the figure)
←←←← C
ESC V n
[Name] Turn 90°clockwise rotation mode on/off.
Hex 1B 56 n
Decimal 27 86 n
[Range] 0≤n≤1
48 ≤ n ≤ 49
[Default] n=0
n Function
1, 49
Turn on 90°clockwise rotation mode.
2, 50
• When a paper width of 58mm is selected : x0 = y0 = 0, dx = 360, dy = 1662 (If 203 DPI models, dx = 384)
[Description] The horizontal starting position, vertical staring position, printing area width, and printing area height are defined as
ESC \ nL nH
[Name] Set relative print position.
Hex 1B 5C nL nH
Decimal 27 92 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Set the print starting position based on the current position by using the horizontal or vertical motion unit.
This command sets the distance from the current position to [(nL + nH × 256) × horizontal or vertical motion unit]
ESC a n
[Name] Select justification.
Hex 1B 61 n
Decimal 27 97 n
[Range] 0≤n≤2
48 ≤ n ≤ 50
[Default] n=0
[Description] Align all the data in one line to the specified position. n selects the type of justification as follows:
n Justification
0, 48 Left justification
1, 49 Centering
2, 50 Right justification
Hex 1B 63 33 n
Decimal 27 99 51 n
[Range] 0 ≤ n ≤ 255
[Default] n = 12
[Description] Select the paper sensor(s) to output paper end signals. Each bit of n is used as follows:
4-7 - - - Undefined.
• This command is available only with a parallel interface and is ignored with a serial interface.
ESC c 4 n
[Name] Select paper sensor(s) to stop printing.
Hex 1B 63 34 n
Decimal 27 99 52 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
[Description] Select the paper sensor(s) used to stop printing when a paper-end is detected, using n as follows:
2-7 - - - Undefined.
Hex 1B 63 35 n
Decimal 27 99 53 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
1-7 - - - Undefined.
ESC d n
[Name] Print and feed n lines.
Hex 1B 64 n
Decimal 27 100 n
[Range] 0 ≤ n ≤ 255
[Description] Print the data in the print buffer and feed n lines.
ESC p m t1 t2
[Name] Generate pulse.
Hex 1B 70 m t1 t2
Decimal 27 112 m t1 t2
[Range] m = 0, 1, 48, 49
0 ≤ t1 ≤ 255, 0 ≤ t2 ≤ 255
m Connector Pin
ESC t n
[Name] Select character code table.
Hex 1B 74 n
Decimal 27 116 n
[Default] n=0
21 Thai 11 97 Thai 14
26 Thai 18 98 Thai 16
34 PC855 [Cyrillic]
Hex 1B 7B n
Decimal 27 123 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
FS p n m
[Name] Print NV bit image
[Format] ASCII FS p n m
Hex 1C 70 n m
Decimal 28 112 n m
[Range] 1 ≤ n ≤ 255
0≤m≤3
48 ≤ m ≤ 51
0, 48 Normal x1 x1
1, 49 Double-width x2 x1
2, 50 Double-height x1 x2
3, 51 Quadruple x2 x2
[Range] 1 ≤ n ≤ 255
0 ≤ d ≤ 255
• Either one of the total capacity data [ 0, 64K, 128K, 192K, 256K, 320K, 384K ] bytes can be selected by GS ( E.
• xL, xH specifies (xL + xH × 256) × 8 dots in the horizontal direction for the NV bit image you are defining.
• yL, yH specifies (yL + yH × 256) × 8 dots in the vertical direction for the NV bit image you are defining.
• If this command is processed when NV graphics are defined with GS ( L or GS 8 L, deletes all NV graphics data, then
GS ! n
[Name] Select character size.
[Format] ASCII GS ! n
Hex 1D 21 n
Decimal 29 33 n
[Default] n=0
[Description] Select the character height using bits 0 to 3 and selects the character width using bits 4 to 7, as following:
Bit Function
00 0 x 1 (normal) 00 0 x 1 (normal)
10 16 x 2 (double-width) 01 1 x 2 (double-height)
20 32 x3 02 2 x3
30 48 x4 03 3 x4
40 64 x5 04 4 x5
50 80 x6 05 5 x6
60 96 x7 06 6 x7
70 112 x8 07 7 x8
[Format] ASCII GS $ nL nH
Hex 1D 24 nL nH
Decimal 29 36 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Set the absolute vertical print starting position for buffer character data in page mode.
This command sets the absolute print position to [(nL + nH × 256) × (vertical or horizontal motion unit)] inches.
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
0≤n≤2
48 ≤ n ≤ 50
1≤m≤3
49 ≤ m ≤ 51
[Description] Execute a test print with a specified test pattern on a specified paper type (roll paper).
n Paper type
0, 48
1, 49 Roll paper
2, 50
m Test pattern
1, 49 Hexadecimal dump
[Description] Delete, store, and move data in the NV user memory specified by the function code fn.
• pL, pH specify (pL + pH × 256) for the number of bytes after pH (m, fn, b, [c1 c2], [d1…dk]).
(c1, c2 specify the key code which identifies the record).
[Format] ASCII GS ( C pL pH m fn b c1 c2
Hex 1D 28 43 pL pH m fn b c1 c2
Decimal 29 40 67 pL pH m fn b c1 c2
32 ≤ c1 ≤ 126
32 ≤ c2 ≤ 126
[Description] Delete the specified record specified by c1 and c2 in the NV user memory.
Hex 1D 28 43 pL pH m fn b c1 c2 d1...dk
Decimal 29 40 67 pL pH m fn b c1 c2 d1...dk
m=0 b=0
k = (pL + pH × 256) - 5
[Description] Store the data in the record specified by c1 and c2 in the NV user memory.
The new data overwrites the data already stored, if there is data already stored.
[Format] ASCII GS ( C pL pH m fn b c1 c2
Hex 1D 28 43 pL pH m fn b c1 c2
Decimal 29 40 67 pL pH m fn b c1 c2
m=0 32 ≤ c1 ≤ 126
b=0 32 ≤ c2 ≤ 126
[Description] Transmit data for the record specified by c1, c2 in the NV user memory.
• After [Header – NUL] is transmitted, the printer receives a response from the host: Then it performs the process defined in the response.
See the tables below. When the status (existence of the next data block) is Hexadecimal = 41H / Decimal = 65
Response
Process Performed
ASCII Decimal
• When the status (existence of the next data block) is Hexadecimal = 40H / Decimal = 64
Response
Process Performed
ASCII Decimal
[Format ] ASCII GS ( C pL pH m fn b
Hex 1D 28 43 pL pH m fn b
Decimal 29 40 67 pL pH m fn b
m=0
b=0
[Description] Transmit the number of bytes of memory used in the NV user memory.
Number of Bytes
30H - 39H 48 - 57 1 - 6 bytes
of Memory Used
[Format] ASCII GS ( C pL pH m fn b
Hex 1D 28 43 pL pH m fn b
Decimal 29 40 67 pL pH m fn b
m=0
b=0
[Description] Transmit the number of bytes of remaining memory (unused area) in the NV user memory.
Number of Bytes of
30H - 39H 48 - 57 1 - 6 bytes
Remaining Memory
[Format] ASCII GS ( C pL pH m fn b
Hex 1D 28 43 pL pH m fn b
Decimal 29 40 67 pL pH m fn b
m=0 b=0
[Description] Transmit the key code list identifying the stored record.
• If the specified record cannot be detected, the contents of the transmitted data are as follows:
• After the [Header - NUL] is transmitted, the printer receives a response from the host: Then it performs the process defined by the
response (See the tables below). When the status (existence of the next data block) is Hexadecimal = 41H / Decimal = 65
Response
Process Performed
ASCII Decimal
• When the status (existence of the next data block) is Hexadecimal = 40H / Decimal = 64
Response
Process Performed
ASCII Decimal
[Format] ASCII GS ( C pL pH m fn b d1 d2 d3
Hex 1D 28 43 pL pH m fn b d1 d2 d3
Decimal 29 40 67 pL pH m fn b d1 d2 d3
m=0 d1 = 67
b=0 d2 = 76
d3 = 82
m = 20
a=1
b = 0, 1, 48, 49
[Default]
a b Function
• pL, pH specify (pL+ pH × 256) as the number of bytes after pH (m and [a1 b1]…[ak bk]).
[Description] Customize the NV user memory area. The table below explains the functions available in this command.
Execute commands related to the user setting mode by specifying the function code fn.
3 GS ( E pL pH fn [a1 b18...b11]… [ak bk8...bk1] 3 Sets value(s) for the memory switch.
5 GS ( E pL pH fn [a1 n1L n1H]… [ak nkL nkH] 5 Sets the customized value(s).
11 - - -
• pL, pH specify (pL + pH × 256) as the number of bytes after pH (fn and [parameter]).
• The user setting mode is a special mode to change the values in the NV user memory with this command.
• In Function 2, the printer performs software reset. Therefore, the printer clears the receive and print buffers, and resets all settings
(user-defined characters, macros, and the character style) to the mode in effect at power on.
• The customized values can be ascertained with Function 4, 6, or 12, even though the printer does not enter the user setting mode.
[Format] ASCII GS ( E pL pH fn d1 d2
Hex 1D 28 45 pL pH fn d1 d2
Decimal 29 40 69 pL pH fn d1 d2
d1 = 73 d2 = 78
[Description] Enter the user setting mode and notifies the host that the mode has changed.
• The following commands are enabled in the user setting mode. Function 2 through Function 12 of GS ( E, GS I
GS ( E pL pH fn d1 d2 d3 (fn = 2) Function 2
[Format] ASCII GS ( E pL pH fn d1 d2 d3
Hex 1D 28 45 pL pH fn d1 d2 d3
Decimal 29 40 69 pL pH fn d1 d2 d3
d1 = 79 d2 = 85 d3 = 84
[Description] End the user setting mode and performs a software reset. Therefore, the printer clear the receive and print buffers,
and reset all settings (user-defined characters, downloaded bit images, macros, and the character style) to the
mode that was in effect at power on. This function code (fn = 2) is enabled only in the user setting mode.
[Format] ASCII GS ( E pL pH fn [a1 b18 ... b11] ... [ak bk8 ... bk1]
Hex 1D 28 45 pL pH fn [a1 b18 ... b11] ... [ak bk8 ... bk1]
Decimal 29 40 69 pL pH fn [a1 b18 ... b11] ... [ak bk8 ... bk1]
When a =1 as follows:
2 50 Reserved.
3 50 Reserved.
4 50 Reserved.
5 50 Reserved.
6 50 Reserved.
7 50 Reserved.
8 50 Reserved.
• This function code (fn = 3) is enabled only in the user setting mode.
GS ( E pL pH fn a (fn = 4) Function 4
[Format] ASCII GS ( E pL pH fn a
Hex 1D 28 45 pL pH fn a
Decimal 29 40 69 pL pH fn a
a = 1, 2
[Description] Transmit the setting value(s) of the memory dip switch specified by a.
Data for the setting is transmitted as 8 bytes or a data string in the order from bit 8 to bit 1, as follows:
[Default] • When a = 1: (nL + nH × 256) = 1 • When a = 2: (nL + nH × 256) = 7 • When a = 3: (nL + nH × 256) = 6
[Description] Change the setting of the customized value that is specified with a as (nL + nH × 256).
a Function
• When a = 1, the capacity of the NV user memory is selected as the size specified with (nL + nH × 256).
1 64KB*1)
2 128KB
3 192KB
4 256KB
5 320KB
• When a = 2, the capacity of the NV graphics memory is selected as the size specified with (nL + nH × 256).
1 None
2 64KB
3 128KB*2)
4 192KB
5 256KB
6 320KB
7 384KB
*1) GIANT-100, GIANT-150, GIANT PRO, ELLIX30III and ELLIX35III are fixed as this value.
*2) GIANT-100, GIANT-150, GIANT PRO, ELLIX30III and ELLIX35III are fixed as this value.
The combination that can be specified for the NV user memory capacity and the NV bit image capacity are as shown in the table below.
• Even if the printer receives an impossible combination, the printer automatically set a possible combination for each memory size.*3)
256KB 0
*3) GIANT-100, GIANT-150, GIANT PRO, ELLIX30III and ELLIX35III are not applicable.
• When a = 3, the paper width is selected as the size specified with (nL + nH × 256).
2 58 mm
6 80 mm
• When a = 116, the paper is selected as the paper specified with (nL + nH × 256).
• When a = 118, the black-color density is selected as the number specified with (nL + nH × 256).
70 Light
85 Medium
100 Dark
• The black-color density is affected only in two-color printing. This is not affected for single-color printing.
The values changed with this command become effective with the following:
When paper width set 58mm, default printing condition will be change below :
[Format] ASCII GS ( E pL pH fn a
Hex 1D 28 45 pL pH fn a
Decimal 29 40 69 pL pH fn a
1≤a≤3
a = 116, 118
Transmission Data
a
1st Byte 2nd Byte 3rd Byte
1 49 -- --
2 50 -- --
3 51 -- --
116 49 49 54
118 49 49 56
• Configuration of the customized value When the NV user memory capacity (a = 1) is specified:
Data to be Stored Memory Capacity 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 64KB 49 -- -- -- --
2 128KB 50 -- -- -- --
3 192KB 51 -- -- -- --
4 256KB 52 -- -- -- --
5 320KB 53 -- -- -- --
Data to be Stored Memory Capacity 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 None 49 -- -- -- --
2 64KB 50 -- -- -- --
3 128KB 51 -- -- -- --
4 192KB 52 -- -- -- --
5 256KB 53 -- -- -- --
6 320KB 54 -- -- -- --
7 384KB 55 -- -- -- --
Data to be Stored Paper width 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
2 58 mm 50 -- -- -- --
6 80 mm 54 -- -- -- --
Data to be Stored Print Control Method 1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 Single-color paper 49 -- -- -- --
Data to be Stored Black-Color Density 1st Byte 2nd Byte 3rd Byte
70 Light 55 48 --
85 Medium 56 53 --
100 Dark 49 48 48
[Format] ASCII GS ( E pL pH fn a d1 d2
Hex 1D 28 45 pL pH fn a d1 d2
Decimal 29 40 69 pL pH fn a d1 d2
a = 10, 12
[Description] Copy the data on the user-defined code page specified with a.
10 9 × 17 9 17
12 12 × 24 12 24
d1 d2 Function
31 30 Load the character code page data of the font specified with a in the storage area to the active area.
30 31 Save the character code page data in the active area to the storage area specified by the font specified with a.
k = c2 - c1 + 1
[Description] Define the data for each character on the character code page in the active area (RAM).
The character pattern is defined as the column type. This function code fn = 8 is enabled in the user setting mode.
2 ○ ○ ○ ○ ○ ○ ○ ○ ○
1 ○ ○ ○ ○ ○ ○ ○ ○ ○
0 ○ ○ ○ ○ ○ ○ ○ ○ ○
Hex 1D 28 45 pL pH fn x c1 c2 [y d1...d(x × y ]k
Decimal 29 40 69 pL pH fn x c1 c2 [y d1...d(x × y )k
k = c2 – c1 + 1
[Description] Define the data for each character on the character code page in the active area (RAM).
The character pattern is defined as the raster type. This function code fn = 9 is enabled only in the user setting mode.
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
d17 d18 ○ ○ ○ ○ ○ ● ○ ● ○ ○ ○ ○ ○ ● ● ○ 3 to 0,
d21 d22 ○ ○ ○ ○ ● ○ ○ ● ○ ○ ○ ○ ● ○ ● ○
d23 d24 ○ ○ ○ ○ ● ○ ● ● ○ ○ ○ ○ ● ● ○ ○
d25 d26 ○ ○ ○ ○ ○ ○ ○ ● ○ ○ ○ ○ ○ ○ ● ○
d27 d28 ○ ○ ○ ○ ○ ○ ● ● ○ ○ ○ ○ ○ ● ○ ○
d29 d30 ○ ○ ○ ○ ○ ● ○ ● ○ ○ ○ ○ ○ ● ● ○
d31 d32 ○ ○ ○ ○ ○ ● ● ● ○ ○ ○ ○ ● ○ ○ ○
d33 d34 ○ ○ ○ ○ ● ○ ○ ● ○ ○ ○ ○ ● ○ ● ○
d35 d36 ○ ○ ○ ○ ● ○ ● ● ○ ○ ○ ○ ● ● ○ ○
d37 d38 ○ ○ ○ ○ ○ ○ ○ ● ○ ○ ○ ○ ○ ○ ● ○
d39 d40 ○ ○ ○ ○ ○ ○ ● ● ○ ○ ○ ○ ○ ● ○ ○
d41 d42 ○ ○ ○ ○ ○ ● ○ ● ○ ○ ○ ○ ○ ● ● ○
d43 d44 ○ ○ ○ ○ ○ ● ● ● ○ ○ ○ ○ ● ○ ○ ○
d45 d46 ○ ○ ○ ○ ● ○ ○ ● ○ ○ ○ ○ ● ○ ● ○
d47 d48 ○ ○ ○ ○ ● ○ ● ● ○ ○ ○ ○ ● ● ○ ○
[Format] ASCII GS ( E pL pH fn c1 c2
Hex 1D 28 45 pL pH fn c1 c2
Decimal 29 40 69 pL pH fn c1 c2
128 ≤ c1 ≤ c2 ≤ 255
[Description] Delete the data for each character in the character code page in the active area (RAM).
After deleting the data, space patterns (no printing) are given.
[Format] ASCII GS ( E pL pH fn a
Hex 1D 28 45 pL pH fn a
Decimal 29 40 69 pL pH fn a
1≤a≤4
a Communication Conditions
1 Baud rate
2 Parity
3 Handshake control
4 Data length
Type of
Condition
2400 50 52 48 48 -- --
4800 52 56 48 48 -- --
9600 57 54 48 48 -- --
19200 49 57 50 48 48 --
38400 51 56 52 48 48 --
57600 53 55 54 48 48 --
115200 49 49 53 50 48 48
Parity d1
No parity 48
Odd parity 49
Even parity 50
Handshake control d1
DSR / DTR 48
XON / XOFF 49
Data Length d1
7 bits 55
8 bits 56
[Format] ASCII GS ( F pL pH m a nL nH
Hex 1D 28 46 04 00 02 a nL nH
Decimal 29 40 70 4 0 2 a nL nH
m=2
a = 0 , 48
[Default] nL = 0, nH = 0
[Description] Set the value for the adjustment of paper cutting position after sensing the black mark.
• Paper cut by GS V m n.
• Paper cut after paper feeding triggered by the paper FEED button.
The maximum adjustable length is 400 mm. If the adjustment value to be specified exceeds the maximum value,
GS ( F pL pH m aL aH bL bH
[Name] Set the Black Mark paper format
[Format] ASCII GS ( F pL pH m aL aH nL nH
Hex 1D 28 46 05 00 70 0 0 nL nH
Decimal 29 40 70 5 0 112 0 0 nL nH
m = 112
aL = 0, aH = 0
[Default] nL = 20, nH = 11 (Black mark interval length (top of a black mark ~ top of next black mark): 400 mm)
The black mark interval ranges from 40 to 400 mm. If the BM interval specified is out of range, this command is ignored.
fn Function
[Format] ASCII GS ( K pL pH fn m
Hex 1D 28 4B pL pH fn m
Decimal 29 40 75 pL pH fn m
1≤m≤4
49 ≤ m ≤ 52
[Default] m=1
① GS ( L pL pH m fn [parameters]
② GS 8 L p1 p2 p3 p4 m fn [parameters]
[Name] Select graphics data
Hex 1D 28 4C pL pH m fn [parameters]
Decimal 29 40 76 pL pH m fn [parameters]
② ASCII GS 8 L p1 p2 p3 p4 m fn [parameters]
Hex 1D 38 4C p1 p2 p3 p4 m fn [parameters]
Decimal 29 56 76 p1 p2 p3 p4 m fn [parameters]
GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [c
67 67 Defines the raster graphics data in the non-volatile memory.
d1...dk]1...[c d1...dk]b
112 GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk 112 Stores the raster graphics data in the print buffer memory.
• pL, pH specify (pL + pH × 256) as the number of bytes after pH or p4 (m, fn, and [parameter]).
[Format] ASCII GS ( L pL pH m fn
Hex 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
m = 48
[Description] Transmit the total capacity of the NV graphics memory (number of bytes in the memory area).
• The data describing total capacity is converted to character codes corresponding to decimal data, then transmitted from the MSB.
• The total capacity of the NV graphics memory is selectable as any one of these:
- The default value is 384KB. (ELLIX30II, ELLIX40II, ELLIX40i, ELLIX32 and ELLIX42 Series)
- The default value is 128KB. (GIANT-100, GIANT-150, GIANT PRO, ELLIX30III and ELLIX35III Series)
[Format] ASCII GS ( L pL pH m fn
Hex 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
m = 48
[Description] Print the buffered graphics stored by the process of Function 112.
Feed paper by the amount corresponding to the number of dots in the y direction of the buffered graphics.
[Format] ASCII GS ( L pL pH m fn
Hex 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
m = 48
[Description] Transmit the number of bytes of remaining memory (unused area) in the NV graphics memory.
The number of bytes of remaining memory is converted to character codes corresponding to decimal data, and then transmitted from the MSB.
[Format] ASCII GS ( L pL pH m fn d1 d2
Hex 1D 28 4C pL pH m fn d1 d2
Decimal 29 40 76 pL pH m fn d1 d2
m = 48
d1 = 75
d2 = 67
[Description] Transmit the defined NV graphics key code list. When the key code is present:
If the number of the key code exceeds 40, divide the key code by 40 for transmission.
• The status if the continuous transmission data block is not present is 40H.
After the [Header–NUL] is transmitted, the printer receives a response from the host, then it performs the process defined by the
When the status (existence of the next data block) is Hexadecimal = 41H / Decimal = 65
Response
Process Performed
ASCII Decimal
When the status (for the last data block) is Hexadecimal = 40H / Decimal = 64
Response
Process Performed
ASCII Decimal
[Format] ASCII GS ( L pL pH m fn d1 d2 d3
Hex 1D 28 4C pL pH m fn d1 d2 d3
Decimal 29 40 76 pL pH m fn d1 d2 d3
m = 48 d1 = 67 d2 = 76 d3 = 82
[Description] Delete the NV graphics data defined by the key codes kc1 and kc2.
m = 48
a = 48 32 ≤ kc1 ≤ 126
The total capacity of the NV graphics memory is selectable as any one of these:
- The default value is 384KB. (ELLIX30II, ELLIX40II, ELLIX40i, ELLIX32 and ELLIX42 Series)
- The default value is 128KB. (GIANT-100, GIANT-150, GIANT PRO, ELLIX30III and ELLIX35III Series)
[Description] Define the raster graphics data in the NV graphics area. b specifies the number of the color of the defined data.
• xL, xH specify the defined data in the horizontal direction as (xL + xH × 256) dots.
• yL, yH specify the defined data in the vertical direction as (yL + yH × 256) dots.
m = 48
x = 1, 2
y = 1, 2
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126
[Description] Print the NV graphics data defined by the key codes kc1 and kc2.
The graphics data is enlarged by x and y in the horizontal and vertical directions.
[Format] ASCII GS ( L pL pH m fn a bx by
c xL xH yL yH d1... dk
Hex 1D 28 4C pL pH m fn a bx by
c xL xH yL yH d1...dk
Decimal 29 40 76 pL pH m fn a bx by
c xL xH yL yH d1...dk
m = 48
a = 48 bx = 1, 2
c = 49 by = 1, 2
0 ≤ d ≤ 255
[Description] Store the raster graphics data, enlarged bx and by in the horizontal and vertical directions in the print buffer.
• xL, xH specify the raster graphics data in the horizontal direction as (xL + xH × 256) dots.
• yL, yH specify the raster graphics data in the vertical direction as (yL + yH × 256) dots.
[Description] Protects or recovers values or data set or defined in the active area by commands.
1, 49 Function 1 Copies the setting stored in the active area to the storage area (save settings).
2, 50 Function 2 Copies the setting stored in the storage area to the active area (load settings).
Status ESC c 3, GS a
Defined data GS :
Bar codes GS H, GS f, GS h, GS w
[Format] ASCII GS ( M pL pH fn m
Hex 1D 28 4D pL pH fn m
Decimal 29 40 77 pL pH fn m
m = 1, 49
[Description] Copies the setting stored in the active area into the m of storage area.
[Format] ASCII GS ( M pL pH fn m
Hex 1D 28 4D pL pH fn m
Decimal 29 40 77 pL pH fn m
m = 0, 1, 48, 49
[Description] • When (m = 0, 48), initializes all settings in the active area, as described in these specifications.
• When (m = 1, 49), copies the setting stored into the m of storage area to the active area.
If no data in the storage area is protected, all settings in the active area are initialized, as described in these specifications.
[Format] ASCII GS ( M pL pH fn m
Hex 1D 28 4D pL pH fn m
Decimal 29 40 77 pL pH fn m
m = 0, 1, 48, 49
[Description] • When (m = 0, 48), does not load data in the storage area to the active area upon initialization.
• When (m = 1, 49), loads data in the storage area to the active area upon initialization.
GS ( N pL pH fn [parameters]
[Name] Select character style
[Description] Execute commands for the character style as specified by the function code fn.
[Format] ASCII GS ( N pL pH fn m
Hex 1D 28 4E pL pH fn m
Decimal 29 40 78 pL pH fn m
fn = 48
[Default] m = 49
m Color
49 Color 1 (black (a high level of energy) on the specified two-color thermal paper)
50 Color 2 (red (a low level of energy) on the specified two-color thermal paper)
GS ( k pL pH cn fn [parameters]
[Name] Setup and print symbol
[Description] Various processes are performed to the symbol specified with cn based on the function code (fn) setting.
cn Type of Symbol
80 GS ( k pL pH cn fn m d1...dk 080 Stores received data in the symbol storage area for PDF417.
81 GS ( k pL pH cn fn m 081 Prints symbol data in the symbol storage area for PDF417.
80 GS ( k pL pH cn fn m d1...dk 080 QR Code: Store the data into the symbol storage area
81 GS ( k pL pH cn fn m 081 QR Code: Print the symbol data in the symbol storage area.
• "Symbol data" refers to the data (d1…dk) received with Function 080.
• "Symbol storage area" refers to the range for storing data received with Function 080 before encoding.
[Format] ASCII GS ( k pL pH cn fn n1 n2
Hex 1D 28 6B pL pH cn fn n1 n2
Decimal 29 40 107 pL pH cn fn n1 n2
cn = 48
fn = 64
n1 = 0, 1
n2 = 0
[Default] n1 = 0, n2 = 0
n1 Function
0 Select PDF417
[Format] ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
cn = 48 0 ≤ n ≤ 30
[Default] n=0
[Description] Set the number of columns of the data area for PDF417.
• n = 0 specifies automatic processing. When automatic processing (n = 0) is specified, the number of columns is
calculated with the number of code words based on the range of the printable area.
[Format] ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
cn = 48 3 ≤ n ≤ 90
n=0
[Default] n=0
• n = 0 specifies automatic processing. When automatic processing (n = 0) is specified, the number of rows is calculated
with the number of code words or the range of the printable area.
[Format] ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
cn = 48 2≤n≤8
[Default] n=3
[Format] ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
cn = 48
2≤n≤8
[Default] n=3
[Format] ASCII GS ( k pL pH cn fn m n
Hex 1D 28 6B pL pH cn fn m n
Decimal 29 40 107 pL pH cn fn m n
cn = 48
m = 48, 49
48 ≤ n ≤ 56 (when m = 48 is specified)
1 ≤ n ≤ 40 (when m = 49 is specified)
[Default] m = 49
n=1
When m = 48, the error correction level is set by the “Level Setting” error correction code word.
When m = 49, the error correction level is set to the level indicated by the data code word value. The rate is set to [n × 10%].
The error correction levels in the following table are determined by the calculation [Data code word × n × 0.1 = (A)]
Hex 1D 28 6B pL pH cn fn m d1…dk
cn = 48 0 ≤ d ≤ 255
m = 48 k = (pL + pH × 256) - 3
[Description] Stores symbol data (d1...dk) in the PDF417 symbol storage area.
[Format] ASCII GS ( k pL pH cn fn m
Hex 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
cn = 48
m = 48
[Description] Print the PDF417 symbol data in the symbol storage area.
[Note] Users must consider the quiet zone for the PDF417 symbols
(Upward and downward spaces and left and right spaces for the PDF417 symbols specified in the specifications for the
PDF417 symbols.)
[Format] ASCII GS ( k pL pH cn fn n1 n2
Hex 1D 28 6B pL pH cn fn n1 n2
Decimal 29 40 107 pL pH cn fn n1 n2
cn = 49
fn = 65
n1 = 48, 50
n2 = 0
[Default] n1 = 50, n2 = 0
n1 Function
[Format] ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
cn = 49
fn = 67
1 ≤ n ≤ 16
[Default] n=3
[Format] ASCII GS ( k pL pH cn fn n
Hex 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
cn = 49
fn = 69
48 ≤ n ≤ 51
[Default] n = 48
Hex 1D 28 6B pL pH cn fn m d1…dk
cn = 49
fn = 80
m = 48
0 ≤ d ≤ 255
k = (pL + pH × 256) - 3
[Description] Stores the QR Code symbol data (d1...dk) into the symbol storage area.
[Format] ASCII GS ( k pL pH cn fn m
Hex 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
cn = 49
fn = 81
m = 48
[Description] Encodes and prints the QR Code symbol data in the symbol storage area with GS ( k.
[Note] User must secure the quiet zone (left, right, upward, and downward space areas
GS * x y d1…d(x × y × 8)
[Name] Define downloaded bit image.
Hex 1D 2A x y d1…d(x × y × 8)
Decimal 29 42 x y d1…d(x × y × 8)
[Range] 1 ≤ x ≤ 255
1 ≤ y ≤ 48
x × y ≤ 1536
0 ≤ d ≤ 255
[Description] Define a downloaded bit image using the dots specified by x and y.
[Format] ASCII GS / m
Hex 1D 2F m
Decimal 29 47 m
[Range] 0≤m≤3
48 ≤ m ≤ 51
[Description] Print a downloaded bit image using the mode specified by m. m selects a mode from the table below:
0, 48 Normal x1 x1
1, 49 Double-width x2 x1
2, 50 Double-height x1 x2
3, 51 Quadruple x2 x2
GS :
[Name] Start/End macro definition.
[Format] ASCII GS :
Hex 1D 3A
Decimal 29 58
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
[Default] n=0
[Format] ASCII GS H n
Hex 1D 48 n
Decimal 29 72 n
[Default] n=0
[Description] Select the printing position of HRI characters when printing a bar code. n selects the printing position as follows:
n Printing Position
3, 51 Both above and below the bar code. (Up and Down)
GS I n
[Name] Transmit printer ID.
[Format] ASCII GS I n
Hex 1D 49 n
Decimal 29 73 n
[Range] n = 112
1≤n≤3
49 ≤ n ≤ 51
65 ≤ n ≤ 69
2, 50 Type ID - 02 or 03
n Printer ID Type ID
66 Manufacturer Sam4s
68 Product ID -
111 Status of DIP switches See ‘DIP switch status information’ on the next sheet
• Type ID (n = 2, 50)
2 Off 00 0 Reserved.
3 Off 00 0 Reserved.
4 Off 00 0 Fixed.
5 Off 00 0 Reserved.
6 Off 00 0 Reserved.
7 Off 00 0 Fixed.
4 Off 00 0 Reserved.
5 Off 00 0 Reserved.
6 On 40 64 Fixed.
7 Off 00 0 Fixed.
4 Off 00 0 Reserved.
5 Off 00 0 Reserved.
6 On 40 64 Fixed.
7 Off 00 0 Fixed.
4 Off 00 0 Reserved.
5 Off 00 0 Reserved.
6 On 40 64 Fixed.
7 Off 00 0 Fixed.
4 Off 00 0 Reserved.
5 Off 00 0 Reserved.
6 On 40 64 Fixed.
7 Off 00 0 Fixed.
[Format] ASCII GS L nL nH
Hex 1D 4C nL nH
Decimal 29 76 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Default] nL = 0, nH = 0
The left margin is set to [(nL + nH × 256) × horizontal motion unit)] inches.
Printable area
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 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Set the horizontal and vertical motion unit to approximately 25.4/x mm { 1/x inch }
When x and y are set to 0, the default setting of each value is used.
Hex 1D 56 m Hex 1D 56 m n
Decimal 29 86 m Decimal 29 86 m n
[Description] Select a mode for cutting paper and executes paper cutting. The value of m selects the mode as follows:
m Print Mode
67 Feeds paper (cutting position + [n × (Vertical Motion Unit)] ), and cuts the paper full. (Full-Cut)
• GIANT-100, GIANT-150 and GIANT PRO does not support ‘Full-Cut’ function.
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
[Default] (nL + nH × 256) = 512 (nL = 0, nH = 2) (for 80 mm of the paper width in 180dpi printer)
(nL + nH × 256) = 360 (nL = 104, nH = 1) (for 58 mm of the paper width in 180dpi printer)
(nL + nH × 256) = 576 (nL = 64, nH = 2) (for 80 mm of the paper width in 203dpi printer)
(nL + nH × 256) = 384 (nL = 192, nH = 1) (for 58 mm of the paper width in 203dpi printer)
[Description] Set 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.
Printable area
[Format] ASCII GS \ nL nH
Hex 1D 5C nL nH
Decimal 29 92 nL nH
[Range] 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] Set 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] m = 0, 1 0 ≤ r ≤ 255
0 ≤ t ≤ 255
• 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 indicator blink and the
printer wait for the FEED button to be pressed. After the button is pressed, the printer executes the macro once.
[Format] ASCII GS a n
Hex 1D 61 n
Decimal 29 97 n
[Range] 0 ≤ n ≤ 255
[Default] n=0
[Description] Enable or disable ASB and specifies the status items to include, using n as follows:
4-7 - - - Undefined.
0 Off 00 0 Fixed.
1 Off 00 0 Fixed.
Off 00 0 On-line.
3
On 08 8 Off-line.
4 On 10 16 Fixed.
Off 00 0 Paper is not being fed by using the paper FEED button.
6
On 40 64 Paper is being fed by using the paper FEED button.
7 Off 00 0 Fixed.
4 Off 00 0 Fixed.
7 Off 00 0 Fixed.
4 Off 00 0 Fixed.
5 Off 00 0 Reserved.
6 Off 00 0 Reserved.
7 Off 00 0 Fixed.
0 On 01 1 Reserved.
1 On 02 2 Reserved.
2 On 04 4 Reserved.
3 On 08 8 Reserved.
4 Off 00 0 Fixed.
5 Off 00 0 Reserved.
6 Off 00 0 Reserved.
7 Off 00 0 Fixed.
[Note] Any accumulated ASB status signals left for transmission from the last to the newest ASB status transmission shall be
transmitted together at one time as one ASB status, showing the presence of change, followed by the latest ASB status
Example : In the normal (wait,1D 62 0A) state, the ASB status is configured as follows
. When a sequence of operations is performed, the near end is detected, the printer cover is opened,
and then the printer cover is closed, the following pieces of data are accumulated.
① 0001 0100 0000 0000 0000 0011 0000 1111 Near end detection
② 0011 1100 0000 0000 0000 0011 0000 1111 The printer cover is opened
③ 0001 0100 0000 0000 0000 0011 0000 1111 The printer cover is closed
When the ASB status is received following this, a total of eight (8) bytes of ASB will be transmitted as follows.
Accumulated ASB (①+②+③) 0011 1000 0000 0000 0000 0011 0000 1111
The latest ASB (③) 0001 0100 0000 0000 0000 0011 0000 1111
[Format] ASCII GS f n
Hex 1D 66 n
Decimal 29 102 n
[Range] n = 0, 1, 48, 49
[Default] n=0
[Description] Select a font for the HRI characters used when printing a bar code. n selects a font from the following table:
n Font
1, 49 Font B (9 × 17)
GS h n
[Name] Set bar code height.
[Format] ASCII GS h n
Hex 1D 68 n
Decimal 29 104 n
[Range] 1 ≤ n ≤ 255
[Default] n = 162
Hex 1D 6B m d1...dk 00
② ASCII GS k m n d1... dn
Hex 1D 6B m n d1... dn
0 UPC-A 11 ≤ k ≤ 12 48 ≤ d ≤ 57
1 UPC-E 11 ≤ k ≤ 12 48 ≤ d ≤ 57
2 EAN13 12 ≤ k ≤ 13 48 ≤ d ≤ 57
① 3 EAN8 7≤k≤8 48 ≤ d ≤ 57
4 CODE 39 1≤k 48 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32, 36, 37, 43, 45, 46, 47
65 UPC-A 11 ≤ n ≤ 12 48 ≤ d ≤ 57
66 UPC-E 11 ≤ n ≤ 12 48 ≤ d ≤ 57
67 EAN13 12 ≤ n ≤ 13 48 ≤ d ≤ 57
68 EAN8 7≤n≤8 48 ≤ d ≤ 57
② 69 CODE 39 1 ≤ n ≤ 255 48 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32, 36, 37, 43, 45, 46, 47
• In CODE128 bar code system, it is possible to represent 128 ASCII characters and 2-digit numerals using one bar
code character that is defined by combining one of the 103 bar code characters and 3 code sets. Each code set is
Code set A: ASCII characters 00H to 5FH (w/o lower-case alphabet characters)
Code set B: ASCII characters 20H to 7FH (w/o control and space characters)
Code set C: 2-digits numeral characters using one character (100 numerals from 00 to 99)
SHIFT character In code set A, the character just after SHIFT is processed as a character for code set B.
In code set B, the character just after SHIFT is processed as the character for code set A.
NUL 00 0 # 23 35 F 46 70
SOH 01 1 $ 24 36 G 47 71
STX 02 2 % 25 37 H 48 72
ETX 03 3 & 26 38 I 49 73
EOT 04 4 ' 27 39 J 4A 74
ENQ 05 5 ( 28 40 K 4B 75
ACK 06 6 ) 29 41 L 4C 76
BEL 07 7 * 2A 42 M 4D 77
BS 08 8 + 2B 43 N 4E 78
HT 09 9 , 2C 44 O 4F 79
LF 0A 10 - 2D 45 P 50 80
VT 0B 11 . 2E 46 Q 51 81
FF 0C 12 / 2F 47 R 52 82
CR 0D 13 0 30 48 S 53 83
SO 0E 14 1 31 49 T 54 84
SI 0F 15 2 32 50 U 55 85
DLE 10 16 3 33 51 V 56 86
DC1 11 17 4 34 52 W 57 87
DC2 12 18 5 35 53 X 58 88
DC3 13 19 6 36 54 Y 59 89
DC4 14 20 7 37 55 Z 5A 90
NAK 15 21 8 38 56 [ 5B 91
SYN 16 22 9 39 57 \ 5C 92
ETB 17 23 : 3A 58 ] 5D 93
CAN 18 24 ; 3B 59 ^ 5E 94
EM 19 25 < 3C 60 _ 5F 95
SUB 1A 26 = 3D 61 FNC1 7B,31 123,49
ESC 1B 27 > 3E 62 FNC2 7B,32 123,50
FS 1C 28 ? 3F 63 FNC3 7B,33 123,51
GS 1D 29 @ 40 64 FNC4 7B,34 123,52
RS 1E 30 A 41 65 SHIFT 7B,53 123,83
US 1F 31 B 42 66 CODEB 7B,42 123,66
SP 20 32 C 43 67 CODEC 7B,43 123,67
! 21 33 D 44 68 - - -
" 22 34 E 45 69 - - -
[Format] ASCII GS r n
Hex 1D 72 n
Decimal 29 114 n
[Range] n = 1, 2, 49, 50
n Function
4 Off 00 0 Fixed.
5 Off 00 0 Reserved.
6 Off 00 0 Reserved.
7 Off 00 0 Fixed.
• Bits 2 and 3 : This command cannot be executed, since the printer goes offline when the roll paper end sensor detects that
the paper is not present. Therefore, the status of bit 2 (1) and bit 3 (1) is not transmitted.
1 Off 00 0 Reserved.
2 Off 00 0 Reserved.
3 Off 00 0 Reserved.
4 Off 00 0 Fixed.
5 Off 00 0 Reserved.
5 Off 00 0 Reserved.
7 Off 00 0 Fixed.
Hex 1D 76 30 m xL xH yL yH d1…dk
[Range] 0≤m≤3 48 ≤ m ≤ 51
[Description] Select Raster bit-image mode. The value of m selects the mode, as follows:
0, 48 Normal x1 x1
1, 49 Double-width x2 x1
2, 50 Double-height x1 x2
3, 51 Quadruple x2 x2
• xL, xH, select the number of data bits (xL + xH x 256) in the horizontal direction for the bit image.
• yL, yH, select the number of data bits (yL + yH x 256) in the vertical direction for the bit image.
GS w n
[Name] Set bar code width.
[Format] ASCII GS w n
Hex 1D 77 n
Decimal 29 119 n
[Range] 2≤n≤6
[Default] n=3
[Description] Set the horizontal size of the bar code. n specifies the bar code width as follows.
• Multi-level bar codes are as follows: UPC-A, UPC-E, EAN13, EAN8, CODE93, and CODE128.
[Format] ASCII RS
Hex 1E
Decimal 30
<ESC> “?” <LF> <NUL> 1B 3F 0A 00 Reset printer hardware (Perform test print)
History
Rev 1.3(2014/09/01) : Added RS command and etc.