ESC ? n .......................................................................................................................................... 45
ESC E n .......................................................................................................................................... 46
ESC G n.......................................................................................................................................... 47
ESC M n .........................................................................................................................................48
ESC R n.......................................................................................................................................... 49
ESC V n .......................................................................................................................................... 50
- 3 -
ESC t n ...........................................................................................................................................51
ESC { n ..........................................................................................................................................52
ESC ~ J n (Valid in CBM-270-Compatible Mode)...................................................................... 53
ESC ~ J n (Valid in CBM1000-Compatible Mode)..................................................................... 54
DC3 n (Valid in CBM-270-Compatible Mode)........................................................................... 55
DC3 n (Valid in CBM1000-Compatible Mode)........................................................................... 56
GS ! n ............................................................................................................................................. 57
GS B n............................................................................................................................................ 59
GS b n ............................................................................................................................................60
2.2.4 Print Position Commands.............................................................................................. 61
fn=65: Function 165 Specifying QRCode model ..................................................................................215
fn=67: Function 167 Sets the module width of QRCode ......................................................................215
fn=69: Function 169 Setting QRCode error correction level ................................................................216
fn=80: Function 180 Storing received data to 2-dimensional code data storage area ......................216
fn=81: Function 181 Printing 2-dimensional code data in 2-dimensional code data storage area ...217
fn=82: Function 182 Sending the size of 2-dimensional code data in 2-dimensional code data storage
5.3IDENTIFICATION OF SEND STATUS ............................................................................... 310
5.4 CAUTIONS ON BLACK MARK/LABEL PAPER .............................................................. 311
- 8 -
1. OUTLINE
1.1 Operation Mode
Our printer has ESC/POSTM as control commands.
1.2 Character Set
All print data sent from the host computer to the printer are automatically converted to one-byte alphanumeric or
katakana characters (ANK) or two-byte Kanji corresponding to the characters and symbols.
NOTE: For the contents of character set, refer to Character Code Table of this document.
1.3 Control Commands
1.3.1 Control Command Details
Control Commands are used for controlling the operations of the printer such as starting/stopping of printing, line
feeding, paper feeding, etc. They control all functions related to printing, such as type of characters, enlargement
of characters or setting of format.
1.3.2 How to Send Control Commands
Some methods are available for sending Control Commands from the host computer to the printer. Here, a
method of sending by BASIC programming is explained.
Example 1
Let’s print a character string “CITIZEN” in enlarged (double-height, double-width) and in normal format.
Program coding
The Control Command shows that the command name for setting the size of a character is GS !. Let’s make a
program using this code. An example is shown below.
Program List Print Result
CITIZEN
CITIZEN
In lines 20 and 50, setting and canceling of enlarging a character is sent. As a result, lines 30 and 60 print the same
character string but line 30 prints enlarged characters and line 60 cancels the enlargement and prints in normal
format.
* In this document, sample programs are in BASIC. For details of BASIC programming, refer to the manual for
ESC FF Printing data in PAGE MODE P 34
ESC J Printing and feeding paper in minimum pitch
ESC dPrinting and feeding the paper by “n” lines
Print Character Commands
Command Function MODE GS P Page
CAN Canceling print data in PAGE MODE P 37
ESC SP Setting the right spacing of the character
ESC ! Collectively specifying the printing mode
ESC % Specifying/Canceling download character set
ESC & Defining the download characters
ESC - Specifying/canceling underline
ESC ? Deleting download characters
ESC E Specifying/canceling emphasis printing
ESC G Specifying/canceling double strike printing
ESC M Selection of character fonts
ESC R Selecting the international character set
ESC V Specifying/canceling 90°-right-turned characters S 50
ESC t Selecting the character code table
ESC { Specifying/canceling the inverted characters S 52
ESC ~ J Specifies/cancels printing in red (black-based paper)
DC3 Specifies/cancels printing in red (black-based paper) S 55
GS ! Specifying the character size
GS B Specifying/canceling the black/white inverted printing
GS b Specifying/canceling the smoothing
S・P
S・P
P 33
S・P ○
S・P
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
31
32
35
36
38
39
41
42
44
45
46
47
48
49
51
53
57
59
60
Print Position Commands
Command Function MODE GS P Page
HT Horizontal tab
ESC $ Specifying the absolute positions
ESC D Setting horizontal tab position
S・P
S・P ○
S・P
61
63
ESC T Selecting the character printing direction in PAGE MODE P 64
ESC W Defining the print area in PAGE MODE P
ESC
\
Specifying the relative position
S・P ○
○
ESC a Aligning the characters S 68
GS $
Specifying the absolute vertical position of characters in
PAGE MODE
P
GS L Setting the left margin S
GS W Setting the print area width
GS
\
Specifying the relative vertical position of a character in
PAGE MODE
S・P ○
S・P ○
○
○
- 10 -
62
65
67
69
70
71
73
Line Feed Span Commands
Command Function MODE GS P Page
ESC 2 Specifying initial line feed rate
ESC 3 Setting line feed rate of minimum pitch
S・P
S・P ○
Bit Image Commands
Command Function MODE GS P Page
ESC * Specifying the bit image mode
GS * Defining the download bit image
GS / Printing the downloaded bit image
GS v 0 Printing of raster bit image S 79
S・P
S・P
S・P
Status Commands
Command Function MODE GS P Page
DLE EOT Sending status in real-time
ESC v Sending Printer status
GS a Enabling/disabling ASB (Automatic Status Back)
GS r Sending status
S・P
S・P
S・P
S・P
Paper Detecting Commands
74
75
76
77
78
81
89
90
93
Command Function MODE GS P Page
ESC c 3
ESC c 4 Selecting the Paper Near-end Sensor valid for print stop
Selecting the Paper Sensor valid for Paper-end signal
output
S・P
S・P
Panel Switch Commands
Command Function MODE GS P Page
ESC c 5 Enabling/disabling the panel switches
S・P
Macro Commands
Command Function MODE GS P Page
GS : Starting/ending macro definition
GS ^ Executing the macro
S・P
S・P
Bar Code Commands
Command Function MODE GS P Page
GS H Selecting of printing position of HRI characters
GS f Selecting the font of HRI characters
GS h Specifying the height of the bar code
GS k Printing the bar code
GS w Specifying the horizontal size (magnification) of bar code
S・P
S・P
S・P
S・P
S・P
95
96
97
98
99
103
104
105
106
111
Commands for Non-volatile Memory
Command Function MODE GS P Page
FS p Printing the download NV bit images S 128
FS q Defining the download NV bit image S 130
- 11 -
Kanji Control Commands
Command Function MODE GS P Page
FS ! Collectively setting Kanji print mode
FS & Setting Kanji mode
FS - Setting/Canceling Kanji underline
FS .
Canceling Kanji mode
FS 2 Defining external character
FS C Selecting Kanji code system
FS S Setting Kanji space amount
FS W Setting/Canceling four times enlargement of Kanji
FS ( A Setting font attribute of Kanji
S・P
S・P
S・P
S・P
S・P
S・P
S・P ○
S・P
S・P
Printer Function Setting Commands
Command Function MODE GS P Page
GS ( E Printer function setting command S 153
GS ( K Selecting print control method S 200
GS ( M Customizing the printer S 204
GS ( N Designating font attribute S 207
Other Commands
132
133
134
135
136
138
140
141
142
Command Function MODE GS P Page
DLE ENQ Real-time request to printer
DLE DC4 Buffer clear
ESC =
Data input control
ESC @ Initializing the printer
S・P
S・P
S・P
S・P
ESC L Selecting PAGE MODE S 224
ESC S Selecting STANDARD MODE P 225
GS ( A Execution of test printing S 227
GS I Sending the printer ID
GS P Specifying the basic calculation pitch
S・P
S・P
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
219
221
222
223
228
235
- 12 -
2.1.2 CT-S300/CT-S310
Print Contorl Commands
Command Function MODE GS P Page
LF Printing and paper feed
CR Back to printing
S・P
S・P
(1)Printing in PAGE MODE and returning to STANDARD
FF
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
P 33
the print position (with Black mark paper selected)
ESC FF Printing data in PAGE MODE P 34
ESC J Printing and feeding paper in minimum pitch
ESC dPrinting and feeding the paper by “n” lines
S・P ○
S・P
Print Character Commands
Command Function MODE GS P Page
CAN Canceling print data in PAGE MODE P 37
ESC SP Setting the right spacing of the character
ESC ! Collectively specifying the printing mode
ESC % Specifying/Canceling download character set
ESC & Defining the download characters
ESC - Specifying/canceling underline
ESC ? Deleting download characters
ESC E Specifying/canceling emphasis printing
ESC G Specifying/canceling double strike printing
ESC M Selection of character fonts
ESC R Selecting the international character set
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
ESC V Specifying/canceling 90°-right-turned characters S 50
ESC t Selecting the character code table
S・P
ESC { Specifying/canceling the inverted characters S 52
ESC ~ J Specifies/cancels printing in red (black-based paper)
S・P
DC3 Specifies/cancels printing in red (black-based paper) S 56
GS ! Specifying the character size
GS B Specifying/canceling the black/white inverted printing
GS b Specifying/canceling the smoothing
S・P
S・P
S・P
31
32
35
36
38
39
41
42
44
45
46
47
48
49
51
54
57
59
60
Print Position Commands
Command Function MODE GS P Page
HT Horizontal tab
ESC $ Specifying the absolute positions
ESC D Setting horizontal tab position
S・P
S・P ○
S・P
61
63
ESC T Selecting the character printing direction in PAGE MODE P 64
ESC W Defining the print area in PAGE MODE P
ESC
\
Specifying the relative position
S・P ○
○
ESC a Aligning the characters S 68
GS $
Specifying the absolute vertical position of characters in
PAGE MODE
P
GS L Setting the left margin S
GS W Setting the print area width
GS
\
Specifying the relative vertical position of a character in
PAGE MODE
S・P ○
S・P ○
○
○
- 13 -
62
65
67
69
70
71
73
Line Feed Span Commands
Command Function MODE GS P Page
ESC 2 Specifying initial line feed rate
ESC 3 Setting line feed rate of minimum pitch
S・P
S・P ○
Bit Image Commands
Command Function MODE GS P Page
ESC * Specifying the bit image mode
GS * Defining the download bit image
GS / Printing the downloaded bit image
GS v 0 Printing of raster bit image S 79
S・P
S・P
S・P
Status Commands
Command Function MODE GS P Page
DLE EOT Sending status in real-time
GS a Enabling/disabling ASB (Automatic Status Back)
GS r Sending status
S・P
S・P
S・P
Paper Detecting Commands
Command Function MODE GS P Page
ESC c 3
ESC c 4 Selecting the Paper Near-end Sensor valid for print stop
Selecting the Paper Sensor valid for Paper-end signal
output
S・P
S・P
74
75
76
77
78
81
90
93
95
96
Panel Switch Commands
Command Function MODE GS P Page
ESC c 5 Enabling/disabling the panel switches
S・P
97
Macro Commands
Command Function MODE GS P Page
GS : Starting/ending macro definition
GS ^ Executing the macro
S・P
S・P
98
99
Cutter Commands
Command Function MODE GS P Page
ESC i Full cut
ESC m Partial cut
GS V Cutting the paper
S・P
S・P
S・P ○
100
101
Bar Code Commands
Command Function MODE GS P Page
GS H Selecting of printing position of HRI characters
GS f Selecting the font of HRI characters
GS h Specifying the height of the bar code
GS k Printing the bar code
GS w Specifying the horizontal size (magnification) of bar code
S・P
S・P
S・P
S・P
S・P
103
104
105
106
111
102
Commands for Non-volatile Memory
Command Function MODE GS P Page
FS p Printing the download NV bit images S 128
FS q Defining the download NV bit image S 130
- 14 -
Kanji Control Commands
Command Function MODE GS P Page
FS ! Collectively setting Kanji print mode
FS & Setting Kanji mode
FS - Setting/Canceling Kanji underline
FS .
Canceling Kanji mode
FS 2 Defining external character
FS C Selecting Kanji code system
FS S Setting Kanji space amount
FS W Setting/Canceling four times enlargement of Kanji
FS ( A Setting font attribute of Kanji
Black Mark Control Commands
Command Function MODE GS P Page
GS FF Printing and ejecting Black mark paper
GS < Initializing the printer mechanism
GS A Correcting the leader position of Black mark paper
GS C 0 Setting the numbering print mode
GS C 1 Setting the numbering counter mode (A)
GS C 2 Setting the numbering counter
GS C ; Setting the numbering counter mode (B)
GS cPrint the counter
S・P
S・P
S・P
S・P
S・P
S・P
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
132
133
134
135
136
138
140
141
142
143
143
144
145
146
147
148
149
Printer Function Setting Commands
Command Function MODE GS P Page
GS ( D Enabling or disabling real-time command S 152
GS ( E Printer function setting command S 153
GS ( K Selecting print control method S 200
GS ( M Customizing the printer S 204
GS ( N Designating font attribute S 207
Other Commands
Command Function MODE GS P Page
DLE ENQ Real-time request to printer
DLE DC4
ESC =
Outputting specified pulse in real-time/Buffer clear
Data input control
ESC @ Initializing the printer
S・P
S・P
S・P
S・P
ESC L Selecting PAGE MODE S 224
ESC S Selecting STANDARD MODE P 225
ESC p Generating the specified pulses
S・P
GS ( A Execution of test printing S 227
GS I Sending the printer ID
GS P Specifying the basic calculation pitch
ESC RS Sound buzzer
S・P
S・P
S・P
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
219
220/221
222
223
226
228
235
236
- 15 -
2.1.3 CT-S2000
Print Contorl Commands
Command Function MODE GS P Page
LF Printing and paper feed
CR Back to printing
S・P
S・P
31
32
(1)Printing in PAGE MODE and returning to STANDARD
FF
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
P 33
the print position (with Black mark paper selected)
ESC FF Printing data in PAGE MODE P 34
ESC J Printing and feeding paper in minimum pitch
ESC dPrinting and feeding the paper by “n” lines
S・P ○
S・P
36
Print Character Commands
Command Function MODE GS P Page
CAN Canceling print data in PAGE MODE P 37
ESC SP Setting the right spacing of the character
ESC ! Collectively specifying the printing mode
ESC % Specifying/Canceling download character set
ESC & Defining the download characters
ESC - Specifying/canceling underline
ESC ? Deleting download characters
ESC E Specifying/canceling emphasis printing
ESC G Specifying/canceling double strike printing
ESC M Selection of character fonts
ESC R Selecting the international character set
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
39
41
42
44
45
46
47
48
49
ESC V Specifying/canceling 90°-right-turned characters S 50
ESC t Selecting the character code table
S・P
51
ESC { Specifying/canceling the inverted characters S 52
ESC ~ J Specifies/cancels printing in red (black-based paper)
S・P
54
DC3 Specifies/cancels printing in red (black-based paper) S 56
GS ! Specifying the character size
GS B Specifying/canceling the black/white inverted printing
GS b Specifying/canceling the smoothing
S・P
S・P
S・P
57
59
60
35
38
Print Position Commands
Command Function MODE GS P Page
HT Horizontal tab
ESC $ Specifying the absolute positions
ESC D Setting horizontal tab position
S・P
S・P ○
S・P
61
63
ESC T Selecting the character printing direction in PAGE MODE P 64
ESC W Defining the print area in PAGE MODE P
ESC
\
Specifying the relative position
S・P ○
○
ESC a Aligning the characters S 68
GS $
Specifying the absolute vertical position of characters in
PAGE MODE
P
GS L Setting the left margin S
GS W Setting the print area width
GS
\
Specifying the relative vertical position of a character in
PAGE MODE
S・P ○
S・P ○
○
○
- 16 -
62
65
67
69
70
71
73
Line Feed Span Commands
Command Function MODE GS P Page
ESC 2 Specifying initial line feed rate
ESC 3 Setting line feed rate of minimum pitch
S・P
S・P ○
Bit Image Commands
Command Function MODE GS P Page
ESC * Specifying the bit image mode
GS * Defining the download bit image
GS / Printing the downloaded bit image
GS v 0 Printing of raster bit image S 79
S・P
S・P
S・P
Status Commands
Command Function MODE GS P Page
DLE EOT Sending status in real-time
ESC u
ESC v Sending Printer status
GS a Enabling/disabling ASB (Automatic Status Back)
GS r Sending status
Transmitting the status of peripheral equipment
(Serial Mode Only)
S・P
S・P
S・P
S・P
S・P
74
75
76
77
78
81
88
89
90
93
Paper Detecting Commands
Command Function MODE GS P Page
ESC c 3
ESC c 4 Selecting the Paper Near-end Sensor valid for print stop
Selecting the Paper Sensor valid for Paper-end signal
output
S・P
S・P
95
96
Panel Switch Commands
Command Function MODE GS P Page
ESC c 5 Enabling/disabling the panel switches
S・P
97
Macro Commands
Command Function MODE GS P Page
GS : Starting/ending macro definition
GS ^ Executing the macro
S・P
S・P
98
99
Cutter Commands
Command Function MODE GS P Page
ESC i Full cut
ESC m Partial cut
GS V Cutting the paper
S・P
S・P
S・P ○
100
101
102
Bar Code Commands
Command Function MODE GS P Page
GS H Selecting of printing position of HRI characters
GS f Selecting the font of HRI characters
GS h Specifying the height of the bar code
GS k Printing the bar code
GS w Specifying the horizontal size (magnification) of bar code
- 17 -
S・P
S・P
S・P
S・P
S・P
103
104
105
106
111
Commands for Non-volatile Memory
Command Function MODE GS P Page
GS ( C Editing user NV memory S 112
GS ( L
GS 8 L
Specifying graphics data S 118
GS g 0 Initializing maintenance counter S 126
GS g 2 Sending maintenance counter S 127
FS p Printing the download NV bit images S 128
FS q Defining the download NV bit image S 130
Kanji Control Commands
Command Function MODE GS P Page
FS ! Collectively setting Kanji print mode
FS & Setting Kanji mode
FS - Setting/Canceling Kanji underline
FS .
Canceling Kanji mode
FS 2 Defining external character
FS C Selecting Kanji code system
FS S Setting Kanji space amount
FS W Setting/Canceling four times enlargement of Kanji
FS ( A Setting font attribute of Kanji
S・P
S・P
S・P
S・P
S・P
S・P
132
133
134
135
136
138
S・P ○
S・P
S・P
141
142
140
Black Mark Control Commands
Command Function MODE GS P Page
GS FF
GS <
GS A
GS C 0
GS C 1
GS C 2
GS C ;
GS c
GS l
Printing and ejecting Black mark paper
Initializing the printer mechanism
Correcting the leader position of Black mark paper
Setting the numbering print mode
Setting the numbering counter mode (A)
Setting the numbering counter
Setting the numbering counter mode (B)
Print the counter
Setting the Black mark length
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
143
143
144
145
146
147
148
149
150
Printer Function Setting Commands
Command Function MODE GS P Page
GS ( D Enabling or disabling real-time command S 152
GS ( E Printer function setting command S 153
GS ( K Selecting print control method S 200
GS ( M Customizing the printer S 204
GS ( N Designating font attribute S 207
2-dimensional Code Commands
Command Function MODE GS P Page
GS ( k Setting and printing 2-dimensional code
S・P
208
- 18 -
Other Commands
Command Function MODE GS P Page
DLE ENQ Real-time request to printer
DLE DC4
ESC =
Outputting specified pulse in real-time/Buffer clear
Data input control
ESC @ Initializing the printer
S・P
S・P
S・P
S・P
ESC L Selecting PAGE MODE S 224
ESC S Selecting STANDARD MODE P 225
ESC p Generating the specified pulses
S・P
GS ( A Execution of test printing S 227
GS I Sending the printer ID
GS P Specifying the basic calculation pitch
ESC RS Sound buzzer
S・P
S・P
S・P
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
219
220/221
222
223
226
228
235
236
- 19 -
2.1.4 CT-S4000
Print Contorl Commands
Command Function MODE GS P Page
LF Printing and paper feed
CR Back to printing
S・P
S・P
31
32
(1)Printing in PAGE MODE and returning to STANDARD
FF
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
P 33
the print position (with Black mark paper selected)
ESC FF Printing data in PAGE MODE P 34
ESC J Printing and feeding paper in minimum pitch
ESC dPrinting and feeding the paper by “n” lines
S・P ○
S・P
36
Print Character Commands
Command Function MODE GS P Page
CAN Canceling print data in PAGE MODE P 37
ESC SP Setting the right spacing of the character
ESC ! Collectively specifying the printing mode
ESC % Specifying/Canceling download character set
ESC & Defining the download characters
ESC - Specifying/canceling underline
ESC ? Deleting download characters
ESC E Specifying/canceling emphasis printing
ESC G Specifying/canceling double strike printing
ESC M Selection of character fonts
ESC R Selecting the international character set
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
39
41
42
44
45
46
47
48
49
ESC V Specifying/canceling 90°-right-turned characters S 50
ESC t Selecting the character code table
S・P
51
ESC { Specifying/canceling the inverted characters S 52
ESC ~ J Specifies/cancels printing in red (black-based paper)
S・P
54
DC3 Specifies/cancels printing in red (black-based paper) S 56
GS ! Specifying the character size
GS B Specifying/canceling the black/white inverted printing
GS b Specifying/canceling the smoothing
S・P
S・P
S・P
57
59
60
35
38
Print Position Commands
Command Function MODE GS P Page
HT Horizontal tab
ESC $ Specifying the absolute positions
ESC D Setting horizontal tab position
S・P
S・P ○
S・P
61
63
ESC T Selecting the character printing direction in PAGE MODE P 64
ESC W Defining the print area in PAGE MODE P
ESC
\
Specifying the relative position
S・P ○
○
ESC a Aligning the characters S 68
GS $
Specifying the absolute vertical position of characters in
PAGE MODE
P
GS L Setting the left margin S
GS W Setting the print area width
GS
\
Specifying the relative vertical position of a character in
PAGE MODE
S・P ○
S・P ○
○
○
- 20 -
62
65
67
69
70
71
73
Line Feed Span Commands
Command Function MODE GS P Page
ESC 2 Specifying initial line feed rate
ESC 3 Setting line feed rate of minimum pitch
S・P
S・P ○
Bit Image Commands
Command Function MODE GS P Page
ESC * Specifying the bit image mode
GS * Defining the download bit image
GS / Printing the downloaded bit image
GS v 0 Printing of raster bit image S 79
S・P
S・P
S・P
Status Commands
Command Function MODE GS P Page
DLE EOT Sending status in real-time
ESC u
ESC v Sending Printer status
GS a Enabling/disabling ASB (Automatic Status Back)
GS r Sending status
Transmitting the status of peripheral equipment
(Serial Mode Only)
S・P
S・P
S・P
S・P
S・P
74
75
76
77
78
81
88
89
90
93
Paper Detecting Commands
Command Function MODE GS P Page
ESC c 3
ESC c 4 Selecting the Paper Near-end Sensor valid for print stop
Selecting the Paper Sensor valid for Paper-end signal
output
S・P
S・P
95
96
Panel Switch Commands
Command Function MODE GS P Page
ESC c 5 Enabling/disabling the panel switches
S・P
97
Macro Commands
Command Function MODE GS P Page
GS : Starting/ending macro definition
GS ^ Executing the macro
S・P
S・P
98
99
Cutter Commands
Command Function MODE GS P Page
ESC i Full cut
ESC m Partial cut
GS V Cutting the paper
S・P
S・P
S・P ○
100
101
102
Bar Code Commands
Command Function MODE GS P Page
GS H Selecting of printing position of HRI characters
GS f Selecting the font of HRI characters
GS h Specifying the height of the bar code
GS k Printing the bar code
GS w Specifying the horizontal size (magnification) of bar code
S・P
S・P
S・P
S・P
S・P
103
104
105
106
111
- 21 -
Commands for Non-volatile Memory
Command Function MODE GS P Page
GS ( C Editing user NV memory S 112
GS ( L
GS 8 L
Specifying graphics data S 118
GS g 0 Initializing maintenance counter S 126
GS g 2 Sending maintenance counter S 127
FS p Printing the download NV bit images S 128
FS q Defining the download NV bit image S 130
Kanji Control Commands
Command Function MODE GS P Page
FS ! Collectively setting Kanji print mode
FS & Setting Kanji mode
FS - Setting/Canceling Kanji underline
FS .
Canceling Kanji mode
FS 2 Defining external character
FS C Selecting Kanji code system
FS S Setting Kanji space amount
FS W Setting/Canceling four times enlargement of Kanji
FS ( A Setting font attribute of Kanji
S・P
S・P
S・P
S・P
S・P
S・P
S・P ○
S・P
S・P
132
133
134
135
136
138
140
141
142
Black Mark Control Commands
Command Function MODE GS P Page
GS FF Printing and ejecting Black mark paper
GS < Initializing the printer mechanism
GS A Correcting the leader position of Black mark paper
GS C 0 Setting the numbering print mode
GS C 1 Setting the numbering counter mode (A)
GS C 2 Setting the numbering counter
GS C ; Setting the numbering counter mode (B)
GS cPrint the counter
GS l Setting the Black mark length
GS p Changing the paper type
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
143
143
144
145
146
147
148
149
150
151
Printer Function Setting Commands
Command Function MODE GS P Page
GS ( D Enabling or disabling real-time command S 152
GS ( E Printer function setting command S 153
GS ( K Selecting print control method S 200
GS ( M Customizing the printer S 204
GS ( N Designating font attribute S 207
2-dimensional Code Commands
Command Function MODE GS P Page
GS ( k Setting and printing 2-dimensional code
S・P
208
- 22 -
Other Commands
Command Function MODE GS P Page
DLE ENQ Real-time request to printer
DLE DC4
ESC =
Outputting specified pulse in real-time/Buffer clear
Data input control
ESC @ Initializing the printer
S・P
S・P
S・P
S・P
ESC L Selecting PAGE MODE S 224
ESC S Selecting STANDARD MODE P 225
ESC p Generating the specified pulses
S・P
GS ( A Execution of test printing S 227
GS I Sending the printer ID
GS P Specifying the basic calculation pitch
ESC RS Sound buzzer
S・P
S・P
S・P
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
219
220/221
222
223
226
228
235
236
- 23 -
2.1.5 BD2-2220
Print Contorl Commands
Command Function MODE GS P Page
LF Printing and paper feed
CR Back to printing
FF
Printing in PAGE MODE and returning to STANDARD
MODE (at the selection of PAGE MODE)
S・P
S・P
31
32
P 33
ESC FF Printing data in PAGE MODE P 34
ESC J Printing and feeding paper in minimum pitch
ESC dPrinting and feeding the paper by “n” lines
S・P ○
S・P
36
Print Character Commands
Command Function MODE GS P Page
CAN Canceling print data in PAGE MODE P 37
ESC SP Setting the right spacing of the character
ESC ! Collectively specifying the printing mode
ESC % Specifying/Canceling download character set
ESC & Defining the download characters
ESC - Specifying/canceling underline
ESC ? Deleting download characters
ESC E Specifying/canceling emphasis printing
ESC G Specifying/canceling double strike printing
ESC M Selection of character fonts
ESC R Selecting the international character set
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
39
41
42
44
45
46
47
48
49
ESC V Specifying/canceling 90°-right-turned characters S 50
ESC t Selecting the character code table
S・P
51
ESC { Specifying/canceling the inverted characters S 52
GS ! Specifying the character size
GS B Specifying/canceling the black/white inverted printing
GS b Specifying/canceling the smoothing
S・P
S・P
S・P
57
59
60
35
38
Print Position Commands
Command Function MODE GS P Page
HT Horizontal tab
ESC $ Specifying the absolute positions
ESC D Setting horizontal tab position
S・P
S・P ○
S・P
61
63
ESC T Selecting the character printing direction in PAGE MODE P 64
ESC W Defining the print area in PAGE MODE P
ESC
\
Specifying the relative position
S・P ○
○
ESC a Aligning the characters S 68
GS $
Specifying the absolute vertical position of characters in
PAGE MODE
P
GS L Setting the left margin S
GS W Setting the print area width
GS
\
Specifying the relative vertical position of a character in
PAGE MODE
S・P ○
S・P ○
○
○
Line Feed Span Commands
Command Function MODE GS P Page
ESC 2 Specifying initial line feed rate
ESC 3 Setting line feed rate of minimum pitch
S・P
S・P ○
74
62
65
67
69
70
71
73
75
- 24 -
Bit Image Commands
Command Function MODE GS P Page
ESC * Specifying the bit image mode
GS * Defining the download bit image
GS / Printing the downloaded bit image
GS v 0 Printing of raster bit image S 79
S・P
S・P
S・P
Status Commands
Command Function MODE GS P Page
DLE EOT Sending status in real-time
GS a Enabling/disabling ASB (Automatic Status Back)
GS r Sending status
S・P
S・P
S・P
Paper Detecting Commands
Command Function MODE GS P Page
ESC c 3
ESC c 4 Selecting the Paper Near-end Sensor valid for print stop
Selecting the Paper Sensor valid for Paper-end signal
output
S・P
S・P
Panel Switch Commands
76
77
78
81
90
93
95
96
Command Function MODE GS P Page
ESC c 5 Enabling/disabling the panel switches
S・P
97
Macro Commands
Command Function MODE GS P Page
GS : Starting/ending macro definition
GS ^ Executing the macro
S・P
S・P
98
99
Cutter Commands
Command Function MODE GS P Page
ESC i Full cut
ESC m Partial cut
GS V Cutting the paper
S・P
S・P
S・P ○
100
101
102
Bar Code Commands
Command Function MODE GS P Page
GS H Selecting of printing position of HRI characters
GS f Selecting the font of HRI characters
GS h Specifying the height of the bar code
GS k Printing the bar code
GS w Specifying the horizontal size (magnification) of bar code
S・P
S・P
S・P
S・P
S・P
103
104
105
106
111
Commands for Non-volatile Memory
Command Function MODE GS P Page
FS p Printing the download NV bit images S 128
FS q Defining the download NV bit image S 130
- 25 -
Kanji Control Commands
Command Function MODE GS P Page
FS ! Collectively setting Kanji print mode
FS & Setting Kanji mode
FS - Setting/Canceling Kanji underline
FS .
Canceling Kanji mode
FS 2 Defining external character
FS C Selecting Kanji code system
FS S Setting Kanji space amount
FS W Setting/Canceling four times enlargement of Kanji
FS ( A Setting font attribute of Kanji
S・P
S・P
S・P
S・P
S・P
S・P
132
133
134
135
136
138
S・P ○
S・P
S・P
141
142
Printer Function Setting Commands
Command Function MODE GS P Page
GS ( E Printer function setting command S 153
GS ( K Selecting print control method S 200
GS ( M Customizing the printer S 204
Other Commands
Command Function MODE GS P Page
DLE ENQ Real-time request to printer
DLE DC4 Buffer clear
ESC =
Data input control
ESC @ Initializing the printer
S・P
S・P
S・P
S・P
ESC L Selecting PAGE MODE S 224
ESC S Selecting STANDARD MODE P 225
GS ( A Execution of test printing S 227
GS I Sending the printer ID
GS P Specifying the basic calculation pitch
S・P
S・P
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
140
219
221
222
223
228
235
- 26 -
2.1.6 PMU2XXX
Print Contorl Commands
Command Function MODE GS P Page
LF Printing and paper feed
CR Back to printing
S・P
S・P
31
32
(1)Printing in PAGE MODE and returning to STANDARD
FF
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
P 33
the print position (with Black mark paper selected)
ESC FF Printing data in PAGE MODE P 34
ESC J Printing and feeding paper in minimum pitch
ESC dPrinting and feeding the paper by “n” lines
S・P ○
S・P
36
Print Character Commands
Command Function MODE GS P Page
CAN Canceling print data in PAGE MODE P 37
ESC SP Setting the right spacing of the character
ESC ! Collectively specifying the printing mode
ESC % Specifying/Canceling download character set
ESC & Defining the download characters
ESC - Specifying/canceling underline
ESC ? Deleting download characters
ESC E Specifying/canceling emphasis printing
ESC G Specifying/canceling double strike printing
ESC M Selection of character fonts
ESC R Selecting the international character set
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
39
41
42
44
45
46
47
48
49
ESC V Specifying/canceling 90°-right-turned characters S 50
ESC t Selecting the character code table
S・P
51
ESC { Specifying/canceling the inverted characters S 52
GS ! Specifying the character size
GS B Specifying/canceling the black/white inverted printing
GS b Specifying/canceling the smoothing
S・P
S・P
S・P
57
59
60
35
38
Print Position Commands
Command Function MODE GS P Page
HT Horizontal tab
ESC $ Specifying the absolute positions
ESC D Setting horizontal tab position
S・P
S・P ○
S・P
61
63
ESC T Selecting the character printing direction in PAGE MODE P 64
ESC W Defining the print area in PAGE MODE P
ESC
\
Specifying the relative position
S・P ○
○
ESC a Aligning the characters S 68
GS $
Specifying the absolute vertical position of characters in
PAGE MODE
P
GS L Setting the left margin S
GS W Setting the print area width
GS
\
Specifying the relative vertical position of a character in
PAGE MODE
S・P ○
S・P ○
○
○
Line Feed Span Commands
Command Function MODE GS P Page
ESC 2 Specifying initial line feed rate
ESC 3 Setting line feed rate of minimum pitch
S・P
S・P ○
74
- 27 -
62
65
67
69
70
71
73
75
Bit Image Commands
Command Function MODE GS P Page
ESC * Specifying the bit image mode
GS * Defining the download bit image
GS / Printing the downloaded bit image
GS v 0 Printing of raster bit image S 79
S・P
S・P
S・P
Status Commands
Command Function MODE GS P Page
DLE EOT Sending status in real-time
GS a Enabling/disabling ASB (Automatic Status Back)
GS r Sending status
S・P
S・P
S・P
Paper Detecting Commands
Command Function MODE GS P Page
ESC c 3
ESC c 4 Selecting the Paper Near-end Sensor valid for print stop
Selecting the Paper Sensor valid for Paper-end signal
output
S・P
S・P
Panel Switch Commands
76
77
78
81
90
93
95
96
Command Function MODE GS P Page
ESC c 5 Enabling/disabling the panel switches
S・P
97
Macro Commands
Command Function MODE GS P Page
GS : Starting/ending macro definition
GS ^ Executing the macro
S・P
S・P
98
99
Cutter Commands
Command Function MODE GS P Page
ESC i Full cut
ESC m Partial cut
GS V Cutting the paper
S・P
S・P
S・P ○
100
101
102
Bar Code Commands
Command Function MODE GS P Page
GS H Selecting of printing position of HRI characters
GS f Selecting the font of HRI characters
GS h Specifying the height of the bar code
GS k Printing the bar code
GS w Specifying the horizontal size (magnification) of bar code
S・P
S・P
S・P
S・P
S・P
103
104
105
106
111
Commands for Non-volatile Memory
Command Function MODE GS P Page
FS p Printing the download NV bit images S 128
FS q Defining the download NV bit image S 130
- 28 -
Kanji Control Commands
Command Function MODE GS P Page
FS ! Collectively setting Kanji print mode
FS & Setting Kanji mode
FS - Setting/Canceling Kanji underline
FS .
Canceling Kanji mode
FS 2 Defining external character
FS C Selecting Kanji code system
FS S Setting Kanji space amount
FS W Setting/Canceling four times enlargement of Kanji
FS ( A Setting font attribute of Kanji
S・P
S・P
S・P
S・P
S・P
S・P
132
133
134
135
136
138
S・P ○
S・P
S・P
141
142
Black Mark Control Commands
Command Function MODE GS P Page
GS FF Printing and ejecting Black mark paper
S・P
Printer Function Setting Commands
Command Function MODE GS P Page
GS ( E Printer function setting command S 153
GS ( K Selecting print control method S 200
GS ( M Customizing the printer S 204
140
143
Other Commands
Command Function MODE GS P Page
DLE ENQ Real-time request to printer
DLE DC4 Buffer clear
ESC =
Data input control
ESC @ Initializing the printer
S・P
S・P
S・P
S・P
ESC L Selecting PAGE MODE S 224
ESC S Selecting STANDARD MODE P 225
GS ( A Execution of test printing S 227
GS I Sending the printer ID
GS P Specifying the basic calculation pitch
S・P
S・P
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
219
221
222
223
228
235
- 29 -
2.2 Command Details
2.2.1 Description of Items
XXXX
support model
[Function] The name of a command.
[Code] The string of codes comprising the command is represented by < >H for hexadecimal numbers, < >B
for binary numbers, and < > for decimal numbers, [ ] k denotes the number of repetition of “k” times.
[Range] Indicates the values (setting range) of arguments of the command.
Note: If values outside the defined domain specified with control codes are used, malfunctions
could possibly occur, so be sure to use the values within the defined domain.
*The defined domain may differ depending on the model or printer setting.
[Outline] [The specification which is common to the model]
Indicates command functions common to relevant models.
[The specification which depend on the model]
Indicates the command function dependent on the model.
[Caution] Describes important points and cautionary notes, as required.
[Default] Initial values for the command if it has arguments.
[See Also] Describes commands related to the command when it is used.
[Sample Program]
Describes examples of coding on Quick-Basic.
* Examples are only for reference. They may vary depending on language and version. For details, please refer
to a manual in your language.
[Print Results]
Describes the print results obtained by executing the above programs. However, the print results shown are
different in scale from actual print results
- 30 -
Loading...
+ 282 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.