Citizen Systems Bd2 2220 Users Manual コマンド仕様書
BD2-2220 to the manual 77a348ca-9b8d-4fee-870a-3c8ca980457e
2015-02-05
: Citizen-Systems Citizen-Systems-Bd2-2220-Users-Manual-530783 citizen-systems-bd2-2220-users-manual-530783 citizen-systems pdf
Open the PDF directly: View PDF
.
Page Count: 312
| Download | |
| Open PDF In Browser | View PDF |
Command Reference
MODEL :
CT-S280
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
PMU2XXX
Revision 0.04 2007/8/29
REVISON
Rev No.
Date
Comment
0.00
2006/9/26
Newly isuued
0.01
2006/11/22
Add program sample for FS p and FS q
0.02
2007/2/26
Revised page 153,155,159,169,205-207
0.03
2007/5/21
Supported CT-S310
0.04
2007/8/29
Supported PMU2XXX
CITIZEN is a registered trade mark of CITIZEN HOLDINGS CO., LTD., Japan.
CITIZEN es una marca registrada de CITIZEN HOLDINGS CO., LTD., Japón.
TABLE OF CONTENTS
TABLE OF CONTENTS................................................................................... 3
1. OUTLINE................................................................................................... 9
1.1 OPERATION MODE .........................................................................................................9
1.2 CHARACTER SET .............................................................................................................9
1.3 CONTROL COMMANDS .....................................................................................................9
1.3.1 Control Command Details .................................................................................................9
1.3.2 How to Send Control Commands......................................................................................9
2. CONTROL COMMANDS .......................................................................... 10
2.1 ESC/POS COMMAND LIST .......................................................................................... 10
2.1.1 CT-S280............................................................................................................................ 10
2.1.2 CT-S300/CT-S310........................................................................................................... 13
2.1.3 CT-S2000 ......................................................................................................................... 16
2.1.4 CT-S4000 ......................................................................................................................... 20
2.1.5 BD2-2220......................................................................................................................... 24
2.1.6 PMU2XXX......................................................................................................................... 27
2.2 COMMAND DETAILS .................................................................................................... 30
2.2.1 Description of Items ....................................................................................................... 30
2.2.2 Print Control Commands ................................................................................................ 31
LF...................................................................................................................................................31
CR ..................................................................................................................................................32
FF (At selection of PAGE MODE) ................................................................................................33
FF (valid only for Black mark specification) ..............................................................................33
ESC FF ...........................................................................................................................................34
ESC J n...........................................................................................................................................35
ESC d n ..........................................................................................................................................36
2.2.3 Print Character Commands............................................................................................ 37
CAN................................................................................................................................................37
ESC SP n........................................................................................................................................38
ESC ! n ...........................................................................................................................................39
ESC % n ........................................................................................................................................41
ESC & s n m [ a [p] s x a ] m-n+1 ...............................................................................................42
ESC - n...........................................................................................................................................44
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
HT ..................................................................................................................................................61
ESC $ n1 n2...................................................................................................................................62
ESC D [n]k NULL...........................................................................................................................63
ESC T n ..........................................................................................................................................64
ESC W xL xH yL yH dxL dxH dyL dyH..........................................................................................65
ESC \ nL nH..................................................................................................................................67
ESC a n ..........................................................................................................................................68
GS $ nL nH ....................................................................................................................................69
GS L nL nH.....................................................................................................................................70
GS W nL nH...................................................................................................................................71
GS \ nL nH ...................................................................................................................................73
2.2.5 Line Feed Span Commands............................................................................................ 74
ESC 2 .............................................................................................................................................74
ESC 3 n ..........................................................................................................................................75
2.2.6 Bit Image Commands..................................................................................................... 76
ESC * m n1 n2 [d] k .....................................................................................................................76
GS * n1 n2 [d] n1xn2x8...............................................................................................................77
GS / m ...........................................................................................................................................78
GS v 0 m xL xH yL yH d1 ... dk.....................................................................................................79
2.2.7 Status Commands........................................................................................................... 81
DLE EOT n .....................................................................................................................................81
ESC u n ..........................................................................................................................................88
ESC v .............................................................................................................................................89
GS a n ............................................................................................................................................90
GS r n.............................................................................................................................................93
2.2.8 Paper Detecting Commands .......................................................................................... 95
ESC c 3 n .......................................................................................................................................95
ESC c 4 n .......................................................................................................................................96
2.2.9 Panel Switch Commands................................................................................................ 97
ESC c 5 n .......................................................................................................................................97
2.2.10 Macro Commands ......................................................................................................... 98
GS : ................................................................................................................................................98
GS ^ n1 n2 n3...............................................................................................................................99
-4-
2.2.11 Cutter Commands....................................................................................................... 100
ESC i ............................................................................................................................................100
ESC m ..........................................................................................................................................101
GS V m ・・・ (1) ...........................................................................................................................102
GS V m n ・・・ (2)........................................................................................................................102
2.2.12 Bar Code Commands .................................................................................................. 103
GS H n..........................................................................................................................................103
GS f n...........................................................................................................................................104
GS h n..........................................................................................................................................105
(1)GS k m [d1...dk] NUL ............................................................................................................106
(2)GS k m n [d1...dn] .................................................................................................................106
GS w n .........................................................................................................................................111
2.2.13 Commands for Non-volatile Memory ........................................................................ 112
GS ( C pL pH m fn b [c1 c2][d1...dk].........................................................................................112
fn=0、48: Function 0 Erasing Specified Record.........................................................................................113
fn=1、49: Function 1 Storing Data to Specified Record.............................................................................113
fn=2、50: Function 2 Sending Data Stored in Specified Record.................................................................114
fn=3、51: Function 3 Sending Use Amount ..............................................................................................115
fn=4、52: Function 4 Sending Remaining Capacity...................................................................................115
fn=5、53: Function 5 Sending Key Code List of Stored Record..................................................................116
fn=6、54: Function 6 Erasing All User NV Memory Area in a Lump............................................................117
GS ( L pL pH m fn [parameter]..................................................................................................118
GS 8 L p1 p2 p3 p4 m fn [parameter].......................................................................................118
fn=0、48: Function 48 Sending NV Graphics Memory Capacity .................................................................119
fn=2、50: Function 50 Printing Graphics Data Stored in Print Buffer..........................................................119
fn=3、51: Function 51 Sending the Remaining Amount of NV Graphics Memory.......................................120
fn=64: Function 64 Sending Key Code List of Defined NV Graphics ..........................................................121
fn=65: Function 65 Erasing All Data of NV Graphics in a Lump.................................................................122
fn=66: Function 66 Erasing Specified NV Graphics Data ...........................................................................122
fn=67: Function 67 Defining Raster Type Graphics Data to NV Memory....................................................123
fn=69: Function 69 Printing Specified Graphics ........................................................................................124
fn=112: Function 112 Storing Raster Type Graphics Data to Print Buffer ..................................................125
GS g 0 m nL nH...........................................................................................................................126
GS g 2 m nL nH...........................................................................................................................127
FS p n m ......................................................................................................................................128
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n............................................................130
2.2.14 Kanji Control Commands ........................................................................................... 132
FS ! n............................................................................................................................................132
FS & .............................................................................................................................................133
FS - n ...........................................................................................................................................134
FS ................................................................................................................................................135
FS 2 a1 a2 [d]k ...........................................................................................................................136
FS C n ..........................................................................................................................................138
FS S n1 n2 ...................................................................................................................................140
FS W n .........................................................................................................................................141
FS ( A pL pH fn […].....................................................................................................................142
fn=48: Function 48 Set Kanji fonts...........................................................................................................142
-5-
2.2.15 Black Mark Control Commands ................................................................................. 143
GS FF ...........................................................................................................................................143
GS < ............................................................................................................................................143
GS A m n......................................................................................................................................144
GS C 0 m n...................................................................................................................................145
GS C 1 n1 n2 n3 n4 n5 n6 ..........................................................................................................146
GS C 2 n1 n2 ...............................................................................................................................147
GS C ; n1 ; n2 ; n3 ; n4 ; n5 ;......................................................................................................148
GS c .............................................................................................................................................149
GS l n1L n1H n2L n2H ................................................................................................................150
GS p n..........................................................................................................................................151
2.2.16 Printer Function Setting Commands......................................................................... 152
GS ( D pL pH m [a1 b1]...[ak bk]...............................................................................................152
GS ( E pL pH fn […] ....................................................................................................................153
fn=1: Function 1 Transferring to Printer Function Setting Mode................................................................154
fn=2: Function 2 End of Printer Function Setting Mode.............................................................................154
fn=3: Function 3 Setting Memory Switch Value........................................................................................155
fn=4: Function 4 Sending the Set Memory Switch Value ..........................................................................168
fn=5: Function 5 Setting Customized Value..............................................................................................169
fn=6: Function 6 Sending the Set Customized Value ................................................................................181
fn=7: Function 7 Copying User-defined Page ...........................................................................................193
fn=8: Function 8 Defining Data by the Column Format to Character Code Page of Work Area ..................194
fn=9: Function 9 Defining Data in the Raster Format to the Character Code Page of Work Area................195
fn=10: Function 10 Erasing Data of Character Code Page Data in Work Area ...........................................196
fn=11: Function 11 Setting Communication Conditions ............................................................................197
fn=12: Function 12 Sending the Set Communication Conditions...............................................................198
fn=255: Function 255 Setting All Contents Set by Printer Function Setting Mode to the State at Shipment..199
GS ( K pL pH fn m .......................................................................................................................200
fn=49: Function 49 Setting Printing Density .............................................................................................201
fn=50: Function 50 Setting Printing Speed...............................................................................................202
fn=97: Function 97 Setting Number of Divisions for Head Conducting ......................................................203
GS ( M pL pH fn m ......................................................................................................................204
fn=1、49: Function 1 Copies the set value stored in work area to the storage area ...................................205
fn=2、50: Function 2 Copies the set value stored in storage area to the work area ...................................205
fn=3、51: Function 3 Specifies the auto loading function of the set value at initialization to be valid or invalid
................................................................................................................................................................206
GS ( N pL pH fn m.......................................................................................................................207
fn=48: Function 48 Selects character color...............................................................................................207
2.2.17 2-dimensional code Commands............................................................................... 208
GS ( k pL pH cn fn [parameter] .................................................................................................208
fn=65:
fn=66:
fn=67:
fn=68:
fn=69:
fn=70:
fn=80:
fn=81:
Function 65 Setting the number of digits of PDF417 ...............................................................209
Function 66 Setting the number of steps of PDF417 ...............................................................209
Function 67 Setting module width of PDF417...........................................................................210
Function 68 Setting the height of step of PDF417 ...................................................................210
Function 69 Setting error correction level of PDF417 ..............................................................211
Function 70 Setting Options for PDF417 ...................................................................................212
Function 80 Storing received data to 2-dimensional code data storage area ........................212
Function 81 Printing 2-dimensional code data in 2-dimensional code data storage area .....213
-6-
fn=82: Function 82 Sending the size of 2-dimensional code data in 2-dimensional code data storage
area.........................................................................................................................................................214
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
area.........................................................................................................................................................218
2.2.18 Other Commands....................................................................................................... 219
DLE ENQ n...................................................................................................................................219
DLE DC4 fn m t (Specification of fn = 1) .................................................................................220
DLE DC4 fn d1...d7 (Specification of fn = 8) ...........................................................................221
ESC = n .......................................................................................................................................222
ESC @ ..........................................................................................................................................223
ESC L ...........................................................................................................................................224
ESC S ...........................................................................................................................................225
ESC p m n1 n2 ............................................................................................................................226
GS ( A pL pH n m ........................................................................................................................227
GS I n...........................................................................................................................................228
GS P x y .......................................................................................................................................235
ESC RS.........................................................................................................................................236
3. CHARACTER CODE TABLE ................................................................... 237
3.1 CODE PAGE .............................................................................................................. 237
3.1.1 Codepage 00H to 7FH & PC437(USA、Europe Standard) .......................................... 237
3.1.2 Codepage 00H to 7FH & Katakana .............................................................................. 238
3.1.3 Codepage 00H to 7FH & PC850(Multilingual)............................................................ 239
3.1.4 Codepage 00H to 7FH & PC860(Portuguese)............................................................. 240
3.1.5 Codepage 00H to 7FH & PC863(Canadian-French) ................................................... 241
3.1.6 Codepage 00H to 7FH & PC865(Nordic)..................................................................... 242
3.1.7 Codepage 00H to 7FH & PC852(Easern Europe)........................................................ 243
3.1.8 Codepage 00H to 7FH & PC857(Russian)................................................................... 244
3.1.9 Codepage 00H to 7FH & PC857(Turkish) ................................................................... 245
3.1.10 Codepage 00H to 7FH & PC864(ArabiC)................................................................... 246
3.1.11 Codepage 00H to 7FH & Windows Codepage .......................................................... 247
3.1.12 Codepage 00H to 7FH & Thai code 18 ...................................................................... 248
3.2 INTERNATINAL CHARACTER CODE TABLE ...................................................................... 249
3.3 KANJI CODE TABLE.................................................................................................... 250
3.3.1 JIS non-Kanji................................................................................................................. 250
3.3.2 JIS Kanji Level 1............................................................................................................ 252
3.3.3 JIS Kanji Level 2............................................................................................................ 258
-7-
4. MEMORY SWITCH................................................................................ 265
4.1 MEMORY SWITCHES .................................................................................................. 265
4.1.1 CT-S280.......................................................................................................................... 265
4.1.2 CT-S300.......................................................................................................................... 266
4.1.3 CT-S2000 ....................................................................................................................... 267
4.1.4 CT-S4000 ....................................................................................................................... 269
4.1.5 BD2-2220....................................................................................................................... 271
4.1.6 CT-S310.......................................................................................................................... 272
4.2 DETAILS OF MEMORY SWITCHES ................................................................................ 276
4.2.1 MSW1............................................................................................................................. 276
4.2.2 MSW2............................................................................................................................. 279
4.2.3 MSW3............................................................................................................................. 282
4.2.4 MSW4............................................................................................................................. 285
4.2.5 MSW5............................................................................................................................. 287
4.2.6 MSW6............................................................................................................................. 288
4.2.7 MSW7............................................................................................................................. 289
4.2.8 MSW8............................................................................................................................. 291
4.2.9 MSW9............................................................................................................................. 292
4.2.10 MSW10......................................................................................................................... 293
5. APPENDIX ............................................................................................ 294
5.1 EXPLANATION ON PAGE MODE ................................................................................. 294
5.1.1 Overview........................................................................................................................ 294
5.1.2 Values Set by Each Command in STANDARD MODE and PAGE MODE..................... 294
5.1.3 Mapping of Print Data in the Print Area ...................................................................... 295
5.1.4 Example of Using PAGE MODE..................................................................................... 297
5.2 BIDIRECTIONAL PARALLEL INTERFACE ......................................................................... 301
5.2.1 Parallel Interface Communication Mode .................................................................... 301
5.2.2 Interfacing Phases........................................................................................................ 302
5.2.3 Negotiation .................................................................................................................... 303
5.3 IDENTIFICATION 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
10 A$="CITIZEN"
20 LPRINT CHR$(&H1D);"!"; CHR$(&H11);
30 LPRINT A$;
40 LPRINT CHR$(&HA); CHR$(&HA);
50 LPRINT CHR$(&H1D);"!"; CHR$(&H00);
60 LPRINT A$;
70 END
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
BASIC.
-9-
2. CONTROL COMMANDS
2.1 ESC/POS Command List
2.1.1 CT-S280
Print Control Commands
Commands
LF
CR
FF
ESC FF
ESC J
ESC d
Function
Printing and paper feed
Back to printing
Printing in PAGE MODE and returning to STANDARD
MODE (at the selection of PAGE MODE)
Printing data in PAGE MODE
Printing and feeding paper in minimum pitch
Printing and feeding the paper by “n” lines
MODE
S・P
S・P
GS P
P
P
S・P
S・P
Page
31
32
33
○
34
35
36
Print Character Commands
Command
CAN
ESC SP
ESC !
ESC %
ESC &
ESC ESC ?
ESC E
ESC G
ESC M
ESC R
ESC V
ESC t
ESC {
ESC ~ J
DC3
GS !
GS B
GS b
Function
Canceling print data in PAGE MODE
Setting the right spacing of the character
Collectively specifying the printing mode
Specifying/Canceling download character set
Defining the download characters
Specifying/canceling underline
Deleting download characters
Specifying/canceling emphasis printing
Specifying/canceling double strike printing
Selection of character fonts
Selecting the international character set
Specifying/canceling 90°-right-turned characters
Selecting the character code table
Specifying/canceling the inverted characters
Specifies/cancels printing in red (black-based paper)
Specifies/cancels printing in red (black-based paper)
Specifying the character size
Specifying/canceling the black/white inverted printing
Specifying/canceling the smoothing
MODE
P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S
S・P
S
S・P
S
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
P
P
S・P
S
GS P
P
○
69
S
S・P
○
○
70
71
S・P
○
73
○
Page
37
38
39
41
42
44
45
46
47
48
49
50
51
52
53
55
57
59
60
Print Position Commands
Command
HT
ESC $
ESC D
ESC T
ESC W
ESC \
ESC a
GS $
GS L
GS W
GS \
Function
Horizontal tab
Specifying the absolute positions
Setting horizontal tab position
Selecting the character printing direction in PAGE MODE
Defining the print area in PAGE MODE
Specifying the relative position
Aligning the characters
Specifying the absolute vertical position of characters in
PAGE MODE
Setting the left margin
Setting the print area width
Specifying the relative vertical position of a character in
PAGE MODE
- 10 -
○
○
○
Page
61
62
63
64
65
67
68
Line Feed Span Commands
Command
ESC 2
ESC 3
Function
Specifying initial line feed rate
Setting line feed rate of minimum pitch
MODE
S・P
S・P
GS P
MODE
S・P
S・P
S・P
S
GS P
Page
76
77
78
79
MODE
S・P
S・P
S・P
S・P
GS P
Page
81
89
90
93
MODE
GS P
Page
○
Page
74
75
Bit Image Commands
Command
ESC *
GS *
GS /
GS v 0
Function
Specifying the bit image mode
Defining the download bit image
Printing the downloaded bit image
Printing of raster bit image
Status Commands
Command
DLE EOT
ESC v
GS a
GS r
Function
Sending status in real-time
Sending Printer status
Enabling/disabling ASB (Automatic Status Back)
Sending status
Paper Detecting Commands
Command
ESC c 3
ESC c 4
Function
Selecting the Paper Sensor valid for Paper-end signal
output
Selecting the Paper Near-end Sensor valid for print stop
S・P
95
S・P
96
Panel Switch Commands
Command
ESC c 5
Function
Enabling/disabling the panel switches
MODE
S・P
GS P
Page
97
MODE
S・P
S・P
GS P
Page
98
99
MODE
S・P
S・P
S・P
S・P
S・P
GS P
Page
103
104
105
106
111
MODE
S
S
GS P
Page
128
130
Macro Commands
Command
GS :
GS ^
Function
Starting/ending macro definition
Executing the macro
Bar Code Commands
Command
GS H
GS f
GS h
GS k
GS w
Function
Selecting of printing position of HRI characters
Selecting the font of HRI characters
Specifying the height of the bar code
Printing the bar code
Specifying the horizontal size (magnification) of bar code
Commands for Non-volatile Memory
Command
FS p
FS q
Function
Printing the download NV bit images
Defining the download NV bit image
- 11 -
Kanji Control Commands
Command
FS !
FS &
FS FS .
FS 2
FS C
FS S
FS W
FS ( A
Function
Collectively setting Kanji print mode
Setting Kanji mode
Setting/Canceling Kanji underline
Canceling Kanji mode
Defining external character
Selecting Kanji code system
Setting Kanji space amount
Setting/Canceling four times enlargement of Kanji
Setting font attribute of Kanji
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
MODE
S
S
S
S
GS P
Page
153
200
204
207
MODE
S・P
S・P
S・P
S・P
S
P
S
S・P
S・P
GS P
Page
219
221
222
223
224
225
227
228
235
○
Page
132
133
134
135
136
138
140
141
142
Printer Function Setting Commands
Command
GS ( E
GS ( K
GS ( M
GS ( N
Function
Printer function setting command
Selecting print control method
Customizing the printer
Designating font attribute
Other Commands
Command
DLE ENQ
DLE DC4
ESC =
ESC @
ESC L
ESC S
GS ( A
GS I
GS P
Function
Real-time request to printer
Buffer clear
Data input control
Initializing the printer
Selecting PAGE MODE
Selecting STANDARD MODE
Execution of test printing
Sending the printer ID
Specifying the basic calculation pitch
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 12 -
2.1.2 CT-S300/CT-S310
Print Contorl Commands
Command
LF
CR
FF
ESC FF
ESC J
ESC d
Function
Printing and paper feed
Back to printing
(1)Printing in PAGE MODE and returning to STANDARD
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
the print position (with Black mark paper selected)
Printing data in PAGE MODE
Printing and feeding paper in minimum pitch
Printing and feeding the paper by “n” lines
MODE
S・P
S・P
GS P
P
P
S・P
S・P
Page
31
32
33
○
34
35
36
Print Character Commands
Command
CAN
ESC SP
ESC !
ESC %
ESC &
ESC ESC ?
ESC E
ESC G
ESC M
ESC R
ESC V
ESC t
ESC {
ESC ~ J
DC3
GS !
GS B
GS b
Function
Canceling print data in PAGE MODE
Setting the right spacing of the character
Collectively specifying the printing mode
Specifying/Canceling download character set
Defining the download characters
Specifying/canceling underline
Deleting download characters
Specifying/canceling emphasis printing
Specifying/canceling double strike printing
Selection of character fonts
Selecting the international character set
Specifying/canceling 90°-right-turned characters
Selecting the character code table
Specifying/canceling the inverted characters
Specifies/cancels printing in red (black-based paper)
Specifies/cancels printing in red (black-based paper)
Specifying the character size
Specifying/canceling the black/white inverted printing
Specifying/canceling the smoothing
Print Position Commands
Command
HT
ESC
ESC
ESC
ESC
ESC
ESC
$
D
T
W
\
a
GS $
GS L
GS W
GS \
Function
Horizontal tab
Specifying the absolute positions
Setting horizontal tab position
Selecting the character printing direction in PAGE MODE
Defining the print area in PAGE MODE
Specifying the relative position
Aligning the characters
Specifying the absolute vertical position of characters in
PAGE MODE
Setting the left margin
Setting the print area width
Specifying the relative vertical position of a character in
PAGE MODE
- 13 -
MODE
P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S
S・P
S
S・P
S
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
P
P
S・P
S
GS P
P
○
69
S
S・P
○
○
70
71
S・P
○
73
○
○
○
○
Page
37
38
39
41
42
44
45
46
47
48
49
50
51
52
54
56
57
59
60
Page
61
62
63
64
65
67
68
Line Feed Span Commands
Command
ESC 2
ESC 3
Function
Specifying initial line feed rate
Setting line feed rate of minimum pitch
MODE
S・P
S・P
GS P
MODE
S・P
S・P
S・P
S
GS P
Page
76
77
78
79
MODE
S・P
S・P
S・P
GS P
Page
81
90
93
MODE
GS P
Page
○
Page
74
75
Bit Image Commands
Command
ESC *
GS *
GS /
GS v 0
Function
Specifying the bit image mode
Defining the download bit image
Printing the downloaded bit image
Printing of raster bit image
Status Commands
Command
DLE EOT
GS a
GS r
Function
Sending status in real-time
Enabling/disabling ASB (Automatic Status Back)
Sending status
Paper Detecting Commands
Command
ESC c 3
ESC c 4
Function
Selecting the Paper Sensor valid for Paper-end signal
output
Selecting the Paper Near-end Sensor valid for print stop
S・P
95
S・P
96
Panel Switch Commands
Command
ESC c 5
Function
Enabling/disabling the panel switches
MODE
S・P
GS P
Page
97
MODE
S・P
S・P
GS P
Page
98
99
MODE
S・P
S・P
S・P
GS P
Page
100
101
102
MODE
S・P
S・P
S・P
S・P
S・P
GS P
Page
103
104
105
106
111
MODE
S
S
GS P
Page
128
130
Macro Commands
Command
GS :
GS ^
Function
Starting/ending macro definition
Executing the macro
Cutter Commands
Command
ESC i
ESC m
GS V
Function
Full cut
Partial cut
Cutting the paper
○
Bar Code Commands
Command
GS H
GS f
GS h
GS k
GS w
Function
Selecting of printing position of HRI characters
Selecting the font of HRI characters
Specifying the height of the bar code
Printing the bar code
Specifying the horizontal size (magnification) of bar code
Commands for Non-volatile Memory
Command
FS p
FS q
Function
Printing the download NV bit images
Defining the download NV bit image
- 14 -
Kanji Control Commands
Command
FS !
FS &
FS FS .
FS 2
FS C
FS S
FS W
FS ( A
Function
Collectively setting Kanji print mode
Setting Kanji mode
Setting/Canceling Kanji underline
Canceling Kanji mode
Defining external character
Selecting Kanji code system
Setting Kanji space amount
Setting/Canceling four times enlargement of Kanji
Setting font attribute of Kanji
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
Page
143
143
144
145
146
147
148
149
MODE
S
S
S
S
S
GS P
Page
152
153
200
204
207
MODE
S・P
S・P
S・P
S・P
S
P
S・P
S
S・P
S・P
S・P
GS P
Page
219
○
Page
132
133
134
135
136
138
140
141
142
Black Mark Control Commands
Command
GS FF
GS <
GS A
GS C 0
GS C 1
GS C 2
GS C ;
GS c
Function
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
Printer Function Setting Commands
Command
GS ( D
GS ( E
GS ( K
GS ( M
GS ( N
Function
Enabling or disabling real-time command
Printer function setting command
Selecting print control method
Customizing the printer
Designating font attribute
Other Commands
Command
DLE ENQ
DLE DC4
ESC =
ESC @
ESC L
ESC S
ESC p
GS ( A
GS I
GS P
ESC RS
Function
Real-time request to printer
Outputting specified pulse in real-time/Buffer clear
Data input control
Initializing the printer
Selecting PAGE MODE
Selecting STANDARD MODE
Generating the specified pulses
Execution of test printing
Sending the printer ID
Specifying the basic calculation pitch
Sound buzzer
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 15 -
220/221
222
223
224
225
226
227
228
235
236
2.1.3 CT-S2000
Print Contorl Commands
Command
LF
CR
FF
ESC FF
ESC J
ESC d
Function
Printing and paper feed
Back to printing
(1)Printing in PAGE MODE and returning to STANDARD
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
the print position (with Black mark paper selected)
Printing data in PAGE MODE
Printing and feeding paper in minimum pitch
Printing and feeding the paper by “n” lines
MODE
S・P
S・P
GS P
P
P
S・P
S・P
Page
31
32
33
○
34
35
36
Print Character Commands
Command
CAN
ESC SP
ESC !
ESC %
ESC &
ESC ESC ?
ESC E
ESC G
ESC M
ESC R
ESC V
ESC t
ESC {
ESC ~ J
DC3
GS !
GS B
GS b
Function
Canceling print data in PAGE MODE
Setting the right spacing of the character
Collectively specifying the printing mode
Specifying/Canceling download character set
Defining the download characters
Specifying/canceling underline
Deleting download characters
Specifying/canceling emphasis printing
Specifying/canceling double strike printing
Selection of character fonts
Selecting the international character set
Specifying/canceling 90°-right-turned characters
Selecting the character code table
Specifying/canceling the inverted characters
Specifies/cancels printing in red (black-based paper)
Specifies/cancels printing in red (black-based paper)
Specifying the character size
Specifying/canceling the black/white inverted printing
Specifying/canceling the smoothing
MODE
P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S
S・P
S
S・P
S
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
P
P
S・P
S
GS P
P
○
69
S
S・P
○
○
70
71
S・P
○
73
○
Page
37
38
39
41
42
44
45
46
47
48
49
50
51
52
54
56
57
59
60
Print Position Commands
Command
HT
ESC $
ESC D
ESC T
ESC W
ESC \
ESC a
GS $
GS L
GS W
GS \
Function
Horizontal tab
Specifying the absolute positions
Setting horizontal tab position
Selecting the character printing direction in PAGE MODE
Defining the print area in PAGE MODE
Specifying the relative position
Aligning the characters
Specifying the absolute vertical position of characters in
PAGE MODE
Setting the left margin
Setting the print area width
Specifying the relative vertical position of a character in
PAGE MODE
- 16 -
○
○
○
Page
61
62
63
64
65
67
68
Line Feed Span Commands
Command
ESC 2
ESC 3
Function
Specifying initial line feed rate
Setting line feed rate of minimum pitch
MODE
S・P
S・P
GS P
MODE
S・P
S・P
S・P
S
GS P
Page
76
77
78
79
MODE
S・P
GS P
Page
81
○
Page
74
75
Bit Image Commands
Command
ESC *
GS *
GS /
GS v 0
Function
Specifying the bit image mode
Defining the download bit image
Printing the downloaded bit image
Printing of raster bit image
Status Commands
Command
DLE EOT
ESC u
ESC v
GS a
GS r
Function
Sending status in real-time
Transmitting the status of peripheral equipment
(Serial Mode Only)
Sending Printer status
Enabling/disabling ASB (Automatic Status Back)
Sending status
S・P
88
S・P
S・P
S・P
89
90
93
Paper Detecting Commands
Command
ESC c 3
ESC c 4
Function
Selecting the Paper Sensor valid for Paper-end signal
output
Selecting the Paper Near-end Sensor valid for print stop
MODE
GS P
Page
S・P
95
S・P
96
Panel Switch Commands
Command
ESC c 5
Function
Enabling/disabling the panel switches
MODE
S・P
GS P
Page
97
MODE
S・P
S・P
GS P
Page
98
99
MODE
S・P
S・P
S・P
GS P
Page
100
101
102
MODE
S・P
S・P
S・P
S・P
S・P
GS P
Macro Commands
Command
GS :
GS ^
Function
Starting/ending macro definition
Executing the macro
Cutter Commands
Command
ESC i
ESC m
GS V
Function
Full cut
Partial cut
Cutting the paper
○
Bar Code Commands
Command
GS H
GS f
GS h
GS k
GS w
Function
Selecting of printing position of HRI characters
Selecting the font of HRI characters
Specifying the height of the bar code
Printing the bar code
Specifying the horizontal size (magnification) of bar code
- 17 -
Page
103
104
105
106
111
Commands for Non-volatile Memory
Command
GS ( C
GS ( L
GS 8 L
GS g 0
GS g 2
FS p
FS q
Function
Editing user NV memory
MODE
S
GS P
Page
112
Specifying graphics data
S
118
Initializing maintenance counter
Sending maintenance counter
Printing the download NV bit images
Defining the download NV bit image
S
S
S
S
126
127
128
130
Kanji Control Commands
Command
FS !
FS &
FS FS .
FS 2
FS C
FS S
FS W
FS ( A
Function
Collectively setting Kanji print mode
Setting Kanji mode
Setting/Canceling Kanji underline
Canceling Kanji mode
Defining external character
Selecting Kanji code system
Setting Kanji space amount
Setting/Canceling four times enlargement of Kanji
Setting font attribute of Kanji
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
Page
143
143
144
145
146
147
148
149
150
MODE
S
S
S
S
S
GS P
Page
152
153
200
204
207
MODE
S・P
GS P
Page
208
○
Page
132
133
134
135
136
138
140
141
142
Black Mark Control Commands
Command
GS FF
GS <
GS A
GS C 0
GS C 1
GS C 2
GS C ;
GS c
GS l
Function
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
Printer Function Setting Commands
Command
GS ( D
GS ( E
GS ( K
GS ( M
GS ( N
Function
Enabling or disabling real-time command
Printer function setting command
Selecting print control method
Customizing the printer
Designating font attribute
2-dimensional Code Commands
Command
GS ( k
Function
Setting and printing 2-dimensional code
- 18 -
Other Commands
Command
DLE ENQ
DLE DC4
ESC =
ESC @
ESC L
ESC S
ESC p
GS ( A
GS I
GS P
ESC RS
Function
Real-time request to printer
Outputting specified pulse in real-time/Buffer clear
Data input control
Initializing the printer
Selecting PAGE MODE
Selecting STANDARD MODE
Generating the specified pulses
Execution of test printing
Sending the printer ID
Specifying the basic calculation pitch
Sound buzzer
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 19 -
MODE
S・P
S・P
S・P
S・P
S
P
S・P
S
S・P
S・P
S・P
GS P
Page
219
220/221
222
223
224
225
226
227
228
235
236
2.1.4 CT-S4000
Print Contorl Commands
Command
LF
CR
FF
ESC FF
ESC J
ESC d
Function
Printing and paper feed
Back to printing
(1)Printing in PAGE MODE and returning to STANDARD
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
the print position (with Black mark paper selected)
Printing data in PAGE MODE
Printing and feeding paper in minimum pitch
Printing and feeding the paper by “n” lines
MODE
S・P
S・P
GS P
P
P
S・P
S・P
Page
31
32
33
○
34
35
36
Print Character Commands
Command
CAN
ESC SP
ESC !
ESC %
ESC &
ESC ESC ?
ESC E
ESC G
ESC M
ESC R
ESC V
ESC t
ESC {
ESC ~ J
DC3
GS !
GS B
GS b
Function
Canceling print data in PAGE MODE
Setting the right spacing of the character
Collectively specifying the printing mode
Specifying/Canceling download character set
Defining the download characters
Specifying/canceling underline
Deleting download characters
Specifying/canceling emphasis printing
Specifying/canceling double strike printing
Selection of character fonts
Selecting the international character set
Specifying/canceling 90°-right-turned characters
Selecting the character code table
Specifying/canceling the inverted characters
Specifies/cancels printing in red (black-based paper)
Specifies/cancels printing in red (black-based paper)
Specifying the character size
Specifying/canceling the black/white inverted printing
Specifying/canceling the smoothing
MODE
P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S
S・P
S
S・P
S
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
P
P
S・P
S
GS P
P
○
69
S
S・P
○
○
70
71
S・P
○
73
○
Page
37
38
39
41
42
44
45
46
47
48
49
50
51
52
54
56
57
59
60
Print Position Commands
Command
HT
ESC $
ESC D
ESC T
ESC W
ESC \
ESC a
GS $
GS L
GS W
GS \
Function
Horizontal tab
Specifying the absolute positions
Setting horizontal tab position
Selecting the character printing direction in PAGE MODE
Defining the print area in PAGE MODE
Specifying the relative position
Aligning the characters
Specifying the absolute vertical position of characters in
PAGE MODE
Setting the left margin
Setting the print area width
Specifying the relative vertical position of a character in
PAGE MODE
- 20 -
○
○
○
Page
61
62
63
64
65
67
68
Line Feed Span Commands
Command
ESC 2
ESC 3
Function
Specifying initial line feed rate
Setting line feed rate of minimum pitch
MODE
S・P
S・P
GS P
MODE
S・P
S・P
S・P
S
GS P
Page
76
77
78
79
MODE
S・P
GS P
Page
81
○
Page
74
75
Bit Image Commands
Command
ESC *
GS *
GS /
GS v 0
Function
Specifying the bit image mode
Defining the download bit image
Printing the downloaded bit image
Printing of raster bit image
Status Commands
Command
DLE EOT
ESC u
ESC v
GS a
GS r
Function
Sending status in real-time
Transmitting the status of peripheral equipment
(Serial Mode Only)
Sending Printer status
Enabling/disabling ASB (Automatic Status Back)
Sending status
S・P
88
S・P
S・P
S・P
89
90
93
Paper Detecting Commands
Command
ESC c 3
ESC c 4
Function
Selecting the Paper Sensor valid for Paper-end signal
output
Selecting the Paper Near-end Sensor valid for print stop
MODE
GS P
Page
S・P
95
S・P
96
Panel Switch Commands
Command
ESC c 5
Function
Enabling/disabling the panel switches
MODE
S・P
GS P
Page
97
MODE
S・P
S・P
GS P
Page
98
99
MODE
S・P
S・P
S・P
GS P
Page
100
101
102
MODE
S・P
S・P
S・P
S・P
S・P
GS P
Macro Commands
Command
GS :
GS ^
Function
Starting/ending macro definition
Executing the macro
Cutter Commands
Command
ESC i
ESC m
GS V
Function
Full cut
Partial cut
Cutting the paper
○
Bar Code Commands
Command
GS H
GS f
GS h
GS k
GS w
Function
Selecting of printing position of HRI characters
Selecting the font of HRI characters
Specifying the height of the bar code
Printing the bar code
Specifying the horizontal size (magnification) of bar code
- 21 -
Page
103
104
105
106
111
Commands for Non-volatile Memory
Command
GS ( C
GS ( L
GS 8 L
GS g 0
GS g 2
FS p
FS q
Function
Editing user NV memory
MODE
S
GS P
Page
112
Specifying graphics data
S
118
Initializing maintenance counter
Sending maintenance counter
Printing the download NV bit images
Defining the download NV bit image
S
S
S
S
126
127
128
130
Kanji Control Commands
Command
FS !
FS &
FS FS .
FS 2
FS C
FS S
FS W
FS ( A
Function
Collectively setting Kanji print mode
Setting Kanji mode
Setting/Canceling Kanji underline
Canceling Kanji mode
Defining external character
Selecting Kanji code system
Setting Kanji space amount
Setting/Canceling four times enlargement of Kanji
Setting font attribute of Kanji
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
Page
143
143
144
145
146
147
148
149
150
151
MODE
S
S
S
S
S
GS P
Page
152
153
200
204
207
MODE
S・P
GS P
Page
208
○
Page
132
133
134
135
136
138
140
141
142
Black Mark Control Commands
Command
GS FF
GS <
GS A
GS C 0
GS C 1
GS C 2
GS C ;
GS c
GS l
GS p
Function
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
Changing the paper type
Printer Function Setting Commands
Command
GS ( D
GS ( E
GS ( K
GS ( M
GS ( N
Function
Enabling or disabling real-time command
Printer function setting command
Selecting print control method
Customizing the printer
Designating font attribute
2-dimensional Code Commands
Command
GS ( k
Function
Setting and printing 2-dimensional code
- 22 -
Other Commands
Command
DLE ENQ
DLE DC4
ESC =
ESC @
ESC L
ESC S
ESC p
GS ( A
GS I
GS P
ESC RS
Function
Real-time request to printer
Outputting specified pulse in real-time/Buffer clear
Data input control
Initializing the printer
Selecting PAGE MODE
Selecting STANDARD MODE
Generating the specified pulses
Execution of test printing
Sending the printer ID
Specifying the basic calculation pitch
Sound buzzer
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 23 -
MODE
S・P
S・P
S・P
S・P
S
P
S・P
S
S・P
S・P
S・P
GS P
Page
219
220/221
222
223
224
225
226
227
228
235
236
2.1.5 BD2-2220
Print Contorl Commands
Command
LF
CR
FF
ESC FF
ESC J
ESC d
Function
Printing and paper feed
Back to printing
Printing in PAGE MODE and returning to STANDARD
MODE (at the selection of PAGE MODE)
Printing data in PAGE MODE
Printing and feeding paper in minimum pitch
Printing and feeding the paper by “n” lines
MODE
S・P
S・P
GS P
Page
31
32
P
33
P
S・P
S・P
34
35
36
○
Print Character Commands
Command
CAN
ESC SP
ESC !
ESC %
ESC &
ESC ESC ?
ESC E
ESC G
ESC M
ESC R
ESC V
ESC t
ESC {
GS !
GS B
GS b
Function
Canceling print data in PAGE MODE
Setting the right spacing of the character
Collectively specifying the printing mode
Specifying/Canceling download character set
Defining the download characters
Specifying/canceling underline
Deleting download characters
Specifying/canceling emphasis printing
Specifying/canceling double strike printing
Selection of character fonts
Selecting the international character set
Specifying/canceling 90°-right-turned characters
Selecting the character code table
Specifying/canceling the inverted characters
Specifying the character size
Specifying/canceling the black/white inverted printing
Specifying/canceling the smoothing
MODE
P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S
S・P
S
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
P
P
S・P
S
GS P
P
○
69
S
S・P
○
○
70
71
S・P
○
73
MODE
S・P
S・P
GS P
Page
74
75
○
Page
37
38
39
41
42
44
45
46
47
48
49
50
51
52
57
59
60
Print Position Commands
Command
HT
ESC $
ESC D
ESC T
ESC W
ESC \
ESC a
GS $
GS L
GS W
GS \
Function
Horizontal tab
Specifying the absolute positions
Setting horizontal tab position
Selecting the character printing direction in PAGE MODE
Defining the print area in PAGE MODE
Specifying the relative position
Aligning the characters
Specifying the absolute vertical position of characters in
PAGE MODE
Setting the left margin
Setting the print area width
Specifying the relative vertical position of a character in
PAGE MODE
○
○
○
Page
61
62
63
64
65
67
68
Line Feed Span Commands
Command
ESC 2
ESC 3
Function
Specifying initial line feed rate
Setting line feed rate of minimum pitch
- 24 -
○
Bit Image Commands
Command
ESC *
GS *
GS /
GS v 0
Function
Specifying the bit image mode
Defining the download bit image
Printing the downloaded bit image
Printing of raster bit image
MODE
S・P
S・P
S・P
S
GS P
Page
76
77
78
79
MODE
S・P
S・P
S・P
GS P
Page
81
90
93
MODE
GS P
Page
Status Commands
Command
DLE EOT
GS a
GS r
Function
Sending status in real-time
Enabling/disabling ASB (Automatic Status Back)
Sending status
Paper Detecting Commands
Command
ESC c 3
ESC c 4
Function
Selecting the Paper Sensor valid for Paper-end signal
output
Selecting the Paper Near-end Sensor valid for print stop
S・P
95
S・P
96
Panel Switch Commands
Command
ESC c 5
Function
Enabling/disabling the panel switches
MODE
S・P
GS P
Page
97
MODE
S・P
S・P
GS P
Page
98
99
MODE
S・P
S・P
S・P
GS P
Page
100
101
102
MODE
S・P
S・P
S・P
S・P
S・P
GS P
Page
103
104
105
106
111
MODE
S
S
GS P
Page
128
130
Macro Commands
Command
GS :
GS ^
Function
Starting/ending macro definition
Executing the macro
Cutter Commands
Command
ESC i
ESC m
GS V
Function
Full cut
Partial cut
Cutting the paper
○
Bar Code Commands
Command
GS H
GS f
GS h
GS k
GS w
Function
Selecting of printing position of HRI characters
Selecting the font of HRI characters
Specifying the height of the bar code
Printing the bar code
Specifying the horizontal size (magnification) of bar code
Commands for Non-volatile Memory
Command
FS p
FS q
Function
Printing the download NV bit images
Defining the download NV bit image
- 25 -
Kanji Control Commands
Command
FS !
FS &
FS FS .
FS 2
FS C
FS S
FS W
FS ( A
Function
Collectively setting Kanji print mode
Setting Kanji mode
Setting/Canceling Kanji underline
Canceling Kanji mode
Defining external character
Selecting Kanji code system
Setting Kanji space amount
Setting/Canceling four times enlargement of Kanji
Setting font attribute of Kanji
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
MODE
S
S
S
GS P
Page
153
200
204
MODE
S・P
S・P
S・P
S・P
S
P
S
S・P
S・P
GS P
Page
219
221
222
223
224
225
227
228
235
○
Page
132
133
134
135
136
138
140
141
142
Printer Function Setting Commands
Command
GS ( E
GS ( K
GS ( M
Function
Printer function setting command
Selecting print control method
Customizing the printer
Other Commands
Command
DLE ENQ
DLE DC4
ESC =
ESC @
ESC L
ESC S
GS ( A
GS I
GS P
Function
Real-time request to printer
Buffer clear
Data input control
Initializing the printer
Selecting PAGE MODE
Selecting STANDARD MODE
Execution of test printing
Sending the printer ID
Specifying the basic calculation pitch
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 26 -
2.1.6 PMU2XXX
Print Contorl Commands
Command
LF
CR
FF
ESC FF
ESC J
ESC d
Function
Printing and paper feed
Back to printing
(1)Printing in PAGE MODE and returning to STANDARD
MODE (at the selection of PAGE MODE)
(2)Printing of Black mark and paper feeding to the top of
the print position (with Black mark paper selected)
Printing data in PAGE MODE
Printing and feeding paper in minimum pitch
Printing and feeding the paper by “n” lines
MODE
S・P
S・P
GS P
Page
31
32
P
33
P
S・P
S・P
34
35
36
○
Print Character Commands
Command
CAN
ESC SP
ESC !
ESC %
ESC &
ESC ESC ?
ESC E
ESC G
ESC M
ESC R
ESC V
ESC t
ESC {
GS !
GS B
GS b
Function
Canceling print data in PAGE MODE
Setting the right spacing of the character
Collectively specifying the printing mode
Specifying/Canceling download character set
Defining the download characters
Specifying/canceling underline
Deleting download characters
Specifying/canceling emphasis printing
Specifying/canceling double strike printing
Selection of character fonts
Selecting the international character set
Specifying/canceling 90°-right-turned characters
Selecting the character code table
Specifying/canceling the inverted characters
Specifying the character size
Specifying/canceling the black/white inverted printing
Specifying/canceling the smoothing
MODE
P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S
S・P
S
S・P
S・P
S・P
GS P
MODE
S・P
S・P
S・P
P
P
S・P
S
GS P
P
○
69
S
S・P
○
○
70
71
S・P
○
73
MODE
S・P
S・P
GS P
Page
74
75
○
Page
37
38
39
41
42
44
45
46
47
48
49
50
51
52
57
59
60
Print Position Commands
Command
HT
ESC $
ESC D
ESC T
ESC W
ESC \
ESC a
GS $
GS L
GS W
GS \
Function
Horizontal tab
Specifying the absolute positions
Setting horizontal tab position
Selecting the character printing direction in PAGE MODE
Defining the print area in PAGE MODE
Specifying the relative position
Aligning the characters
Specifying the absolute vertical position of characters in
PAGE MODE
Setting the left margin
Setting the print area width
Specifying the relative vertical position of a character in
PAGE MODE
○
○
○
Page
61
62
63
64
65
67
68
Line Feed Span Commands
Command
ESC 2
ESC 3
Function
Specifying initial line feed rate
Setting line feed rate of minimum pitch
- 27 -
○
Bit Image Commands
Command
ESC *
GS *
GS /
GS v 0
Function
Specifying the bit image mode
Defining the download bit image
Printing the downloaded bit image
Printing of raster bit image
MODE
S・P
S・P
S・P
S
GS P
Page
76
77
78
79
MODE
S・P
S・P
S・P
GS P
Page
81
90
93
MODE
GS P
Page
Status Commands
Command
DLE EOT
GS a
GS r
Function
Sending status in real-time
Enabling/disabling ASB (Automatic Status Back)
Sending status
Paper Detecting Commands
Command
ESC c 3
ESC c 4
Function
Selecting the Paper Sensor valid for Paper-end signal
output
Selecting the Paper Near-end Sensor valid for print stop
S・P
95
S・P
96
Panel Switch Commands
Command
ESC c 5
Function
Enabling/disabling the panel switches
MODE
S・P
GS P
Page
97
MODE
S・P
S・P
GS P
Page
98
99
MODE
S・P
S・P
S・P
GS P
Page
100
101
102
MODE
S・P
S・P
S・P
S・P
S・P
GS P
Page
103
104
105
106
111
MODE
S
S
GS P
Page
128
130
Macro Commands
Command
GS :
GS ^
Function
Starting/ending macro definition
Executing the macro
Cutter Commands
Command
ESC i
ESC m
GS V
Function
Full cut
Partial cut
Cutting the paper
○
Bar Code Commands
Command
GS H
GS f
GS h
GS k
GS w
Function
Selecting of printing position of HRI characters
Selecting the font of HRI characters
Specifying the height of the bar code
Printing the bar code
Specifying the horizontal size (magnification) of bar code
Commands for Non-volatile Memory
Command
FS p
FS q
Function
Printing the download NV bit images
Defining the download NV bit image
- 28 -
Kanji Control Commands
Command
FS !
FS &
FS FS .
FS 2
FS C
FS S
FS W
FS ( A
Function
Collectively setting Kanji print mode
Setting Kanji mode
Setting/Canceling Kanji underline
Canceling Kanji mode
Defining external character
Selecting Kanji code system
Setting Kanji space amount
Setting/Canceling four times enlargement of Kanji
Setting font attribute of Kanji
MODE
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
GS P
MODE
S・P
GS P
Page
143
MODE
S
S
S
GS P
Page
153
200
204
MODE
S・P
S・P
S・P
S・P
S
P
S
S・P
S・P
GS P
Page
219
221
222
223
224
225
227
228
235
○
Page
132
133
134
135
136
138
140
141
142
Black Mark Control Commands
Command
GS FF
Function
Printing and ejecting Black mark paper
Printer Function Setting Commands
Command
GS ( E
GS ( K
GS ( M
Function
Printer function setting command
Selecting print control method
Customizing the printer
Other Commands
Command
DLE ENQ
DLE DC4
ESC =
ESC @
ESC L
ESC S
GS ( A
GS I
GS P
Function
Real-time request to printer
Buffer clear
Data input control
Initializing the printer
Selecting PAGE MODE
Selecting STANDARD MODE
Execution of test printing
Sending the printer ID
Specifying the basic calculation pitch
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 29 -
2.2 Command Details
2.2.1 Description of Items
XXXX
support model
[Function]
[Code]
[Range]
[Outline]
The name of a command.
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.
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.
[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 -
2.2.2 Print Control Commands
LF
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Printing and paper feed
[Code]
<0A>H
[Outline]
[The specification which is common to the model]
Prints data inside the print buffer and feeds paper based on the line feed amount having been set.
[Caution]
After this command is executed, the beginning of the line is taken as the start position for the next
point.
[See Also]
ESC 2、ESC 3
[Sample Program]
[Print Results]
AAA
BBB
LPRINT "AAA"; CHR$(&HA);
LPRINT "BBB"; CHR$(&HA); CHR$(&HA);
LPRINT "CCC"; CHR$(&HA);
Print and line feed
Print and line feed
Line feed only
CCC
- 31 -
Print and line feed
CR
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Back to printing
[Code]
<0D>H
[Outline]
[The specification which is common to the model]
(1) When memory switch 1-5 is OFF:
This command is ignored.
(2) When memory switch 1-5 is ON:
The same operation as LF is executed.
[See Also]
LF
[Sample Program]
LPRINT "AAA"; CHR$(&HD);
LPRINT "BBB"; CHR$(&HD);
LPRINT CHR$(&HD);
LPRINT "CCC"; CHR$(&HD);
BD2-2220
[Print Results]
In case of (2)
AAA
BBB
Print and line feed
Print and line feed
Line feed only
CCC
- 32 -
Print and line feed
CT-S310
FF (At selection of PAGE MODE)
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE)
[Code]
<0C>H
[Outline]
[The specification which is common to the model]
Executes a batch printout of the data mapped in the entire print area, and then returns to
STANDARD MODE.
[Caution]
• All mapped data is erased after printout.
• The print area set up by ESC W is initialized.
• This command does not execute a paper cut.
• After this command is executed, the beginning of the line is taken as the start position for the next
print.
• This command is only effective when the PAGE MODE is selected.
CT-S4000
• When selecting BM paper or label paper to specify the PAGE MODE, data extended to all
printing area is printed in batch. After returning to the STANDARD MODE, setting the
start position of next label is carried out.
[See Also]
Appendix 5.1.4 “Example of Using PAGE MODE”
ESC FF、ESC L、ESC S
FF (valid only for Black mark specification)
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
At selection of Black mark paper (valid only for Black mark specification)
[Outline]
[The specification which is common to the model]
This command prints the data in the printer buffer and searches for the head of the next Black mark
(Black mark position)
[Caution]
• This command does not execute a paper cut.
• After this command is executed, the beginning of the line is taken as the start position for the next
print.
• Valid only for label- or BM-supported model.
(Please confirm specifications for the details.)
[See Also]
GS FF
- 33 -
ESC FF
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Printing data in PAGE MODE
[Code]
<1B>H<0C>H
[Outline]
[The specification which is common to the model]
Executes a batch printout of the data mapped in the entire print area in PAGE MODE.
[Caution]
• This command is only effective when PAGE MODE is selected.
• Mapped data, as well as the ESC T and ESC W settings, and the character mapping position are
held even after printing.
[See Also]
Appendix 5.1 “Explanation on PAGE MODE”
FF、ESC L、ESC S
- 34 -
ESC J n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Printing and feeding paper in minimum pitch
[Code]
<1B>H<4A>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Prints the data held in the print buffer and feeds paper by [n×basic calculation pitch] inches.
[Caution]
• After this command is executed, the beginning of the line is taken as the start position for the next
print.
• The line feed width can be set separately for the STANDARD and PAGE MODES.
• This command does not affect the line feed width defined by ESC 2 or ESC 3.
• The basic calculation pitch is set by GS P.
• Fractions resulting from calculation are corrected with the minimum pitch of the mechanism, and
the remainder is omitted.
• In STANDARD MODE, this command uses the vertical (paper feed direction) basic calculation pitch
(y).
• In PAGE MODE, this command acts differently depending on the start point:
(1) If the start point specified by ESC T is top left or bottom right, the command uses the vertical
(Paper feed direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top right or bottom left, the command uses the
horizontal (Perpendicular to the paper feed direction) basic calculation pitch (x).
• The maximum settable line feed width is 1016 mm (40 inches). A setting greater than this
maximum is trimmed to the maximum.
[Default]
The initial value is not defined.
[Sample Program]
Refer to Sample Program and Print Results for ESC 2.
- 35 -
ESC d n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Printing and feeding the paper by “n” lines
[Code]
<1B>H<64>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Prints data in the print buffer and feeds paper by “n” lines. Specified lines do not remain.
[Caution]
• After this command is executed, the beginning of the line is taken as the start position for the next
print.
• If [n×line feed width] exceeds approximately 1016 mm, this command feeds paper by
approximately 1016 mm (40 inches).
[Default]
The initial value is not defined.
[Sample Program]
[Print Results]
LPRINT "AAAAA";
LPRINT CHR$(&H1B);"d";CHR$(2);
LPRINT "AAAAA";CHR$(&HA);
AAAAA
AAAAA
- 36 -
2/6-inch line feed
2.2.3 Print Character Commands
CAN
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Canceling print data in PAGE MODE
[Code]
<18>H
[Outline]
[The specification which is common to the model]
Erases all data contained in the currently effective print area in PAGE MODE.
[Caution]
• This command is only effective when PAGE MODE is selected.
• If the previously established print area overlaps the currently effective print area, the overlapped
data in the previously established area will be erased.
[See Also]
Appendix 5.1 “Explanation on PAGE MODE”
ESC L、ESC W
- 37 -
ESC SP n
support model
[Function]
[Code]
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
Setting the right spacing of the character
<1B>H<20>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Sets the right spacing of character to [n×basic calculation pitch] inches.
[Caution]
• If the horizontal magnification of character is 2 or more, the right spacing increases with the
magnification.
• Does not affect Kanji.
• The right spacing can be set separately for the STANDARD and PAGE MODES.
• The basic calculation pitch is set by GS P. Once defined, the right spacing is not changed if the
basic calculation pitch is changed by GS P.
• Fractions resulting from calculation are corrected with the minimum pitch of the mechanism, and
the remainder is omitted.
• In STANDARD MODE, this command uses the horizontal basic calculation pitch (x).
• In PAGE MODE, the basic calculation pitch used by this command depends on the start point:
(1) If the start point specified by ESC T is top left or bottom right, the command uses the
horizontal basic calculation pitch (x).
(2) If the start point specified by ESC T is top right or bottom left, the command uses the vertical
basic calculation pitch (y).
• The maximum right spacing is capable of approximately 31.906 mm (255/203 inches). A setting
greater than this maximum is trimmed to the maximum.
[Default]
n=0
[See Also]
GS P
[Sample Program]
LPRINT CHR$(&H1B);" "; CHR$(0);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H1B);" "; CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H1B);" "; CHR$(12);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA
AAAAA
A A A A A
- 38 -
0-dot space
1-dot space
12-dots space
ESC ! n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Collectively specifying the printing mode
[Code]
<1B>H<21>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Printing mode is assigned.
BD2-2220
[The specification which depend on the model]
CT-S300/CT-S310
Bit
Function
0
1
2
3
4
5
6
7
Character Font
Undefined
Undefined
Emphasis
Double height
Double width
Undefined
Underline
Value
0
1
Font A (12 x 24)
—
—
Canceled
Canceled
Canceled
—
Canceled
Font B (9 x 17)
—
—
Specified
Specified
Specified
—
Specified
CT-S280/CT-S2000/CT-S4000/BD2-2220/PMU2XXX
Bit
Function
0
1
2
3
4
5
6
7
Character Font
Undefined
Undefined
Emphasis
Double height
Double width
Undefined
Underline
Value
0
1
Font A (12 x 24)
—
—
Canceled
Canceled
Canceled
—
Canceled
Font B (9 x 24)
—
—
Specified
Specified
Specified
—
Specified
- 39 -
CT-S310
[Caution]
• With double height and double width being specified simultaneously, quadruple characters are
created.
• An underline is attached to the full character width, which, however, is not attached to the part
having been skipped by the horizontal tab (HT). Neither is it attached to 90°-right-turned
characters.
• The underline width is as specified by the ESC – command. (The default setting is 1 dot width.)
• Setting by this command is invalid for Kanji except setting and canceling of enhanced printing.
• In case characters with different vertical magnification ratios coexist on the same line, they are
printed on the same base line.
• ESC E, ESC M, ESC –, and GS ! can individually set or cancel the mode but the command
processed last is valid.
• Setting or canceling of enhanced 3rd bit is valid for alphanumeric and kana and kanji. Other print
mode is valid only for alphanumeric and kana characters.
[Default]
n=0
[See Also]
ESC E、ESC -、GS !
[Sample Program]
[Print Results]
LPRINT CHR$(&H1B);"!"; CHR$(&H00);"H";
LPRINT CHR$(&H1B);"!"; CHR$(&H01);"H";
LPRINT CHR$(&H1B);"!"; CHR$(&H08);"H";
LPRINT CHR$(&H1B);"!"; CHR$(&H10);"H";
LPRINT CHR$(&H1B);"!"; CHR$(&H20);"H";
LPRINT CHR$(&H1B);"!"; CHR$(&H80);"H";
LPRINT CHR$(&H1B);"!"; CHR$(&HB9);"H";
LPRINT CHR$(&HA);
Font B + Emphasis
+ Quadruple + Underline
Font A + Underline
Font A + Double width
Font A + Double height
Font A + Emphasis
Font B
Font A
- 40 -
ESC % n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying/canceling download character set
[Code]
<1B>H<25>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Specifying/canceling download characters.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
[Default]
n=0
[See Also]
ESC &
Function
Canceling download character set
Specifying download character set
[Sample Program]
GOSUB SETCHR
LPRINT CHR$(&H1B);"%";CHR$(0);
LPRINT "@A";CHR$(&HA);
LPRINT CHR$(&H1B);"%";CHR$(1);
LPRINT "@A";CHR$(&HA);
END
SETCHR:
LPRINT CHR$(&H1B);"&";
LPRINT CHR$(3);"@";"A";
FOR J=1 TO 2
READ REP
LPRINT CHR$(REP);
FOR I=1 TO REP*3
READ D
LPRINT CHR$(D);
NEXT I
NEXT J
RETURN
DATA 6
DATA &HFF,&H80,&H00
DATA &H80,&H80,&H00
DATA &H80,&H80,&H00
DATA &H80,&H80,&H00
DATA &HFF,&HFF,&HFF
DATA &HFF,&HFF,&HFF
DACT-S2000
DATA &HFF,&HFF,&HFF
DATA &H80,&H07,&HF9
DATA &H80,&HFF,&HF9
DATA &H87,&HFE,&H01
DATA &H9F,&H06,&H01
DATA &HF8,&H06,&H01
DATA &HF8,&H06,&H01
DATA &H9F,&H06,&H01
DATA &H87,&HFE,&H01
DATA &H80,&HFF,&HF9
DATA &H80,&H07,&HF9
DATA &HFF,&HFF,&HFF
[Print Results]
@ A
A
Internal character set
Download character
- 41 -
BD2-2220
CT-S310
ESC & s n m [ a [p] s x a ] m-n+1
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Defining the download characters
[Code]
<1B>H<26>HHHH[HH・・・]m-n+1
[Range]
s=3(Font A, B) s=2(FontC)
32≦n≦m≦127
0≦a≦12(Font A)
0≦a≦9 (Font B)
0≦a≦8 (Font C)
0≦p1・・ps×a≦255
[Outline]
[The specification which is common to the model]
Defines the font of download characters of alphanumeric characters.
• “s” indicates the number of bytes in vertical direction.
• “n” indicates the start character code and “m” the end character code. To define only one
character, set n = m.
• Character codes definable includes 95 ASCII codes in total in the range of <20>H to <7E>H.
• “a” indicates the number of dots to be defined in horizontal direction.
• “p” is the data to be defined, which indicate a pattern equal to “a” dots in horizontal direction from
the left end. The rest of the pattern on the right side is filled with space.
• The number of data to be defined is “s x a”.
• Download characters thus defined remain valid until redefinition, execution of ESC @, GS *, FS q,
GS (A, deletion by ESC ?, or power OFF is performed.
[Caution]
CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX
• Running this command clears the definition of the download bit image.
CT-S2000/CT-S4000
• Running this command doesn't clear the definition of the download bit image.
[Default]
Same as the internal character set.
[See Also]
ESC %、ESC ?
- 42 -
[Example]
12dot
24dot
p1
p4
p34
p2
p5
p35
p3
p6
p36
Font A
MSB
LSB
Create each data bit by setting “1” for a printed dot and “0” for an unprinted dot.
[Sample Program]
Refer to Sample Program and Print Results for ESC %.
- 43 -
ESC - n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying /canceling underline
[Code]
<1B>H<2D>H
[Range]
0≦n≦2、48≦n≦50
[Outline]
[The specification which is common to the model]
Specifying /canceling an underline.
n
0,48
1,49
2,50
BD2-2220
CT-S310
Function
Canceling underline
Setting 1-dot width underline
Setting 2-dot width underline
[Caution]
• An underline is attached to the full character width. It is, however, not attached to the part having
been skipped by horizontal tab (HT) command.
• An underline is not attached to 90°-right-turned characters and white-on-black character.
• Underline can also be specified/canceled by ESC ! but the setting of command last processed is
valid.
• Specifying/canceling by this command is not valid for kanji.
• Underline width is constant in the specified thickness regardless of the character size.
[Default]
n=0
[See Also]
ESC !、FS -
[Sample Program]
LPRINT CHR$(&H1B);"-"; CHR$(0);
LPRINT "AAAAA";
LPRINT CHR$(&H1B);"-"; CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
Underline canceled
AAAAAAAAAA
Underline specified
- 44 -
ESC ? n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Deleting download characters
[Code]
<1B>H<3F>H
[Range]
32≦n≦126
[Outline]
[The specification which is common to the model]
Deletes the downloaded characters of specified code.
[Caution]
• The character “n” indicates the character code used to delete the defined pattern. After the
deletion, characters are printed in the same pattern as the internal characters.
• This command deletes the code-defined pattern of the character font selected by ESC !.
• This command is ignored if the specified character code is undefined.
[See Also]
ESC &、ESC %
- 45 -
ESC E n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying/canceling emphasis printing
[Code]
<1B>H<45>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Specifying/canceling the emphasized characters.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
BD2-2220
CT-S310
Function
Canceling emphasis printing
Specifying emphasis printing
[Caution]
• Emphasis printing can also be specified/canceled by ESC ! but the setting of command last
processed is valid.
• Valid for all character types except HRI characters.
[Default]
n=0
[See Also]
ESC !
[Sample Program]
[Print Results]
LPRINT CHR$(&H1B);"E"; CHR$(0);
LPRINT "AAABBB"; CHR$(&HA);
LPRINT CHR$(&H1B);"E"; CHR$(1);
LPRINT "AAABBB"; CHR$(&HA);
AAABBB
AAABBB
- 46 -
Emphasis canceled
Emphasis specified
ESC G n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying/canceling double strike printing
[Code]
<1B>H<47>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Specifying /canceling the double strike printing.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
BD2-2220
CT-S310
Function
Canceling double strike printing
Specifying double strike printing
[Caution]
• With this printer, double-strike printing and emphasis printing provide completely the same
results.
• Valid for all character types except HRI characters.
[Default]
n=0
[See Also]
ESC E
[Sample Program]
LPRINT CHR$(&H1B);"G"; CHR$(0);
LPRINT "AAABBB"; CHR$(&HA);
LPRINT CHR$(&H1B);"G"; CHR$(1);
LPRINT "AAABBB"; CHR$(&HA);
[Print Results]
AAABBB
AAABBB
- 47 -
Double strike printing canceled
Double strike printing specified
ESC M n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Selection of character fonts
[Code]
<1B>H<4D>H
[Range]
0≦n≦2、48≦n≦50
[Outline]
[The specification which is common to the model]
Selects character fonts.
BD2-2220
CT-S310
[The specification which depend on the model]
CT-S300/CT-S310
n
0,48
1,49
2,50
Function
Selection of font A (12 x 24)
Selection of font B (9 x 17)
Selection of font C (8 x 16)
CT-S280/CT-S2000/CT-S4000/BD2-2220/PMU2XXX
n
0,48
1,49
2,50
Function
Selection of font A (12 x 24)
Selection of font B (9 x 24)
Selection of font C (8 x 16)
[Caution]
• ESC ! can also select fonts, but the setting made by the command that has last been processed
becomes valid.
[Default]
n=0
[See Also]
ESC!
- 48 -
ESC R n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
[Function]
Selecting the international character set
[Code]
<1B>H<52>H
[Range]
CT-S4000
BD2-2220
CT-S280/CT-S300/BD2-2220/PMU2XXX
0≦n≦13
CT-S2000/CT-S4000/CT-S310
0≦n≦15
[Outline]
[The specification which is common to the model]
Depending on the value of “n”, one of the following character sets is specified;
n
0
1
2
3
4
5
6
7
[Default]
Character Set
U.S.A.
France
Germany
U.K.
Denmark I
Sweden
Italy
Spain I
n
8
9
10
11
12
13
14
15
Character Set
Japan
Norway
Denmark II
Spain II
Latin America
Korea
Croatia
China
standard specifications:
n = 0 (Overseas), n = 8 (Domestic)
Hangul specifications:
n=13
Chinese specifications:
CT-S300/CT-S310
n=0
CT-S2000
n=15(CT-S2000)
[See Also]
3.2 “International Character Code Table”
- 49 -
CT-S310
ESC V n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying/canceling 90°-right-turned characters
[Code]
<1B>H<56>H
[Range]
0≦n≦1、48≦n≦49
[Outline]
[The specification which is common to the model]
Specifying/canceling 90°-right-turned characters.
n
BD2-2220
Function
0,48
1,49
Canceling 90°-right-turned characters
Specifying 90°-right-turned characters
[Caution]
• No underlines are attached to 90°-right-turned characters.
• This command does not affect PAGE MODE but setting is maintained.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H1B);"V"; CHR$(0);
LPRINT "AAAAA";
LPRINT CHR$(&H1B);"V"; CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
90° rotation canceled
90° rotation specified
- 50 -
CT-S310
ESC t n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
[Function]
Selecting the character code table
[Code]
<1B>H<74>H
[Range]
0≦n≦9、16≦n≦19、n=26、40、255
[Outline]
[Default]
CT-S4000
BD2-2220
[The specification which is common to the model]
Selecting the character code table.
The character code table is selected based on the value of “n”.
n
Character Code Table
n
Character Code Table
0
1
2
3
4
5
6,18
Codepage PC437
Katakana
Codepage PC850
Codepage PC860
Codepage PC863
Codepage PC865
Codepage PC852
7,17
8
9,16
19
26
40
255
Codepage PC866
Codepage PC857
Windows code
Codepage PC858
Thai code 18
Codepage PC864
Space page (For user setting)
n=0 (Overseas)
n=1 (Domestic)
[Sample Program]
[Print Results]
LPRINT CHR$(&H1B);"t"; CHR$(0);
LPRINT "n=0 ";
FOR C=&HB1 TO &HB5
LPRINT CHR$(C);
NEXT C
LPRINT CHR$(&HA);
LPRINT CHR$(&H1B);"t"; CHR$(1);
LPRINT "n=1 ";
FOR C=&HB1 TO &HB5
LPRINT CHR$(C);
NEXT C
LPRINT CHR$(&HA);
n=0
n=1
- 51 -
アイウエオ
CT-S310
ESC { n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying/canceling the inverted characters
[Code]
<1B>H<7B>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
• “n” is valid only for the lowest bit (n0).
• Rotate data in the line by 180 degrees and print it.
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
BD2-2220
Function
Canceling inverted characters.
Specifying inverted characters.
[Caution]
• This command is valid only when it is specified at the beginning of a line.
• This command does not affect the PAGE MODE.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H1B) ;"{"; CHR$(0);
LPRINT "TEN"; CHR$(&HA);
LPRINT "ELEVEN"; CHR$(&HA);
LPRINT CHR$(&H1B) ;"{"; CHR$(1);
LPRINT "TEN"; CHR$(&HA);
LPRINT "ELEVEN"; CHR$(&HA);
[Print Results]
Inversion canceled
Paper feed direction
Inversion specified
- 52 -
CT-S310
ESC ~ J n (Valid in CBM-270-Compatible Mode)
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifies/cancels printing in red (black-based paper)
[Code]
<1B>H<7E>H<4A>H
[Range]
0≦n≦255
[Outline]
Specifies or cancels printing in red.
• Red printing is valid on black-based thermal paper. Specifies or cancels printing in black on
red-based thermal paper.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
Function
black-based paper
red-based paper
Canceling red printing.
Specifying red printing.
Canceling black printing.
Specifying black printing.
[Caution]
• Valid when 2-color paper is specified by the GS ( E command.
• Valid only when dedicated thermal paper is used.
• This command must not be used for normal thermal paper.
• Conducting pulse amount after cancellation is standard value. At the time of setting, conducting
pulse amount is increased to change the coloring.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H1B);"~";"J"; CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H1B);"~";"J"; CHR$(0);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA
AAAAA
Red printing
Black printing
* When dedicated thermal paper (black-based paper) is used.
- 53 -
ESC ~ J n (Valid in CBM1000-Compatible Mode)
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifies/cancels printing in red (black-based paper)
[Code]
<1B>H<7E>H<4A>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Specifies or cancels printing in red.
• Red printing is valid on black-based thermal paper. Specifies or cancels printing in black on
red-based thermal paper.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
Function
black-based paper
red-based paper
Specifying red printing.
Canceling red printing.
Specifying black printing.
Canceling black printing.
[Caution]
• Valid when 2-color paper is specified by the GS ( E command.
• Valid only when dedicated thermal paper is used.
• This command must not be used for normal thermal paper.
• Conducting pulse amount after cancellation is standard value. At the time of setting, conducting
pulse amount is increased to change the coloring.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H1B);"~";"J"; CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H1B);"~";"J"; CHR$(0);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA
AAAAA
Black printing
Red printing
* When dedicated thermal paper (black-based paper) is used.
- 54 -
DC3 n (Valid in CBM-270-Compatible Mode)
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifies/cancels printing in red (black-based paper)
[Code]
<13>H
[Range]
0≦n≦255
[Outline]
Specifies or cancels printing in red.
• Red printing is valid on black-based thermal paper. Specifies or cancels printing in black on
red-based thermal paper.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
Function
black-based paper
red-based paper
Canceling red printing.
Specifying red printing.
Canceling black printing.
Specifying black printing.
[Caution]
• Valid only at the top of a line.
• Valid only when dedicated thermal paper is used.
• This command must not be used for normal thermal paper.
• Conducting pulse amount after cancellation is standard value. At the time of setting, conducting
pulse amount is increased to change the coloring.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H13); CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H13); CHR$(0);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA
Red printing
AAAAA
Black printing
* When dedicated thermal paper (Black-based paper) is used.
- 55 -
DC3 n (Valid in CBM1000-Compatible Mode)
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifies/cancels printing in red (black-based paper)
[Code]
<13>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Specifies or cancels printing in red.
• Red printing is valid on black-based thermal paper. Specifies or cancels printing in black on
red-based thermal paper.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
Function
black-based paper
red-based paper
Specifying red printing.
Canceling red printing.
Specifying black printing.
Canceling black printing.
[Caution]
• Valid when 2-color paper is specified by the GS ( E command.
• Valid only at the top of a line.
• Valid only when dedicated thermal paper is used.
• This command must not be used for normal thermal paper.
• Conducting pulse amount after cancellation is standard value. At the time of setting, conducting
pulse amount is increased to change the coloring.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H13); CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H13); CHR$(0);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA
AAAAA
Black printing
Red printing
* When dedicated thermal paper (Black-based paper) is used.
- 56 -
GS ! n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying the character size
[Code]
<1D>H<21>H
[Range]
0≦n≦255
Where: 1≤vertical magnification≤8, 1≤horizontal magnification≤8
[Outline]
[The specification which is common to the model]
Specifies the character size (Vertical and horizontal magnification).
Bit
0
1
2
3
4
5
6
7
Function
CT-S310
Value
Hex. Number
Decimal Number
Vertical magnification
specification
Refer to Table 2, “Vertical Magnification”.
Horizontal magnification
specification
Refer to Table 1, “Horizontal Magnification”.
Table 1 Horizontal Magnification
Hex.
Decimal
Magnification
00
10
20
30
40
50
60
70
BD2-2220
0
16
32
48
64
80
96
112
1 x (Standard)
2 x (Double width)
3x
4x
5x
6x
7x
8x
- 57 -
Table 2 Vertical Magnification
Hex.
Decimal
Magnification
00
01
02
03
04
05
06
07
0
1
2
3
4
5
6
7
1 x (Standard)
2 x (Double )
3x
4x
5x
6x
7x
8x
[Caution]
[The specification which is common to the model]
• This command is valid for all characters (alphanumeric, kana, and kanji) except for HRI
characters.
• This command is ignored if either the vertical magnification or horizontal magnification is out of
the defined range.
• In PAGE MODE, the vertical direction means the top-bottom direction of each character. The
horizontal direction means the side-to-side direction of each character. If characters of different
vertical magnification are contained in a line, the baseline of each character is lined up.
• Horizontal and vertical magnification can also be specified/canceled by ESC ! but the setting of
command last processed is valid.
• In STANDARD MODE, the vertical direction is defined as the paper feed direction, and the
horizontal direction is defined as the direction perpendicular to the paper feed.
[The specification which depend on the model]
CT-S280/CT-S300/CT-S2000/CT-S4000/CT-S310
• Setting memory SW 3-7 to ON allows the horizontal and vertical relations to be interchanged
when 90°-right-turnning of character is specified.
[Default]
n=0
[See Also]
ESC !
- 58 -
GS B n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying/canceling the black/white inverted printing
[Code]
<1D>H<42>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
This command specifies or cancels the black/white inverted printing.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
BD2-2220
CT-S310
Function
The black/white inverted printing is canceled.
The black/white inverted printing is specified.
[Caution]
• The black/white inversion works on internal and downloaded characters.
• The black/white inversion works also on the right spacing of characters defined by ESC SP.
• This command does not affect the bit image, downloaded bit image, bar code, HRI characters, or
the skip area specified by HT, ESC $, or ESC \.
• This command does not affect the space between lines.
• Black/white inversion specification takes precedence over underline specification. Underline
printing specified is, therefore, nullified if black/white inversion is specified; the underline setting,
however, remains unchanged.
[Default]
n=0
- 59 -
GS b n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying/canceling the smoothing
[Code]
<1D>H<62>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
This command specifies or cancels the smoothing.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
BD2-2220
CT-S310
Function
The smoothing is canceled.
The smoothing is specified.
[Caution]
• Smoothing is effective to printer’s internal characters, download characters, and non-standard
characters.
• Smoothing is not effective to characters with either of their vertical or horizontal magnification is
x1.
[Default]
n=0
[See Also]
ESC! 、GS !
- 60 -
2.2.4 Print Position Commands
HT
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Horizontal tab
[Code]
<09>H
[Outline]
[The specification which is common to the model]
Shifts the printing position to the next horizontal tab position.
• Ignored when the next horizontal tab position has not been set.
[Caution]
The horizontal tab position is set by ESC D.
[Default]
At the selection of font A, tabs are set every 8 characters (at 9th, 17th, 25th, ...) with right space
amount of a character set at 0 and horizontal enlargement rate of a character set at 1.
[See Also]
ESC D
[Sample Program]
LPRINT "012345678901234567890"; CHR$(&HA);
LPRINT CHR$(&H9);"AAA";
LPRINT CHR$(&H9);"BBB"; CHR$(&HA);
LPRINT CHR$(&H1B);"D";
LPRINT CHR$(3); CHR$(7); CHR$(14); CHR$(0);
LPRINT CHR$(&H9);"AAA";
LPRINT CHR$(&H9);"BBB";
LPRINT CHR$(&H9);"CCC"; CHR$(&HA);
[Printing Result]
012345678901234567890
AAA
BBB
AAA BBB
CCC
Initially set horizontal tab
When set to the 4th, 8th, and 15th columns
- 61 -
ESC $ n1 n2
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifying the absolute positions
[Code]
<1B>H<24>H
[Range]
0≦n1≦255
0≦n2≦255
[Outline]
[The specification which is common to the model]
The printing start position is specified by the absolute position from the left margin with the number
of dots divided by 256 and quotient specified as “n2” and remainder as “n1”. Therefore, the printing
start position is designated as n1+n2×256×basic calculation pitch from the left margin.
[Caution]
• The basic calculation pitch is set by GS P. After the line feed width is set, if the basic calculation by
GS P leaves a fraction, the fraction is corrected with the minimum pitch of the mechanism, and the
remainder is omitted.
• In STANDARD MODE, this command uses the horizontal (Paper feed direction) basic calculation
pitch (x).
• In PAGE MODE, this command acts differently depending on the start point:
(1) If the start point specified by ESC T is top right or bottom left, the command uses the vertical
(Paper feed direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top left or bottom right, the command uses the
horizontal (Perpendicular to the paper feed direction) basic calculation pitch (x). Specification
beyond the end of the line is ignored.
[See Also]
ESC \、GS P、GS \、GS $
[Sample Program]
[Print Results]
LPRINT CHR$(&H1B);"$";
LPRINT CHR$(0); CHR$(0);"A";
LPRINT CHR$(&H1B);"$";
LPRINT CHR$(50); CHR$(0);"B";
LPRINT CHR$(&H1B);"$";
LPRINT CHR$(0); CHR$(1);"C"; CHR$(&HA);
LPRINT CHR$(&H1B);"$";
LPRINT CHR$(100); CHR$(0);"A";
LPRINT CHR$(&H1B);" \";
LPRINT CHR$(&HC2); CHR$(&HFF);"B"; CHR$(&HA);
- 62 -
Absolute position specified
0
50
100
A
A
B
B
256
C
A
-62
Relative position specified
ESC D [n]k NULL
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Setting horizontal tab position
[Code]
<1B>H<44>H[]k<00>H
[Range]
1≦n≦255
0≦k≦32
[Outline]
[The specification which is common to the model]
Specifying a horizontal tab position.
• “n” indicates the number of columns from the beginning to the horizontal tab position. Note,
however, that “n = set position – 1”. For example, to set the position at 9th column, n = 8 is to be
specified.
• “k” denotes the number of horizontal tab positions you want to set.
• The tab position is set at a position where it is “character width ×n” from the beginning of a line.
The character width, at this time, includes the space on the right. In double width characters, it is
made double the ordinary case.
• Tab positions that can be specified are maximum 32. Specifying tab positions exceeding this limit
is ignored.
• k, which denotes a setting position, is input in the increasing order and ends at <00> H.
• ESC D clears all the set tab positions. Following clearing, the horizontal tab command is
ignored.
[Caution]
• When the data, k, is equal to or smaller than its preceding data, k-1, it is assumed that
tab setting is finished. If this is the case, the next data onward will be processed as normal data.
• When the data, k, exceeds a 1-line print area, set the horizontal tab position, as “Set column
position = Maximum print columns + 1”.
• The horizontal tab position does not change even if the character width is altered after setting the
horizontal tab position.
[Default]
At the selection of font A, tabs are set every 8 characters (at 9th, 17th, 25th, ...) with right space
amount of a character set at 0 and horizontal enlargement rate of a character set at 1.
[See Also]
HT
[Sample Program]
Refer to Sample Program and Print Results for HT.
- 63 -
ESC T n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Selecting the character printing direction in PAGE MODE
[Code]
<1B>H<54>H
[Range]
0≦n≦3、48≦n≦51
[Outline]
[The specification which is common to the model]
Selects the direction and start point of character printing in PAGE MODE.
n
Printing Direction
Start Point
0,48
1,49
2,50
3,51
Left to right
Bottom to top
Right to left
Top to bottom
Top left (“A” in the figure)
Bottom left (“B” in the figure)
Bottom right (“C” in the figure)
Top right (“D” in the figure)
D
A
CT-S310
B
Paper feed direction
[Caution]
• When STANDARD MODE is selected, this command only executes the internal flagging of the
printer without affecting the printing in STANDARD MODE.
• The character mapping position will be the start point of the print area specified by ESC W.
• The basic calculation pitch (x or y) used by the following commands varies with the start point.
(1) If the start point is the top left or bottom right (The characters are mapped in the direction
perpendicular to the paper feed),
• Commands using x: ESC SP, ESC S, ESC \
• Commands using y: ESC 3, ESC J, GS $, GS \
(2) If the start point is the top right or bottom left (The characters are mapped in the paper feed
direction),
• Commands using x: ESC 3, ESC J, GS $, GS \
• Commands using y: ESC SP, ESC S, ESC \
[Default]
n=0
[See Also]
Appendix 5.1 “Explanation on PAGE MODE”
ESC $, ESC L, ESC W, ESC \, GS $, GS P, GS \
- 64 -
ESC W xL xH yL yH dxL dxH dyL dyH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Defining the print area in PAGE MODE
[Code]
<1B>H<57>H
[Range]
0≦xL、xH、yL、yH、dxL、dxH、dyL、dyH ≦255
except for dxL = dxH = 0 or dyL = dyH = 0
[Outline]
[The specification which is common to the model]
Defines the location and size of the print area.
• Horizontal start point = [(xL+xH×256)×basic calculation pitch] inches
• Vertical start point = [(yL+yH×256)×basic calculation pitch] inches
• Horizontal length = [(dxL+dxH×256)×basic calculation pitch] inches
• Vertical length = [(dyL+dyH×256)×basic calculation pitch] inches
[Caution]
• When STANDARD MODE is selected, this command only executes the internal flagging of the
printer without affecting the printing in STANDARD MODE.
• If the horizontal start point or vertical start point is out of the printable area, this command is
canceled and the next data is handled as normal data.
• If the horizontal length or vertical length is 0, this command is canceled and the next data is
handled as normal data.
• The character mapping position will be the start point specified by ESC T in the print area.
• If the “horizontal start point + horizontal length” is greater than the horizontal printable area, the
“horizontal printable area – horizontal start point” is taken as the horizontal length.
• If the “vertical start point + vertical length” is greater than the vertical printable area, the “vertical
printable area – vertical start point” is taken as the vertical length.
• The basic calculation pitch is defined by GS P. Once defined, the print area is not changed if the
basic calculation pitch is changed by GS P.
• Fractions resulting from calculations are corrected with the minimum pitch of the mechanism, and
the remainder is omitted.
• The horizontal start point and horizontal length are calculated with the basic calculation pitch (x).
The vertical start point and vertical length are calculated with the basic calculation pitch (y).
• The figure below illustrates the print area, where X = horizontal start point, Y = vertical start point,
Dx = horizontal length, and Dy = vertical length.
Paper
(X、Y)
Dx
Dy
Print
Paper feed direction
(X+Dx-1、Y+Dy-1)
• The printable area is approximately 117 mm (938/203 inches) vertically, and horizontal area
depends on the model. (Refer to the below Table)
- 65 -
[Default]
xL=xH=yL=yH=0
dyL=126、dyH=6
dxL,dyH depends on paper width. (Refer to the below Table)
paper
width
112mm
112mm
83mm
83mm
[See Also]
print width/(dot)
dxL
dxH
104mm/(832)
90mm/(720)
82.5mm/(660)
80mm/(640)
96
208
148
128
3
2
2
2
80mm
72mm/(576)
64
2
80mm
60mm
58mm
58mm
58mm
58mm
64mm/(512)
54.5mm/(436)
54mm/(432)
52.5mm/(420)
48mm/(384)
45mm/(360)
0
180
176
156
128
104
2
1
1
1
1
1
Appendix 5.1 “Explanation on PAGE MODE”
CAN、ESC L、ESC T、GS P
- 66 -
support model
CT-S4000
CT-S4000
CT-S4000
CT-S4000/CT-S2000
CT-S4000/CT-S2000/CT-S300/
BD2-2220/CT-S310/PMU2XXX
CT-S4000/CT-S2000/CT-S300/CT-S310
CT-S2000
CT-S2000/BD2-2220/PMU2XXX
CT-S2000
CT-S2000/CT-S300/CT-S280/CT-S310
CT-S2000/CT-S300/CT-S310
ESC \ nL nH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifying the relative position
[Code]
<1B>H<5C>H
[Range]
0≦nL≦255
0≦nH≦255
[Outline]
[The specification which is common to the model]
This command specifies the next print start position in a relative position with respect to the current
position. The next print start position will be at a point of [(nL+nH×256)×basic calculation pitch]
inches away from the current position.
[Caution]
• Specification of a position outside the print area is ignored.
• If a new position is specified to the right of the current position in the direction of printing, it should
be specified as positive (+). If it is to the left, it should be as negative (–).
• A negative value is the complement of 65536. For example, to move the position by N pitches to
the left, specify it as: nL + nH x 256 = 65536 – N
• Fractions resulting from calculation are corrected with the minimum pitch of the mechanism, and
the remainder is omitted.
• In STANDARD MODE, this command uses the horizontal basic calculation pitch (x).
• In PAGE MODE, this command acts differently depending on the start point:
(1) If the start point specified by ESC T is top left or bottom right, the command specifies the
relative position in the direction perpendicular to the paper feed (The character’s side-to-side
direction), using the horizontal basic calculation pitch (x).
(2) If the start point is top right or bottom left, the command specifies the relative position in the
paper feed direction (The character’s side-to-side direction), using the vertical basic calculation
pitch (y).
[See Also]
ESC $、GS P
[Sample Program]
Refer to Sample Program and Print Results for ESC $.
- 67 -
ESC a n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Aligning the characters
[Code]
<1B>H<61>H
[Range]
0≦n≦2、48≦n≦50
[Outline]
[The specification which is common to the model]
All the printed data within one line are aligned in the specified position.
Depending on the value “n”, positional alignment is carried out as shown in the table below:
n
0,48
1,49
2,50
Position
Left end alignment
Centering
Right end alignment
[Caution]
• This command is valid only when it is inputted at the beginning of a line.
• This command does not affect the PAGE MODE.
• Executes justification in the print area being set.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H1B);"a"; CHR$(0);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H1B);"a"; CHR$(1);
LPRINT "AAAAA"; CHR$(&HA);
LPRINT CHR$(&H1B);"a"; CHR$(2);
LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA
AAAAA
AAAAA
Paper feed direction
Left-justified
Centered
- 68 -
Right-justified
GS $ nL nH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifying the absolute position of character vertical direction in PAGE MODE
[Code]
<1D>H<24>H
[Range]
0≦nL≦255、0≦nH≦255
[Outline]
[The specification which is common to the model]
Specifies the vertical position of character at the start point of data development in PAGE MODE
using absolute position based on the start position. The position of vertical direction of character at
the start position of next data development is the position [(nL+nH×256)×basic calculation pitch]
from the start position.
[Caution]
• This command is ignored except at PAGE MODE selection.
• Absolute position setting exceeding the specified print area is ignored.
• Position in horizontal direction of character at the start position of data development is not shifted.
• Start point used as the reference is set by ESC T.
• The following operation occurs at the start point of ESC T.
(1) When start point is set at “upper left” or “lower right”, the absolute position of paper feed
direction (vertical direction of character) is set. In this case, basic calculation pitch (y) of
vertical direction is used.
(2) When start point is set at “upper right” or “lower left”, the absolute position of vertical
direction of paper feed (vertical direction of character) is set. In this case, basic calculation
pitch (x) of horizontal direction is used.
• Basic calculation pitch is set by GS P.
• When fractional number is caused by the calculation, it is corrected by the minimum pitch of
mechanism and the rest is discarded.
[See Also]
ESC $, ESC T, ESC W, ESC \, GS P, GS \
- 69 -
GS L nL nH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Setting the left margin
[Code]
<1D>H<4C>H
[Range]
0≦nL≦255、0≦nH≦255
[Outline]
[The specification which is common to the model]
This command sets the left margin specified by nL and nH.
The value of the left margin is [(nL + nH x 256) x basic calculation pitch] inches.
CT-S310
Printable area
Left margin
Print area width
[Caution]
• This command only works when it is entered at the beginning of a line.
• When PAGE MODE is selected, this command only executes the internal flagging of the printer.
• The setting of this command does not affect PAGE MODE.
• The maximum settable left margin is equal to the horizontal printable area. A setting greater than
this maximum is trimmed to the maximum.
• The basic calculation pitch is defined by GS P. Once defined, the left margin is not changed if the
basic calculation pitch is changed by GS P.
• The left margin is calculated with the horizontal basic calculation pitch (x) set by GS P. A fraction
resulting from the calculation is corrected with the minimum pitch of the mechanism, and the
remainder is omitted.
• When mapping character data, if the print area specified is not wide enough to accommodate one
character of the current font, only the line for that character data is handled as follows:
(1) The print area is extended toward the right to be equivalent to one character of the current
font, but not wider than the printable area.
(2) If an area for one character cannot be provided as a result of step (1), the print area is
extended toward the left. (So, the left margin is decreased.)
• When mapping non-character data (bit image, downloaded bit image, or bar code), if the print
area specified is narrower than 9-bits, only the line for that data is handled as follows:
(1) The print area is extended toward the left (so, the left margin is decreased) until it is 9-dot
wide, but not wider than the printable area.
[Default]
nL=0、nH=0
[See Also]
GS P、GS W
- 70 -
GS W nL nH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Setting the print area width
[Code]
<1D>H<57>H
[Range]
0≦nL≦255
0≦nH≦255
[Outline]
[The specification which is common to the model]
Sets the print area width specified by nL and nH.
The print area width will be [(nL+nH×256)×basic calculation pitch] inches.
CT-S310
Printable area
Left margin
[Caution]
Print area width
• This command only works when it is entered at the beginning of a line.
• When PAGE MODE is selected, this command only executes the internal flagging of the printer.
• The setting of this command does not affect PAGE MODE.
• If the value entered with this command exceeds the printable area for one line, the entire area
except the left margin is set as the print area width.
• The basic calculation pitches are defined by GS P. Once defined, the print area width is not
changed if the basic calculation pitch is changed by GS P.
• The print area width is calculated with the horizontal basic calculation pitch (x) defined by GS P. A
fraction resulting from the calculation is corrected with the minimum pitch of the mechanism, and
the remainder is omitted.
• If the first character to be mapped at the beginning of a line has a width (including the right
spacing) greater than the print area width, only that line is handled as follows:
(1) The print area is extended toward the right to accommodate the first character, but not wider
than the printable area.
Printable area
A
(1) Extended toward the right
Left margin
Print area width
- 71 -
(2) If a sufficient area cannot be provided as a result of step (1), the print area is extended
toward the left (so, the left margin is decreased).
Printable area
A
Left margin
(2) The left margin is trimmed
(1) Extended
toward the right
Print area width
(3) If a sufficient area cannot be provided as a result of step (2), the right spacing is trimmed.
• When mapping a bit image (or downloaded bit image), if the print area is narrower than the
minimum width of the bit image (two dots for single density, or one dot for double density), only
the line for that image is handled as follows:
(1) The print area is extended toward the left (so, the left margin is decreased) until it is equal to
the minimum width of the image, but not wider than the printable area.
[Default]
[See Also]
paper
width
112mm
112mm
83mm
83mm
print width/(dot)
nL
nH
104mm/(832)
90mm/(720)
82.5/(660)
80mm/(640)
96
208
148
128
3
2
2
2
80mm
72mm/(576)
64
2
80mm
60mm
58mm
58mm
58mm
58mm
64mm/(512)
54.5mm/(436)
54mm/(432)
52.5mm/(420)
48mm/(384)
45mm/(360)
0
180
176
156
128
104
2
1
1
1
1
1
GS L、GS P
- 72 -
support model
CT-S4000
CT-S4000
CT-S4000
CT-S4000/CT-S2000/CT-S300/CT-S310
CT-S4000/CT-S2000/CT-S300/
BD2-2220/CT-S310/PMU2XXX
CT-S4000/CT-S2000/CT-S300/CT-S310
CT-S2000
CT-S2000/BD2-2220/PMU2XXX
CT-S2000
CT-S2000/CT-S300/CT-S280/CT-S310
CT-S2000/CT-S300/CT-S310
GS \ nL nH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifying the relative vertical position of a character in PAGE MODE
[Code]
<1D>H<5C>H
[Range]
0≦nL≦255、0≦nH≦255
[Outline]
[The specification which is common to the model]
This command is used in PAGE MODE to specify the vertical position of a character in the data
mapping start position, in a relative position with respect to the current position. The next data
mapping start position will be at a point [(nL+nH×256)×basic calculation pitch] inches away from
the current position.
[Caution]
• This command is ignored when PAGE MODE is not selected.
• If a new position is specified for a character located beneath the current position, it should be
specified as positive (+). If it is above the current position, it should be negative (–).
• A negative value is the complement of 65536. For example, to move the position by N pitches up,
specify it as: nL + nH x 256 = 65536 – N
• The specification of a relative position outside the specified print area is ignored.
• Depending on the start point specified by ESC T, this command acts as follows:
(1) If the start point is the top left or bottom right, the command specifies the relative position in
the paper feed direction (the character’s top-bottom direction) using the vertical basic
calculation pitch (y).
(2) If the start point is the top right or bottom left, the command specifies the relative position in
the direction perpendicular to the paper feed (the character’s top-bottom direction) using the
horizontal basic calculation pitch (x).
• The basic calculation pitch is set by GS P.
• Fractions resulting from calculations are corrected with the minimum pitch of the mechanism, and
the remainder is omitted.
- 73 -
2.2.5 Line Feed Span Commands
ESC 2
support model
[Function]
[Code]
[Outline]
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
Specifying 1/6-inch line feed rate
<1B>H<32>H
[The specification which is common to the model]
[The specification which depend on the model]
CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX
The line feed rate per line is specified by 1/6 inch.
CT-S2000/CT-S4000
The line feed rate per line is specified by MSW5-2 setting.
[Caution]
[Default]
Line feed rate can be specified respectively for both STANDARD MODE and PAGE MODE.
CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX
Approx. 4.23mm (1/360 inches)
CT-S2000/CT-S4000
(1) When memory switch 5-2 is OFF:
Approx. 4.23mm
(2) When memory switch 5-2 is ON:
Approx. 3.75 mm
- 74 -
ESC 3 n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Setting line feed rate of minimum pitch
[Code]
<1B>H<33>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Sets the line feed width per line to [n×basic calculation pitch] inches.
[Caution]
• The line feed width can be set separately for the STANDARD and PAGE MODES.
• The basic calculation pitch is set by GS P. Once defined, the line feed width is not changed if the
basic calculation pitch is changed by GS P.
• Fractions resulting from calculation are corrected with the minimum pitch of the mechanism, and
the remainder is omitted.
• In STANDARD MODE, this command uses the vertical (paper feed direction) basic calculation pitch
(y).
• In PAGE MODE, this command acts differently depending on the start point:
(1) If the start point specified by ESC T is top left or bottom right, the command uses the vertical
(paper feed direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top right or bottom left, the command uses the
horizontal (perpendicular to the paper feed direction) basic calculation pitch (x).
• The maximum settable line feed width is 1016 mm (40 inches). A setting greater than this
maximum is trimmed to the maximum.
[Default]
CT-S300/CT-S280/BD2-2220/CT-S310/PMU2XXX
Approx. 4.23mm
CT-S2000/CT-S4000
(1) When memory switch 5-2 is OFF:
Approx. 4.23mm
(2) When memory switch 5-2 is ON:
Approx. 3.75 mm
[See Also]
ESC 2、GS P
- 75 -
2.2.6 Bit Image Commands
ESC * m n1 n2 [d] k
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Specifying the bit image mode
[Code]
<1B>H<2A>HH[]k
[Range]
m=0、1、32、33
0≦n1≦255、0≦n2≦2
0≦d≦255
k=n1+256×n2 (m=0、1)、k=(n1+256×n2)×3 (m=32、33)
[Outline]
[The specification which is common to the model]
• According to the number of dots specified in “n1”, “n2”, specify the bit image of mode “m”.
• The number of dots printed is divided by 256, whose quotient is taken as n2 and residual as “n1”.
The total number of dots printed in the horizontal direction is equal to n1+(256×n2).
• When bit image data have been input in excess of dot positions that can be printed on one line,
the excess data are discarded.
• ”d” is bit image data. Bits to be printed are specified as “1” and those not as “0”.
• The bit image modes specified by “m” are shown as follows:
m
Mode
0
1
32
33
8 dot single density
8 dot double density
24 dot single density
24 dot double density
Vertical Direction
Dot Count
Dot Density
8
8
24
24
67dpi
67dpi
203dpi
203dpi
paper
width
112mm
112mm
83mm
83mm
support model
print
width
104mm
90mm
82.5mm
80mm
Horizontal Direction
Maximum
Dot Density
Dot Count
101dpi
203dpi
101dpi
203dpi
(1)
(2)
(3)
(4)
(1)~(4) unit: dpi
(1)
(2)
(3)
(4)
CT-S4000
416
832
416
832
CT-S4000
360
720
360
720
CT-S4000
330
660
330
660
CT-S4000/CT-S2000/CT-S300/CT-S310
320
640
320
640
CT-S4000/CT-S2000/CT-S300/
80mm
72mm 286
576
286
576
BD2-2220/CT-S310/PMU2XXX
CT-S4000/CT-S2000/CT-S300/CT-S310
80mm
64mm 256
512
256
512
CT-S2000
60mm 54.5mm 218
436
218
436
CT-S2000/BD2-2220/PMU2XXX
58mm
54mm 216
432
216
432
CT-S2000
58mm 52.5mm 210
420
210
420
CT-S2000/CT-S300/CT-S280/CT-S310
58mm
48mm 192
384
192
384
CT-S2000/CT-S300/CT-S310
58mm
45mm 180
360
180
360
[Caution]
• When the value of “m” is out of the above range, the data following after “n1” is processed as
normal printing data.
• After completion of bit image printing, the printer returns to normal data processing mode.
- 76 -
GS * n1 n2 [d] n1xn2x8
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Defining the download bit image
[Code]
<1D>H<2A>H[]n1×n2×8
[Range]
1≦n1≦255
1≦n2≦48
n1×n2≦1536
[Outline]
[The specification which is common to the model]
• Defines download bit images of the number of dots specified by “n1” and “n2”.
• The numbers of dots are n1×8 in horizontal direction and n2×8 in vertical direction.
• ”d” indicates bit image data.
• Once defined, the download bit image remains effective until it is redefined, ESC @, ESC &, GS (A,
or FS q, is executed, or power is turned OFF.
[Caution]
[The specification which is common to the model]
• Relations between the bit image data and the dots defined are shown below.
[The specification which depend on the model]
CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX
• With this command executed, the defined content of a downloaded character is cleared.
CT-S2000/CT-S4000
• With this command executed, the defined content of a downloaded character is not cleared.
[See Also]
GS /
n1×8 dots
d1
dn2+1
MSB
dn2×2+1
d2
dn2+2
dn2×2+2
n2×8 dots
LSB
dn2
dn2×2
dn2×n2×8
- 77 -
GS / m
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Printing the downloaded bit image
[Code]
<1D>H<2F>H
[Range]
0≦m≦3、48≦m≦51
[Caution]
[The specification which is common to the model]
Prints downloaded bit image in a mode specified by “m”.
Modes that can be selected by “m” are shown below.
m
Mode Name
0,48
1,49
2,50
3,51
NORMAL MODE
DOUBLE WIDTH MODE
DOUBLE HEIGHT MODE
QUADRUPLE SIZE MODE
Dot Density in
Vertical Direction
203DPI
203DPI
101DPI
101DPI
BD2-2220
Dot Density in
Horizontal Direction
203DPI
101DPI
203DPI
101DPI
[Caution]
• When a downloaded bit image has not been defined, this command is ignored.
• When data exist in the print buffer, this command is ignored.
• A portion of a downloaded bit image exceeding one line length is not printed.
[See Also]
ESC &、GS *
- 78 -
CT-S310
GS v 0 m xL xH yL yH d1 ... dk
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Printing of raster bit image
[Code]
<1D>H<76>H<30>H〔〕k
[Range]
0≦m≦3、48≦m≦51、0≦xL≦255、0≦xH≦255、
0≦yL≦255、0≦yH≦8、0≦d≦255、
k=(xL+xH×256)×(yL+yH×256) ,however,k≠0
[Outline]
[The specification which is common to the model]
Prints raster bit images in mode “m”.
m
Mode Name
0,48
1,49
2,50
3,51
NORMAL MODE
DOUBLE WIDTH MODE
DOUBLE HEIGHT MODE
QUADRUPLE SIZE MODE
Dot Density in
Vertical Direction
203dpi
203dpi
101dpi
101dpi
BD2-2220
CT-S310
Dot Density in
Horizontal Direction
203dpi
101dpi
203dpi
101dpi
• xL, xH specify the number of data in horizontal direction of the bit image to (xL+xH×256) bytes.
• yL, yH specify the number of data in vertical direction of the bit image to (yL+yH×256) bytes.
[Caution]
[The specification which is common to the model]
• Any of the print modes (character size, emphasis, double strike, inverting, underlining,
back-to-white reversing, etc.) does not affect the raster bit image.
• If the print area specified by GS L and GS W is narrower than a minimum width, the print area for
that line only is extended to the minimum width. The minimum width is one dot in NORMAL
MODE (m = 0, 48) and DOUBLE HEIGHT MODE (m = 2, 50), and 2 dots in DOUBLE WIDTH
MODE (m = 1, 49) and QUADRUPLE SIZE MODE(m = 3, 51).
• Any part of data that is out of the print area is only read and discarded in units of dot.
• The print start position can arbitrarily be specified with HT (horizontal tab), ESC $ (specifying
absolute position), ESC \ (specifying relative positions), and GS L (setting left margins). Note that
if the print start position is not a multiple of 8, the printing speed may decrease.
• The setting of ESC a (aligning characters) are also valid for the raster bit image.
• If this command is executed during macro definition, the macro definition is suspended, and the
processing of the command starts. The macro is left undefined.
• “d” denotes defined data. Dots to be printed are specified as “1”, and those not to be printed as
“0”.
[The specification which depend on the model]
CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX
• Valid only when no print data is present in the print buffer at the selection of STANDARD
MODE.
CT-S2000/CT-S4000
• Valid only when no print data is present in the print buffer (at the top of a line).
- 79 -
[Example]
When xL + xH x 256 = 64
( xL+xH×256 )×8 dots = 512 dots
ド ト
ド ト
1
2
3
62
63
64
65
67
68
126
127
128
K-2
K-1
K
7
MSB
6
5
4
3
2
1
0
LSB
- 80 -
yL+yH×256 dots
2.2.7 Status Commands
DLE EOT n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Sending status in real-time
[Code]
<10>H<04>H
[Range]
1≦n≦4
[Outline]
[The specification which is common to the model]
Sends in real-time the status specified by “n”.
n
Status
1
2
3
4
[Caution]
BD2-2220
CT-S310
Printer status
Status caused by an offline condition
Status caused by an error
Continuous paper detector status
• Each status represents the current status. It is 1 byte data.
• The status is transferred without checking whether the host is ready to receive or busy.
• This command is executed even if the printer is in offline state, receive-buffer full state, or error
state.
• This command is dealt with when it is received.
• With serial interface specifications, this command is executed in offline state, receiving buffer full
state, and error state.
• With parallel interface specifications, this command cannot be executed while the printer is in Busy
state.
When memory SW1-3 is ON, the printer does not enter Busy state in the offline state and error
state.
• If ASB (Automatic Status Back) is enabled by GS a, it is necessary to discriminate between the
status due to ASB and the status due to this command
• This command can be executed even if printer setting by ESC = is invalid.
• If another data string of <10>H<04>H (1 n 4) is received, the printer acts the same way as
with this command. Therefore, the user should be reminded of this fact.
[Example 1]
Suppose a command “ESC * m nL nH [d1 ... dk]”, where d1 = <10>H, d2 = <04>H, d3 = <01>H.
• The DLE EOT n command cannot be interleaved into the code string of another command
consisting of 2 bytes or more.
[Example 2]
If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n,
the printer handles the ESC 3 as ESC 3 <10>H. Thus, the user should be cautious.
[See Also]
Appendix 5.3 “Identification of Send Status”
DLE ENQ、ESC c 4、GS a、GS r
- 81 -
CT-S280
(1) Printer status (When n = 1 is specified)
Bit
0
1
2
3
4
5
6
7
Status
Fixed
Fixed
Fixed
Online status
Offline status
Fixed
Not waiting online recovery
Waiting online recovery
FEED switch is not pressed
FEED switch is pressed
Fixed
(3) Status caused by an error (when n = 3 is specified)
Hex.
Decimal
00
02
04
00
08
10
00
20
00
40
00
0
2
4
0
8
16
0
32
0
64
0
Bit
0
1
2
3
4
5
6
7
Status
Fixed
Fixed
Fixed
Fixed
Fixed
Unrecoverable error not occurred
Unrecoverable error occurred
Auto recovery error not occurred
Auto recovery error occurred
Fixed
Hex.
00
02
00
00
10
00
20
00
40
00
Decimal
0
2
0
0
16
0
32
0
64
0
Bit 6: If a head overheat error is detected, the printing is stopped until the
head temperature falls. At this time, bit 6 = 1.
(2) Status caused by an offline condition (When n = 2 is specified)
Bit
Status
Hex.
Decimal
0
1
Unused
Unused
Cover closed
Cover open
Not in paper feed state triggered by FEED
switch
In paper feed state triggered by FEED switch
Unused
Printing is not stopped because of “paper out”
state
Printing is stopped because of “paper out” state
Error not occurred
Error occurred
Unused
00
02
00
04
0
2
0
4
00
0
08
10
8
16
00
0
20
00
40
00
32
0
64
0
2
3
4
5
6
7
(4) Continuous paper detector status (When n = 4 is specified)
Bit
0
1
2
3
4
5
6
7
Bit 5: Printing is stopped if the Paper-end detector detects a “paper out”
state, or if the printer is out of paper when the Paper Near-end
Sensor is enabled by ESC c 4. At this time, bit 5 = 1.
- 82 -
Status
Fixed
Fixed
Paper
Paper
Paper
Paper
Fixed
Paper
Paper
Paper
Paper
Fixed
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
Hex.
Decimal
00
02
00
04
00
08
10
00
60
00
40
00
0
02
0
4
0
8
16
0
96
0
64
0
CT-S300/CT-S310
(1) Printer status (When n = 1 is specified)
(3) Status caused by an error (when n = 3 is specified)
Bit
Status
Hex.
Decimal
Bit
0
1
Fixed
Fixed
Status of pin 3 of drawer kick-out connector = L
Status of pin 3 of drawer kick-out connector = H
Online status
Offline status
Fixed
Not waiting online recovery
Waiting online recovery
FEED switch is not pressed
FEED switch is pressed
Fixed
00
02
00
04
00
08
10
00
20
00
40
00
0
2
0
4
0
8
16
0
32
0
64
0
0
1
2
3
4
5
6
7
2
3
4
5
6
7
Bit 3:
(2) Status caused by an offline condition (When n = 2 is specified)
Bit
0
1
2
3
4
5
6
7
Status
Unused
Unused
Cover closed
Cover open
Not in paper feed state triggered by FEED
switch
In paper feed state triggered by FEED switch
Unused
Printing is not stopped because of “paper out”
state
Printing is stopped because of “paper out” state
Error not occurred
Error occurred
Unused
Hex.
00
02
00
04
Decimal
0
2
0
4
00
0
08
10
8
16
00
0
20
00
40
00
32
0
64
0
Bit 6:
Status
Hex.
Decimal
Fixed
00
0
Fixed
02
2
No B.M detection error occurred
00
0
(only when B.M paper is selected)
A B.M detection error occurred
04
4
(only when B.M paper is selected)
Auto cutter error not occurred
00
0
Auto cutter error occurred
08
8
Fixed
10
16
Unrecoverable error not occurred
00
0
Unrecoverable error occurred
20
32
Auto recovery error not occurred
00
0
Auto recovery error occurred
40
64
Fixed
00
0
If this error occurred because of a paper jam, for example, remove
the cause of the error, and then DLE ENQ n (1 n 2) can be used to
recover from the error. However, it is not possible to recover from
any error due to a circuit problem (e.g., broken wire).
If a head overheat error is detected, the printing is stopped until the
head temperature falls. At this time, bit 6 = 1.
(4) Continuous paper detector status (When n = 4 is specified)
Bit
0
1
2
3
4
Bit 5: Printing is stopped if the Paper-end detector detects a “paper out”
state, or if the printer is out of paper when the Paper Near-end
Sensor is enabled by ESC c 4. At this time, bit 5 = 1.
5
6
7
- 83 -
Status
Fixed
Fixed
Paper
Paper
Paper
Paper
Fixed
Paper
Paper
Paper
Paper
Fixed
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
Hex.
Decimal
00
02
00
04
00
08
10
00
60
00
40
00
0
02
0
4
0
8
16
0
96
0
64
0
CT-S2000
(1) Printer status (When n = 1 is specified)
(3) Status caused by an error (when n = 3 is specified)
Bit
Status
Hex.
Decimal
0
1
Fixed
Fixed
Status of pin 3 of drawer kick-out connector = L
Status of pin 3 of drawer kick-out connector = H
Online status
Offline status
Fixed
Not waiting online recovery
Waiting online recovery
FEED switch is not pressed
FEED switch is pressed
Fixed
00
02
00
04
00
08
10
00
20
00
40
00
0
2
0
4
0
8
16
0
32
0
64
0
2
3
4
5
6
7
Bit
0
1
2
3
4
5
6
7
(2) Status caused by an offline condition (When n = 2 is specified)
Bit
0
1
2
3
4
5
6
7
Status
Unused
Unused
Cover closed
Cover open
Not in paper feed state triggered by FEED
switch
In paper feed state triggered by FEED switch
Unused
Printing is not stopped because of “paper out”
state
Printing is stopped because of “paper out” state
Error not occurred
Error occurred
Unused
Hex.
00
02
00
04
Decimal
0
2
0
4
00
0
08
10
8
16
00
0
20
00
40
00
32
0
64
0
Status
Fixed
Fixed
No B.M detection error occurred
(only when B.M paper is selected)
A B.M detection error occurred
(only when B.M paper is selected)
Auto cutter error not occurred
Auto cutter error occurred
Fixed
Unrecoverable error not occurred
Unrecoverable error occurred
Auto recovery error not occurred
Auto recovery error occurred
Fixed
Hex.
00
02
Decimal
0
2
00
0
04
4
00
08
10
00
20
00
40
00
0
8
16
0
32
0
64
0
Bit 3: If this error occurred because of a paper jam, for example, remove
the cause of the error, and then DLE ENQ n (1 n 2) can be used to
recover from the error. However, it is not possible to recover from
any error due to a circuit problem (e.g., broken wire).
Bit 6: If a head overheat error is detected, the printing is stopped until the
head temperature falls. At this time, bit 6 = 1.
(4) Continuous paper detector status (When n = 4 is specified)
Bit
0
1
2
3
4
Bit 5: Printing is stopped if the Paper-end detector detects a “paper out”
state, or if the printer is out of paper when the Paper Near-end
Sensor is enabled by ESC c 4. At this time, bit 5 = 1.
5
6
7
- 84 -
Status
Fixed
Fixed
Paper
Paper
Paper
Paper
Fixed
Paper
Paper
Paper
Paper
Fixed
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
Hex.
00
02
00
04
00
08
10
00
60
00
40
00
Decimal
0
02
0
4
0
8
16
0
96
0
64
0
CT-S4000
(1) Printer status (When n = 1 is specified)
(3) Status caused by an error (when n = 3 is specified)
Bit
Status
Hex.
Decimal
0
1
Fixed
Fixed
Status of pin 3 of drawer kick-out connector = L
Status of pin 3 of drawer kick-out connector = H
Online status
Offline status
Fixed
Not waiting online recovery
Waiting online recovery
FEED switch is not pressed
FEED switch is pressed
Fixed
00
02
00
04
00
08
10
00
20
00
40
00
0
2
0
4
0
8
16
0
32
0
64
0
2
3
4
5
6
7
Bit
0
1
2
3
4
5
6
7
(2) Status caused by an offline condition (When n = 2 is specified)
Bit
0
1
2
3
4
5
6
7
Status
Unused
Unused
Cover closed
Cover open
Not in paper feed state triggered by FEED
switch
In paper feed state triggered by FEED switch
Unused
Printing is not stopped because of “paper out”
state
Printing is stopped because of “paper out” state
Error not occurred
Error occurred
Unused
Hex.
00
02
00
04
Decimal
0
2
0
4
00
0
08
10
8
16
00
0
20
00
40
00
32
0
64
0
Status
Fixed
Fixed
No B.M detection error occurred
(only when B.M paper is selected)
A B.M detection error occurred
(only when B.M paper is selected)
Auto cutter error not occurred
Auto cutter error occurred
Fixed
Unrecoverable error not occurred
Unrecoverable error occurred
Auto recovery error not occurred
Auto recovery error occurred
Fixed
Hex.
00
02
Decimal
0
2
00
0
04
4
00
08
10
00
20
00
40
00
0
8
16
0
32
0
64
0
Bit 3: If this error occurred because of a paper jam, for example, remove
the cause of the error, and then DLE ENQ n (1 n 2) can be used to
recover from the error. However, it is not possible to recover from
any error due to a circuit problem (e.g., broken wire).
Bit 6: If a head overheat error is detected, the printing is stopped until the
head temperature falls. At this time, bit 6 = 1.
(4) Continuous paper detector status (When n = 4 is specified)
Bit
0
1
2
3
4
Bit 5: Printing is stopped if the Paper-end detector detects a “paper out”
state, or if the printer is out of paper when the Paper Near-end
Sensor is enabled by ESC c 4. At this time, bit 5 = 1.
5
6
7
- 85 -
Status
Fixed
Fixed
Paper
Paper
Paper
Paper
Fixed
Paper
Paper
Paper
Paper
Fixed
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
Hex.
00
02
00
04
00
08
10
00
60
00
40
00
Decimal
0
02
0
4
0
8
16
0
96
0
64
0
BD2-2220
(1) Printer status (When n = 1 is specified)
Bit
0
1
2
3
4
5
6
7
Status
Fixed
Fixed
Fixed
Online status
Offline status
Fixed
Not waiting online recovery
Waiting online recovery
LF-SW signal is High-Level
LF-SW signal is Low-Level
Fixed
(3) Status caused by an error (when n = 3 is specified)
Hex.
Decimal
00
02
04
00
08
10
00
20
00
40
00
0
2
4
0
8
16
0
32
0
64
0
Bit
0
1
2
3
4
5
6
7
Bit
Status
Hex.
Decimal
0
1
Unused
Unused
Head-down
Head-up
Not in paper feed state triggered by LF-SW
signal
In paper feed state triggered by LF-SW signal
Unused
Printing is not stopped because of “paper out”
state
Printing is stopped because of “paper out” state
Error not occurred
Error occurred
Unused
00
02
00
04
0
2
0
4
00
0
08
10
8
16
0
1
00
0
2
20
00
40
00
32
0
64
0
3
4
5
6
7
Fixed
Fixed
Fixed
Auto cutter error not occurred
Auto cutter error occurred
Fixed
Unrecoverable error not occurred
Unrecoverable error occurred
Auto recovery error not occurred
Auto recovery error occurred
Fixed
Hex.
00
02
00
00
08
10
00
20
00
40
00
Decimal
0
2
0
0
8
16
0
32
0
64
0
Bit 3: If this error occurred because of a paper jam, for example, remove the
cause of the error, and then DLE ENQ n (1 n 2) can be used to
recover from the error. However, it is not possible to recover from
any error due to a circuit problem (e.g., broken wire).
Bit 6: If a head overheat error is detected, the printing is stopped until the
head temperature falls. At this time, bit 6 = 1.
(2) Status caused by an offline condition (When n = 2 is specified)
2
Status
(4) Continuous paper detector status (When n = 4 is specified)
Bit
3
4
5
Bit 5: Printing is stopped if the Paper-end detector detects a “paper out”
state, or if the printer is out of paper when the Paper Near-end
Sensor is enabled by ESC c 4. At this time, bit 5 = 1.
6
7
- 86 -
Status
Fixed
Fixed
Paper
Paper
Paper
Paper
Fixed
Paper
Paper
Paper
Paper
Fixed
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
Hex.
Decimal
00
02
00
04
00
08
10
00
60
00
40
00
0
02
0
4
0
8
16
0
96
0
64
0
PMU2XXX
(1) Printer status (When n = 1 is specified)
Bit
0
1
2
3
4
5
6
7
Status
Fixed
Fixed
Fixed
Online status
Offline status
Fixed
Not waiting online recovery
Waiting online recovery
LF-SW signal is High-Level
LF-SW signal is Low-Level
Fixed
(3) Status caused by an error (when n = 3 is specified)
Hex.
Decimal
Bit
00
02
04
00
08
10
00
20
00
40
00
0
2
4
0
8
16
0
32
0
64
0
0
1
2
3
4
5
6
(2) Status caused by an offline condition (When n = 2 is specified)
Bit
Status
Hex.
Decimal
0
1
Unused
Unused
Head-down
Head-up
Not in paper feed state triggered by LF-SW
signal
In paper feed state triggered by LF-SW signal
Unused
Printing is not stopped because of “paper out”
state
Printing is stopped because of “paper out” state
Error not occurred
Error occurred
Unused
00
02
00
04
0
2
0
4
00
0
08
10
8
16
00
0
20
00
40
00
32
0
64
0
2
3
4
5
6
7
7
Status
Hex.
Decimal
00
02
0
2
00
0
04
4
00
08
10
00
20
00
40
00
0
8
16
0
32
0
64
0
Fixed
Fixed
No B.M detection error occurred
(only when B.M paper is selected)
A B.M detection error occurred
(only when B.M paper is selected)
Auto cutter error not occurred
Auto cutter error occurred
Fixed
Unrecoverable error not occurred
Unrecoverable error occurred
Auto recovery error not occurred
Auto recovery error occurred
Fixed
Bit 3: If this error occurred because of a paper jam, for example, remove the
cause of the error, and then DLE ENQ n (1 n 2) can be used to
recover from the error. However, it is not possible to recover from
any error due to a circuit problem (e.g., broken wire).
Bit 6: If a head overheat error is detected, the printing is stopped until the
head temperature falls. At this time, bit 6 = 1.
(4) Continuous paper detector status (When n = 4 is specified)
Bit
0
1
2
3
Bit 5: Printing is stopped if the Paper-end detector detects a “paper out”
state, or if the printer is out of paper when the Paper Near-end
Sensor is enabled by ESC c 4. At this time, bit 5 = 1.
4
5
6
7
- 87 -
Status
Fixed
Fixed
Paper
Paper
Paper
Paper
Fixed
Paper
Paper
Paper
Paper
Fixed
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper Near-end Sensor
not found by Paper Near-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
found by Paper-end Sensor
not found by Paper-end Sensor
Hex.
Decimal
00
02
00
04
00
08
10
00
60
00
40
00
0
02
0
4
0
8
16
0
96
0
64
0
ESC u n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Sending the peripheral device status
[Code]
<1B>H<75>H
[Outline]
[The specification which is common to the model]
Send the current drawer kick connector pin#3 status.
• n has the type shown in the table below:
[Caution]
n
Connector Pin
0
Drawer kick connector pin#3
BD2-2220
CT-S310
• Status to be sent uses 1 byte that has the value listed in the table below.
• DTR/DSR control sends 1 byte only after checking that host is ready to receive (DSR signal: space
status). For XON/XOFF control, 1 byte is sent without checking DSR signal status.
• For DTR/DSR, if host is not ready to receive (DSR signal: mark status), it waits for ready condition
to receive.
• Paper-end status causes BUSY status, thus this command may be in the receive-not-ready status.
• This command is valid only when MSW3-7 is set to ON.
Bit
Function
0
1
2
3
4
5
6
7
Pin #3 level
Undefined
Undefined
Undefined
Unused
Undefined
Undefined
Undefined
Value
0
1
‘L’
――
――
――
0: Fixed
――
――
――
‘H’
――
――
――
――
――
――
――
[Sample Program]
OPEN "COM1:N81NN" AS #1
→ OPEN statement depends on types of BASIC.
PRINT #1,CHR$(&H1B);"u";CHR$(0)
A$ = INPUT$(1, #1)
CLOSE #1
- 88 -
ESC v
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Transmission of printer status
[Code]
<1D>H<76>H
[Outline]
[The specification which is common to the model]
Transmits current printer status.
[Caution]
• Status is transmitted in 1byte with the content shown in the following table.
• In case of DTR/DSR control, only 1byte is transmitted after making sure the host is ready for
reception (DSR signal is in the Space state). In case of XON/XOFF control, only 1byte is
transmitted without checking the status of DSR signal.
• In case of DTR/DSR, if the host is not ready for reception (DSR signal in Mark state, wait till
reception is available.
• Paper-end status causes BUSY status, thus this command may be in the receive-not-ready status.
• This command is valid only when MSW3-7 is set to ON.
Bit
0
1
2
3
4
5
6
7
Position
Paper Near-end
Undefined
Paper-end
Undefined
Unused
Undefined
Undefined
Undefined
Value
0
1
With paper
――
With paper
――
Fixed
――
――
――
No paper
――
No paper
――
――
――
――
――
Bit 2: In case of Paper End, as this printer goes offline, this command is not
executed. Therefore, status "No Paper (04H)" is never transmitted.
[Sample Program]
OPEN "COM1:N81NN" AS #1
PRINT #1, CHR$(&H1B);"v";
A$ = INPUT$(1, #1)
CLOSE #1
→ OPEN statement varies with the type of BASIC.
- 89 -
GS a n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Enabling/disabling ASB (Automatic Status Back)
[Code]
<1D>H<61>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
This command selects the status item to be addressed by ASB (Automatic Status Back.)
Bit
0
1
2
3
4
5
6
7
[Caution]
Status Item Addressed by ASB
Status of pin 3 of drawer kick-out connector = Disabled
Status of pin 3 of drawer kick-out connector = Enabled
Online/offline status = Disabled
Online/offline status = Enabled
Error status = Disabled
Error status = Enabled
Continuous Paper Sensor = Disabled
Continuous Paper Sensor = Enabled
Undefined
Undefined
Undefined
Undefined
Hex.
Decimal
00
01
00
02
00
04
00
08
-
-
-
-
0
1
0
2
0
4
0
8
-
-
-
-
[The specification which is common to the model]
• If any status item is enabled, the status is sent to the host when this command is executed. After
that time on, the status is sent each time an enabled status item changes. Because each status
item represents the current condition, status items disabled for ASB may also have changed.
• The ASB function is disabled if all status items are disabled.
• If the ASB function is enabled by default, the host receives the status the first time the printer gets
ready for communication after it is turned on.
• The printer sends 4 bytes of status shown in the tables below, without checking whether the host
is ready to receive or busy. The 4 bytes of status is a continuous string except for XOFF code.
• Because this command is executed when data is mapped in the receive buffer, there may be a
delay between command receiving and status sending depending on the condition of the receive
buffer.
• Even if the printer is excluded from the selection of peripheral equipment ESC =, the 4 bytes of
status is sent to the host whenever status changes.
• When DLE EOT, GS I, or GS r is used, the host must discriminate between the status specified by
these commands and the status due to ASB.
[The specification which depend on the model]
CT-S280/BD2-2220/PMU2XXX
• Bit 2 of the first byte (printer information) of the status sent in 4 bytes is set to 00h
because drawer is not supported.
- 90 -
(1) 1st byte (Printer information)
Bit
0
1
2
3
4
5
6
7
Status
Unused
Unused
Status of pin 3 of drawer kick-out connector = “L”
Status of pin 3 of drawer kick-out connector = “H”
Online status
Offline status
Unused
Cover closed
Cover open
Not in paper feed state triggered by FEED switch
In paper feed state triggered by FEED switch
Unused
(2) 2nd byte (Error occurrence information)
Bit
Status
Hex.
Decimal
00
00
00
04
00
08
01
00
20
00
40
00
0
0
0
4
0
8
16
0
32
0
64
0
Hex.
Decimal
0
1
-
-
Undefined
-
-
Undefined
No Mechanism error and B.M detection error occurred.
00
0
(only when B.M paper is selected)
2
A Mechanism error or B.M detection error occurred.
04
4
(only when B.M paper is selected)
Auto cutter error not occurred
00
0
3
Auto cutter error occurred
08
8
4
Unused
00
0
Unrecoverable error not occurred
00
0
5
Unrecoverable error occurred
20
32
Auto recovery error not occurred
00
0
6
Auto recovery error occurred
40
64
7
Unused
00
0
*Bit 2: It usually occurs by a cover open error (when printer is printing).
In the case of a model for BM/ label, it occurs at the time of a BM/ label detection error.
(3) 3rd byte (Paper Sensor information)
Bit
Status
0,1
2,3
4
5
6
7
Paper found by Paper Near-end Sensor
Paper not found by Paper Near-end Sensor
Paper found by Paper-end Sensor
Paper not found by Paper-end Sensor
Unused
Undefined
Undefined
Unused
- 91 -
Hex.
Decimal
00
03
00
0C
00
-
-
00
0
3
0
12
0
-
-
0
(4) 4th byte (Paper Sensor information)
In case of MSW3-7 ON
Bit
Status
0
1
2
3
4
5
6
7
Undefined
Undefined
Undefined
Undefined
Unused
Undefined
Undefined
Unused
In case of MSW3-7 OFF (CBM1000 non-compatible mode)
Bit
Status
0
1
2
3
4
5
6
7
Reserved
Reserved
Reserved
Reserved
Fixed
Reserved
Reserved
Fixed
[Default]
When MSW 1-3 OFF: n = 0
When MSW 1-3 ON: n = 2
[See Also]
DLE EOT、GS r
- 92 -
Hex.
Decimal
-
-
-
-
00
-
-
00
-
-
-
-
0
-
-
0
Hex.
Decimal
01
02
04
08
00
00
00
00
1
2
4
8
0
00
00
0
GS r n
CT-S280
PMU2XXX
support model
[Function]
Sending status
[Code]
<1D>H<72>H
[Range]
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
CT-S280/BD2-2220/PMU2XXX
n=1、49
CT-S300/CT-S2000/CT-S4000/CT-S310
1≦n≦2、49≦n≦50
[Outline]
[The specification which is common to the model]
Sends the specified status to the host.
n
1,49
2,50
[Caution]
Function
Sends the Paper Sensor status.
Sends the Drawer Kick-out Connector status.
[The specification which is common to the model]
• When the serial interface is used:
For DTR/DSR control:
The printer sends the status after verifying that the host is ready to receive. If the host is not
ready to receive, the printer waits for the host to become ready to receive.
For XON/XOFF control:
The printer sends the status without checking whether the host is ready to receive or busy.
• Because this command is executed when data is mapped in the receive buffer, there may be a
delay between receiving the command and sending the status depending on the condition of the
receive buffer.
• If ASB (Automatic Status Back) is enabled by GS a, the host must discriminate between the status
due to this command and the status due to ASB.
• Whenever the Paper-end Sensor detects a “paper out” state, the printer goes offline, and the
command is not executed. Therefore, the printer never sends a status “No paper in Paper-end
detector (0CH)”.
[The specification which depend on the model]
CT-S280/BD2-2220/ PMU2XXX
• At the setting of MSW3-7 OFF, paper sensor status is fixed to 00h.
- 93 -
• Paper Sensor status (n = 1, 49)
Bit
0,1
2,3
Status
Decimal
Paper found by Paper Near-end Sensor
00
0
Paper not found by Paper Near-end Sensor
03
3
Paper found by Paper-end Sensor
00
0
(0C)
(12)
4
Paper not found by Paper-end Sensor
Unused
00
0
5
Undefined
-
-
6
Undefined
-
-
7
Unused
00
0
Hex.
Decimal
00
01
―
―
―
00
―
―
00
0
1
―
―
―
0
―
―
0
• Drawer kick-out connector status (n = 2, 50)
Bit
Status
0
1
2
3
4
5
6
7
[See Also]
Hex.
Status of pin 3 of drawer kick connector = “L”
Status of pin 3 of drawer kick connector = “H”
Undefined
Undefined
Undefined
Unused
Undefined
Undefined
Unused
Appendix 5.3 “Identification of Send Status”
DLE EOT、GS a
- 94 -
2.2.8 Paper Detecting Commands
ESC c 3 n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Selecting the Paper Sensor valid for a Paper-end signal output
[Code]
<1B>H<63>H<33>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
This command selects by which Paper Sensor a Paper-end signal should be output. Each bit for “n”
has the following meaning:
Bit
0
1
2
3
4
5
6
7
Value
Position
Paper Near-end
Paper Near-end
Paper-end
Paper-end
Undefined
Undefined
Undefined
Undefined
0
1
Disabled
Disabled
Disabled
Disabled
—
—
—
—
Enabled
Enabled
Enabled
Enabled
—
—
—
—
[Caution]
This command is valid only for the parallel interface.
[Default]
n=15
- 95 -
ESC c 4 n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Selecting the Paper Near-end Sensor valid for print stop
[Code]
<1B>H<63>H<34>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
This command selects the Paper Near-end Sensor which helps to stop printing when the paper
supply almost runs out.
Each bit for “n” has the following meaning:
Bit
0
1
2
3
4
5
6
7
Position
Paper Near-end
Paper Near-end
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
Value
0
1
Disabled
Disabled
――
――
――
――
――
――
Enabled
Enabled
――
――
――
――
――
――
[Caution]
This printer can only select one kind of Paper Sensor, a Paper Near-end Sensor.
[Default]
n=0
- 96 -
2.2.9 Panel Switch Commands
ESC c 5 n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Enabling/disabling the panel switches
[Code]
<1B>H<63>H<35>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Enabling/disabling the FEED switch.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
BD2-2220
CT-S310
Condition
FEED switch (LF-SW signal) valid
FEED switch (LF-SW signal) invalid
[Caution]
• When the FEED switch is disabled with this command, the paper cannot be fed by operating the
FEED switch.
• While switch operation is waited at the execution of macro, the FEED switch is always enabled
regardless of the setting of this command but no paper feed operation is carried out.
[Default]
n=0
[Sample Program]
LPRINT CHR$(&H1B);"c5";CHR$(0); ・・・・・ When enabling the FEED switch
LPRINT CHR$(&H1B);"c5";CHR$(1); ・・・・・ When disabling the FEED switch
- 97 -
2.2.10 Macro Commands
GS :
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Starting/ending macro definition
[Code]
<1D>H<3A>H
[Outline]
[The specification which is common to the model]
Specifying starting/ending macro definition.
Reception of this command during macro definition signifies ending the macro definition.
[Caution]
• Maximum content available for macro definition is 2048 bytes. A portion exceeding 2048 bytes is
not defined.
• When GS ^ is processed in macro definition, the macro definition is stopped and the content of
definition is cleared.
• Even with ESC @ (Initialization of the printer) having been executed, defined content is not
cleared. Therefore, it is possible to include ESC @ into the content of macro definition.
• Normal printing operation is carried out even during macro definition.
[Default]
The initial value is not defined.
[See Also]
GS ^
[Sample Program]
LPRINT CHR$(&H1D);":";
LPRINT "+------+";CHR$(&HA);
LPRINT "|
|"; CHR$(&HA);
LPRINT "+------+"; CHR$(&HA);
LPRINT CHR$(&H1D);":";
LPRINT CHR$(&H1D);"^";
LPRINT CHR$(2); CHR$(10);
[Print Results]
+------+
|
|
+------+
+------+
|
|
+------+
+------+
|
|
+------+
- 98 -
Normal printing during macro definition
Printing during macro execution
GS ^ n1 n2 n3
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Executing the macro
[Code]
<1D>H<5E>H
[Range]
0≦n1≦255
0≦n2≦255
0≦n3≦1
[Outline]
[The specification which is common to the model]
Executing contents defined in macro.
n1 : The number of times of macro execution
n2 : Waiting time on macro execution: Waiting time of n2 x 100 msec is given for every execution.
n3 : Macro execution mode
n3 = 0 Continuous execution: The Macro is executed “n1” times continuously at the time
interval specified by “n2”.
n3 = 1 Execution by FEED Switch: After waiting for the time specified by “n2”, the ARARM LED
flickers and the FEED switch is waiting to be pressed. When
it is pressed, the macro is executed once. This action is
repeated “n1” times.
[Caution]
• When this command is received while in macro definition, suspension of macro definition is
indicated. At this time, the defined content is cleared.
• No execution takes place when the macro is held undefined.
• While in macro execution with n3 = 1, paper feed with the FEED switch is not available.
[See Also]
GS :
[Sample Program]
Refer to Sample Program and Print Results for GS:.
- 99 -
2.2.11 Cutter Commands
ESC i
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Full cutting of paper
[Code]
<1B>H<69>H
[Outline]
[The specification which is common to the model]
Executes full cutting of paper.
[Caution]
[The specification which is common to the model]
• This command only works it is entered at the beginning of a line.
• Before cutting paper, feed the paper more than the cutting position of paper from the print
position. Without this paper feeding, the character just after printing remains before the cutter.
[The specification which depend on the model]
CT-S300/CT-S2000/CT-S4000/CT-S310/PMU2XXX
• With label- or BM-supported model, this command does not function at the setting of BM
paper/label paper setting.
[Sample Program]
[Print Results]
Cut state
LPRINT “AAAAA”;
LPRINT CHR$(&H1B);"J";
LPRINT CHR$(150);
LPRINT CHR$(&H1B);"i";
AAAAA
Cut position
AAAAA
- 100 -
Paper feed
direction
ESC m
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Partial cutting of paper
[Code]
<1B>H<6D>H
[Outline]
[The specification which is common to the model]
Executes partial cutting of paper.
[Caution]
[The specification which is common to the model]
• This command only works it is entered at the beginning of a line.
• Before cutting paper, feed the paper more than the cutting position of paper from the print
position. Without this paper feeding, the character just after printing remains before the cutter.
[The specification which depend on the model]
CT-S300/CT-S2000/CT-S4000/CT-S310/PMU2XXX
• With label- or BM-supported model, this command does not function at the setting of BM
paper/label paper setting.
[Sample Program]
[Print Results]
Cut state
LPRINT “AAAAA”;
LPRINT CHR$(&H1B);"J";
LPRINT CHR$(150);
LPRINT CHR$(&H1B);"m";
AAAAA
Cut position
AAAAA
- 101 -
Paper feed
direction
GS V m ・・・ (1)
GS V m n ・・・ (2)
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Cutting the paper
[Code]
(1)<1D>H<56>H
(2)<1D>H<56>H
[Range]
(1)0≦m≦1、48≦m≦49
(2)m=65、66
0≦n≦255
[Outline]
[The specification which is common to the model]
Performs the specified paper cutting.
m
0,48
1,49
65
66
[Caution]
BD2-2220
CT-S310
Function
Full cut
Partial cut (Leaving a bridge area uncut)
Paper feed by “cut position + {n×basic calculation pitch}” and full cut
Paper feed by “cut position + {n×basic calculation pitch}” and partial cut
[The specification which is common to the model]
• In STANDARD MODE, this command only works when it is entered at the beginning of a line.
• Control to make the length of cut paper less than 10 mm is not executed.
For (1):
• Executes cutting of paper.
For (2):
• If n = 0, the paper is fed to the cut position, and then cut. If n ≠0, the paper is fed by “n x
basic calculation pitch” inches past the cut position, and then cut.
• The basic calculation pitch is set by GS P. The paper feed amount is calculated with the vertical
basic calculation pitch (y). A fraction resulting from the calculation is corrected with the
minimum pitch of the mechanism, and the remainder is omitted.
[The specification which depend on the model]
CT-S300/CT-S2000/CT-S4000/CT-S310/PMU2XXX
• With label- or BM-supported model, this command does not function at the setting of BM
paper/label paper setting.
- 102 -
2.2.12 Bar Code Commands
GS H n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Selecting of printing position of HRI characters
[Code]
<1D>H<48>H
[Range]
0≦n≦3、48≦n≦51
[Outline]
[The specification which is common to the model]
Selecting printing position of HRI characters in printing bar codes.
“n” means the followings.
n
0,48
1,49
2,50
3,51
BD2-2220
CT-S310
Printing Position
No printing
Above the bar code
Below the bar code
Both above and below the bar code
The HRI characters refer to the bar code-turned characters so that you can read them.
[Default]
n=0
[See Also]
GS f、GS k
[Sample Program]
[Print Results]
LPRINT CHR$(&H1B);”3”; CHR$(5);
LPRINT CHR$(&H1D);”h”; CHR$(50);
LPRINT CHR$(&H1D);”H”; CHR$(0);
GOSUB BC
LPRINT CHR$(&H1D);”H”; CHR$(1);
GOSUB BC
LPRINT CHR$(&H1D);”H”; CHR$(2);
GOSUB BC
LPRINT CHR$(&H1D);”H”; CHR$(3);
GOSUB BC
END
BC:
LPRINT CHR$(&H1D);”k”;
LPRINT CHR$(4);
LPRINT “12”; CHR$(0);
LPRINT CHR$(&HA);
RETURN
No HRI characters
* 1 2 *
Printed above
Printed below
* 1 2 *
* 1 2 *
Printed above and below
* 1 2 *
- 103 -
GS f n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Selecting the font of HRI characters
[Code]
<1D>H<66>H
[Range]
0≦n≦2、48≦n≦50
[Outline]
[The specification which is common to the model]
Selecting the font of HRI characters in printing bar code.
The type of font can be selected with “n” as follows:・
BD2-2220
CT-S310
[The specification which depend on the model]
CT-S300/CT-S310
n
Font
0,48
1,49
2,50
Font A (12×24)
Font B (9 ×17)
Font C (8×16)
CT-S280/CT-S2000/CT-S4000/BD2-2220/PMU2XXX
n
Font
0,48
1,49
2,50
Font A (12×24)
Font B (9×24)
Font C (8×16)
[Caution]
The HRI characters are printed at the position specified with GS H.
[Default]
n=0
[See Also]
GS H
[Sample Program]
[Print Results]
LPRINT CHR$(&H1D);"h"; CHR$(50);
LPRINT CHR$(&H1D);"H"; CHR$(2);
LPRINT CHR$(&H1D);"f"; CHR$(0);
GOSUB BC
LPRINT CHR$(&H1D);"f"; CHR$(1);
GOSUB BC
END
BC:
LPRINT CHR$(&H1D);"k";
LPRINT CHR$(4);
LPRINT “12”; +CHR$(0);
LPRINT CHR$(&HA);
RETURN
- 104 -
* 1 2 *
FONT A
*
FONT B
1
2
*
GS h n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying the height of the bar code
[Code]
<1D>H<68>H
[Range]
1≦n≦255
[Outline]
[The specification which is common to the model]
Selecting bar code height.
“n” denotes the number of dots in the vertical direction.
[Sample Program]
Refer to Sample Program and Print Results for GS w.
- 105 -
BD2-2220
CT-S310
(1)GS k m [d1...dk] NUL
(2)GS k m n [d1...dn]
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Printing the bar code
[Code]
(1)<1D>H<6B>H[d1…dk] NULL
(2)<1D>H<6B>H [d1…dn]
[Range]
(1)0≦m≦6
(2)65≦m≦73
[Outline]
[The specification which is common to the model]
Selects a bar code system and prints the bar code.
For (1):
m
0
1
2
3
BD2-2220
CT-S310
The definitions of “k” and “d” vary with the bar code system.
The definitions of “n” and “d” vary with the bar code system.
Bar Code System
UPC-A
UPC-E
JAN13(EAN)
JAN8(EAN)
Range of “k”
11≦k≦12
11≦k≦12
12≦k≦13
7≦k≦8
4
CODE39
1≦k
5
ITF
1≦k (An even number)
6
CODABAR
1≦k
Bar Code System
UPC-A
UPC-E
JAN13(EAN)
JAN8(EAN)
Range of “n”
11≦n≦12
11≦n≦12
12≦n≦13
7≦n≦8
69
CODE39
1≦n≦255
70
ITF
1≦n≦255
(An even number)
71
CODABAR
1≦n≦255
48≦d≦57、65≦d≦68
36、43、45、46、47、58
72
CODE93
1≦n≦255
0≦d≦127
73
CODE128
2≦n≦255
0≦d≦127
For (2):
m
65
66
67
68
- 106 -
Range of “d”
48≦d≦57
48≦d≦57
48≦d≦57
48≦d≦57
48≦d≦57、65≦d≦90
32、36、37、43、45、46、47
48≦d≦57
48≦d≦57、65≦d≦68
36、43、45、46、47、58
Range of “d”
48≦d≦57
48≦d≦57
48≦d≦57
48≦d≦57
48≦d≦57、65≦d≦90
32、36、42、43、45、46、47
48≦d≦57
[Caution]
For (1):
• This command ends with a NULL code.
• For UPC-A or UPC-E, the bar code is printed when 12 bytes of bar code data have been entered,
and the subsequent data is handled as normal data.
• For JAN13, the bar code is printed when 13 bytes of bar code data have been entered, and the
subsequent data is handled as normal data.
• For JAN8, the bar code is printed when 8 bytes of bar code data have been entered, and the
subsequent data is handled as normal data.
• The data of ITF bar code must have an even number of columns. Should the data have an odd
number of columns, the last column is ignored.
For (2):
• Numeral “n” indicates the number of data items, and the subsequent “n” bytes of data are
handled as bar code data.
• If “n” is out of the range, the processing of the command is aborted, and the subsequent data is
handled as normal data.
For STANDARD MODE:
• If “d” is out of the range, only a paper feed is executed, and the subsequent data is handled as
normal data.
• If the bar code is wider than the print area for one line, the bar code is not printed, but only a
paper feed is executed.
• The amount of paper feed corresponds to the height of the bar code (including the HRI
characters if HRI character printing is specified), irrespective of the line feed width set by a
command such as ESC 2 or ESC 3.
• This command only works if no data exists in the print buffer. If any data exists in the print
buffer, the data subsequent to “m” is handled as normal data.
• After the bar code is printed, the beginning of the line is taken as the start position for the next
print.
• This command is not affected by any print modes (emphasis, double strike, underline, and
character size), except for the inverted character mode.
For PAGE MODE:
• This command only maps the bar code, without performing a printout. After the bar code is
mapped, the dot next to the last data item of the bar code is taken as the start position for the
next data mapping.
• If “d” is out of the range, the processing of the command is aborted, and the subsequent data is
handled as normal data. In this case, the data mapping start position does not move.
• If the bar code is wider than the print area, the bar code is not printed, but the data mapping
start position is moved to the left end of the non-print area.
- 107 -
[Description of Bar Codes]
UPC-A
This bar code, consisting of numerals only, has a fixed length of 12 columns; a 11- column
number entered from the host or application software plus a check digit (12th column)
automatically calculated inside the printer. If the 12th-column numeral is sent from the host, the
entire bar code will be printed as it is.
UPC-E
This bar code, consisting of numerals only, has a fixed length of 8 columns.
This printer compresses the 11- or 12-digit data (with check digit) entered to 8 digits by
using zero suppression of UPC-E standard and then prints the data.
Indicates an example of data compression based on zero suppression.
*The printer does not print bar code except the following conditions.
Ex.) Original code shall be (0-ABCDE-VWXYZ)…11 digits (with no check digit specified).
Printable patterns are as follows:
1. When V - Y are all “0”: “0-ABCDE-0000Z”⇒“ABCDEZ”.
*Provided only 5 - 9 are applied to Z.
2. When E and VWXY are all “0”: “0-ABCD0-0000Z”⇒“ABCDZ4”.
*The last character 4 indicates that maker codes A and D are not “0”.
3. When DE and VWX are “0”: “0-ABC00-000YZ”⇒“ABCYZ3”.
*The last character 3 indicates that A and C are not “0” and ABC is a number of
3 digits.
4. When DE and VW are “0” and C is “0”, “1”, or “2”:
(1)When C=“0”: “0-AB000-00XYZ”⇒“ABXYZ0”.
(2)When C=“1”: “0-AB100-00XYZ”⇒“ABXYZ1”.
(3)When C=“2”: “0-AB200-00XYZ”⇒“ABXYZ2”.
5. The check digit of 12th column is automatically calculated in the printer.
JAN-13(EAN)
This bar code, consisting of numerals only, has a fixed length of 13 columns; a 12- column
number entered from the host or application software plus a check digit (13th column)
automatically calculated inside the printer. If the 13th-column numeral is sent from the host, the
entire bar code will be printed as it is.
JAN-8(EAN)
This bar code, consisting of numerals only, has a fixed length of 8 columns; a 7- column number
entered from the host or application software plus a check digit (8th column) automatically
calculated inside the printer. If the 8th-column numeral is sent from the host, the entire bar code
will be printed as it is.
CODE39
This bar code, consisting of upper-case alphabetic characters and numerals, has a variable length
of columns. The start/stop code “*” is automatically added by the printer. The available
characters include space and “$ % + – . / 0 1 2 3 4 5 6 7 8 9” and upper-case alphabetic
characters.
ITF
This bar code, consisting of only numerals, has a variable length of even-number columns. If a
code of odd-number columns is sent, the bar code will not be printed.
CODABAR(NW-7) This bar code, consisting of alphanumeric, has a variable length of columns. Available characters
include “0 1 2 3 4 5 6 7 8 9 A B C D $ + – . / :”. A start/stop code is required; any one of A, B, C,
and D is used.
- 108 -
CODE93
This bar code, consisting of alphanumeric and control characters, has a variable length of
columns. The HRI character string is preceded and followed by a “■” character. HRI characters
for control characters (00H - 1FH, and 7FH) are each printed as a combination of a “■” character
and an alphabetic character.
Control
Character
ASCII
Hex.
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
SI
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
HRI
Character
■U
■A
■B
■C
■D
■E
■F
■G
■H
■I
■J
■K
■L
■M
■N
■O
- 109 -
Control
Character
ASCII
Hex.
HRI
Character
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
■P
■Q
■R
■S
■T
■U
■V
■W
■X
■Y
■Z
■A
■B
■C
■D
■E
DEL
7F
■T
CODE128
This bar code consists of 103 bar code characters and three code sets, enabling 128 ASCII code
characters to be printed. It has a variable length of columns.
• Code set A ASCII characters 00H - 5FH can be represented.
• Code set B ASCII characters 20H - 7FH can be represented.
• Code set C Two-digit numbers 00 - 99 can each be represented by one character. In addition to
the above characters, special characters are available:
• Shift character (SHIFT)
When used in code set A, one character next to a Shift character is treated as a character of
code set B. When used in code set B, one character next to a Shift character is treated as a
character of code set A. The Shift character cannot be used in code set C.
• Code set select characters (CODE A, CODE B, CODE C):
The code set following a code set select character is switched to code set A, B, or C.
• Function characters (FNC1, FNC2, FNC3, FNC4):
How the function characters are used depends on each application. In code set C, only FNC1 is
available.
When sending print data, note these points:
(1) Each string of bar code data must begin with a code set select character (CODE A, CODE B, or
CODE C), which selects the first code set to use.
(2) Every special character is specified by a combination of two characters: a brace “{” followed
by one character. A brace “{” itself is sent twice consecutively.
Special characters
Hex.
ASCII
7B53
7B41
7B42
7B43
7B31
7B32
7B33
7B34
7B37B
Code Set A
Code Set B
Code Set C
SHIFT
-N/A
CODE B
CODE C
FNC1
FNC2
FNC3
FNC4
‘{‘
SHIFT
CODE A
-N/A
CODE C
FNC1
FNC2
FNC3
FNC4
‘{‘
-N/A
CODE A
CODE B
-N/A
FNC1
-N/A
-N/A
-N/A
‘{‘
{S
{A
{B
{C
{1
{2
{3
{4
{{
To print “No.” in code set B, followed by “123456” in code set C, send the following data string:
GS k <73><10><7Bh 42h> “No.” <7Bh 43h><12><34><56>
• If the printer finds a string of bar code data that does not begin with a code set select character,
it immediately aborts the command processing and handles the subsequent data as normal
data.
• If the printer received a character that is not available in the currently selected code set, it
immediately aborts the command processing and handles the subsequent data as normal data.
• An HRI character corresponding to either a Shift character or a code select character is not
printed. An HRI character for either a function character or a control character is treated as a
space character.
- 110 -
GS w n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Specifying the horizontal size (magnification) of bar code
[Code]
<1D>H<77>H
[Range]
2≦n≦6
[Outline]
[The specification which is common to the model]
Selecting bar code width.
[Default]
n=3
BD2-2220
[Sample Program]
LPRINT CHR$(&H1D);"h"; CHR$(30);
LPRINT CHR$(&H1D);"w"; CHR$(2);
GOSUB BC
LPRINT CHR$(&H1D);"h"; CHR$(50);
LPRINT CHR$(&H1D);"w"; CHR$(3);
GOSUB BC
LPRINT CHR$(&H1D);"h"; CHR$(80);
LPRINT CHR$(&H1D);"w"; CHR$(4);
GOSUB BC
END
BC:
LPRINT CHR$(&H1D);"k";
LPRINT CHR$(4);
LPRINT "12"; CHR$(0);
RETURN
[Print Results]
Height = 30, Magnification = 2
Height = 50, Magnification = 3
Height = 80, Magnification = 4
- 111 -
CT-S310
2.2.13 Commands for Non-volatile Memory
GS ( C pL pH m fn b [c1 c2][d1...dk]
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Editing user NV memory
[Outline]
[The specification which is common to the model]
• Erases/stores/sends data of user NV memory area and sends the use amount/remaining capacity.
• Executes edit processing of user NV memory specified by function code (fn).
0,48 GS ( C pL pH m fn b c1 c2
1,49 GS ( C pL pH m fn b c1 c2 d1…dk
2,50 GS ( C pL pH m fn b c1 c2
Function
No.
Function0
Function1
Function2
3,51 GS ( C pL pH m fn b
Function3
4,52 GS ( C pL pH m fn b
Function4
5,53 GS ( C pL pH m fn b
Function5
6,54 GS ( C pL pH m fn b d1 d2 d3
Function6
fn
Code
Function
Erases specified record.
Stores data in specified record.
Sends data stored in specified record.
Sends capacity of use
(number of bytes).
Sends remaining capacity
(number of bytes).
Sends key code list of stored
record.
Erases all areas of user NV
memory in a lump.
• pL, PH specifies the number of bytes of “m” and the following to (pL + pH x 256).
• c1, c2 specifies key code (ID code of record).
• Total capacity of user NV memory can be specified as any of [1K, 64K, 128K, 192K]bytes by GS ( E.
Default value is 192K byte.
[Caution]
• Frequent use of this command may result in damage of NV memory. Use the Write command to
NV memory in consideration of [10 times max./day].
• Following the processing of this command, printer Busy may occur during writing data in NV
memory. While the printer is Busy, it stops receiving process. Therefore, data transmission
(including real-time command) from host is prohibited.
- 112 -
fn=0、48: Function 0 Erasing Specified Record
GS ( C pL pH m fn b kc1 kc2
[Code]
<1D>H<28>H<43>H[c1 c2]
[Range]
(pL+pH×256)=5(pL=5、pH=0)
m=0
fn=0、48
b=0
32≦c1≦126
32≦c2≦126
[Outline]
[The specification which is common to the model]
Erases the record specified by c1, c2 stored in user NV memory.
fn=1、49: Function 1 Storing Data to Specified Record
GS ( C pL pH m fn b c1 c2 d1...dk
[Code]
<1D>H<28>H<43>H[c1 c2][d1...dk]
[Range]
6≦(pL+pH×256)≦65535(0≦pL≦255、0≦pH≦255)
m=0
fn=1、49
b=0
32≦c1≦126
32≦c2≦126
32≦d≦254
k=(pL+pH×256)-5
[Outline]
[The specification which is common to the model]
• Stores data to the record specified by c1, c2.
• When the data is present in NV memory, it is replaced by new data.
- 113 -
fn=2、50: Function 2 Sending Data Stored in Specified Record
GS ( C pL pH m fn b c1 c2
[Code]
<1D>H<28>H<43>H [c1 c2]
[Range]
(pL+pH×256)=5(pL=5、pH=0)
m=0
fn=2、50
b=0
32≦c1≦126、32≦c2≦126
[Outline]
[The specification which is common to the model]
Sends data stored in the record specified by c1, c2 in user NV memory.
Header
Identifier
Status
Data
NUL
Hex.
37H
70H
40H or41H
20H~FEH
00H
Decimal
55
112
64 or 65
32~254
0
Data Size
1byte
1byte
0~80bytes
1byte
1byte
Transmission data in case specified record cannot be detected is as shown below.
Hex.
Decimal
Data Size
Header
37H
55
1byte
Identifier
70H
112
1byte
Status
40H
64
1byte
NUL
00H
0
1byte
When 40 or more key codes exist, they are divided in units of 40 maximum and the rest to
be sent.
• Status with a group of consecutive transmit data groups is 41H.
• Status without a group of consecutive transmit data is 40H.
After sending [Header - NUL], a response is received from host and next processing
corresponding to the response is executed.
• In case of “Status (with continuous block): hexadecimal number = 41H / decimal number = 65”・
Response
Content of Processing
ASCII
Decimal
Sends next data group.
ACK
6
Resends previous data group.
NAK
21
Cancels processing.
CAN
24
• In case of “Status (last block): hexadecimal number = 40H / decimal number = 64”
Response
Content of Processing
ASCII
Decimal
Terminates processing.
ACK
6
Resends previous data group.
NAK
21
Cancels processing.
CAN
24
- 114 -
fn=3、51: Function 3 Sending Use Amount
GS ( C pL pH m fn b
[Code]
<1D>H<28>H<43>H
[Range]
(pL+pH×256)=3(pL=3、pH=0)
m=0
fn=3、51
b=0
[Outline]
[The specification which is common to the model]
Sends the use amount of user NV memory (number of bytes of used area).
[Caution]
• This command uses 20 bytes for user NV management information beforehand and
sends the use amount of user NV memory by 20 bytes more than actual size.
Header
Identifier
Capacity of use
NUL
Hex.
37H
28H
30H~39H
00H
Decimal
55
40
48~57
0
Data Size
1byte
1byte
1~6 bytes
1byte
fn=4、52: Function 4 Sending Remaining Capacity
GS ( C pL pH m fn b
[Code]
<1D>H<28>H<43>H
[Range]
(pL+pH×256)=3(pL=3、pH=0)
m=0
fn=4、52
b=0
[Outline]
[The specification which is common to the model]
Sends the remaining capacity of user NV memory (number of bytes of unused area).
[Caution]
• This command uses 20 bytes for user NV management information beforehand and
sends the remaining capacity user NV memory by 20 bytes less than actual size.
Header
Identifier
Capacity of use
NUL
Hex.
37H
29H
30H~39H
00H
- 115 -
Decimal
55
41
48~57
0
Data Size
1byte
1byte
1~6bytes
1byte
fn=5、53: Function 5 Sending Key Code List of Stored Record
GS ( C pL pH m fn b
[Code]
<1D>H<28>H<43>H
[Range]
(pL+pH×256)=3(pL=3、pH=0)
m=0
fn=5、53
b=0
[Outline]
[The specification which is common to the model]
Sends key code list of record existing in user NV memory.
Header
Identifier
Status
Data
NUL
Hex.
37H
71H
40Hor41H
20H~FEH
00H
Decimal
55
113
64or65
32~254
0
Data size
1byte
1byte
1byte
2~80 bytes
1byte
• Data is a data group with a list of key codes.
Transmission data group when record is not detected is as shown below.
Hex.
Decimal
Data Size
Header
37H
55
1byte
Identifier
71H
113
1byte
Status
40H
64
1byte
NUL
00H
0
1byte
After sending [Header - NUL], receives a response from the host and executes the next processing
corresponding to the response.
• In case of “Status (with continuous block): hexadecimal number = 41H / decimal number = 65”
ASCII
ACK
NAK
CAN
Response
Decimal
6
21
24
Content of Processing
Sends next data group.
Resends previous data group.
Cancels processing.
• In case of “Status (last block): hexadecimal number = 40H / decimal number = 64”
Response
Content of Processing
ASCII
Decimal
ACK
6
Terminates processing.
NAK
21
Resends previous data group.
CAN
24
Cancels processing.
- 116 -
fn=6、54: Function 6 Erasing All User NV Memory Area in a Lump
GS ( C pL pH m fn b [d1 d2 d3]
[Code]
<1D>H<28>H<43>H[d1 d2 d3]
[Range]
(pL+pH×256)=6(pL=6、pH=0)
m=0
fn=6、54
b=0
d1=67(“C”)
d2=76(“L”)
d3=82(“R”)
[Outline]
[The specification which is common to the model]
Erases all areas of user NV memory in a lump.
- 117 -
GS ( L pL pH m fn [parameter]
GS 8 L p1 p2 p3 p4 m fn [parameter]
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
[Function]
Specifying graphics data
[Code]
<1D>H<28>H<4C>H
<1D>H<38>H<4C>H
CT-S4000
BD2-2220
CT-S310
* In the explanation of function, the code of GS ( L is used.
• GS ( L and GS 8 L ) are the same function.
• When [parameter] exceeds 65533 bytes in each function, GS 8 L is used.
[Outline]
[The specification which is common to the model]
Executes the processing related to the graphics data specified by the function code (fn).
fn
Function
No.
Code
Function
Sends NV graphics memory
capacity.
Prints graphics data stored in print
2,50
GS ( L pL pH m fn
Function50 buffer.
Sends the remaining amount of NV
3,51
GS ( L pL pH m fn
Function51 graphics memory.
Sends key code list of defined NV
64
GS ( L pL pH m fn d1 d2
Function64 graphics.
Erases all data of NV graphics in a
65
GS ( L pL pH m fn d1 d2 d3
Function65 lump.
Erases the specified NV graphics
66
GS ( L pL pH m fn kc1 kc2
Function66 data.
GS ( L pL pH m fn a kc1 kc2 b xL
Defines raster graphics data to NV
67 xH yL yH [c d1…dk]1…[c d1…dk]b Function67 memory.
69
GS ( L pL pH m fn kc1 kc2 x y
Function69 Prints the specified NV graphics.
GS ( L pL pH m fn a bx by c xL xH
Stores raster graphics data to print
112
Function 112 buffer.
yL yH d1…dk
0,48
GS ( L pL pH m fn
Function48
• pL, pH specifies the number of bytes or “m” and later to (pL + pH×256).
[Caution]
• Frequent use of this command may result in damage of NV memory. Use the Write command to
NV memory in consideration of [10 times max./day].
• Following the processing of this command, printer Busy may occur during writing data in NV
memory. While the printer is Busy, it stops receiving process. Therefore, data transmission
(including real-time command) from host is prohibited.
- 118 -
fn=0、48: Function 48 Sending NV Graphics Memory Capacity
GS ( L pL pH m fn
[Code]
<1D>H<28>H<4C>H
[Range]
(pL+pH×256)=2(pL=2、pH=0)
m=48
fn=0、48
[Outline]
[The specification which is common to the model]
Sends all capacity of NV graphics area in the number of bytes.
Header
Identifier
Data
NUL
Hex.
Decimal
Data Size
37H
30H
30H~39H
00H
55
48
48~57
0
1 byte
1 byte
1 ~ 6 bytes
1 byte
• Converts all capacity to character code expressed in decimal notation and sends it from higher
digit.
• Data size is variable.
• All definition area can be specified by GS ( E out of [0, 64K, 128K, 192K, 256K, 320K, 384K].
Default value is 384k bytes
fn=2、50: Function 50 Printing Graphics Data Stored in Print Buffer
GS ( L pL pH m fn
[Code]
<1D>H<28>H<4C>H
[Range]
(pL+pH×256)=2(pL=2、pH=0)
m=48
fn=2、50
[Outline]
[The specification which is common to the model]
• Prints the graphics data stored in the print buffer in the processing of Function 112.
• Executes paper feeding corresponding to the number of dots in Y direction of graphics stored in
the print buffer.
- 119 -
fn=3、51: Function 51 Sending the Remaining Amount of NV Graphics Memory
GS ( L pL pH m fn
[Code]
<1D>H<28>H<4C>H
[Range]
(pL+pH×256)=2(pL=2、pH=0)
m=48
fn=3、51
[Outline]
[The specification which is common to the model]
Sends the remaining amount of NV graphics area (number of bytes of unused area).
Header
Identifier
Data
NUL
Hex.
Decimal
Data Size
37H
31H
30H~39H
00H
55
49
48~57
0
1 byte
1 byte
1 ~ 6 bytes
1 byte
• Converts the remaining amount to character code expressed in decimal notation and sends it from
higher digit.
• Data size is variable.
- 120 -
fn=64: Function 64 Sending Key Code List of Defined NV Graphics
GS ( L pL pH m fn d1 d2
[Code]
<1D>H<28>H<4C>H
[Range]
(pL+pH×256)=4(pL=4、pH=0)
m=48
fn=64
d1=75(“K”)
d2=67(“C”)
[Outline]
[The specification which is common to the model]
Sends the key code list of defined NV graphics.
• When key code list is present
Hex.
Decimal
Header
37H
55
Identifier
72H
114
Status
40Hor41H
64or65
Data
30H~39H
48~57
NUL
00H
0
Data Size
1 byte
1 byte
1 byte
2~ 80 bytes
1 byte
• When key code is not present
Hex.
Header
37H
Identifier
72H
Data
40H
NUL
00H
Data Size
1 byte
1 byte
1 byte
1 byte
Decimal
55
114
64
0
When 40 or more key codes are present, they are sent by being divided in unit of 40max.
• Status with continuous transmission data group is 41H.
• Status without continuous transmission data group is 40H.
After sending [Header - NUL], receives a response from the host and executes the next processing
corresponding to the response.
• In case of “Status (with continuous block): hexadecimal number = 41H / decimal number = 65”
Response
Content of Processing
ASCII
Decimal
ACK
6
Sends next data group.
NAK
21
Resends previous data group.
CAN
24
Cancels processing.
• In case of “Status (last block): hexadecimal number = 40H / decimal number = 64”
Response
Content of Processing
ASCII
Decimal
Terminates processing.
ACK
6
Resends previous data group.
NAK
21
Cancels processing.
CAN
24
- 121 -
fn=65: Function 65 Erasing All Data of NV Graphics in a Lump
GS ( L pL pH m fn d1 d2 d3
[Code]
<1D>H<28>H<4C>H
[Range]
(pL+pH×256)=5(pL=5、pH=0)
m=48
fn=65
d1=67(“C”)
d2=76(“L”)
d3=82(“R”)
[Outline]
[The specification which is common to the model]
Erases all defined data of NV graphics in a lump.
fn=66: Function 66 Erasing Specified NV Graphics Data
GS ( L pL pH m fn kc1 kc2
[Code]
<1D>H<28>H<4C>H
[Range]
(pL+pH×256)=4(pL=4、pH=0)
m=48
fn=66
32≦kc1≦126
32≦kc2≦126
[Outline]
[The specification which is common to the model]
Erases the NV graphics data defined by key code (kc1, kc2).
- 122 -
fn=67: Function 67 Defining Raster Type Graphics Data to NV Memory
GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH
[c d1...dk]1...[c d1...dk]b
[Code]
<1D>H<28>H<4C>H
[c d1…d2]1…[c d1…dk]b
[Range]
Parameter of GS ( L
12≦(pL+pH×256)≦65535(0≦pL≦255、0≦pH≦255)
Parameter of GS 8 L
12≦(p1+p2×256+p3×65536+p4×16777216)≦4294967295
(0≦p1≦255、0≦p2≦255、0≦p3≦255、0≦p4≦255)
Common parameter of GS ( L, GS 8 L
m=48
fn=67
a=48
32≦kc1≦126、32≦kc2≦126
b=1、2
1≦(xL+xH×256)≦8192
1≦(yL+yH×256)≦2304
c=49(When monochrome color paper is specified)、c=49、50(When 2-color paper is specified)
0≦d≦255
k=(int((xL+xH×256)+7/8)×(yL+yH×256))
All defined areas can be specified by GS ( E from [0, 64K, 128K, 192K, 256K, 320K, 384K] bytes.
Default value is 384K bytes.
[Outline]
[The specification which is common to the model]
Defines raster type graphics data to NV memory.
• “b” specifies the number of data colors.
• xL, xH specifies the horizontal direction of defined data to (xL + xH × 256).
• yL, yH specifies the vertical direction of defined data to (yL + yH × 256).
• “c” specifies the color of defined data.
c
Color of Defined Data
49
50
1st color
2nd color
• 1st color denotes black (high energy) in the specified 2-color thermal paper.
• 2nd color denotes red (low energy) in the specified 2-color thermal paper.
[Caution]
When multiple colors is specified by “b” and the same color is selected by “c”, the command
processing is terminated at that point, validating the defined data processed so far and the
remaining data is read and discarded.
- 123 -
fn=69: Function 69 Printing Specified Graphics
GS ( L pL pH m fn kc1 kc2 x y
[Code]
<1D>H<28>H<4C>H
[Range]
(pL+pH×256)=6(pL=6、pH=0)
m=48
fn=69
32≦kc1≦126
32≦kc2≦126
x=1、2
y=1、2
[Outline]
[The specification which is common to the model]
Prints the NV graphics data defined by key code (kc1, kc2) as large as x times horizontally/y times
vertically.
- 124 -
fn=112: Function 112 Storing Raster Type Graphics Data to Print Buffer
GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk
[Code]
<1D>H<28>H<4C>H[d1…dk]
[Range]
Parameter of GS ( L
11≦(pL+pH×256)≦65536(0≦pL≦255、0≦pH≦255)
Parameter of GS 8 L
11≦(p1+p2×256)+p3×65536+p4×16777216≦4294967295
(0≦p1≦255、0≦p2≦255、0≦p3≦255、0≦p4≦255)
Common parameter of GS ( L, GS 8 L
m=48
fn=112
a=48
bx=1、2
by=1、2
c=49(When monochrome color paper is specified) 、c=49、50 (When 2-color paper is specified)
1≦(xL+xH×256)≦1024
When monochrome color paper is specified
1≦(yL+yH×256)≦1662(with by = 1)
1≦(yL+yH×256)≦831(with by = 2)
When 2-color paper is specified
1≦(yL+yH×256)≦831(with by = 1)
1≦(yL+yH×256)≦415(with by = 2)
0≦d≦255
k=(int((xL+xH×256)+7/8)×(yL+yH×256)
[Outline]
[The specification which is common to the model]
Stores raster type graphics data to print buffer as large as x times horizontally/y times vertically.
• xL, xH specifies the horizontal direction of raster graphics data to (xL + xH x 256).
• yL, yH specifies the vertical direction of raster graphics data to (yL + yH x 256).
• “c” specifies the color of print data.
c
Color of Print Data
49
50
1st color
2nd color
• 1st color denotes black (high energy) in the specified 2-color thermal paper.
• 2nd color denotes red (low energy) in the specified 2-color thermal paper.
[Caution]
In STANDARD MODE, each color can be defined only once.
- 125 -
GS g 0 m nL nH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Initializing maintenance counter
[Code]
<1D>H<67>H<30>H
[Range]
m=0
20≦(nL+nH×256)≦70(nL=20、21、50、70、nH=0)
[Outline]
[The specification which is common to the model]
Set the value of resettable maintenance counter specified to 0.
nL, nH are used to set the maintenance counter number to (nL+nH×256).
Counter Number
Hex.
Decimal
14
15
32
46
[Caution]
20
21
50
70
CT-S310
Counter [Unit]
Paper-feed line[line]
Head powering count [times]
Auto-cutter drive count [times]
Product operation time[hours]
• This command, if used frequently, may destroy NV memory, thus write command to NV memory
shall be used less than [10 times/day] as a guideline.
• Along with processing this command, during data-writing to NV memory, printer BUSY may occur.
During the printer BUSY, to stop receive processing, this printer prohibits the data sending
(including real-time command) from host.
- 126 -
GS g 2 m nL nH
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Sending maintenance counter
[Code]
<1D>H<67>H<32>H
[Range]
m=0
20≦(nL+nH×256)≦198
nL=20、21、50、70、148、149、178、198
nH=0
[Outline]
[The specification which is common to the model]
Send the maintenance counter value specified.
nL, nH are used to set the maintenance counter number to (nL+nH×256).
Counter Number
Hex.
Decimal
14
15
32
46
94
95
B2
C6
Counter [Unit]
Paper-feed line[line]
Head powering count [times]
Auto-cutter drive count [times]
Product operation time[hours]
Paper-feed line[line]
Head powering count [times]
Auto-cutter drive count [times]
Product operation time[hours]
20
21
50
70
148
149
178
198
CT-S310
Counter Type
Resettable
Resettable
Resettable
Resettable
Accumulated
Accumulated
Accumulated
Accumulated
• Configuration of data to be sent is shown below for the maintenance counter.
Hex.
Decimal
Data Count
Header
Data
NUL
[Caution]
5FH
30H~39H
95
48~57
00H
0
1 byte
1 - 10 bytes
1 byte
• During sending block data (maintenance counter value), real-time status and ASB status shall not
be sent. Thus, during sending the data, printer status can not be notified.
• Counter value sent by this command is only a guideline value. Due to an error occurrence and
power off timing, figure data may have an error.
• To update the flash memory, write the flash memory if any change occurs in the
maintenance counter when the period where the printer is not in operation (printing,
paper feeding, drawer, or cutting) lasts about 10 seconds, 2 minutes, and 1 hour.
• If change occurs in each counter, data on RAM is updated correspondingly.
- 127 -
FS p n m
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Printing the download NV bit images
[Code]
<1C>H<70>H
[Range]
1≦n≦255、 0≦m≦3、48≦m≦51
[Outline]
[The specification which is common to the model]
This command prints the download NV bit images (n) using a specified mode (m).
m
Mode Name
0,48
1,49
2,50
3,51
NORMAL MODE
DOUBLE WIDTH MODE
DOUBLE HEIGHT MODE
QUADRUPLE SIZE MODE
Dot Density in
Vertical Direction
203dpi
203dpi
101dpi
101dpi
CT-S310
Dot Density in
Horizontal Direction
203dpi
101dpi
203dpi
101dpi
• “n” denotes the number of the download bit image.
• “m” denotes the bit image mode.
[Caution]
• When the specified NV bit image “n” is undefined, this command is invalid.
• When the STANDARD MODE is selected, this command is valid only when there is no data in the
print buffer.
• This command is invalid when PAGE MODE is selected.
• Any printing modes except the upside-down printing mode (i.e. emphasis, double strike,
underlining, character size, inverted character printing, 90°-right-turned) are not affected.
• When the printing area set by the functions GS L and GS W is not enough for one vertical line of
the download NV bit image, the line alone is dealt with as follows.
One vertical line of the bit image is 1 dot in NORMAL MODE (m = 0, 48) and DOUBLE HEIGHT
MODE (m = 2, 50), and it is 2 dots in double WIDTH MODE (m = 1, 49) and QUADRUPLE SIZE
MODE (m = 3, 51).
(1) The printing area is extended to the right side within the limits of the printing area so that one
vertical line of the download NV bit image can be printed.
(2) When a sufficient printing area cannot be maintained even after executing (1), the printing
area is extended to the left side. (The left margin is reduced.)
• When the size of a bit image exceeds the limits of the printing area, the data within the limits of
the printing area will be printed but the parts exceeding the limit will not be printed.
• Regardless of the amount of line feed set with ESC 2 and ESC 3, NORMAL MODE and DOUBLE
WIDTH MODE execute a paper feed of (height “n” of NV bit image) dots while DOUBLE HEIGHT
MODE and QUADRUPLE SIZE MODE execute a paper feed of (height “n” of NV bit image x2) dots.
• At the completion of the bit image printing, the head of the line will be used for the next printing
position and normal data processing will take place.
[See Also]
ESC *、FS q、GS /、GS v 0
- 128 -
[Sample Program]
GOSUB SETNV
LPRINT CHR$(&H1C); “p”; CHR$(1); CHR$(0);
LPRINT CHR$(&HA);
LPRINT CHR$(&H1C); “p”; CHR$(1); CHR$(3);
LPRINT CHR$(&HA);
END
SETNV:
LPRINT CHR$(&H1C);"q"; CHR$(1);
LPRINT CHR$(8); CHR$(0); CHR$(2); CHR$(0);
FOR I=1 TO 128
READ D
LPRINT CHR$(D);
NEXT I
RETURN
DATA &H00, &H00, &H00, &H00, &H07, &HF0
DATA &H1E, &H78, &H18, &H18, &H30, &H0C
DATA &H30, &H0C, &H30, &H0C, &H30, &H0C
DATA &H1C, &H18, &H18, &H18, &H00, &H00
DATA &H00, &H00, &H00, &H00, &H3F, &HFC
DATA &H3F, &HFC, &H00, &H00, &H00, &H00
DATA &H30, &H00, &H30, &H00, &H30, &HF0
DATA &H30, &H00, &H3F, &HFC, &H3F, &HFC
DATA &H30, &H00, &H30, &H00, &H30, &HF0
DATA &H00, &H00, &H3F, &HFC, &H3F, &HFC
DATA &H00, &H00, &H00, &H1C, &H30, &H3C
DATA &H30, &HFC, &H31, &HCC, &H33, &H8C
DATA &H3E, &H0C, &H3C, &H0C, &H30, &H0C
DATA &H00, &H00, &H00, &H00, &H3F, &HFC
DATA &H3F, &HFC, &H31, &H8C, &H31, &H8C
DATA &H31, &H8C, &H31, &H8C, &H31, &H8C
DATA &H31, &H8C, &H00, &H0C, &H00, &H00
DATA &H00, &H00, &H3F, &HFC, &H3F, &HFC
DATA &H1C, &H00, &H07, &H00, &H01, &HC0
DATA &H00, &HE0, &H00, &H38, &H3F, &HFC
DATA &H3F, &HFC, &H00, &H00, &H00, &H00
DATA &H00, &H00
[Print Results]
CITIZEN
… When Normal mode is specified
CITIZEN
… When Quadruple size mode is specified
- 129 -
FS q n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Defining the download NV bit image
[Code]
<1C>H<71>H[]1…[]n
[Range]
1≦n≦255、 0≦xL≦255
0≦xH≦3
but, 1≦(xL+xH×256)≦1023
0≦yL≦255
0≦yH≦1
but, 1≦(yL+yH×256)≦288
0≦d≦255
k=(xL+xH×256)×(yL+yH×256)×8
CT-S310
CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX
Total definition area=256K bytes
CT-S2000/CT-4000
Total definition area=384K bytes
[Outline]
[The specification which is common to the model]
This command defines the specified NV bit image.
• “n” denotes the number of bit images to be defined.
• xL and xH denote the horizontal size of one NV bit image as (xL+xH×256)×8 dots.
• yL and yH denote the vertical size of one NV bit image as (yL+yH×256 )×8 dots
[Caution]
• Because all the NV bit images previously defined by this command are deleted, it is not possible to
redefine any one of the previously defined multiple data. All the data must be resent.
• Any mechanical operation such as opening the cover, initializing the printer head position, or using
the paper-feed switch etc can’t execute from the execution of this command until the completion
of the hardware reset,
• When the STANDARD MODE is selected, this command is only valid when it is written at the head
of a line.
• This command is invalid when PAGE MODE is selected.
• This command becomes valid after the 7 bytes of are processed as normal
values.
• When data which exceeds the remaining capacity of the defined area is specified by xL, xH, yL, yH,
outside-defined-area arguments will be processed.
• When outside-defined-area arguments are processed for the first bit image data group, this
command becomes invalid.
• If outside-defined-area arguments are processed for the second or subsequent NV bit image data
groups, the processing of this command is suspended, and a writing process into the non-volatile
memory starts. At this time, the NV bit image being defined becomes invalid (Undefined), but the
preceding NV bit images are valid.
• “d” denotes the definition data. Bits which correspond to dots to be printed are represented as “1”,
and those not to be printed as “0”.
• The definition will start from NV bit image number 01H and n-number bit images will be defined in
ascending order. Therefore, the first data group [xL xH yL yH d1… dk] becomes NV bit image
number 01H, and the last data group [xL xH yL yH d1… dk] becomes NV bit image number 0nH.
These numbers of NV bit images coincide with those specified with FS p.
- 130 -
• The definition data of one NV bit image consists of [xL xH yL yH d1… dk]. Therefore, when only
one NV bit image is defined, n = 1; the data group [xL xH yL yH d1… dk] is manipulated once, and
([Data: (xL + xH x256) x( yL + yH x256 ) x8 ] + [Header: 4]) bytes of non-volatile memory is
used to store it
• The maximum definition area of printer depends on model. Multiple NV bit images can be defined,
but bit images of which total size (Bit image data + Header) exceeds capacity of definition area
can not be defined.
• The printer state will change to BUSY just before the writing operation into the non-volatile
memory begins. Also, the printer state will change to BUSY just before the writing operation
begins regardless of the state of the memory switch even at a printer that have a memory switch
1-3[Busy condition]
• While this command is being executed, it is not possible to send ASB status or to detect the printer
status even when the ASB function is selected.
• If this command is sent while a macro is still being defined, the definition process will be stopped
and the execution of this command will start.
• NV bit images that are defined already are not initialized by using ESC @ command, or by
resetting the printer or turning the power off.
• The command only executes definition of NV bit image, but not start printing. The printing of NV
bit image will be executed by FS p.
• Because frequent writing in the non-volatile memory can destroy the memory, the writing
command should be used less than 10 times a day.
• It may happen that the printer becomes BUSY during the process of writing data into the
non-volatile memory in the execution of this command. When the printer becomes BUSY, it will
stop receiving data. Therefore, sending data from the host (including real time command) is
prohibited.
[See Also]
FS p、GS *
[Sample Program]
[Print Results]
Refer to the Sample Program and Printing Results for FS p.
- 131 -
2.2.14 Kanji Control Commands
FS ! n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Collectively setting Kanji print mode
[Code]
<1C>H<21>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Collectively sets Kanji print mode.
Each bit of “n” has the following meaning:
Bit
0
1
2
3
4
5
6
7
Function
Undefined
Undefined
Double-width enlargement
Double-height enlargement
Undefined
Undefined
Undefined
Underline
BD2-2220
CT-S310
Value
0
1
―
―
Canceled
Canceled
―
―
―
Canceled
―
―
Specified
Specified
―
―
―
Specified
[Caution]
• Setting both double-height and double-width enlargement causes four times enlargement.
• Underline is applied to all width of printed characters but not to the part skipped by HT. Underline
is not applied to the character rotated by 90° clockwise.
• Thickness of underline is the value set by FS – (defaulted to 1 dot width).
[Default]
n=0
[See Also]
FS -、FS W、GS !
- 132 -
FS &
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Setting Kanji mode
[Code]
<1C>H<26>H
[Outline]
[The specification which is common to the model]
Sets Kanji mode.
BD2-2220
CT-S310
Japanese Kanji specifications:
This command is invalid when Kanji code system is Shift JIS.
Kanji codes are processed in the order of the first byte and second byte.
This code is defaulted to the state of canceling Kanji mode.
[The specification which depend on the model]
CT-S280/CT-S300/CT-S2000/CT-S4000/CT-S310
Multilingual specifications (Hangul, Chinese):
Kanji codes are processed in the order of the first byte and second byte.
This code is defaulted to the state of setting Kanji mode.
[See also]
FS .、FS C
[Sample Program]
[Print Results]
LPRINT CHR$(&H1C);"&";
LPRINT CHR$(&H34); CHR$(&H41);
LPRINT CHR$(&H3B); CHR$(&H7A);
LPRINT CHR$(&HA);
LPRINT CHR$(&H1C);".";
LPRINT CHR$(&H34); CHR$(&H41);
LPRINT CHR$(&H3B); CHR$(&H7A);
LPRINT CHR$(&HA);
漢字
4A;z
- 133 -
When setting Kanjimode
When canceling Kanji mode
FS - n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Setting/canceling Kanji underline
[Code]
<1C>H<2D>H
[Range]
0≦n≦2、48≦n≦50
[Outline]
[The specification which is common to the model]
Sets or cancels Kanji underline.
n
0、48
1、49
2、50
BD2-2220
CT-S310
Function
Cancels Kanji underline
Sets 1-dot width Kanji underline
Sets 2-dot width Kanji underline
[Caution]
• Underline is applied to all width of printed characters but not applied to the part skipped by HT.
• Underline is not applied to the character rotated 90° clockwise.
[See Also]
FS !
[Sample Program]
[Print Results]
LPRINT CHR$(&H1C);"&";
LPRINT CHR$(&H1C);"-"; CHR$(0);
LPRINT CHR$(&H34); CHR$(&H41);
LPRINT CHR$(&H3B); CHR$(&H7A);
LPRINT CHR$(&H1C);"-"; CHR$(1);
LPRINT CHR$(&H34); CHR$(&H41);
LPRINT CHR$(&H3B); CHR$(&H7A);
LPRINT CHR$(&HA);
LPRINT CHR$(&H1C);".";
Canceling Kanji underline
漢字漢字
Setting Kanji underline
- 134 -
FS .
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Canceling Kanji mode
[Code]
<1C>H<2E>H
[Outline]
[The specification which is common to the model]
Cancels Kanji mode.
BD2-2220
Japanese Kanji specifications:
This command is invalid when Kanji code system is Shift JIS.
This code is defaulted to the state of canceling Kanji mode.
[The specification which depend on the model]
CT-S280/CT-S300/CT-S2000/CT-S4000/CT-S310
Multilingual specifications (Hangul, Chinese):
Kanji codes are processed in the order of the first byte and second byte.
This code is defaulted to the state of setting Kanji mode.
[See Also]
FS &、FS C
[Sample Program]
Refer to the Sample Program and Printing Results for FS &.
- 135 -
CT-S310
FS 2 a1 a2 [d]k
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
[Function]
Defining external character
[Code]
<1C>H<32>HHH[]k
[Range]
Japanese Kanji specifications:
• In case of JIS code system
a1=<77>H,<21>H≦a2≦<7E>H
• In case of Shift JIS code system
a1=H,<40>H≦a2≦<7E>H、<80>H≦a2≦<9E>H
BD2-2220
CT-S310
Multilingual specifications (Hangul, Chinese):
a1=H,H≦a2≦H
Common
0≦d≦255
k=72(FONTA: 24×24)
k=32(FONTC: 16×16)
CT-S2000/CT-S4000
k=60(FONTB: 20×24)
[Outline]
[The specification which is common to the model]
• Defines external Kanji character.
• a1, a2 show Kanji code to define external character and definition of 94 characters are available.
• “d” is data to be defined and the number of data to be defined is 72 bytes of vertical 3 bytes × 24
dots.
• Each data is created by “1” for printed dot and “0” for unprinted dot.
[The specification which depend on the model]
CT-S280/CT-S300/CT-S2000/CT-S4000/CT-S310
• In multilingual specifications, font B, font C cannot define.
[Default]
All are space.
- 136 -
[Sample Program]
LPRINT CHR$(&H1C);"&";
GOSUB SETCHR
LPRINT CHR$(&H77); CHR$(&H21);
LPRINT CHR$(&HA);
LPRINT CHR$(&H1C);".";
END
DATA &H00, &H00, &H00, &H00, &H00, &H00
DATA &H00, &H00, &H60, &H00, &H00, &HF0
DATA &H00, &H01, &HF8, &H00, &H03, &HFC
DATA &H00, &H07, &HFE, &H00, &H0F, &HFF
DATA &H00, &H00, &HF0, &H00, &H00, &HF0
DATA &H00, &H00, &HF0, &H00, &H00, &HF0
DATA &H00, &H00, &HF0, &H00, &H00, &HF0
SETCHR:
DATA &H00, &H00, &HF0, &H00, &H00, &HF0
LPRINT CHR$(&H1C);"2";
DATA &H00, &H01, &HF0, &H1F, &HFF, &HF0
LPRINT CHR$(&H77); CHR$(&H21); DATA &H1F, &HFF, &HF0, &H1F, &HFF, &HE0
FOR I=1 TO 72
DATA &H1F, &HFF, &HC0, &H00, &H00, &H00
READ D
DATA &H00, &H00,&H00, &H00, &H00, &H00
LPRINT CHR$(D);
NEXT I
RETURN
[Print Results]
Registered character
- 137 -
FS C n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Selecting Kanji code system
[Code]
<1C>H<43>H
[Range]
0≦n≦1、48≦n≦49
[Outline]
[The specification which is common to the model]
Selects Kanji code system.
BD2-2220
Japanese Kanji specifications:
n
Function
0,48
1,49
Selects JIS code system.
Selects Shift JIS code system.
[The specification which depend on the model]
CT-S280/CT-S300/CT-S2000/CT-S4000/CT-S310
Multilingual specifications (Hangul,):
n
Function
0,48
1,49
Selects KS code system.
Selects Extend KS code system.
Multilingual specifications (Chinese):
This command is invalid
[Caution]
[The specification which is common to the model]
• Kanji code valid in JIS code system is <21> ~ <7E>H for both 1st and 2nd bytes.
• Kanji code valid in Shift JIS code system is as follows:
1st byte is <81>H ~ <9F>H and H ~ H.
2nd byte is <40>H ~ <7E>H and <80>H ~ H.
[The specification which depend on the model]
CT-S280/CT-S300/CT-S2000/CT-S4000/CT-S310
• Codes valid for KS code system are as follows:
Special symbol: 2121h to 2C71h
Hangeul: 3021h to 487Eh
Area other than the above is SPACE.
• With Extend KS code
Special symbol: A1A1h to ACF1h
Hangeul: B0A1h to C8FEh
Area other than the above is SPACE.
[Default]
n=0
- 138 -
CT-S310
[Sample Program]
[Print Results]
LPRINT CHR$(&H1C);"&";
LPRINT CHR$(&H1C);"C"; CHR$(0);
LPRINT CHR$(&H34); CHR$(&H41);
LPRINT CHR$(&H3B); CHR$(&H7A);
LPRINT CHR$(&HA);
LPRINT CHR$(&H1C);"C"; CHR$(1);
LPRINT CHR$(&H8A); CHR$(&HBF);
LPRINT CHR$(&H8E); CHR$(&H9A);
LPRINT CHR$(&HA);
LPRINT CHR$(&H1C);".";
漢字 ← JIS code system printing
漢字 ← Shift JIS code system printing
- 139 -
FS S n1 n2
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Setting Kanji space amount
[Code]
<1C>H<53>H
[Range]
0≦n1≦255
0≦n2≦255
[Outline]
[The specification which is common to the model]
• Sets both right and left space amount of Kanji in units of dot.
• Sets left space amount by [n1×(Basic calculation pitch)].
• Sets right space amount by [n2×(Basic calculation pitch)].
[Caution]
• The right and left space amount in double-width mode are twice the setting.
• Setting independent line feed amount is possible in STANDARD MODE and PAGE MODE.
• Basic calculation pitch is set by GS P. Even if basic calculation pitch is changed by GS P after setting
space amount, there is no change in the amount of line feed.
When fractional number is caused by the calculation, it is corrected by the minimum pitch of
mechanism and the rest is discarded.
• In STANDARD MODE, basic calculation pitch (x) in horizontal direction is used.
• In PAGE MODE, the following operation occurs depending on the start point.
(1) When the start point is set at “upper left” or “lower right” by ESC T, basic calculation pitch (y)
of vertical direction (paper feed direction) is used.
(2) When the start point is set at “upper right” or “lower left” by ESC T, basic calculation pitch (x)
of horizontal direction (at right angle to paper feed direction)is used.
• The maximum right spacing is capable of approximately 31.906 mm (255/203 inches). A setting
greater than this maximum is trimmed to the maximum.
[Default]
n1=0、n2=0
- 140 -
FS W n
CT-S280
PMU2XXX
support model
CT-S300
CT-S2000
CT-S4000
[Function]
Setting/canceling four times enlargement of Kanji
[Code]
<1C>H<57>H
[Range]
0≦n≦255
[Outline]
[The specification which is common to the model]
Sets or cancels four times enlargement of Kanji.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0
0
1
BD2-2220
CT-S310
Function
Cancels 4 times enlargement
Sets 4 times enlargement
Setting or canceling 4 times enlargement means setting or canceling both doubleheight and
double-width enlargements simultaneously.
[See Also]
FS !
[Sample Program]
[Print Results]
LPRINT CHR$(&H1C);"&";
LPRINT CHR$(&H1C);"W"; CHR$(0);
LPRINT CHR$(&H34); CHR$(&H41);
LPRINT CHR$(&H3B); CHR$(&H7A);
LPRINT CHR$(&H1C);"W"; CHR$(1);
LPRINT CHR$(&H34); CHR$(&H41);
LPRINT CHR$(&H3B); CHR$(&H7A);
LPRINT CHR$(&HA);
LPRINT CHR$(&H1C);".";
Canceling 4 times enlargement
漢字
漢字
Setting 4 times enlargement
- 141 -
FS ( A pL pH fn […]
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Setting font attribute of Kanji
[Outline]
Setting Kanji font attribute means execution of processing for Kanji font attribute by the value of
“fn” specified.
[Outline]
fn
Function
48
Sets Kanji font
[The specification which is common to the model]
This command is effective only for the Japanese Japanese Kanji specifications.
fn=48: Function 48 Set Kanji fonts
FS ( A pL pH fn m
[Code]
<1C>H<28>H<4E>H < pH>< fn>< m>
[Range]
(pL+pH×256)=2:(pL=2、pH=0)
fn=48
0≦m≦2、48≦n≦50
[Default]
m=0
[Outline]
[The specification which is common to the model]
Prints the succeeding characters with energy set for “m”.
This command is effective only for the Japanese Japanese Kanji specifications.
[The specification which depend on the model]
CT-S280/CT-S300/BD2-2220/CT-S310/PMU2XXX
m
Function
0、48
1、49
2、50
Kanji font A(24×24)
invalid
Kanji font C(16×16)
CT-S2000/CT-S4000
m
Function
0、48
1、49
2、50
Kanji font A(24×24)
Kanji font B(20×24)
Kanji font C(16×16)
- 142 -
2.2.15 Black Mark Control Commands
GS FF
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Printing and ejecting Black mark paper/ label paper
[Code]
<1D>H<0C>H
[Outline]
[The specification which is common to the model]
This command prints the data in the printer buffer and ejects Black mark paper/ label paper.
[The specification which depend on the model]
CT-S4000
• When auto cutter disabled is selected
(1)Feeds the printed label to the position to be cut by the manual cutter.
(2)Keeps waiting till cutting is made and FEED SW is pressed while blinking LED.
(3)If FEED SW is pressed, setting the first position of BM paper/label paper is carried
out.
• The printer is in the BUSY state till the processing of (3) is executed. If, however,
FEED SW is not pressed in 3 seconds, the same operation as that with FEED SW is
executed.
• When auto cutter enabled is selected
(1)The printed label is fed to the auto cutter position and full cutting is carried out.
(2)Setting the first position of next BM paper/label paper is carried out.
[Caution]
Valid only if Black mark paper/ label paper is selected.
[See Also]
FF、GS <
GS <
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Initializing the printer mechanism
[Code]
<1D>H<3C>H
[Outline]
[The specification which is common to the model]
Performs initializing operation at Black mark/ label similar to the initialization at power on.
[Caution]
• This command is valid only when B.M paper/ label is chosen.
• Parameters configured by commands are not reset.
- 143 -
GS A m n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Correcting the leader position of Black mark paper/ label paper
[Code]
<1D>H<41>H
[Range]
0≦m≦255
0≦n≦255
[Outline]
[The specification which is common to the model]
This command sets the leader position of Black mark paper/ label paper in terms of correction value
set for the default position.
“m” denotes the correcting direction.
• “m” is valid only for the lowest bit (m0).
• Control by the lowest bit (m0) is shown as follows:
m0
0
1
Correcting Direction
Corrects the leader position in the forward direction
Corrects the leader position in the reverse direction
• “n” denotes the correction value in units of n/203 inch.
[Caution]
• This command is valid only when Black mark paper/ label paper is chosen.
• This command is ignored except immediately after the execution of a Black mark/ label positioning
command (FF, GS FF, GS A, GS <) or immediately after leader positioning performed on a paper
feed action with the FEED switch, power on, or cover closure.
• The maximum reverse correction span is 0.5 mm. Correction settings exceeding this value are
truncated into the maximum value. The leader position may be deviated due to paper flexure. For
reverse correction, exercise care so the leader position does not step out of the Black mark/ label.
• For forward correction, set the correction span by taking into account the Black mark/ label length
as the printable area changes before and after correction setting.
• In calculating a correction span, use the basic calculation pitch (y) for the vertical direction. The
fractional part contained in the calculation result should be corrected in units of the mechanism’s
minimum pitch, with the remaining fractional part truncated.
- 144 -
GS C 0 m n
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Setting the numbering print mode
[Code]
<1D>H<43>H<30>H
[Range]
0≦m≦5
0≦n≦2
[Outline]
[The specification which is common to the model]
This command sets the numbering (serial number counter) print mode.
“m” denotes the number of print columns.
m=0
Prints the columns indicated by numeral. In this case, “n” has no meaning.
m = 1 to 5 Indicates the maximum number of columns to be printed.
Prints the counter in “m” columns.
“n” specifies a printing position within the printing columns.
n=0
Prints the data right justified. The blank columns are spaced.
n=1
Prints the data right justified. The blank columns are filled with "0".
n=2
Prints the data left justified. The right blank will become invalid.
[Caution]
If either “m” or “n” has a value beyond their ranges, that setting will becomes invalid.
[Default]
m=0、n=0
[See Also]
GS C 1、GS C 2、GS C;、GS c
[Sample Program]
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(0); CHR$(0);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(1); CHR$(0);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3);CHR$(0);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3); CHR$(1);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3); CHR$(2);
GOUSAB *CNT
END
*CNT
FOR I=1 TO 5
LPRINT CHR$(&H1D);"c";
NEXT I
LPRINT CHR$(&HA);
RETURN
[Print Results]
12345
67890
11 12 13 14 15
016017018019020
21 22 23 24 25
- 145 -
Counts from 1 to 5 at m = 0 and n = 0.
Counts from 6 to 10 at m = 1 and n = 0.
Counts from11 to 15 at m = 3 and n = 0.
Counts from 16 to 20 at m = 3 and n = 1.
Counts from 21 to 25 at m = 3 and n = 2.
GS C 1 n1 n2 n3 n4 n5 n6
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
[Function]
Setting the numbering counter mode (A)
[Code]
<1D>H<43>H<31>H
[Range]
0≦n1、n2、n3、n4、n5、n6≦255
[Outline]
[The specification which is common to the model]
This command sets the numbering (serial number counter) mode.
n1+n2×256 (n1 = remainder, n2 = quotient): Counter default
n3+n4×256 (n3 = remainder, n4 = quotient): Counter final value
n5: Counter step value
n6: Identical counter print counter
(n1+n2×256) < (n3+n4×256): Count-up system
(n1+n2×256) > (n3+n4×256): Count-down system
(n1+n2×256) = (n3+n4×256) or n5 = 0 or n6 = 0: Counter stop
[Default]
n1+n2×256=1
n3+n4×256=65535
n5=1
n6=1
[See Also]
GS C 0、GS C 2、GS C;、GS c
[Sample Program]
LPRINT CHR$(&H1D);"C0";
LPRINT CHR$(3); CHR$(0);
LPRINT CHR$(&H1D);"C1";
LPRINT CHR$(50); CHR$(0);
¥
LPRINT CHR$(0); CHR$(0);
¥
LPRINT CHR$(5); CHR$(2);
GOUSAB *CNT
LPRINT CHR$(&H1D);"C2";
LPRINT CHR$(5); CHR$(0); CHR$(10);
GOUSAB *CNT
END
[Print Results]
50 50 45 45 40
5 0 50 45 40
CT-S310
*CNT
FOR I=1 TO 5
LPRINT CHR$(&H1D);"c";
NEXT I
LPRINT CHR$(&HA);
RETURN
When printing the counter value by setting a count-down range = 0
to 50, step value = 5, repeat count = 2, and starting value = 50.
When printing the counter value by setting a count-down range to 0
to 50, step value = 5, repeat count = 1, and starting value = 5, step
cleared.
- 146 -
GS C 2 n1 n2
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Setting the numbering counter
[Code]
<1D>H<43>H<32>H
[Range]
0≦n1≦255
0≦n2≦255
[Outline]
[The specification which is common to the model]
This command sets the numbering (serial number counter) value.
n1+n2×256 (n1 = remainder, n2 = quotient) becomes a counter value.
[Caution]
• If the counter is set with this command, a repeat count of the identical count will be cleared.
• If the counter value is beyond the range specified with the GS C1 or GS C; command, the counter
will be initialized.
[Default]
Not defined.
[See Also]
GS C 0、GS C 1、GS C ;、GS c
[Sample Program]
[Print Results]
See the Sample Program and Print Results for the GS C1 command.
- 147 -
GS C ; n1 ; n2 ; n3 ; n4 ; n5 ;
support model
CT-S280
PMU2XXX
CT-S300
CT-S2000
CT-S4000
BD2-2220
CT-S310
[Function]
Setting the numbering counter mode (B)
[Code]
<1D>H<43>H<3B>H<3B>H