Citizen CT-S2000, CT-S601 II, CT-S4000, CT-S601, CT-S651 Command Reference Manual

...
MODEL :
CT-S280
CT-S281
CT-S300
CT-S310
CT-S2000
CT-S4000
CT-S601(II)
CT-S651(II)
CT-S801(II)
CT-S851(II)
CT-S251
CT-P29x Series
Revision 0.20 2015/7/8
Command Reference
ESC/POS is a trade mark of SEIKO EPSON Corporation. CITIZEN is a registered trade mark of CITIZEN HOLDINGS CO., LTD., Japan. CITIZEN es una marca registrada de CITIZEN HOLDINGS CO., LTD., Japón.
REVISION
Rev No.
Date
Comment
0.00
2006/09/26
Newly issued
0.01
2006/11/22
Add program sample for FS p and FS q
0.02
2007/02/26
Revised page 153,155,159,169,205-207
0.03
2007/05/21
Supported CT-S310
0.04
2007/08/29
Supported PMU2XXX
0.05
2008/10/23
Supported PMU2XXXII, CT-S281
0.06
2009/07/31
Supported CT-S281 Label, CT-S801
0.07
2009/08/04
Errors in writing are corrected
0.08
2009/10/08
Added MSW4 - MSW10 to CT-S280.
0.09
2009/10/31
Supported CT-S601
0.10
2010/01/07
Supported CT-S851 and CT-S651
0.11
2010/02/15
Supported CT-P29x series
0.12
2010/08/23
Supported PMU2300III PMU2xxx Type I, II and III are integrated as PMU series.
0.13
2011/02/23
Supported CT-S291
Model name description of CT-P29
x series is changed
accordingly.
0.14
2011/03/25
Supported CT-S310II GS1Databar is added.
0.15
2012/06/07
Changed CT-S281 GS FF command (added MSW5-6)
0.16
Not issued
Function is added to Japanese model only.
0.17
2014/1/8
Supported additional memory switch and command of
CT-S281BD/CT-S8x1/6x1.
Corrected/Added Japanese Kanji
2014/7/30
Remarks for CT-S8xx/6xx/310II memory swtiches are added. Functions of Vietnamese characters are added.
0.20
2015/2/16
CT-S8xx/6xx typ e II and CT-S251 are added.
BD2-222x and PMU-2xxx are deleted. Gray Scale Command is added.
- GS ( z GrayBMP
- GS ( z WaterMark
Bezel LED Control Command is added.
- GS R 2 n t1 t2
Kanji Code Table is deleted.
0.21
2015/7/8
GS I n=92 description of CT-S251 is changed. MSW6-3, MSW13-3 and MSW13-6 description is changed.
- 2 -
TABLE OF CONTENTS
TABLE OF CONTENTS .............................................................................................. 2
1. OUTLIN E ............................................................................................................... 8
1.1 OPERATION MODE ............................................................................................................................. 8
1.2 CHARACTER SET ................................................................................................................................. 8
1.3 CONTROL COMMANDS ........................................................................................................................ 8
1.3.1 Contr ol Command Details ................................................................................................................... 8
1.3.2 How to Send Control Commands ....................................................................................................... 8
2. DETAIL .................................................................................................................. 9
2.1 ESC/POS COMMAND LIST ................................................................................................................ 9
2.1.1 CT-S280 .................................................................................................................................................. 9
2.1.2 CT-S281 ................................................................................................................................................ 12
2.1.3 CT-S300 ................................................................................................................................................ 15
2.1.4 CT-S310 ................................................................................................................................................ 18
2.1.5 CT-S310II ............................................................................................................................................ 21
2.1.6 CT-S2000.............................................................................................................................................. 25
2.1.7 CT-S4000.............................................................................................................................................. 29
2.1.8 CT-S601/651/801/851 ..................................................................................................................... 33
2.1.9 CT-S601 II/CT-S651 II/CT-S801 II/CT-S851 II .......................................................................... 37
2.1.10 CT-S251.............................................................................................................................................. 41
2.1.11 CT-P2 9x series .................................................................................................................................. 45
2.2 COMMAND DETAILS .......................................................................................................................... 48
2.2.1 Description of Items ........................................................................................................................... 48
2.2.2 Print Control Commands ................................................................................................................... 49
LF ........................................................................................................................................................................ 49
CR ....................................................................................................................................................................... 50
FF (At selection of PAGE MODE) ..................................................................................................................... 51
FF (valid only for Black mark/Label specification) ....................................................................................... 51
ESC FF................................................................................................................................................................. 52
ESC J n ................................................................................................................................................................ 53
ESC d n ............................................................................................................................................................... 54
2.2.3 Print Cha racter Commands ............................................................................................................... 55
CAN ..................................................................................................................................................................... 55
ESC SP n ............................................................................................................................................................. 56
ESC ! n ................................................................................................................................................................ 57
ESC % n .............................................................................................................................................................
59
ESC & s n m [ a [p] s x a ] m-n+1 ............................................................................................................... 60
ESC - n ................................................................................................................................................................ 62
ESC ? n ............................................................................................................................................................... 63
ESC E n ............................................................................................................................................................... 64
ESC G n ............................................................................................................................................................... 65
- 3 -
ESC M n .............................................................................................................................................................. 66
ESC R n ............................................................................................................................................................... 67
ESC V n ............................................................................................................................................................... 68
ESC t n ................................................................................................................................................................ 69
ESC { n ............................................................................................................................................................... 70
ESC
˜
J n (Valid in CBM-270-Compatible Mode) .......................................................................................... 71
ESC
˜
J n (Valid in CBM1000-Compatible Mode) ......................................................................................... 72
DC3 n (Valid in CBM-270-Compatible Mode) ............................................................................................... 73
DC3 n (Valid in CBM1000-Compatible Mode) .............................................................................................. 75
GS ! n .................................................................................................................................................................. 76
GS B n ................................................................................................................................................................. 78
GS b n ................................................................................................................................................................. 79
2.2.4 Print Position Commands .................................................................................................................. 80
HT ....................................................................................................................................................................... 80
ESC $ n1 n2 ....................................................................................................................................................... 81
ESC D [n] k NULL ............................................................................................................................................. 82
ESC T n ............................................................................................................................................................... 83
ESC W xL xH yL yH dxL dxH dyL dyH ............................................................................................................ 84
ESC \ nL nH ........................................................................................................................................................ 86
ESC a n ............................................................................................................................................................... 87
GS $ nL nH ......................................................................................................................................................... 88
GS L nL nH ......................................................................................................................................................... 89
GS W nL nH ....................................................................................................................................................... 90
GS \ nL nH.......................................................................................................................................................... 92
2.2.5 Line Fee d Span Commands ............................................................................................................... 93
ESC 2 .................................................................................................................................................................. 93
ESC 3 n ............................................................................................................................................................... 94
2.2.6 Bit Image Commands ........................................................................................................................ 95
ESC * m n1 n2 [d] k ........................................................................................................................................ 95
GS * n1 n2 [d ] n1xn2x8 ................................................................................................................................ 97
GS / m ................................................................................................................................................................ 98
GS v 0 m xL xH yL yH d1 ... dk......................................................................................................................... 99
2.2.7 Status Commands ........................................................................................................................... 101
DLE EOT n ........................................................................................................................................................ 101
ESC u n(Valid in CBM1000-Compatible Mode) .......................................................................................... 118
ESC v ................................................................................................................................................................. 119
GS a n ............................................................................................................................................................... 120
GS r n ................................................................................................................................................................ 124
2.2.8 Paper D etecting Comman ds .......................................................................................................... 126
ESC c 3 n .......................................................................................................................................................... 126
ESC c 4 n .......................................................................................................................................................... 127
2.2.9 Panel Switch Commands ................................................................................................................ 128
ESC c 5 n .......................................................................................................................................................... 128
2.2.10 Macro Commands ......................................................................................................................... 129
GS : ................................................................................................................................................................... 129
GS ^ n1 n2 n3
................................................................................................................................................. 130
2.2.11 Cutter C ommands ......................................................................................................................... 131
ESC i .................................................................................................................................................................. 131
ESC m ............................................................................................................................................................... 132
GS V m --- (1) .................................................................................................................................................. 133
GS V m n --- (2) ............................................................................................................................................... 133
- 4 -
2.2.12 Bar Code Commands .................................................................................................................... 134
GS H n............................................................................................................................................................... 134
GS f n ................................................................................................................................................................ 135
GS h n ............................................................................................................................................................... 136
(1)GS k m [d1...dk] NUL .............................................................................................................................. 137
(2)GS k m n [d1...dn] .................................................................................................................................... 137
GS w n .............................................................................................................................................................. 143
2.2.13 Commands for Non-volatile Memory ......................................................................................... 144
GS ( L pL pH m fn [parame ter] .................................................................................................................... 144
GS 8 L p1 p2 p3 p4 m fn [parameter] ......................................................................................................... 144
fn=0, 48: Function 48 Sending NV Graphics Memory Capacity ............................................................................................. 146
fn=2, 50: Function 50 Printing Graphics Data Stored in Print Buffer ...................................................................................... 146
fn=3, 51: Function 51 Sending the Remaining Amount of NV Graphics Memory ................................................................ 147
fn=4,52: Function 52 Sending the Remaining Amount of download graphics Memory ...................................................... 147
fn=64: Function 64 Sending Key Code List of Defined NV Graphics ...................................................................................... 148
fn=65: Function 65 Erasing All Data of NV Graphics in a Lump ............................................................................................. 149
fn=66: Function 66 Erasing Specified NV Graphics Data ........................................................................................................ 149
fn=67: Function 67 Defining Raster T ype Graphics Data to NV Memory .............................................................................. 150
fn=69: Function 69 Printing Specified Graphics ....................................................................................................................... 151
fn=80: Function 80 Sending Key Code List of Defined Download Graphics .......................................................................... 152
fn=81: Function 81 Erasing All Data of Download Graphics in a Lump ................................................................................. 153
fn=82: Function 82 Erasing Specified Download Graphics Data ............................................................................................ 153
fn=85: Funciton 85 Printing Specified Download Grahics Data .............................................................................................. 154
fn=112: Function 112 Storing Raster T ype Graphics Data to Print Buffer .............................................................................. 155
GS D m fn a kc1 kc2 b c d1…dk .................................................................................................................... 156
fn=67: Function 67 Defining Windows Bitmap to NV Memory ............................................................................................. 157
fn=83: Function 83 Defining Windows Bitmap to Download Memory .................................................................................. 158
FS p n m ........................................................................................................................................................... 159
FS q n [xL xH yL yH d1...dk] 1... [xL xH yL yH d1...dk] n .......................................................................... 160
2.2.14 Kanji Control Commands ............................................................................................................. 162
FS ! n ................................................................................................................................................................. 162
FS & .................................................................................................................................................................. 163
FS - n ................................................................................................................................................................. 164
FS . .................................................................................................................................................................... 165
FS 2 a1 a2 [d] k .............................................................................................................................................. 166
FS C n ................................................................................................................................................................ 168
FS S n1 n2 ........................................................................................................................................................ 170
FS W n .............................................................................................................................................................. 171
FS ( A pL pH fn […] ........................................................................................................................................ 172
fn=48: Function 48 Set Kanji fonts ........................................................................................................................................... 172
2.2.15 Black Mark Control Commands ................................................................................................... 173
GS FF ................................................................................................................................................................
173
GS <.................................................................................................................................................................. 175
GS A m n .......................................................................................................................................................... 176
GS C 0 m n ....................................................................................................................................................... 177
GS C 1 n1 n2 n3 n4 n5 n6 .............................................................................................................................. 178
GS C 2 n1 n2 .................................................................................................................................................... 179
GS C ; n1 ; n2 ; n3 ; n4 ; n5 ; .......................................................................................................................... 180
GS c ................................................................................................................................................................... 181
GS l n1L n1H n2L n2H .................................................................................................................................... 182
GS p n ............................................................................................................................................................... 183
- 5 -
FS FF ................................................................................................................................................................. 184
2.2.16 Printer Function Settin g Commands .......................................................................................... 185
GS ( E pL pH fn […] ........................................................................................................................................ 185
fn=1: Function 1 Transf erring to Printer Function Setting Mode ............................................................................................. 186
fn=2: Function 2 End of Printer Function Setting Mode .......................................................................................................... 186
fn=3: Function 3 Setting Memory Switch Value ...................................................................................................................... 187
fn=4: Function 4 Sending the Set Memory Switch Value ....................................................................................................... 209
fn=5: Function 5 Setting Customized Value ............................................................................................................................. 210
fn=6: Function 6 Sending the Set Customized Value .............................................................................................................. 249
fn=8: Function 8 Defining Data by the Column Format to Character Code Page of Work Area .......................................... 288
fn=9: Function 9 Defining Data in the Raster Format to the Character Code Page of Work Area ....................................... 289
fn=10: Function 10 Erasing Data of Character Code Page Data in Work Area...................................................................... 290
fn=11: Function 11 Setting Communication Conditions ......................................................................................................... 291
fn=12: Function 12 Sending the Set Communication Conditions .......................................................................................... 292
fn=101: Function 101 Changing Bluetooth setting ................................................................................................................. 293
fn=102: Function 102 Sending setting of Bluetooth ............................................................................................................... 294
fn=255: Function 255 Setting All Contents Set by Printer Function Setting Mode to the State at Shipment ....................... 295
GS ( K pL pH fn m ........................................................................................................................................... 296
fn=49: Function 49 Setting Printing Density ............................................................................................................................ 297
fn=50: Function 50 Setting Printing Speed .............................................................................................................................. 298
fn=97: Function 97 Setting Number of Divisions for Head Conducting ................................................................................. 299
GS ( N pL pH fn m ........................................................................................................................................... 300
fn=48: Function 48 Selects character color .............................................................................................................................. 300
2.2.17 2-dimensional code Commands ................................................................................................. 301
GS ( k pL pH cn fn [parameter] .................................................................................................................... 301
fn=65: Function 65 Setting the number of digits of PDF417 ................................................................................... 303
fn=66: Function 66 Setting the number of steps of PDF417 ................................................................................... 303
fn=67: Function 67 Setting module width of PDF417 ................................................................................................. 304
fn=68: Function 68 Setting the height of step of PDF417 ........................................................................................ 304
fn=69: Function 69 Setting error correction level of PDF417 .................................................................................. 305
fn=70: Function 70 Setting Options for PDF417 ........................................................................................................... 306
fn=80: Function 80 Storing received data to 2D code data storage area .......................................................... 306
fn=81: Function 81 Printing 2D code data in 2D code data storage area .......................................................... 307
fn=65: Function 165 Specifying QRCode model ............................................................................................................ 308
fn=67: Function 167 Sets the module width of QRCode ........................................................................................... 308
fn=69: Function 169 Setting QRCode error correction level .................................................................................... 309
fn=80: Function 180 Storing received data to 2D code data storage area ........................................................ 309
fn=81: Function 181 Printing 2D code data in 2D code data storage area ....................................................... 310
fn=67: Function 367 Setting module width of 2D GS1 DataBar ........................................................................................... 311
fn=71: Function 371 Setting maximum width of 2D GS1 DataBar Expanded Stacked ...................................................... 311
fn=80: Function 380 Storing 2D GS1 DataBar data to 2 D code data stor age area ............................................................. 312
fn=81: Function 381 Printing 2D GS1 Databar data in 2D code data storage area ............................................................ 312
2.2.18 Gray Scale Commands .................................................................................................................. 313
GS ( z GrayBMP, ..............................................................................................................................................
313
GS ( z WaterMark,size,start,kc1,kc2,pass,feed,repeat.............................................................................. 315
2.2.19 Other Commands .......................................................................................................................... 317
DLE ENQ n ....................................................................................................................................................... 317
DLE DC4 fn m t (Specification of fn = 1) ..................................................................................................... 318
DLE DC4 fn d1...d7 (Specification of fn = 8) ............................................................................................... 319
ESC = n ............................................................................................................................................................ 320
ESC @ ............................................................................................................................................................... 321
- 6 -
ESC L ................................................................................................................................................................. 322
ESC S ................................................................................................................................................................ 323
ESC p m n1 n2 ................................................................................................................................................. 324
GS ( A pL pH n m ............................................................................................................................................. 325
GS I n ................................................................................................................................................................ 327
GS P x y ............................................................................................................................................................ 338
ESC RS .............................................................................................................................................................. 339
GS R 2 n t1 t2 .................................................................................................................................................. 340
3. CHARACTER CODE TABLE ............................................................................. 341
3.1 CODE PAGE ................................................................................................................................... 341
3.1.1 Cod epage 00 H to 7FH & P C437 (USA, Europe Standard) ......................................................... 341
3.1.2 Codepage 00H to 7FH & Katakana ............................................................................................... 342
3.1.3 Cod epage 00 H to 7FH & P C850 (Mu ltilingu al) ............................................................................ 343
3.1.4 Codepage 00H to 7FH & PC860 (Portugu ese) ............................................................................ 344
3.1.5 Cod epage 00 H to 7FH & P C863 (C anadian-French) .................................................................. 345
3.1.6 Codepage 00H to 7FH & PC865 (Nordic) ..................................................................................... 346
3.1.7 Codepage 00H to 7FH & PC852 (Eastern Euro pe) ..................................................................... 347
3.1.8 Cod epage 00 H to 7FH & P C866 (R ussian) .................................................................................. 348
3.1.9 Cod epage 00 H to 7FH & P C857 (Tu rkish) ................................................................................... 349
3.1.10 Codepage 00H to 7FH & PC864 (Arabic) ................................................................................... 350
3.1.11 Codepage 00H to 7FH & Windows Codepage .......................................................................... 351
3.1.12 Codepage 00H to 7FH & Thai code 11 ....................................................................................... 352
3.1.13 Codepage 00H to 7FH & Thai code 18 ....................................................................................... 353
3.1.14 Codepage 00H to 7FH & TCVN-3 (V ietnamese) ....................................................................... 354
3.2 INTERNATIONAL CHARACTER CODE TABLE ...................................................................................... 355
4. MEMORY SWITCH .......................................................................................... 356
4.1 MEMORY SWITCHES ...................................................................................................................... 356
4.1.1 CT-S280 ............................................................................................................................................. 356
4.1.2 CT-S281 ............................................................................................................................................. 358
4.1.3 CT-S300 ............................................................................................................................................. 360
4.1.4 CT-S310 ............................................................................................................................................. 361
4.1.5 CT-S310II ......................................................................................................................................... 363
4.1.6 CT-S2000........................................................................................................................................... 365
4.1.7 CT-S4000........................................................................................................................................... 367
4.1.8 CT-S801/851 .................................................................................................................................... 369
4.1.9 CT-S601/651 .................................................................................................................................... 371
4.1.10 CT-S801 II/CT-S851 II ................................................................................................................ 373
4.1.11 CT-S601 II/CT-S651 II ................................................................................................................ 376
4.1.12 CT-S251........................................................................................................................................... 378
4.1.13 CT-P2 9x series ............................................................................................................................... 380
4.2 DETAILS OF MEMORY SWITCHES .................................................................................................... 382
4.2.1 MSW1 ................................................................................................................................................ 382
4.2.2 MSW2 ................................................................................................................................................ 385
4.2.3 MSW3 ................................................................................................................................................ 388
- 7 -
4.2.4 MSW4 ................................................................................................................................................ 391
4.2.5 MSW5 ................................................................................................................................................ 395
4.2.6 MSW6 ................................................................................................................................................ 398
4.2.7 MSW7 ................................................................................................................................................ 399
4.2.8 MSW8 ................................................................................................................................................ 401
4.2.9 MSW9 ................................................................................................................................................ 403
4.2.10 MSW10 ............................................................................................................................................ 405
4.2.11 MSW11 ............................................................................................................................................ 407
4.2.11 MSW13 ............................................................................................................................................ 407
5. APPENDIX ....................................................................................................... 409
5.1 EXPLANATION ON PAGE MODE ................................................................................................... 409
5.1.1 Overview ........................................................................................................................................... 409
5.1.2 Values Set by Each Command in STANDARD MODE and PAGE MODE .................................. 409
5.1.3 Mapping of Print Data in t he Print Area ........................................................................................ 410
5.1.4 Example of Using PAGE MODE ...................................................................................................... 412
5.2 BIDIRECTIONAL PARALLEL INTERFACE ............................................................................................ 416
5.2.1 Parallel Interface Communication Mode ..................................................................................... 416
5.2.2 Interfacing Phases ........................................................................................................................... 417
5.2.3 Negotiation ....................................................................................................................................... 418
5.3 IDENTIFICATION OF SEND STATUS .................................................................................................. 425
5.4 CAUTIONS ON BLACK MARK/LABEL PAPER ........................................................................... 426
- 8 -
1. OUTLINE
1.1 Operation Mode
The control commands used on printers covered by this document are comformed to ESC/POS.
1.2 Character Set
All print data sent from the host computer to the prin ter are automatically con verted 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 Char acter Code Table of this document.
1.3 Control Commands
1.3.1 Co ntrol Comma nd Details
Control Commands are used fo r controlling the operations of the p rinter such as starting/stopping o f 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 fo r sending Control Commands from the ho st computer to the printer. Here, a method of sen ding 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 th at the command name for se tting the size of a char acter is GS !. Let’s make a program using this code. An example is shown below.
Program List Print Result
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. Fo r details of BASIC pro gramming, refer to the manu al for BASIC.
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
- 9 -
2. DETAIL
2.1 ESC/POS Command List
2.1.1 CT-S280 Print Control Commands
Commands
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAG E MODE)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding pape r in minimum pitch
S・P ○
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P ○
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
71
DC3
Specifies/cancels printing in red (black-based paper)
S 73
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
- 10 -
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image C ommands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Sw itch Comma nds
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
- 11 -
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Buffer clear
S・P
319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 12 -
2.1.2 CT-S281 Print Control Co mmands
Commands
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(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/Label paper selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
71
DC3
Specifies/cancels printing in red (black-based paper)
S 73
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 13 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
- 14 -
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark and Label Control C ommands
Command
Function
MODE
GS P
Page
GS FF
Printing and ejecting Black mark paper/Label Paper
S・P
173
GS <
Initializing the printer mechanism
S・P
175
GS A
Correcting the leader position of Black mark paper
S・P
176
GS C 0
Setting the numbering pri nt mode
S・P
177
GS C 1
Setting the numbering c ounter mode (A)
S・P
178
GS C 2
Setting the numbering c ounter
S・P
179
GS C ;
Setting the numbering c ounter mode (B)
S・P
180
GS c
Print the counter
S・P
181
GS l
Setting the Black mark l ength
S・P
182
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Buffer clear
S・P
319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 15 -
2.1.3 CT-S300 Print Control Commands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of PAGE MODE)
(2)Printing of Black mark/Label paper and feeding paper to the
top of the print position (with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
72
DC3
Specifies/cancels printing in red (black-based paper)
S 75
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 16 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image C ommands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 17 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark Cont rol Commands
Command
Function
MODE
GS P
Page
GS FF
Printing and ejecting Black mark/Label paper
S・P
173
GS <
Initializing the printer mechanism
S・P
175
GS A
Correcting the leader position of Black mark paper
S・P
176
GS C 0
Setting the numbering pri nt mode
S・P
177
GS C 1
Setting the numbering c ounter mode (A)
S・P
178
GS C 2
Setting the numbering c ounter
S・P
179
GS C ;
Setting the numbering c ounter mode (B)
S・P
180
GS c
Print the counter
S・P
181
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 18 -
2.1.4 CT-S310 Print Control Commands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of PAGE MODE)
(2)Printing of Black mark/Label paper and feeding paper to the
top of the print position (with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
72
DC3
Specifies/cancels printing in red (black-based paper)
S 75
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 19 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^ Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 20 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark Cont rol Commands
Command
Function
MODE
GS P
Page
GS FF
Printing and ejecting Black mark/Label paper
S・P
173
GS <
Initializing the printer mechanism
S・P
175
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 21 -
2.1.5 CT-S310II Print Control Co mmands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of P AGE MODE)
(2)Printing of Black mark /Lab el p aper an d f eedin g pap er to th e
top of the print
position (with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 22 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 23 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
GS ( L GS 8 L
Specifying graphics data S 144
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
- 24 -
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected b y GS P.
- 25 -
2.1.6 CT-S2000 Print Control Commands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of PAGE MODE)
(2)Printing of Black mark/Label paper and feeding paper to the
top of the print position (with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
72
DC3
Specifies/cancels printing in red (black-based paper)
S 75
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 26 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 27 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
GS ( L GS 8 L
Specifying graphics data S 144
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark and Label Control C ommands
Command
Function
MODE
GS P
Page
GS FF
Printing and ejecting Black mark paper/Label Paper
S・P
173
GS <
Initializing the printer mechanism
S・P
175
GS A
Correcting the leader position of Black mark/Label paper
S・P
176
GS C 0
Setting the numbering pri nt mode
S・P
177
GS C 1
Setting the numbering c ounter mode (A)
S・P
178
GS C 2
Setting the numbering c ounter
S・P
179
GS C ;
Setting the numbering c ounter mode (B)
S・P
180
GS c
Print the counter
S・P
181
GS l
Setting the Black mark/Label length
S・P
182
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
- 28 -
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 29 -
2.1.7 CT-S4000 Print Control Commands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of PAGE MODE)
(2)Printing of Black mark/Label paper and feeding paper to the
top of the print position (with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
72
DC3
Specifies/cancels printing in red (black-based paper)
S 75
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 30 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 31 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
GS ( L GS 8 L
Specifying graphics data S 144
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark and Label Control C ommands
Command
Function
MODE
GS P
Page
GS FF
Printing and ejecting Black mark paper/Label Paper
S・P
173
GS <
Initializing the printer mechanism
S・P
175
GS A
Correcting the leader position of Black mark/Label paper
S・P
176
GS C 0
Setting the numbering pri nt mode
S・P
177
GS C 1
Setting the numbering c ounter mode (A)
S・P
178
GS C 2
Setting the numbering c ounter
S・P
179
GS C ;
Setting the numbering c ounter mode (B)
S・P
180
GS c
Print the counter
S・P
181
GS l
Setting the Black mark/Label length
S・P
182
GS p
Changing the paper type
S・P
183
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
- 32 -
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 33 -
2.1.8 CT-S601/651/801/851 Print Control Commands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of PAGE MODE)
(2)Printing of Black mark/Label paper and feeding paper to the
top of the print position (with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
72
DC3
Specifies/cancels printing in red (black-based paper)
S 75
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 34 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 35 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
GS ( L GS 8 L
Specifying graphics data S 144
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark and Label Con trol Commands
Command
Function
MODE
GS P
Page
GS FF
Printing and ejecting Black mark/Label paper
S・P
173
GS <
Initializing the printer mechanism
S・P
175
GS A
Correcting the leader position of Black mark/Label paper
S・P
176
GS C 0
Setting the numbering pri nt mode
S・P
177
GS C 1
Setting the numbering c ounter mode (A)
S・P
178
GS C 2
Setting the numbering c ounter
S・P
179
GS C ;
Setting the numbering c ounter mode (B)
S・P
180
GS c
Print the counter
S・P
181
GS l
Setting the Black mark/Label length
S・P
182
GS p
Changing the paper type
S・P
183
FS FF
Printing and feeding paper to manual cut position
S・P
184
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
- 36 -
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 37 -
2.1.9 CT-S601 II/CT-S651 II/CT-S801 II/CT-S851 II Print Control Commands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of P AGE MODE)
(2)Printing of Black mark /Lab el p aper an d f eedin g pap er to th e
top of the print
position (with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
ESC ~ J
Specifies/cancels printing in red (black-based paper)
S・P
72
DC3
Specifies/cancels printing in red (black-based paper)
S 75
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 38 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 39 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
GS ( L GS 8 L
Specifying graphics data S 144
GS D
Definition to NV Memory of Windows Bitmap
S
156
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark and Label Con trol Commands
Command
Function
MODE
GS P
Page
GS FF
Printing and ejecting Black mark/Label paper
S・P
173
GS <
Initializing the printer mechanism
S・P
175
GS A
Correcting the leader position of Black mark/Label paper
S・P
176
GS C 0
Setting the numbering pri nt mode
S・P
177
GS C 1
Setting the numbering c ounter mode (A)
S・P
178
GS C 2
Setting the numbering c ounter
S・P
179
GS C ;
Setting the numbering c ounter mode (B)
S・P
180
GS c
Print the counter
S・P
181
GS l
Setting the Black mark/La bel length
S・P
182
GS p
Changing the paper type
S・P
183
FS FF
Printing and feeding paper to manual cut position
S・P
184
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
- 40 -
Gray Scale Commands
Command
Function
MODE
GS P
Page
GS
_z_GrayBMP
Print of the gray scale raster graphics S 313
GS ( z WaterMark
Specifying WaterMark Printing S 315
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command aff ected by GS P.
The meaning of the number indicated on the model name is as follows. Nothing: Only type I II : Only type II (II) : Common Setting(type I and type II)
- 41 -
2.1.10 CT-S251 Print Control Co mmands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
Printing in PAGE MODE and returning to STANDARD MODE (at
the selection of PAG E MODE)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding pape r in minimum pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 42 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC u
Transmitting the status of peripheral equipment (Serial Mode Only)
S・P
118
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
- 43 -
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
GS ( L GS 8 L
Specifying graphics data S 144
GS D
Definition to NV Memory of Windows Bitmap
S
156
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Black Mark and Label Control C ommands
Command
Function
MODE
GS P
Page
GS C 0
Setting the numbering pri nt mode
S・P
177
GS C 1
Setting the numbering c ounter mode (A)
S・P
178
GS C 2
Setting the numbering c ounter
S・P
179
GS C ;
Setting the numbering c ounter mode (B)
S・P
180
GS c
Print the counter
S・P
181
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
- 44 -
Gray Scale Commands
Command
Function
MODE
GS P
Page
GS_
_z_GrayBMP
Print of the gray scale raster graphics S 313
GS ( z WaterMark
Specifying WaterMark Printing S 315
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Outputting specified pu lse in real-time/Buffer clear
S・P
318/319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
ESC p
Generating the specified p ulses
S・P
324
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
ESC RS
Sound buzzer
S・P
339
GS R 2
Controlling bezel LED
S・P
340
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command aff ected by GS P.
- 45 -
2.1.11 CT-P29x series Print Control Commands
Command
Function
MODE
GS P
Page
LF
Printing and paper feed
S・P
49
CR
Back to printing
S・P
50
FF
(1)Printing in PAGE MODE and returning to STANDARD MODE
(at the selection of PAGE MODE)
(2)
Printing of Black mark /L ab el p aper and feeding paper to th e
top of the print position (
with Black mark/Label paper
selected)
P 51
ESC FF
Printing data in PAG E MODE
P 52
ESC J
Printing and feeding paper in minimu m pitch
S・P
53
ESC d
Printing and feeding the paper by “n” lines
S・P
54
Print Character Commands
Command
Function
MODE
GS P
Page
CAN
Canceling print data in PAGE MODE
P 55
ESC SP
Setting the right spacing of the character
S・P
56
ESC !
Collectively specifying the printing mode
S・P
57
ESC %
Specifying/Canceling download character set
S・P
59
ESC &
Defining the download characters
S・P
60
ESC -
Specifying/canceling underline
S・P
62
ESC ?
Deleting download characters
S・P
63
ESC E
Specifying/canceling emphasis printing
S・P
64
ESC G
Specifying/canceling double strike printing
S・P
65
ESC M
Selection of character fonts
S・P
66
ESC R
Selecting the international character set
S・P
67
ESC V
Specifying/canceling 90°-right-turned characters
S 68
ESC t
Selecting the character c ode table
S・P
69
ESC {
Specifying/canceling the inverted characters
S 70
GS !
Specifying the character size
S・P
76
GS B
Specifying/canceling the black/white inverted printing
S・P
78
GS b
Specifying/canceling the smoothing
S・P
79
Print Position C ommands
Command
Function
MODE
GS P
Page
HT
Horizontal tab
S・P
80
ESC $
Specifying the absolute positions
S・P
81
ESC D
Setting horizontal tab position
S・P
82
ESC T
Selecting the character p rinting direction in PAG E MODE
P 83
ESC W
Defining the print area in PAGE MODE
P ○
84
ESC \
Specifying the relative position
S・P
86
ESC a
Aligning the characters
S 87
GS $
Specifying the absolute vertical position of charact ers in PAGE MODE
P 88
GS L
Setting the left margin
S ○
89
GS W
Setting the print area wi dth
S・P
90
GS \
Specifying the relat ive vertical position of a char acter in PAGE MODE
S・P
92
- 46 -
Line Feed Span Commands
Command
Function
MODE
GS P
Page
ESC 2
Specifying initial line feed rate
S・P
93
ESC 3
Setting line feed rate of minimum pitch
S・P
94
Bit Image Com mands
Command
Function
MODE
GS P
Page
ESC *
Specifying the bit image mo de
S・P
95
GS *
Defining the download bit image
S・P
97
GS /
Printing the downloaded bit image
S・P
98
GS v 0
Printing of raster bit image
S 99
Status Commands
Command
Function
MODE
GS P
Page
DLE EOT
Sending status in real-time
S・P
101
ESC v
Sending Printer status
S・P
119
GS a
Enabling/disabling ASB (Automatic Status Back)
S・P
120
GS r
Sending status
S・P
124
Paper Detecting Co mmands
Command
Function
MODE
GS P
Page
ESC c 3
Selecting the Paper Sens or valid for Paper-end signal output
S・P
126
ESC c 4
Selecting the Paper Near-end Sensor valid for print stop
S・P
127
Panel Switch C ommands
Command
Function
MODE
GS P
Page
ESC c 5
Enabling/disabling the panel switches
S・P
128
Macro Commands
Command
Function
MODE
GS P
Page
GS :
Starting/ending macro d efinition
S・P
129
GS ^
Executing the macro
S・P
130
Cutter Comman ds
Command
Function
MODE
GS P
Page
ESC i
Full cut
S・P
131
ESC m
Partial cut
S・P
132
GS V
Cutting the paper
S・P
133
Bar Code Commands
Command
Function
MODE
GS P
Page
GS H
Selecting of printing position of HRI characters
S・P
134
GS f
Selecting the font of HRI characters
S・P
135
GS h
Specifying the height of the bar code
S・P
136
GS k
Printing the bar code
S・P
137
GS w
Specifying the horizontal size (magnification) of bar code
S・P
143
Commands for Non-volatile Memory
Command
Function
MODE
GS P
Page
FS p
Printing the download NV bi t images
S 159
FS q
Defining the download NV bit image
S 160
- 47 -
Kanji Control C ommands
Command
Function
MODE
GS P
Page
FS !
Collectively setting Kanji print mode
S・P
162
FS &
Setting Kanji mode
S・P
163
FS -
Setting/Canceling Kanji underline
S・P
164
FS .
Canceling Kanji mode
S・P
165
FS 2
Defining external character
S・P
166
FS C
Selecting Kanji c ode system
S・P
168
FS S
Setting Kanji space amount
S・P
170
FS W
Setting/Canceling f our times enlargement of Kanji
S・P
171
FS ( A
Setting font attribute of Kanji
S・P
172
Printer Functi on Setting Com mands
Command
Function
MODE
GS P
Page
GS ( E
Printer function setting command
S 185
GS ( K
Selecting print control m ethod
S 296
GS ( N
Designating font attribute
S 300
2-dimensional Code Commands
Command
Function
MODE
GS P
Page
GS ( k
Setting and printing 2-dimensional code
S・P
301
Other Commands
Command
Function
MODE
GS P
Page
DLE ENQ
Real-time request to printer
S・P
317
DLE DC4
Buffer clear
S・P
319
ESC =
Data input control
S・P
320
ESC @
Initializing the printer
S・P
321
ESC L
Selecting PAGE MODE
S 322
ESC S
Selecting STANDARD MOD E
P 323
GS ( A
Execution of test printi ng
S 325
GS I
Sending the printer ID
S・P
327
GS P
Specifying the basic calculation pitch
S・P
338
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 48 -
2.2 Command Details
2.2.1 Description of Items
XXXX
support model
[Function] The name of a command.
[Code] The string of codes comprising the command is represented by < >H for hexadecimal numbers, < >B for
binary numbers, and < > for decimal numbers, [ ] k denotes the number of repetition of “ k” times.
[Range] Indicates the values (setting range) of arguments of the command.
Note: If values outside the defined domain specified with control codes are used, malfunctions could possibly
occur, so be sure to use the values within the defined domain.
*The defined domain may differ depending on the model or printer setting.
[Outline] [The specification which is common to the model]
Indicates command functions common to relevant models.
[The specification which depend on the model]
Indicates the command function dependent on the model.
[Caution] Describes important points and cautionary notes, as required.
[Default] Initial values for the command if it has arguments.
[See Also] Describes commands relat ed to the command when it i s 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 resu lts obtained by executing the above programs. However, th e print results shown are different in scal e from actual print results
- 49 -
2.2.2 P rint Control Co mmands
LF
Support model
CT-S280
CT-S300
CT-S2000
CT-S4000
CT-S251
CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310II
[Function] Printing and paper feed
[Code] <0A>H
[Outline] [The specification which is common to the model]
• Prints data inside th e print buffer and feeds paper based on the lin e feed amount having been set.
[Caution] [The specification which is common to the model]
• After this command is executed, the beginning of the line is taken as the s tart position for the next point.
[See Also] ESC 2, ESC 3
[Sample Program] [Print Results]
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
Print and line feed
AAA
BBB
CCC
- 50 -
CR
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310II
[Function] Back to printing
[Code] <0D>H
[Outline] [The specification which is common to the model]
(1) MSW* 1-5 OFF:
This command is ignored.
(2) MSW 1-5 ON:
The same operation as LF is executed.
* Memory switch
[See Also] LF
[Sample Program] [Print Results]
In case of (2) LPRINT "AAA"; CHR$(&HD); LPRINT "BBB"; CHR$(&HD); LPRINT CHR$(&HD); LPRINT "CCC"; CHR$(&HD);
AAA
BBB
CCC
Print and line feed
Print and line feed
Line feed only
Print and line feed
- 51 -
FF (At selection of PAGE MODE)
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x s eries CT-S310II
[Function] Printing in PAGE MODE and r eturning to STAND ARD MODE (at the selection of PAG E 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 ST ANDARD MODE.
[Caution] [The specification which is common to the model]
• All mapped data is erased after printout.
• The print area set up by ESC W is initiali zed.
• This command does not ex ecute a paper cut.
• After this command is executed, the beginning of the line is taken as the st art position for the next print.
• This command is only ef fective when the PAGE MOD E is selected.
CT-S4000
• When selecting BM paper or label paper to s peci fy the PAG E M ODE, data ex tended 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/Label specification)
Support model
CT-S280
CT-S300 CT-S2000 CT-S4000 CT-S251
CT-S281
CT-S310
CT-S801/851
CT-S601/651
CT-P29x series
CT-S310II
[Function] At selection of Black mark/Label paper (valid only for Black mark/Label specification)
[Outline] [The specification which is common to the model]
• This command prints the data in the printer buffer an d searches for the head o f the nex t Black mark /Label
(Black mark position/Top of label)
[Caution] [The specification which is common to the model]
• This command does not ex ecute a paper cut.
• After this command is executed, the beginning of the line i s taken as the start positio n for the next print.
• Valid only for label- or BM-supported model.
(Please confirm specif ications for the detai ls.)
[See Also] GS FF
- 52 -
ESC FF
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310II
[Function] Printing data in PAGE MOD E
[Code] <1B>H<0C>H
[Outline] [The specification which is common to the model]
• Executes a batch prin tout of the data mapped in th e entire print area in PAGE MODE.
[Caution] [The specification which is common to the model]
• This command is only ef fective when PAGE MODE is s elected.
• Mapped data, as well as the ESC T and ESC W settin gs, and the character mapping position are he ld even after printing.
[See Also] Appendix 5.1 “Explanation on PAGE MODE”
FF, ESC L, ESC S
- 53 -
ESC J n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310II
[Function]
Printing and feeding pap er in minimum pitch
[Code] <1B>H<4A>H<n>
[Range] 0n255
[Outline] [The specification which is common to the model]
• Prints the data held in the print buf fer and feeds paper by [n×basic calculation pitch] inches.
[Caution] [The specification which is common to the model]
• After this command is executed, the beginning of the line is taken as the st art position for the next print.
• The line feed width can b e set separately for the ST ANDARD and PAGE MODES.
• This command does not aff ect the line feed width defined by ESC 2 or ESC 3.
• The basic calculation pitch is set by GS P.
• Fractions resulting fro m calculation are correc ted with the minimum pitc h of the mechanism, and th e remainder is omitted.
• In STANDARD MODE, this command uses the vertical (pap er feed direction) basic calculation pitch (y).
• In PAGE MODE, this comman d acts differently depen ding on the start point:
(1) If the start point specified by ESC T is top left or bottom right, th e 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, th e command uses the horizon tal
(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 max imum is trimmed to the maximum.
[Default] The initial value is not defined.
- 54 -
ESC d n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Printing and feeding the paper by “n” lines
[Code] <1B>H<64>H<n>
[Range] 0n255
[Outline] [The specification which is common to the model]
Prints data in the print buffer and feeds paper by “ n” lines. Specified lines d o not remain.
[Caution] • After this command is execu ted, the beginning of the lin e is taken as the start p osition for the next
print.
• If [n×l ine feed width] exceeds approximately 1016 mm, thi s 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
2/6-inch line feed
- 55 -
2.2.3 P rint Character Commands
CAN
Support model
CT-S280
CT-S300
CT-S2000
CT-S4000
CT-S251
CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Canceling print data in PAGE MODE
[Code] <18>H
[Outline] [The specification which is common to the model]
Erases all data contained i n the currently effecti ve print area in PAGE MOD E.
[Caution] • This command is o nly effective when PAGE MO DE is selected.
• If the previously est ablished print area overl aps the currently effec tive print area, the overla pped data in the previously established area will be erased.
[See Also] Appendix 5.1 “Explanation on PAGE MODE”
ESC L, ESC W
- 56 -
ESC SP n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Setting the right spacing of the character
[Code] <1B>H<20>H<n>
[Range] 0n255
[Outline] [The specification which is common to the model]
• Sets the right spacin g of character to [n×basic calculation pitch] inches.
[Caution] [The specification which is common to the model]
• 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 b e set separately for the S TANDARD 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 fro m calculation are correc ted with the minimum pitc h of the mechanism, and th e 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, th e command uses the horizo ntal basic
calculation pitch (x).
(2) If the start point specified by ESC T is top right or bottom lef t, the command uses the verti cal 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 tri mmed to the maximum.
[Default] n=0
[The specification which depend on the model]
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S251
MSW6-2 ON : n=0 MSW6-2 OFF: n=1
[See Also] GS P
[Sample Program] [Print Results]
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);
AAAAA
A A A A A A A A A A
0-dot space
1-dot space
12-dots space
- 57 -
ESC ! n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Collectively specifying the printing mode
[Code] <1B>H<21>H<n>
[Range] 0n255
[Outline] [The specification which is common to the model]
Printing mode is assigned.
[The specification which depend on the model]
CT-S300/CT-S310/ CT-S801/CT-S851/CT-S601/CT-S651/CT-P29xseries
Bit Function
Value
0
1
0
Character Font Font A (12×24) Font B (9×17)
1
Undefined
2
Undefined
3
Emphasis
Canceled
Specified
4
Double height Canceled Specified
5
Double width Canceled Specified
6
Undefined
7
Underline
Canceled
Specified
CT-S280/CT-S281/CT-S2000/CT-S4000/CT-S310 II/
CT-S801II/CT-S851II/CT-S601II/CT-S651II/CT-S251
Bit Function
Value
0
1
0
Character Font Font A (12×24) Font B (9×24)
1
Undefined
2
Undefined
3
Emphasis Canceled Specified
4
Double height
Canceled
Specified
5
Double width
Canceled
Specified
6
Undefined
7
Underline Canceled Specified
- 58 -
[Caution] • With double height and double width being specified simultaneously, qu adruple 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). N either is it attached to 90 °-right-turned characters.
• The underline width is as specified by the ESC – command. (The default s etting 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 magni fication ratios coexis t 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.
• 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 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 A
Font B
Font A + Emphasis
Font B + Emphasis
+ Quadruple + Underline Font A + Underline
Font A + Double width
Font A + Double height
- 59 -
ESC % n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying/canceling download character set
[Code] <1B>H<25>H<n>
[Range] 0n255
[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 b it (n0) is shown as follows:
n0
Function
0
Canceling download character set
1
Specifying download character set
[Default] n=0
[See Also] ESC &
[Sample Program]
GOSUB SETCHR DATA 6 LPRINT CHR$(&H1B);"%";CHR$(0); DATA &HFF,&H80,&H00 LPRINT "@A";CHR$(&HA); DAT A &H80,&H80,&H00 LPRINT CHR$(&H1B);"%";CHR$(1); DA T A &H80,&H80,&H00 LPRINT "@A";CHR$(&HA); DA TA &H80,&H80,&H00 END DA TA &HFF,&HFF,&HFF SETCHR: DA T A &HFF,&HFF ,&HFF LPRINT CHR$(&H1B);"&"; DATA 12 LPRINT CHR$(3);"@";"A"; DA T A &HFF ,&HFF,&HFF FOR J=1 TO 2 DAT A &H80,&H07 ,&HF9 READ REP DA TA &H80,&HFF,&HF9 LPRINT CHR$(REP); DA T A &H87,&HFE,&H01 FOR I=1 TO REP*3 DA TA &H9F,&H06,&H01 READ D DA T A &HF8,&H06,&H01 LPRINT CHR$(D); DA T A &HF8,&H06,&H01 NEXT I DA TA &H9F,&H06,&H01 NEXT J DA TA &H87 ,&HFE,&H01 RETURN DA TA &H80,&HFF,&HF9 DA TA &H80,&H07 ,&HF9 DA TA &HFF,&HFF,&HFF
[Print Results]
@
Internal character set
Download character
- 60 -
ESC & s n m [ a [p] s x a ] m-n+1
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Defining the download characters
[Code] <1B>H<26>H<s>H<n>H<m>H [<a>H<p1>H<p2>---<ps×a>] m-n+1
[Range] s=3(Font A, B), s=2(Font C)
32≤n≤m≤126 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 20H to 7EH.
• “a” indicates the number o f dots to be defined in h orizontal direction.
• “p” is the data to be defined, whi ch indicate a pattern equal to “a” dots in h orizontal direction from the left end. The rest of the pattern on th e right side is fil led with space.
• The number of data to be defined is “s × 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] [The specification which depend on the model]
CT-S280/CT-S281/CT-S300/CT-S310/CT-P29x series
• Running this command clears the definition of the download bit image.
CT-S2000/CT-S4000 / CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II) /
CT-S251
• Running this command does n't clear the definitio n of the download bit im age.
[Default]
Same as the internal character set.
[See Also] ESC %, ESC ?
- 61 -
[Example]
Font A
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 % .
p1
p2
p3
p4
p5
p6 p36
p35
p34
MSB
LSB
12dot
24dot
- 62 -
Underline canceled
Underline specified
AAAAAAAAAA
ESC - n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying /canceling underline
[Code] <1B>H<2D>H<n>
[Range] 0n2, 48n50
[Outline] [The specification which is common to the model]
• Specifying /canceling an underline.
n
Function
0,48
Canceling underline
1,49
Setting 1-dot width underline
2,50
Setting 2-dot width underline
[Caution] [The specification which is common to the model]
• 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 spec ified/canceled by ESC ! but the setting of c ommand last processed is vali d.
• Specifying/canceling by this command is not valid for kanji.
• Underline width is co nstant in the specified thic kness regardless of th e character size.
[Default] n=0
[See Also] ESC !, FS -
[Sample Program] [Print Results]
LPRINT CHR$(&H1B);"-"; CHR$(0); LPRINT "AAAAA"; LPRINT CHR$(&H1B);"-"; CHR$(1); LPRINT "AAAAA"; CHR$(&HA);
- 63 -
ESC ? n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Deleting download characters
[Code] <1B>H<3F>H<n>
[Range] 32n≤126
[Outline] [The specification which is common to the model]
Deletes the downloaded ch aracters of specified c ode.
[Caution] [The specification which is common to the model]
• The character “n” indicates the character code used to delete the defined pattern. After the deletion, characters are printed in the same pattern as th e internal characters.
• This command deletes the code-defined pattern of the character font s elected by ESC !.
• This command is ignored if the specified character code is undefined.
[See Also] ESC &, ESC %
- 64 -
ESC E n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying/canceling emphasis printing
[Code] <1B>H<45>H<n>
[Range] 0n255
[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 b it (n0) is shown as follows:
n0
Function
0
Canceling emphasis printing
1
Specifying emphasis printing
[Caution] [The specification which is common to the model]
• 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
Emphasis canceled
AAABBB Emphasis specified
- 65 -
ESC G n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying/canceling double strike printing
[Code] <1B>H<47>H<n>
[Range] 0n255
[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 b it (n0) is shown as follows:
n0
Function
0
Canceling double strike printing
1
Specifying double strike printing
[Caution] [The specification which is common to the model]
• With this printer, double-strike printing and emphasis prin ting provide completely the same
results.
• Valid for all character types except HRI characters.
[Default] n=0
[See Also] ESC E
[Sample Program] [Print Results]
LPRINT CHR$(&H1B);"G"; CHR$(0); LPRINT "AAABBB"; CHR$(&HA); LPRINT CHR$(&H1B);"G"; CHR$(1); LPRINT "AAABBB"; CHR$(&HA);
AAABBB Double strike printing canceled AAABBB Double strike printing specified
- 66 -
ESC M n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Selection of character fonts
[Code] <1B>H<4D>H<n>
[Range] 0n2, 48n50
[Outline] [The specification which is common to the model]
• Selects character fo nts.
[The specification which depend on the model]
CT-S300/CT-S310/CT-S801/CT-S851/CT-S601/CT-S651/CT-P29x series
n
Function
0, 48
Selection of font A (12 × 24)
1, 49
Selection of font B (9 × 17)
2, 50
Selection of font C (8 × 16)
CT-S280/CT-S281/CT-S2000/CT-S4000/CT-S310 II/
CT-S801II/CT-S851II/CT-S601II/CT-S651II/CT-S251
n
Function
0, 48
Selection of font A (12 × 24)
1, 49
Selection of font B (9 × 24)
2, 50
Selection of font C (8 × 16)
[Caution] • ESC ! can also s elect fonts, but the setting m ade by the command that has l ast been processed
becomes valid.
[Default] n=0
[See Also] ESC!
- 67 -
ESC R n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Selecting the international character set
[Code] <1B>H<52>H<n>
[Range] [The specification which depend on the model]
CT-S280/CT-S300
0≦n≦13
CT-S281/CT-S310/CT-S2000/CT-S4000/CT-P29x series
0≦n≦15
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S401/CT-S251
0n16
[Outline] [The specification which is common to the model]
• Depending on the value of “n”, one of the following character sets is specified;
n
Character Set
n
Character Set
0
U.S.A.
9
Norway
1
France
10
Denmark II
2
Germany
11
Spain II
3
U.K.
12
Latin America
4
Denmark I
13
Korea
5
Sweden
14
Croatia
6
Italy
15
China
7
Spain I
16
Vietnam
8
Japan
[Default] [The specification which is common to the model]
standard specifications:
n=0 (International), n=8 (Japan)
Hangul specifications:
n=13
[The specification which depend on the model]
Chinese specifications:
CT-S300/CT-S310 (U.S.A)
n=0
CT-S310 (Australia)/CT-S2000/CT-S4000/ CT-S801(II) /
CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310 II
n=15
[See Also] 3.2 “International Character Code Table”
- 68 -
ESC V n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying/canceling 90°-right-turned characters
[Code] <1B>H<56>H<n>
[Range] 0n1, 48n49
[Outline] [The specification which is common to the model]
• Specifying/canceling 90°-right-turned characters.
n
Function
0,48
Canceling 90°-right-turned characters
1,49
Specifying 90°-right-turned characters
[Caution] [The specification which is common to the model]
• No underlines are attached to 90°-right-turned characters.
• This command does not aff ect 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
- 69 -
ESC t n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Selecting the character code table
[Code] <1B>H<74>H<n>
[Range] 0n9, 16n19, n=26, 40, 255
[The specification which depend on the model]
CT-S280/CT-S300/CT-S281/CT-S310/CT-S2000/CT-S4000/
CT-S801/CT-S851/CT-S601/CT-S651/CT-P29x series /CT-S310 II
0≤n≤9, 16≤n≤19, n=26, 40, 255
Newer firmware version of CT-S801II/CT-S851II/CT-S601II/CT-S651II/CT-S251/
CT-S310 II
0≤n≤9, 16≤n≤19, n=26, 30, 31, 40, 255
[Outline] [The specification which is common to the model]
• Selecting the character code table.
• The character code tabl e is selected based on the value of “n”.
n
Character Code Table
n
Character Code Table
0
Codepage PC437
19
Codepage PC858
1
Katakana
20
Thai code11 1 Pass
2
Codepage PC850
21
Thai code11 3 Pass
3
Codepage PC860
25
Thai code 18 1 Pass
4
Codepage PC863
26
Thai code 18 3 Pass
5
Codepage PC865
30
TCVN-3
6,18
Codepage PC852
31
TCVN-3 Caps
7,17
Codepage PC866
40
Codepage PC864
8
Codepage PC857
255
Space page (For user setting)
9,16
Windows code
-
-
[Default] n=0 (International)
n=1 (Japan)
[Sample Program] [Print Results]
LPRINT CHR$(&H1B);"t"; CHR$(0); LPRINT "n=0 "; n=0 FOR C=&HB1 TO &HB5
LPRINT CHR$(C); n=1 アイウエオ
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);
- 70 -
ESC { n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying/canceling the inverted characters
[Code] <1B>H<7B>H<n>
[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 b it (n0) is shown as follows:
n0
Function
0
Canceling inverted characters.
1
Specifying inverted characters.
[Caution] [The specification which is common to the model]
• This command is valid only when it is specified at the beginning of a line.
• This command does not aff ect 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
Inversion specified
Paper feed direction
- 71 -
ESC ˜ J n (Valid in CBM-270-Compatible Mode)
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifies/cancels printing in red (black-based paper)
[Code] <1B>H<7E>H<4A>H<n>
[Range] 0n255
[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 b it (n0) is shown as follows:
n0
Function
black-based paper
red-based paper
0
Canceling red printing.
Canceling black printing.
1
Specifying red printing.
Specifying black printing.
[Caution] [The specification which is common to the model]
• Valid when 2-color paper is specified by the GS ( E command.
• This command must not be u sed for normal thermal paper.
• At the time of setting, c onducting pulse amoun t is increased to change th e coloring.
• In case of MSW3-7=OFF, this command is invalid.
[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]
* When dedicated thermal paper (black-based paper) is used.
AAAAA
AAAAA
Red printing
Black printing
- 72 -
ESC ˜ J n (Valid in CBM1000-Compatible Mode)
Support model
CT-S280
CT-S300 CT-S2000 CT-S4000 CT-S251
CT-S281
CT-S310
CT-S801/851
CT-S601/651
CT-P29x series
CT-S310 II
[Function] Specifies/cancels printing in red (black-based paper)
[Code] <1B>H<7E>H<4A>H<n>
[Range] 0n255
[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 b it (n0) is shown as follows:
n0
Function
black-based paper
red-based paper
0
Specifying red printing.
Specifying black printing.
1
Canceling red printing.
Canceling black printing.
[Caution] [The specification which is common to the model]
• Valid when 2-color paper is specified by the GS ( E command.
• This command must not be u sed for normal thermal paper.
• Conducting pulse amount after cancellation is standard value. At the time of setting, condu cting pulse amount is increased to change the coloring.
• In case of MSW3-7=OFF, this command is invalid.
[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]
* When dedicated thermal paper (black-based paper) is used.
AAAAA
AAAAA
Black printing Red printing
- 73 -
DC3 n (V alid in CBM-270-Compati ble Mode)
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifies/cancels printing in red (black-based paper)
[Code] <13>H<n>
[Range] 0n255
[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
Function
black-based paper
red-based paper
0
Canceling red printing.
Canceling black printing.
1
Specifying red printing.
Specifying black printing.
[Caution] [The specification which is common to the model]
• Valid only at the top of a line.
• This command must not be u sed for normal thermal paper.
• At the time of setting, c onducting pulse amoun t is increased to change th e coloring.
• In case of MSW3-7=OFF, this command is invalid.
• Valid only in standard mode.
[The specification which depend on the model]
CT-S281
When n ormal thermal paper mode is specified, the command is use d, it becomes2-color paper mode. It executes command <ESC @> or becomes effec tive until turning of f power .
CT-S280
• Depending on the setting of MSW4-7, function set by DC3 comman d is switched as per the table below.
n0
MSW4-7:DC3 command function
OFF=2 color printing
ON=Black/White reverse
0
2 color printing is invalid
B/W reverse printing is inv alid.
1
2 color printing is valid.
B/W reverse printing is vali d.
[Default] n=0
[Sample Program]
LPRINT CHR$(&H13); CHR$(1); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H13); CHR$(0); LPRINT "AAAAA"; CHR$(&HA);
- 74 -
[Print Results]
* When dedicated thermal paper (Black-based pap er) is used.
AAAAA
AAAAA
Red printing
Black printing
- 75 -
DC3 n (V alid in CBM1000-Compatible Mode)
Support model
CT-S280
CT-S300 CT-S2000 CT-S4000 CT-S251
CT-S281
CT-S310
CT-S801/851
CT-S601/651
CT-P29x series
CT-S310 II
[Function] Specifies/cancels printing in red (black-based paper)
[Code] <13>H<n>
[Range] 0n255
[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 b it (n0) is shown as follows:
n0
Function
black-based paper
red-based paper
0
Specifying red printing.
Specifying black printing.
1
Canceling red printing.
Canceling black printing.
[Caution] [The specification which is common to the model]
• Valid when 2-color paper is specified by the GS ( E command.
• Valid only at the top of a line.
• This command must not be u sed for normal thermal paper.
• At the time of setting, c onducting pulse amoun t is increased to change th e coloring.
• In case of MSW3-7=OFF, this command is invalid.
[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]
* When dedicated thermal paper (Black-based pap er) is used.
AAAAA
AAAAA
Black printing Red printing
- 76 -
GS ! n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying the character size
[Code] <1D>H<21>H<n>
[Range] 0n255
Where: 1≤vertical magnification≤8, 1≤horizontal magnification≤8
[Outline] [The specification which is common to the model]
• Specifies the char acter size (Vertical and horizontal magnification).
Bit Function
Value
Hex. Number
Decimal Number
0
Vertical magnification specification Refer to Table 2, “Vertical Magnification”.
1
2
3
4
Horizontal magnification
specification
Refer to Table 1, “Horizontal Magnification”.
5
6
7
Table 1 Horizontal Magnification Table 2 Vertical Magnification
Hex.
Decimal
Magnification
Hex.
Decimal
Magnification
00H
0
1 × (Standard)
00H 0 1 × (Standard)
10H
16
2 × (Double width)
01H
1
2 × (Double)
20H
32
3 ×
02H
2
3 ×
30H
48
4 ×
03H
3
4 ×
40H
64
5 ×
04H
4
5 ×
50H
80
6 ×
05H
5
6 ×
60H
96
7 ×
06H
6
7 ×
70H
112
8 ×
07H
7
8 ×
- 77 -
[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-b ottom direction of each cha racter. The horizonta l 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 v ertical direction is d efined as the paper feed dir ection, and the horizon tal direction is defined as the direc tion perpendicular to the pape r feed.
• 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 !
- 78 -
GS B n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying/canceling the black/white inverted printing
[Code] <1D>H<42>H<n>
[Range] 0n255
[Outline] [The specification which is common to the model]
• This command specifies or cancels the black/white inverted printin g.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest b it (n0) is shown as follows:
n0
Function
0
The black/white inverted printing is canceled.
1
The black/white inverted printing is specified.
[Caution] [The specification which is common to the model]
• 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 n ot affec t th e bit imag e, down lo aded bit im age, bar c ode, HRI ch aracters , o r the s kip area specified by HT, ESC $, or ESC \.
• This command does not aff ect the space between li nes.
• 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
- 79 -
GS b n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying/canceling the smoothing
[Code] <1D>H<62>H<n>
[Range] 0n255
[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 b it (n0) is shown as follows:
n0
Function
0
The smoothing is canceled.
1
The smoothing is specified.
[Caution] [The specification which is common to the model]
• Smoothing is effective to printer’s internal characters, download characters, and non-standard
characters.
• Smoothing is not effec tive to characters with either of their vertical or horizontal magnific ation is x1.
[Default] n=0
[See Also] ESC! , GS !
- 80 -
2.2.4 Print Position Commands
HT
Support model
CT-S280
CT-S300
CT-S2000
CT-S4000
CT-S251
CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Horizontal tab
[Code] <09>H
[Outline] [The specification which is common to the model]
• Shifts the printing p osition to the next hor izontal tab position.
• Ignored when the next hor izontal tab position has not been set.
[Caution] [The specification which is common to the model]
• 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
When set to the 4th, 8th, and 15th columns
Initially set horizontal tab
- 81 -
ESC $ n1 n2
Support model
CT-S280
CT-S300
CT-S2000
CT-S4000
CT-S251
CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying the absolute positions
[Code] <1B>H<24>H<n1><n2>
[Range] 0n1255
0≤n2≤255
[Outline] [The specification which is common to the model]
• The print ing st art position is sp ecif ied by the absolu te position from th e left margin wi th 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 specification which is common to the model]
• The basic calculation p itch is set by GS P. Af ter the line feed width is set, if the basic calculat ion by
GS P leaves a fraction, th e 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 comman d acts differently dep ending on the start point:
(1) If the start point specified by ESC T is top right or bottom left, the command u ses the vertical (Paper feed
direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top left or bottom right, th e command uses the horizo ntal
(Perpendicular to the pap er 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);
Absolute position specified
0
50 100 256
A
B C
A B A
-62 Relative position specified
- 82 -
ESC D [n] k NULL
support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Setting horizontal tab position
[Code] <1B>H<44>H [<n>] k<00>H
[Range] 1n255
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 se t.
• The tab position is s et 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 r ight. In double width characters, it is made do uble the ordinary case.
• Tab positions that can b e specified are maximu m 32. Specifying tab positio ns exceeding this limit i s ignored.
• <n> k, which denotes a setting position, is input in the increasing order and ends at 00H.
• ESC D <NULL> c lears all the set tab positions. Following clearing, the horizontal tab command is igno red.
[Caution] [The specification which is common to the model]
• When the data, <n> k , is equal to or smaller th an its preceding data, <n> k-1, it is assumed that
tab setting is finished. If this is the case, the next data onward will be processed as normal dat a.
• When the data, <n> k , exceeds a 1-line print area, set the horizon tal tab position, as “Set co lumn position = Maximum print columns + 1”.
• The horizontal tab position does not change even if the character width is alter ed after setting the hori zontal 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.
- 83 -
ESC T n
support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Selecting the character printing dir ection in PAGE MODE
[Code] <1B>H<54>H<n>
[Range] 0n3, 48n51
[Outline]
[The specification which is common to the model]
• Selects the direct ion and start point of c haracter printing in PAGE M ODE.
n
Printing Direction
Start Point
0, 48
Left to right
Top left (“A” in the figure)
1, 49
Bottom to top
Bottom left (“B” in the figure)
2, 50
Right to left
Bottom right (“C” in the figure)
3, 51
Top to bottom
Top right (“D” in the figure)
[Caution] [The specification which is common to the model]
• When STANDARD MODE is s elected, this command only ex ecutes the internal flagging of the printer without affecting the printing in STANDARD MODE.
• The character mapping position will be the st art 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 botto m 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 bo ttom left (The characters are mapped in the pape r 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
\
A
Paper feed direction
D
B
- 84 -
ESC W xL xH yL yH dxL dxH dyL dyH
support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Defining the print area in PAGE MODE
[Code] <1B>H<57>H<xL><xH><yL><yH><dxL><dxH><dyL><dyH>
[Range] 0xL, 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 poin t = [(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] [The specification which is common to the model]
• When STANDARD MODE is s elected, this command only ex ecutes the internal f lagging of the printer without affecting the printing in STANDARD MODE.
• If the horizontal start poi nt or vertical start point is out of the printable area, this command is canceled and the next data is handl ed as normal da ta.
• If the horizontal length or ve rtical lengt h is 0, this comm and is cancele d and the ne xt data is handled a s normal data.
• The character mapping position will be the st art point specified by ESC T in the print area.
• If the “horizontal star t point + horizontal len gth” is greater than the h orizontal printable are a, the “horizontal printable area – horizontal start point” is taken as the horizontal length.
• If the “vertical star t po in t + ver ti cal l ength ” is g rea ter th an th e vertical printable a rea, th e “ verti cal printable area – vertical start point” is taken as the vertical length.
• The basic calculation p itch is defined b y GS P. Once defined, the print are a is not changed if t he 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 illu strates the print area, wh ere X = horizontal start point, Y = vertical start point, Dx = horizontal length, and Dy = vertical length.
• The printable area is approximately 117 mm (938/203 inches) vertically, and horizontal area depends on the model. (Refer to the be low Table)
(X、Y)
Paper
Dx
Dy
Print Area
X+Dx-1、Y+Dy-1
Paper feed direction
- 85 -
[Default] xL=xH=yL=yH=0
dyL=126, dyH=6 dxL,dxH depends on paper width. (Refer to the below Table)
paper
width
print
width/(dot)
dxL dxH support model
112mm
104mm/(832)
96
3
CT-S4000
112mm
90mm/(720)
208
2
CT-S4000
83mm
82.5mm/(660)
148
2
CT-S4000
83mm
80mm/(640)
128
2
CT-S2000/CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)
80mm 72mm/(576) 64 2
CT-S300/CT-S310/CT-S2000/CT-S4000/CT-S801(II)/
CT-S851(II) /CT-S601(II)/CT-S651(II)/CT-P293/CT-S310II
80mm
68.25mm(546)
34
2
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310II
80mm
64mm/(512)
0
2
CT-S300/CT-S310/CT-S2000/CT-S4000/CT-S801(II)/
CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310II
60mm
54.5mm/(436)
180
1
CT-S2000/CT-S801(II)/CT-S851(II)/CT-S601(II)/
CT-S651(II)
58mm
54mm/(432)
176
1
CT-S2000/CT-S4000/CT-S801(II)/CT-S851(II)/CT-S601(II)/
CT-S651(II) /CT-S251
58mm
52.5mm/(420)
156
1
CT-S2000/CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/
CT-S310II/CT-S251
58mm
51mm/(408)
152
1
CT-P291
58mm
48.75mm(390)
134
1
CT-S801/CT-S851/CT-S601/CT-S651/CT-S310II
58mm
48mm/(384)
128
1
CT-S280/CT-S281/CT-S300/CT-S310/CT-S2000/
CT-S801/CT-S851/CT-S601/CT-S651/CT-P291/293/CT-S310II
/CT-S251
58mm
45mm/(360)
104
1
CT-S300/CT-S310/CT-S2000/CT-S4000/CT-S801(II)/
CT-S851(II) /CT-S601/CT-S651/CT-S310II/CT-S251
[See Also] Appendix 5.1 “Explanation on PAGE MODE”
CAN, ESC L, ESC T, GS P
- 86 -
ESC \ nL nH
support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying the relative position
[Code] <1B>H<5C>H<nL><nH>
[Range] 0nL255
0≤nH≤255
[Outline] [The specification which is common to the model]
• This command specif ies the next print start pos ition in a relative po sition with respect to the c urrent 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] [The specification which is common to the model]
• 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 n egative (–).
• A negative value is the c omplement of 65536 . For example, to move the positio n by N pitches to the lef t, 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 comman d acts differently depen ding on the start point:
(1) If the start point specified by ESC T is top l eft or bottom right, the command specifies th e relative position
in the direction perpendi cular 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 botto m left, the command specif ies 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 $.
- 87 -
ESC a n
support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Aligning the characters
[Code] <1B>H<61>H<n>
[Range] 0n2, 48n50
[Outline] [The specification which is common to the model]
• All the printed dat a within one line are align ed in the specified position.
• Depending on the value “n”, positional alignment is carried out as shown in the table below:
n
Position
0, 48
Left end alignment
1, 49
Centering
2, 50
Right end alignment
[Caution] [The specification which is common to the model]
• This command is valid only when it is inputted at the beginning of a line.
• This command does not aff ect the PAGE MODE.
• Executes justificati on in the print area being se t.
[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 Right-justified
- 88 -
GS $ nL nH
support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying the absolute position of character ver tical direction in PAG E MODE
[Code] <1D>H<24>H<nL><nH>
[Range] 0nL255, 0nH255
[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] [The specification which is common to the model]
• This command is ignored except at PAGE MODE selecti on.
• Absolute position set ting exceeding the specif ied print area is ignored.
• Position in horizonta l direction of character at the start position of d ata development is not shi fted.
• Start point used as the r eference 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” o r “lower right”, the absol ute position of paper fee d 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 absol ute position of vertic al 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
\
- 89 -
GS L nL nH
support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Setting the l eft margin
[Code] <1D>H<4C>H<nL><nH>
[Range] 0nL255, 0nH255
[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×256)×basic calculation pitch] inches.
Printable area
Left margin Print area width
[Caution] [The specification which is common to the model]
• This command only works when it is entered at the beginning of a line.
• When PAGE MODE is select ed, this command only executes the internal flaggi ng of the printer.
• The setting of this comm and does not affect PAGE M ODE.
• The maximum settable l eft margin is equal to the hor izontal printable area. A setting greater than th is 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 corr ected with the minimum pitch of the mechanism, and the r emainder is omitted.
• When you progress the first character in start of the line, if the prin t area specified is not wi de enough to accommodate the wide of on e character(*Right space is contained.),only the line for that character data is handled as follows:
(1) The print area is extended toward the righ t to be equivalent to one c haracter of the current fo nt, 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 im age, or bar code), if the print area specified is narrower than 9-bits, only th e line for that data i s 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
- 90 -
GS W nL nH
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Setting the print area width
[Code] <1D>H<57>H<nL><nH>
[Range] 0nL255
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 wi ll be [(nL+nH×256)×basic calculation pitch] inches.
Printable area
Left margin Print are a width
[Caution] [The specification which is common to the model]
• This command only works when it is entered at the beginning of a line.
• When PAGE MODE is select ed, this command only exec utes the internal flaggin g of the printer.
• The setting of this comm and does not affect PAGE M ODE.
• If the value enter ed with this command exc eeds the printable area for one line, the entire area excep t 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 calcu lation is c orrec ted with the mini mum p itch of th e mec hanism, and the rem ai nder is omitted.
• If the first character to be mapped at the begi nning of a line h as a width (including the right spacing) greater than the print area width, only that line is handled as follows:
(1) T he print area is extended toward the righ t to acco mmodate the fi rst character, b ut not wide r than the
printable area.
Printable area
A
(1) Extended toward the right
Left margin
Print area width
- 91 -
(2) If a sufficient area cannot be provided as a result of step (1), the print area is extended toward th e left (so,
the left margin is decreas ed).
Printable area
A
Left margin (1) Extended
(2) The left margin is trimmed 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 n arrower than the minim um width of the bit image (two dots for single density, or one dot for double density), o nly the line for that im age 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 imag e, but not wider than the p rintable area.
[Default]
paper
width
print
width/(dot)
nL nH support model
112mm
104mm/(832)
96 3 CT-S4000
112mm
90mm/(720)
208 2 CT-S4000
83mm
82.5/(660)
148 2 CT-S4000
83mm 80mm/(640) 128 2
CT-S2000/CT-S801(II) /CT-S851(II) /CT-S601(II)/
CT-S651(II)
80mm 72mm/(576) 64 2
CT-S300/CT-S310/CT-S2000/CT-S4000/CT-S801(II)/
CT-S851(II) /CT-S601(II) /CT-S651(II) /CT-P293/CT-S310II
80mm
68.25mm(546)
34 2 CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310II
80mm 64mm/(512) 0 2
CT-S300/CT-S310/CT-S2000/CT-S4000/CT-S801(II)/
CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310II
60mm
54.5mm/(
436)
180 1
CT-S2000/ CT-S801(II) /CT-S851(II) /CT-S601(II)/
CT-S651(II)
58mm 54mm/(432) 176 1
CT-S2000/CT-S4000/CT-S801(II) /CT-S851(II)/
CT-S601(II) /CT-S651(II) /CT-S251
58mm 52.5mm/(420) 156 1
CT-S2000/CT-S801(II) /CT-S851(II) /CT-S601(II)/
CT-S651(II) /CT-S310II/CT-S251
58mm
51mm(408)
152 1 CT-P291
58mm 48.75mm(390) 134 1
CT-S801(II) /CT-S851(II) /CT-S601(II) /CT-S651(II)/
CT-S310II/ CT-S251
58mm 48mm/(384) 128 1
CT-S280/CT-S281/CT-S300/CT-S310/CT-S2000/
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/
CT-P291/293/CT-S310II/ CT-S251
58mm 45mm/(360) 104 1
CT-S300/CT-S310/CT-S2000/
CT-S4000/CT-S801(II)/CT-S601(II) /CT-S310II/CT-S251
[See Also] GS L, GS P
- 92 -
GS \ nL nH
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying the relative vertical position of a character in PAGE MODE
[Code] <1D>H<5C>H<nL><nH>
[Range] 0nL255, 0nH255
[Outline] [The specification which is common to the model]
• This command is used i n PAGE MODE to specify the vertic al position of a character in th e data mapping start
position, in a relative position with respect to the current position.
• The next data mapping start po sition will be at a poin t [(nL+nH×256)×basic calculation pitch] inches away
from the current position.
[Caution] [The specification which is common to the model]
• This command is igno red when PAGE MODE is not s elected.
• 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, i t should be negative (–).
• A negative value is the c omplement 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 ou tside the specified print ar ea is ignored.
• Depending on the start point specified by ESC T, this command acts as fol lows:
(1) If the start point is the top left or botto m right, the command sp ecifies the relative positi on 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 b ottom left, the command specifi es the relative position in the dir ection
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.
- 93 -
2.2.5 Line Feed Span Commands
ESC 2
Support model
CT-S280
CT-S300
CT-S2000
CT-S4000
CT-S251
CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying 1/6-inch line feed rate
[Code] <1B>H<32>H
[Outline] [The specification which depend on the model]
CT-S280/CT-S281/CT-S300/CT-S310/CT-P29x series
The line feed rate per line is specified by 1/6 inch.
CT-S2000/CT-S4000/CT-S801/CT-S851/CT-S601/CT-S651/CT-S301II
The line feed rate p er line is specified by M SW5-2 setting.
[Caution] [The specification which is common to the model]
• Line feed rate can be s pecified respectively f or both STANDARD MODE and PAG E MODE.
[Default] [The specification which depend on the model]
CT-S280/CT-S281/CT-S300/CT-S310/CT-P29x series
Approx. 4.23mm (1/360 inches)
CT-S2000/CT-S4000/ CT-S801(II)/CT-S851(II)/CT-S601(II)/
CT-S65
1(II)/CT-S301II/CT-S251
(1) MSW 5-2 OFF:
Approx. 4.23mm
(2) MSW 5-2 ON:
Approx. 3.75 mm
- 94 -
ESC 3 n
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Setting line feed rate of minimum pitc h
[Code] <1B>H<33>H<n>
[Range] 0n255
[Outline] [The specification which is common to the model]
Sets the line feed width p er line to [n×basic calculation pitch] inches.
[Caution] [The specification which is common to the model]
• The line feed width can b e set separately for the ST ANDARD 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 w ith the minimum pitch of the mechanism, a nd the
remainder is omitted.
• In STANDARD MODE, this command uses the vertical (pap er feed direction) basic calculation pitch (y).
• In PAGE MODE, this comman d acts differently depen ding on the start point:
(1) If the start point specified by ESC T is top left or bottom right, the command u ses the vertical (paper feed
direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top right or bottom lef t, the command uses the ho rizontal
(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 specification which depend on the model]
CT-S280/CT-S281/CT-S300/CT-S310/CT-P29x series
Approx. 4.23mm
CT-S2000/CT-S4000/ CT-S801(II)/CT-S851(II)/CT-S601(II)/
CT-S65
1(II)/CT-S251
(1) MSW 5-2 OFF:
Approx. 4.23mm
(2) MSW 5-2 ON:
Approx. 3.75 mm
[See Also] ESC 2, GS P
- 95 -
2.2.6 Bit Image C ommands
ESC * m n1 n2 [d] k
Support model
CT-S280
CT-S300
CT-S2000
CT-S4000
CT-S251
CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Specifying the bit image mode
[Code] <1B>H<2A>H<m>H<n1><n2> [<d>] k
[Range] m=0, 1, 32, 33
0≤n1≤255, 0≤n2≤3 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 b een input in excess of dot positions that can be pr inted on one line, the exc ess 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 specif ied by “m” are shown as f ollows:
m Mode
Vertical Direction
Horizontal Direction
Dot Count Dot Density Dot Density
Maximum Dot Count
0
8 dot single density
8
67dpi
101dpi
(1)
1
8 dot double density
8
67dpi
203dpi
(2)
32
24 dot single density
24
203dpi
101dpi
(3)
33
24 dot double density
24
203dpi
203dpi
(4)
- 96 -
[The specification which depend on the model] (1) - (4) unit: dpi
support model
paper width
print
width
(1) (2) (3) (4)
CT-S4000
112mm
104mm
416
832
416
832
CT-S4000
112mm
90mm
360
720
360
720
CT-S4000
83mm
82.5mm
330
660
330
660
CT-S2000 /CT-S801(II)/CT-S851(II)/CT-S601(II) /
CT-S651(II)
83mm
80mm
320
640
320
640
CT-S300/CT-S310/CT-S2000/CT-S4000 CT-S801(II)/CT-S851(II)/
CT-S601(II)/CT-S651(II)/CT-P293/CT-S310II
80mm 72mm 286 576 286 576
CT-S801(II) /CT-S851(II)/CT-S601(II) /CT-S651(II)/CT-S310II
80mm
68.25mm
273
546
273
546
CT-S300/CT-S310/CT-S2000/CT-S4000/
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310II
80mm
64mm
256
512
256
512
CT-S2000/CT-S801(II) /CT-S851(II)/CT-S601/CT-S651(II)
60mm
54.5mm
218
436
218
436
CT-S2000/CT-S4000/CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)
/CT-S251
58mm
54mm
216
432
216
432
CT-S2000/CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/
CT-S310II/CT-S251
58mm
52.5mm
210
420
210
420
CT-P291
58mm
51mm
204
408
204
408
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310II/CT-S251
58mm
48.75mm
195
390
195
390
CT-S280/CT-S281/CT-S300/CT-S310/CT-S2000/
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-P291/293/CT-S3
10II/CT-S251
58mm
48mm
192
384
192
384
CT-S300/CT-S310/CT-S2000/CT-S4000/
CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)/CT-S310II/CT-S251
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 i mage printing, the prin ter returns to normal dat a processing mode.
- 97 -
GS * n1 n2 [d] n1xn2x8
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Defining the download bit image
[Code] <1D>H<2A>H<n1><n2> [<d>] n1×n2×8
[Range] 1n1255
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 n 1×8 in horizontal direction and n2×8 in vertical direction.
• ”7d” indicates bit image data.
• Once defined, the download bit i mage remains effective unti l it is redefined, ESC @, ESC &, GS (A, or FS q, is executed, or power is tur ned OFF.
[Caution] [The specification which is common to the model]
• Relations between th e bit image data and the do ts defined are shown below.
[The specification which depend on the model]
CT-S280/CT-S281/CT-S300/CT-S310/CT-P29x series
• With this command execu ted, the defined content o f a downloaded character i s cleared.
CT-S2000/CT-S4000/CT-S801(II)/CT-S851(II)/CT-S601(II)/CT-S651(II)
/CT-S251
• With this command execu ted, the defined content o f a downloaded character i s not cleared.
[See Also] GS /
dn2+1
dn2+2
dn2×2
dn2×2+1
dn2×2+2
dn2×n1×8
MSB
LSB
n1×8 dots
n2×8 dots
d
d2
dn2
- 98 -
GS / m
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Printing the downloaded bit image
[Code] <1D>H<2F>H<m>
[Range] 0m3, 48m51
[Caution] [The specification which is common to the model]
• Prints downloaded b it image in a mode specified b y “m”.
• Modes that can be selec ted by “m” are shown below.
m Mode Name
Dot Density in
Vertical Direction
Dot Density in
Horizontal Direction
0, 48
NORMAL MODE
203DPI
203DPI
1, 49
DOUBLE WIDTH MODE
203DPI
101DPI
2, 50
DOUBLE HEIGHT MODE
101DPI
203DPI
3, 51
QUADRUPLE SIZE MODE
101DPI
101DPI
[Caution] [The specification which is common to the model]
• When a downloaded bit im age has not been defined, th is command is ignored.
• When data exist in the prin t buffer, this command i s ignored.
• A portion of a downloaded bit image exc eeding one line length is not printed.
[See Also] ESC &, GS *
- 99 -
GS v 0 m xL xH yL yH d1 ... dk
Support model
CT-S280 CT-S300 CT-S2000 CT-S4000 CT-S251 CT-S281 CT-S310 CT-S801/851 CT-S601/651 CT-P29x series CT-S310 II
[Function] Printing of raster bit image
[Code] <1D>H<76>H<30>H<m><xL><xH><yL><yH> [<d>] k
[Range] 0m3, 48m51, 0xL255, 0xH255,
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 i mages in mode “m”.
m
Mode Name
Dot Density in
Vertical Direction
Dot Density in
Horizontal Direction
0, 48
NORMAL MODE
203dpi
203dpi
1, 49
DOUBLE WIDTH MODE
203dpi
101dpi
2, 50
DOUBLE HEIGHT MODE
101dpi
203dpi
3, 51
QUADRUPLE SIZE MODE
101dpi
101dpi
• xL, xH specify the nu mber of data in horizontal di rection of the bit image to (xL+xH×256) bytes.
• yL, yH specify the n umber of data in vertical dir ection 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 th e raster bit image.
• If the print area specified by GS L and GS W is narro wer than a minimum wid th, the print are a for that line only is extended to the minimum width . The minimu m width is one dot in NO RMAL 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 i s out of the print area is only read and discar ded 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 margi ns). Note that i f the print s tart position is not a
multiple of 8, the printing s peed may decrease.
• The setting of ESC a (aligning characters) are also valid for the raster bit imag e.
• 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 dat a. Dots to be printed are spec ified as “1”, and th ose not to be printed as “0” .
• Valid only when no print data is present in the print buffer at the selection of STANDARD MODE.
Loading...