CITIZEN PPU-700 Reference Guide

Command Reference
PRINTER PRESENTER UNIT
MODEL
Rev. 1.01 Issued on April 25, 2005
PPU-700

REVISION

Rev. No. Date Comment
Rev. 0.00 2004/01/14 Newly issued
Rev. 1.02 2005/04/25 Change of code pages
2005/01/13 Add “3.1.12 Code Page 00H to 7FH & Thai Code 18”
2005/03/04 “GS g 0”, “GS g 2”, “FS g 3”, “FS g 4”, “GS ( K (fn = 200 ~ 208)”, “GS ( E (fn = 5:
200 ~ 211, 240/fn = 6: 200 ~ 211)”, “GS I (n = 250, 251)”were deleted

TABLE OF CONTENTS

1. OUTLINE .............................................................................................................................................. 1
1.1 Operation Mode ............................................................................................................................................ 1
1.2 Character Set ................................................................................................................................................. 1
1.3 Control Commands ....................................................................................................................................... 1
1.3.1 Control Command Details ..................................................................................................................1
1.3.2 How to Send Control Commands ...................................................................................................... 1
2. CONTROL COMMANDS ..................................................................................................................... 2
2.1 ESC/POS Command List ............................................................................................................................... 2
2.1.1 Description of Items ............................................................................................................................ 6
2.2 Command Details .......................................................................................................................................... 7
2.2.1 Print Control Commands .................................................................................................................... 7
LF .............................................................................................................................................................. 7
CR .............................................................................................................................................................8
FF .............................................................................................................................................................. 9
ESC FF .................................................................................................................................................... 10
ESC J n ................................................................................................................................................... 10
ESC d n .................................................................................................................................................. 11
2.2.2 Print Character Commands .............................................................................................................. 12
CAN ........................................................................................................................................................12
ESC SP n ................................................................................................................................................13
ESC ! n ................................................................................................................................................... 14
ESC % n ................................................................................................................................................. 16
ESC & s n m [a[p]s×a] m–n+1 .............................................................................................................. 17
ESC – n ................................................................................................................................................... 18
ESC ? n ................................................................................................................................................... 19
ESC E n .................................................................................................................................................. 20
ESC G n .................................................................................................................................................. 21
ESC M n ................................................................................................................................................. 22
ESC R n .................................................................................................................................................. 22
ESC V n .................................................................................................................................................. 23
ESC t n ................................................................................................................................................... 24
ESC { n ................................................................................................................................................... 25
GS ! n .....................................................................................................................................................26
GS B n ....................................................................................................................................................27
GS b n .................................................................................................................................................... 28
2.2.3 Print Position Commands................................................................................................................. 29
HT ...........................................................................................................................................................29
ESC $ n1 n2 ........................................................................................................................................... 30
ESC D [n]k NULL ................................................................................................................................... 31
ESC T n .................................................................................................................................................. 32
ESC W xL xH yL yH dxL dxH dyL dyH ................................................................................................. 33
ESC \ nL nH ............................................................................................................................................ 34
ESC a n ................................................................................................................................................... 35
GS $ nL nH ............................................................................................................................................. 36
GS L nL nH ............................................................................................................................................. 37
GS T n .................................................................................................................................................... 38
GS W nL nH ...........................................................................................................................................39
GS \ nL nH.............................................................................................................................................. 41
2.2.4 Line Feed Span Commands ............................................................................................................. 42
ESC 2 ...................................................................................................................................................... 42
ESC 3 n ................................................................................................................................................... 43
— i —
2.2.5 Bit Image Commands ....................................................................................................................... 44
ESC * m n1 n2 [d] k ............................................................................................................................... 44
GS * n1 n2 [d]n1×n2×8 ......................................................................................................................... 46
GS / m .................................................................................................................................................... 48
GS v 0 m xL xH yL yH d1...dk ............................................................................................................... 49
2.2.6 Status Commands............................................................................................................................. 50
DLE EOT n.............................................................................................................................................. 50
ESC v (At Serial I/F Selection) .............................................................................................................. 54
GS a n .................................................................................................................................................... 55
GS r n .....................................................................................................................................................58
2.2.7 Paper Detecting Commands ............................................................................................................ 59
ESC c 3 n ................................................................................................................................................ 59
ESC c 4 n ................................................................................................................................................ 60
2.2.8 Panel Switch Commands ................................................................................................................. 61
ESC c 5 n ................................................................................................................................................ 61
2.2.9 Macro Commands............................................................................................................................. 62
GS : ......................................................................................................................................................... 62
GS ^ n1 n2 n3 ........................................................................................................................................ 63
2.2.10 Cutter Commands ........................................................................................................................... 64
ESC i ....................................................................................................................................................... 64
ESC m .................................................................................................................................................... 65
GS V m ......... (1)
GS V m n ...... (2) ................................................................................................................................... 66
2.2.11 Bar Code Commands ...................................................................................................................... 67
GS H n .................................................................................................................................................... 67
GS f n ..................................................................................................................................................... 69
GS h n .................................................................................................................................................... 70
GS k m [d1...dk] NULL ......... (1)
GS k m n [d1...dn] ................ (2) ........................................................................................................... 71
GS w n ................................................................................................................................................... 77
2.2.12 Commands for Non-volatile Memory ........................................................................................... 78
GS ( C pL pH m fn b[c1 c2][d1...dk] ..................................................................................................... 78
GS ( C pL pH m fn b c1 c2 .................................................................................................................... 79
fn = 0, 48: Function 0 Erasing Specified Record ............................................................................ 79
GS ( C pL pH m fn b c1 c2 d1...dk ........................................................................................................ 79
fn = 1, 49: Function 1 Storing Data to Specified Record ............................................................... 79
GS ( C pL pH m fn b c1 c2 .................................................................................................................... 80
fn = 2, 50: Function 2 Sending Data Stored in Specified Record.................................................. 80
GS ( C pL pH m fn b .............................................................................................................................. 81
fn = 3, 51: Function 3 Sending Use Amount .................................................................................. 81
GS ( C pL pH m fn b .............................................................................................................................. 81
fn = 4, 52: Function 4 Sending Remaining Capacity ...................................................................... 81
GS ( C pL pH m fn b .............................................................................................................................. 82
fn = 5, 53: Function 5 Sending Key Code List of Stored Record ................................................... 82
GS ( C pL pH m fn b [d1 d2 d3] ............................................................................................................ 83
fn = 6, 54: Function 6 Erasing All User NV Memory Area in a Lump ........................................... 83
FS p n m ................................................................................................................................................. 84
FS q n [xL xH yL yH d1…dk]1…[xL xH yL yH d1…dk]n ..................................................................... 85
ii
2.2.13 Printer Function Setting Commands .............................................................................................87
GS ( E pL pH fn [...] ............................................................................................................................... 87
GS ( E pL pH fn d1 d2 ........................................................................................................................... 88
fn = 1: Function 1 Transferring to Printer Function Setting Mode ................................................ 88
GS ( E pL pH fn d1 d2 d3 ...................................................................................................................... 88
fn = 2: Function 2 End of Printer Function Setting Mode .............................................................. 88
GS ( E pL pH fn [a1 b18...b11]...[ak bk8...bk1] ..................................................................................... 89
fn = 3: Function 3 Setting Memory Switch Value .......................................................................... 89
GS ( E pL pH fn a ................................................................................................................................... 91
fn = 4: Function 4 Sending the Set Memory Switch Value ........................................................... 91
GS ( E pL pH fn[a1 n1L n1H]...[ak nkL nkH] ......................................................................................... 92
fn = 5: Function 5 Setting Customized Value ................................................................................. 92
GS ( E pL pH fn a ................................................................................................................................... 95
fn = 6: Function 6 Sending the Set Customized Value .................................................................. 95
GS ( E pL pH fn a d1 d2 ........................................................................................................................ 98
fn = 7: Function 7 Copying User-defined Page .............................................................................. 98
GS ( E pL pH fn y c1 c2[x d1...d(y×x)]k ................................................................................................ 99
fn = 8: Function 8 Defining Data by the Column Format to Character Code Page of
Work Area .......................................................................................................................................... 99
GS ( E pL pH fn x c1 c2[y d1...d(y×x)]k .............................................................................................. 100
fn = 9: Function 9 Defining Data in the Raster Format to the Character Code Page of
Work Area ........................................................................................................................................ 100
GS ( E pL pH fn c1 c2 .......................................................................................................................... 101
fn = 10: Function 10 Erasing Data of Character Code Page Data in Work Area ........................ 101
GS ( E pL pH fn a d1...dk..................................................................................................................... 102
fn = 11: Function 11 Setting Communication Conditions of Serial Interface ............................ 102
GS ( E pL pH fn a ................................................................................................................................. 103
fn = 12: Function 12 Sending the Set Communication Conditions of Serial Interface ............. 103
GS ( E pL pH fn d1 d2 d3 .................................................................................................................... 104
fn = 48: Function 48 Erasing Paper Layout ................................................................................... 104
GS ( E pL pH fn[a1]; [bLbH] ; [cLcH] ; [dLdH] ; [eLeH] ; [fLfH] ;
[gLgH] ; [hLhH]; ...................................................................................................................................104
fn = 49: Function 49 Setting Paper Layout ................................................................................... 104
GS ( E pL pH fn n................................................................................................................................. 106
fn = 50: Function 50 Sending Paper Layout Information ............................................................ 106
GS ( E pL pH fn a ................................................................................................................................. 108
fn = 255: Function 255 Setting All Contents Set by Printer Function Setting Mode to the
State at Shipment ............................................................................................................................ 108
GS ( K pL pH fn m ............................................................................................................................... 109
GS ( K pL pH fn m ............................................................................................................................... 109
fn = 48: Function 48 Setting Print Control Mode ......................................................................... 109
GS ( K pL pH fn m ............................................................................................................................... 110
fn = 49: Function 49 Setting Printing Density............................................................................... 110
GS ( K pL pH fn m ............................................................................................................................... 111
fn = 50: Function 50 Setting Printing Speed................................................................................. 111
GS ( K pL pH fn m ............................................................................................................................... 112
fn = 97: Function 97 Setting Number of Divisions for Head Conducting................................... 112
GS ( M pL pH fn m .............................................................................................................................. 113
GS ( M pL pH fn m .............................................................................................................................. 114
fn = 1, 49: Function 1 .......................................................................................................................114
GS ( M pL pH fn m .............................................................................................................................. 114
fn = 2, 50: Function 2 .......................................................................................................................114
GS ( M pL pH fn m fn = 3, 51 ............................................................................................................ 115
fn = 3, 51: Function 3 .......................................................................................................................115
GS ( N pL pH fn m ............................................................................................................................... 116
GS ( N pL pH fn m ............................................................................................................................... 116
fn = 48: Function 48 ......................................................................................................................... 116
iii
2.2.14 Special Commands .......................................................................................................................117
ESC n n ................................................................................................................................................ 117
ESC Y n1 n2 .........................................................................................................................................118
GS R 0 .................................................................................................................................................. 118
GS R 1 n ...............................................................................................................................................119
GS S ..................................................................................................................................................... 119
FS ( L pL pH fn m ................................................................................................................................ 120
FS ( L pL pH fn m ................................................................................................................................ 121
fn = 48: Function 48 Sending Position Information .................................................................... 121
FS ( L pL pH fn m ................................................................................................................................ 122
fn = 66: Function 66 Executing Paper Feeding to Cut Position ................................................... 122
FS ( L pL pH fn m ................................................................................................................................ 122
fn = 67: Function 67 Executing Paper Feeding to Initial Position ............................................... 122
2.2.15 Other Commands .......................................................................................................................... 123
DLE ENQ n ...........................................................................................................................................123
DLE DC4 fn m t (Specification of fn = 8) ............................................................................................ 124
ESC = n .............................................................................................................................................. 125
ESC @ ................................................................................................................................................. 126
ESC L ................................................................................................................................................... 127
ESC S .................................................................................................................................................. 128
ESC RS ................................................................................................................................................128
GS ( A pL pH n m ............................................................................................................................... 129
GS I n ................................................................................................................................................. 130
GS P x y ............................................................................................................................................ 132
GS ( L pL pH m fn [parameter]
GS 8 L p1 p2 p3 p4 m fn [parameter] ................................................................................................133
GS ( L pL pH m fn................................................................................................................................ 134
fn = 0, 48: Function 48 Sending NV Graphics Memory Capacity ............................................... 134
GS ( L pL pH m fn................................................................................................................................ 134
fn = 2, 50: Function 50 Printing Graphics Data Stored in Print Buffer........................................ 134
GS ( L pL pH m fn................................................................................................................................ 135
fn = 3, 51: Function 51 Sending the Remaining Amount of NV Graphics Memory .................. 135
GS ( L pL pH m fn d1 d2 ..................................................................................................................... 135
fn = 64: Function 64 Sending Key Code List of Defined NV Graphics........................................ 135
GS ( L pL pH m fn d1 d2 d3 ................................................................................................................137
fn = 65: Function 65 Erasing All Data of NV Graphics in a Lump ............................................... 137
GS ( L pL pH m fn kc1 kc2 .................................................................................................................. 137
fn = 66: Function 66 Erasing Specified NV Graphics Data .......................................................... 137
GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [ c d1…dk]1…[c d1…dk]b ........................................... 138
fn = 67: Function 67 Defining Raster Type Graphics Data to NV Memory ................................. 138
GS ( L pL pH m fn kc1 kc2 x y ............................................................................................................ 139
fn = 69: Function 69 Printing Specified Graphics......................................................................... 139
GS ( L pL pH m fn a bx by c xL xH yL yH d1dk ............................................................................. 140
fn = 112: Function 112 Storing Raster Type Graphics Data to Print Buffer ................................ 140
GS C 0 n m ........................................................................................................................................... 141
GS C 1 aL aH bL bH n r .......................................................................................................................142
GS C 2 nL nH ....................................................................................................................................... 142
GS C ; sa ; sb ; sn ; sr ; sc;................................................................................................................... 143
GS c ...................................................................................................................................................... 143
iv
3. CHARACTER CODE TABLE ............................................................................................................. 144
3.1 Code Page .................................................................................................................................................. 144
3.1.1 Code Page 00H to 7FH & PC437 (USA, Europe Standard) ........................................................... 144
3.1.2 Code Page 00H to 7FH & Katakana ................................................................................................ 145
3.1.3 Code Page 00H to 7FH & PC850 (Multilingual) .............................................................................146
3.1.4 Code Page 00H to 7FH & PC860 (Portuguese) ..............................................................................147
3.1.5 Code Page 00H to 7FH & PC863 (Canadian-French)..................................................................... 148
3.1.6 Code Page 00H to 7FH & PC865 (Nordic) ......................................................................................149
3.1.7 Code Page 00H to 7FH & PC852 (Eastern Europe) ....................................................................... 150
3.1.8 Code Page 00H to 7FH & PC866 (Russian) .................................................................................... 151
3.1.9 Code Page 00H to 7FH & PC857 (Turkish) ..................................................................................... 152
3.1.10 Code Page 00H to 7FH & PC864 (Arabic) .................................................................................... 153
3.1.11 Code Page 00H to 7FH & WPC1252 ............................................................................................. 154
3.1.12 Code Page 00H to 7FH & Thai Code 18 ....................................................................................... 155
3.2 International Character Code Table ......................................................................................................... 156
4. APPENDIX ........................................................................................................................................ 157
4.1 Explanation on PAGE MODE ....................................................................................................................157
4.1.1 Overview .......................................................................................................................................... 157
4.1.2 Values Set by Each Command in STANDARD MODE and PAGE MODE .................................... 157
4.1.3 Mapping of Print Data in the Print Area ........................................................................................ 158
4.1.4 Example of Using PAGE MODE ..................................................................................................... 159
4.2 Bidirectional Parallel Interface ................................................................................................................. 161
4.2.1 Parallel Interface Communication Mode....................................................................................... 161
4.2.2 Interfacing Phases ........................................................................................................................... 161
4.2.3 Negotiation ...................................................................................................................................... 162
4.3 Identification of Send Status .................................................................................................................... 167
4.4 Memory Switch ......................................................................................................................................... 168
4.4.1 Memory Switches ........................................................................................................................... 168
4.4.2 Details of Memory Switches .......................................................................................................... 169
v

1. OUTLINE

1.1 Operation Mode

PPU-700 has ESC/POSTM as control commands.

1.2 Character Set

All print data sent from the host computer to the printer are automatically converted to one-byte alphanumeric or katakana characters (ANK) or two-byte Kanji corresponding to the characters and symbols.
NOTE: For the contents of character set, refer to 3. Character Code Table of this document.

1.3 Control Commands

1.3.1 Control Command Details

Control Commands are used for controlling the operations of the printer such as starting/stopping of printing, line feeding, paper feeding, etc. They control all functions related to printing, such as type of characters, enlargement of characters or setting of format.

1.3.2 How to Send Control Commands

Some methods are available for sending Control Commands from the host computer to the printer. Here, a method of sending by BASIC programming is explained.
Example 1
Let’s print a character string “CITIZEN” in enlarged (double-height, double-width) and in normal format.
Program coding
The Control Command shows that the command name for setting the size of a character is GS !. Let’s make a program using this code. An example is shown below.
Program List Print Result
10 A$="CITIZEN" 20 LPRINT CHR$(&H1D);"!";CHR$(&H33); 30 LPRINT A$; 40 LPRINT CHR$(&HA);CHR$(&HA); 50 LPRINT CHR$(&H1D);"!";CHR$(&H00); 60 LPRINT A$; 70 END
CITIZEN
CITIZEN
In lines 20 and 50, setting and canceling of enlarging a character is sent. As a result, lines 30 and 60 print the same character string but line 30 prints enlarged characters and line 60 cancels the enlargement and prints in normal format.
* In this document, sample programs are in BASIC. For details of BASIC programming, refer to the manual for BASIC.
1

2. CONTROL COMMANDS

2.1 ESC/POS Command List

Print Control Commands
Command Function Mode GS P
LF Printing and paper feed S.P. CR Back to printing S.P. 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 paper selected) ESC FF Printing data in PAGE MODE P ESC J Printing and feeding paper in minimum pitch S.P. O ESC d Printing and feeding the paper by “n” lines S.P.
Print Character Commands
Command Function Mode GS P
CAN Canceling print data in PAGE MODE P ESC SP Setting the right spacing of the character S.P. O ESC ! Collectively specifying the printing mode S.P. ESC % Specifying/canceling download character set S.P. ESC & Defining the download characters S.P. ESC – Specifying/canceling underline S.P. ESC ? Deleting download characters S.P ESC E Specifying/canceling emphasis printing S.P. ESC G Specifying/canceling double strike printing S.P. ESC M Selection of character fonts S.P. ESC R Selecting the international character set S.P. ESC V Specifying/canceling 90°-right-turned characters S ESC t Selecting the character code table S.P. ESC { Specifying/canceling the inverted characters S GS ! Specifying the character size S.P. GS B Specifying/canceling the black/white inverted printing S.P. GS b Specifying/canceling the smoothing S.P.
P
2
Print Position Commands
Command Function Mode GS P
HT Horizontal tab S.P. ESC $ Specifying the absolute positions S.P. O ESC D Setting horizontal tab position S.P. ESC T Selecting the character printing direction in PAGE MODE P ESC W Defining the print area in PAGE MODE P O ESC \ Specifying the relative position S.P. O ESC a Aligning the characters S
GS $
Specifying the absolute vertical position of characters in
PAGE MODE
PO
GS L Setting the left margin S O GS T Moving print position to top of the line S GS W Setting the print area width S.P. O
GS \
Specifying the relative vertical position of a character in
PAGE MODE
S.P. O
Line Feed Span Commands
Command Function Mode GS P
ESC 2 Specifying 1/6-inch line feed rate S.P. ESC 3 Setting line feed rate of minimum pitch S.P. O
Bit Image Commands
Command Function Mode GS P
ESC * Specifying the bit image mode S.P. GS * Defining the download bit image S.P. GS / Printing the downloaded bit image S.P. GS v 0 Printing of raster bit image S
Status Commands
Command Function Mode GS P
DLE EOT Sending status in real-time S.P. ESC v Sending printer status S.P. GS a Enabling/disabling ASB (Automatic Status Back) S.P. GS r Sending status S.P.
Paper Detecting Commands
Command Function Mode GS P
ESC c 3 Selecting the Paper Sensor valid for Paper-end signal output S.P. ESC c 4 Selecting the Paper Near-end Sensor valid for print stop S.P.
3
Panel Switch Commands
Command Function Mode GS P
ESC c 5 Enabling/disabling the panel switches S.P.
Macro Commands
Command Function Mode GS P
GS : Starting/ending macro definition S.P. GS ^ Executing the macro S.P.
Cutter Commands
Command Function Mode GS P
ESC i Full cutting of paper S ESC m Full cutting of paper S GS V Cutting the paper S.P. O
Bar Code Commands
Command Function Mode GS P
GS H Selecting of printing position of HRI characters S.P. GS f Selecting the font of HRI characters S.P. GS h Specifying the height of the bar code S.P. GS k Printing the bar code S.P. GS w Specifying the horizontal size (magnification) of bar code S.P.
Commands for Non-volatile Memory
Command Function Mode GS P
GS ( C Editing user NV memory S FS p Printing the download NV bit images S FS q Defining the download NV bit image S
Printer Function Setting Commands
Command Function Mode GS P
GS ( E Printer function setting command S GS ( K Selecting print control method S GS ( M Customizing the printer S GS ( N Designating font attribute S
4
Special Commands
Command Function Mode GS P
ESC n Setting the remaining amount of printout S ESC Y Specifying length of paper feed after black mark detection S GS R 0 Setting receipt collection timer S GS R 1 Setting receipt collection timer S GS S Detecting a black mark S FS ( L Controlling black mark paper S
Other Commands
Command Function Mode GS P
DLE ENQ Real-time request to printer S.P. DLE DC4 Buffer clear S.P. ESC = Data input control S.P. ESC @ Initializing the printer S.P. ESC L Selecting PAGE MODE S ESC S Selecting STANDARD MODE P ESC RS Sound buzzer S.P. GS ( A Execution of test printing S GS I Sending the printer ID S.P. GS P Specifying the basic calculation pitch S.P. GS ( L
GS 8 L
Specifying graphics data S
GS C 0 Setting counter print mode S.P. GS C 1 Setting counter mode (A) S.P. GS C 2 Setting counter value S.P. GS C ; Setting counter mode (B) S.P. GS c Print the counter S.P.
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
5

2.1.1 Description of Items

XXXX
[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.
[Outline] Describes the functions of the command.
[Caution] Describes important points and cautionary notes, as required.
[Default] Initial values for the command if it has arguments.
[See Also] Describes commands related to the command when it is used.
[Sample Program] Describes examples of coding on Quick-Basic.
* Examples are only for reference. They may vary depending on language and
version. For details, please refer to a manual in your language.
[Print Results] Describes the print results obtained by executing the above programs. However, the
print results shown are different in scale from actual print results.
6

2.2 Command Details

2.2.1 Print Control Commands

LF
[Function] Printing and paper feed
[Code] <0A>H
[Outline] Prints data inside the print buffer and feeds paper based on the line feed amount
having been set.
[Caution] After this command is executed, the beginning of the line is taken as the start position
for the next point.
[See Also] ESC 2, ESC 3
[Sample Program]
LPRINT "AAA";CHR$(&HA); LPRINT "BBB";CHR$(&HA);CHR$(&HA); LPRINT "CCC";CHR$(&HA);
[Print Results]
AAA ← Print and line feed BBB ← Print and line feed
← Line feed only
CCC ← Print and line feed
7
CR
[Function] Back to printing
[Code] <0D>H
[Outline] (1) When memory switch 1-5 is OFF: This command is ignored.
(2) When memory switch 1-5 is ON: The same operation as LF is executed.
[See Also] LF
[Sample Program]
LPRINT "AAA";CHR$(&HD); LPRINT "BBB";CHR$(&HD); LPRINT CHR$(&HD); LPRINT "CCC";CHR$(&HD);
[Print Results] In case of (2)
AAA ← Print and line feed BBB ← Print and line feed
← Line feed only
CCC ← Print and line feed
8
FF
[Function] (1) Printing in PAGE MODE and returning to STANDARD MODE (at the selection of
PAGE MODE)
(2) Printing of Black mark and paper feeding to the top of the print position (with
Black mark paper selected)
[Code] <0C>H
(1) At selection of PAGE MODE
[Outline] Executes a batch printout of the data mapped in the entire print area, and then returns
to STANDARD MODE.
[Caution] All mapped data is erased after printout.
The print area set up by ESC W is initialized.
This command does not execute a paper cut.
After this command is executed, the beginning of the line is taken as the start
position for the next print.
This command is only effective when the PAGE MODE is selected.
[See Also] Appendix 4.1.4 Example of Using PAGE MODE
ESC FF, ESC L, ESC S
(2) At selection of Black mark paper (valid only for Black mark specification)
[Outline] This command prints the data in the printer buffer and searches for the head of the
next Black mark (Black mark position)
[Caution] This command does not execute a paper cut.
After this command is executed, the beginning of the line is taken as the start
position for the next print.
[See Also] GS FF
9
ESC FF
[Function] Printing data in PAGE MODE
[Code] <1B>H<0C>H
[Outline] Executes a batch printout of the data mapped in the entire print area in PAGE MODE.
[Caution] This command is only effective when PAGE MODE is selected.
Mapped data, as well as the ESC T and ESC W settings, and the character mapping position are held even after printing.
[See Also] Appendix 4.1 Explanation on PAGE MODE
FF, ESC L, ESC S
ESC J n
[Function] Printing and feeding paper in minimum pitch
[Code] <1B>H<4A>H<n>
[Range] 0 n 255
[Outline] Prints the data held in the print buffer and feeds paper by [n × basic calculation pitch]
inches.
[Caution] • After this command is executed, the beginning of the line is taken as the start position
for the next print.
The line feed width can be set separately for the STANDARD and PAGE MODES.
This command does not affect the line feed width defined by ESC 2 or ESC 3.
The basic calculation pitch is set by GS P.
Fractions resulting from calculation are corrected with the minimum pitch of the
mechanism, and the remainder is omitted.
In STANDARD MODE, this command uses the vertical (paper feed direction) basic calculation pitch (y).
In PAGE MODE, this command acts differently depending on the start point: (1) If the start point specified by ESC T is top left or bottom right, the command
uses the vertical (paper feed direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top right or bottom left, the command
uses the horizontal (perpendicular to the paper feed direction) basic calculation pitch (x).
The maximum settable line feed width is 1016 mm (40 inches). A setting greater than this maximum is trimmed to the maximum.
[Default] The initial value is not defined.
[Sample Program] Refer to Sample Program and Print Results for ESC 2.
10
ESC d n
[Function] Printing and feeding the paper by n lines
[Code] <1B>H<64>H<n>
[Range] 0 n 255
[Outline] Prints data in the print buffer and feeds paper by n lines. Specified lines do not
remain.
[Caution] • After this command is executed, the beginning of the line is taken as the start position
for the next print.
If [n × line feed width] exceeds approximately 1016 mm, this command feeds paper by approximately 1016 mm (40 inches).
[Default] The initial value is not defined.
[Sample Program]
LPRINT "AAAAA"; LPRINT CHR$(&H1B);"d";CHR$(2); LPRINT "AAAAA";CHR$(&HA);
[Print Results]
AAAAA
AAAAA
<
2/6-inch line feed
<
11

2.2.2 Print Character Commands

CAN
[Function] Canceling print data in PAGE MODE
[Code] <18>H
[Outline] Erases all data contained in the currently effective print area in PAGE MODE.
[Caution] This command is only effective when PAGE MODE is selected.
If the previously established print area overlaps the currently effective print area, the overlapped data in the previously established area will be erased.
[See Also] Appendix 4.1 Explanation on PAGE MODE
ESC L, ESC W
12
ESC SP n
[Function] Setting the right spacing of the character
[Code] <1B>H<20>H<n>
[Range] 0 n 255
[Outline] Sets the right spacing of character to [n × basic calculation pitch] inches.
[Caution] If the horizontal magnification of character is 2 or more, the right spacing increases
with the magnification.
Does not affect Kanji.
The right spacing can be set separately for the STANDARD and PAGE MODES.
The basic calculation pitch is set by GS P. Once defined, the right spacing is not
changed if the basic calculation pitch is changed by GS P.
Fractions resulting from calculation are corrected with the minimum pitch of the mechanism, and the remainder is omitted.
In STANDARD MODE, this command uses the horizontal basic calculation pitch (x).
In PAGE MODE, the basic calculation pitch used by this command depends on the
start point: (1) If the start point specified by ESC T is top left or bottom right, the command
uses the horizontal basic calculation pitch (x).
(2) If the start point specified by ESC T is top right or bottom left, the command
uses the vertical basic calculation pitch (y).
The maximum right spacing is capable of approximately 31.906 mm (255/203 inches). A setting greater than this maximum is trimmed to the maximum.
[Default] n = 0
[See Also] GS P
[Sample Program]
LPRINT CHR$(&H1B);" ";CHR$(0); LPRINT "AAAAA";CHR$(&HA); LPRINT CHR$(&H1B);" ";CHR$(1); LPRINT "AAAAA";CHR$(&HA); LPRINT CHR$(&H1B);" ";CHR$(12); LPRINT "AAAAA";CHR$(&HA);
[Print Results]
AAAAA ← 0-dot space AAAAA ← 1-dot space AAAAA ← 12-dots space
13
ESC ! n
[Function] Collectively specifying the printing mode
[Code] <1B>H<21>H<n>
[Range] 0 n 255
[Outline] Printing mode is assigned.
Bit Function
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
[Caution] • With double height and double width being specified simultaneously, quadruple
characters are created.
An underline is attached to the full character width, which, however, is not attached to the part having been skipped by the horizontal tab (HT). Neither is it attached to 90°-right-turned characters.
The underline width is as specified by the ESC – command. (The default setting is 1 dot width.)
Setting by this command is invalid for Kanji except setting and canceling of enhanced printing.
In case characters with different vertical magnification ratios coexist on the same line, they are printed on the same base line.
ESC E, ESC M, ESC –, and GS ! can individually set or cancel the mode but the command processed last is valid.
Setting or cancelling of enhanced 3rd bit is valid for alphanumric and kana and kanji. Other print mode is valid only for alphanumeric and kana characters.
01
Value
[Default] n = 0
[See Also] ESC E, ESC -, GS !, ESC M
14
[Sample Program]
[Print Results]
LPRINT CHR$(&H1B);"!";CHR$(&H00);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H01);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H08);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H10);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H20);"H"; LPRINT CHR$(&H1B);"!";CHR$(&H80);"H"; LPRINT CHR$(&H1B);"!";CHR$(&HB9);"H"; LPRINT CHR$(&HA);
Font B + Emphasis + Quadruple + Underline
Font A + Underline Font A + Double width Font A + Double height Font A + Emphasis
Font B
Font A
15
ESC % n
[Function] Specifying/canceling download character set
[Code] <1B>H<25>H<n>
[Range] 0 n 255
[Outline] Specifying/canceling download characters.
•“n” is valid only for the lowest bit (n0).
Control by the lowest bit (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]
[Print Results]
GOSUB SETCHR DATA 6 LPRINT CHR$(&H1B);"%";CHR$(0); DATA &HFF,&H80,&H00 LPRINT "@A";CHR$(&HA); DATA &H80,&H80,&H00 LPRINT CHR$(&H1B);"%";CHR$(1); DATA &H80,&H80,&H00 LPRINT "@A";CHR$(&HA); DATA &H80,&H80,&H00 END DATA &HFF,&HFF,&HFF SETCHR: DATA &HFF,&HFF,&HFF LPRINT CHR$(&H1B);"&"; DATA 12 LPRINT CHR$(3);"@";"A"; DATA &HFF,&HFF,&HFF FOR J=1 TO 2 DATA &H80,&H07,&HF9 READ REP DATA &H80,&HFF,&HF9 LPRINT CHR$(REP); DATA &H87,&HFE,&H01 FOR I=1 TO REP*3 DATA &H9F,&H06,&H01 READ D DATA &HF8,&H06,&H01 LPRINT CHR$(D); DATA &HF8,&H06,&H01 NEXT I DATA &H9F,&H06,&H01 NEXT J DATA &H87,&HFE,&H01 RETURN DATA &H80,&HFF,&HF9
DATA &H80,&H07,&HF9 DATA &HFF,&HFF,&HFF
← Internal character set ← Download character
16
ESC & s n m [a[p]s×a] m–n+1
[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] Defines the font of download characters of alphanumeric characters.
•“s indicates the number of bytes in vertical direction. n indicates the start character code and “m” the end character code. To define only one character, set n = m. Character codes definable includes 95 ASCII codes in total in the range of <20>H to <7E>H.
•“a indicates the number of dots to be defined in horizontal direction. p is the data to be defined, which indicate a pattern equal to “a” dots in horizontal direction from the left end. The rest of the pattern on the right side is filled with space.
The number of data to be defined is s × 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] Download characters and download bit images cannot be defined simultaneously.
Running this command clears the definition of the download bit image.
[Default] Same as the internal character set.
[See Also] ESC %, ESC ?
[Example]
12 dots
p4
p1
p2
24 dots
Create each data bit by setting “1” for a printed dot and “0” for an unprinted dot.
p5
p3
p6 p36
Font A
p34
MSB
p35
LSB
[Sample Program] Refer to Sample Program and Print Results for ESC %.
17
ESC – n
[Function] Specifying/canceling underline
[Code] <1B>H<2D>H<n>
[Range] 0 n 2
48 n 50
[Outline] 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] • An underline is attached to the full character width. It is, however, not attached to
the part having been skipped by horizontal tab (HT) command.
An underline is not attached to 90°-right-turned characters and white-on-black character.
Underline can also be specified/canceled by ESC ! but the setting of command last processed is valid.
Specifying/canceling by this command is not valid for kanji.
Underline width is constant in the specified thickness regardless of the character
size.
[Default] n = 0
[See Also] ESC !, FS –
[Sample Program]
LPRINT CHR$(&H1B);"-";CHR$(0); LPRINT "AAAAA"; LPRINT CHR$(&H1B);"-";CHR$(1); LPRINT "AAAAA";CHR$(&HA);
[Print Results]
Underline canceled
←→
AAAAAAAAAA
←→
Underline specified
18
ESC ? n
[Function] Deleting download characters
[Code] <1B>H<3F>H<n>
[Range] 32 n 126
[Outline] Deletes the downloaded characters of specified code.
[Caution] The character n indicates the character code used to delete the defined pattern.
After the deletion, characters are printed in the same pattern as the internal characters.
This command deletes the code-defined pattern of the character font selected by ESC !.
This command is ignored if the specified character code is undefined.
[See Also] ESC &, ESC %
19
ESC E n
[Function] Specifying/canceling emphasis printing
[Code] <1B>H<45>H<n>
[Range] 0 n 255
[Outline] Specifying/canceling the emphasized characters.
•“n” is valid only for the lowest bit (n0).
Control by the lowest bit (n0) is shown as follows:
n0 Function
0 Canceling emphasis printing 1 Specifying emphasis printing
[Caution] • Emphasis printing can also be specified/canceled by ESC ! but the setting of
command last processed is valid.
Valid for all character types except HRI characters.
[Default] n = 0
[See Also] ESC !
[Sample Program]
LPRINT CHR$(&H1B);"E";CHR$(0); LPRINT "AAABBB";CHR$(&HA); LPRINT CHR$(&H1B);"E";CHR$(1); LPRINT "AAABBB";CHR$(&HA);
[Print Results]
AAABBB ← Emphasis canceled AAABBB ← Emphasis specified
20
ESC G n
[Function] Specifying/canceling double strike printing
[Code] <1B>H<47>H<n>
[Range] 0 n 255
[Outline] Specifying/canceling the double strike printing.
•“n” is valid only for the lowest bit (n0).
Control by the lowest bit (n0) is shown as follows:
n0 Function
0 Canceling double strike printing 1 Specifying double strike printing
[Caution] • With this printer, double-strike printing and emphasis printing provide completely
the same results.
Valid for all character types except HRI characters.
[Default] n = 0
[See Also] ESC E
[Sample Program]
LPRINT CHR$(&H1B);"G";CHR$(0); LPRINT "AAABBB";CHR$(&HA); LPRINT CHR$(&H1B);"G";CHR$(1); LPRINT "AAABBB";CHR$(&HA);
[Print Results]
AAABBB ← Double strike printing canceled AAABBB ← Double strike printing specified
21
ESC M n
[Function] Selection of character fonts
[Code] <1B>H<4D>H<n>
[Range] 0 n 2
48 n 50
[Outline] Selects character fonts.
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 select fonts, but the setting made by the command that has last been
processed becomes valid.
[Default] n = 0
[See Also] ESC !
ESC R n
[Function] Selecting the international character set
[Code] <1B>H<52>H<n>
[Range] 0 n 13
[Outline] Depending on the value of n, one of the following character sets is specified; [Default] n = 0 (Overseas), n = 8 (Domestic)
n Character Set n Character Set
0 U.S.A. 7 Spain I 1 France 8 Japan 2 Germany 9 Norway 3 U.K. 10 Denmark II 4 Denmark I 11 Spain II 5 Sweden 12 Latin America 6 Italy 13 Korea
[See Also] 3.2 “International Character Code Table
22
ESC V n
[Function] Specifying/canceling 90°-right-turned characters
[Code] <1B>H<56>H<n>
[Range] 0 n 2
48 n 50
[Outline] Specifying/canceling 90°-right-turned characters.
n Function
0, 48 Canceling 90°-right-turned characters 1, 49 2, 50
[Caution] No underlines are attached to 90°-right-turned characters.
This command does not affect PAGE MODE but setting is maintained.
[Default] n = 0
Specifying 90°-right-turned characters
[Sample Program]
[Print Results]
LPRINT CHR$(&H1B);"V";CHR$(0); LPRINT "AAAAA"; LPRINT CHR$(&H1B);"V";CHR$(1); LPRINT "AAAAA";CHR$(&HA);
90° rotation canceled
←→
A
A
A
A
AAAAA
←→
90° rotation specified
A
23
Loading...
+ 153 hidden pages