4.4.2 Details of Memory Switches................................................................................176
4.5 Black Mark Layout and Operating Condition.......................................................186
- 5 -
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.
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
ESC FFPrinting data in PAGE MODE P 14
ESC JPrinting and feeding paper in minimum pitch
ESC d Printing and feeding the paper by “n” lines
○Print Character Commands
Command Function MODE GS P Page
CANCanceling print data in PAGE MODE P 17
ESC SPSetting the right spacing of the character
ESC !Collectively specifying the printing mode
ESC %Specifying/canceling download character set
ESC &Defining the download characters
ESC -
ESC ?Deleting download characters
ESC ESpecifying/canceling emphasis printing
ESC GSpecifying/canceling double strike printing
ESC MSelection of character fonts
ESC RSelecting the international character set
ESC VSpecifying/canceling 90°-right-turned characters S 28
ESC tSelecting the character code table
ESC {Specifying/canceling the inverted characters S 30
GS !Specifying the character size
GS B
GS bSpecifying/canceling the smoothing
MODE)
(2) Printing of Black mark and paper feeding to the
top of the print position (with Black mark paper
selected)
Specifying/canceling underline
Specifying/canceling the black/white inverted
printing
S・P
S・P
P 13
S・P ○
S・P
S・P ○
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
12
12
15
16
18
19
21
22
23
24
25
26
27
27
29
31
32
33
- 7 -
○Print Position Commands
Command Function MODE GS P Page
HT Horizontal tab
ESC $Specifying the absolute positions
ESC DSetting horizontal tab position
ESC T
ESC WDefining the print area in PAGE MODE P
ESC \
ESC aAligning the characters S 41
GS $
GS LSetting the left margin S
GS TMoving print position to top of the line S 44
GS WSetting the print area width
GS \
Selecting the character printing direction in PAGE
MODE
Specifying the relative position
Specifying the absolute vertical position of
characters in PAGE MODE
Specifying the relative vertical position of a
character in PAGE MODE
○Line Feed Span Commands
Command Function MODE GS P Page
ESC 2Specifying 1/6-inch line feed rate
ESC 3Setting line feed rate of minimum pitch
○Bit Image Commands
Command Function
ESC *Specifying the bit image mode
GS *Defining the download bit image
GS /Printing the downloaded bit image
GS v 0Printing of raster bit image S 54
○Status Commands
Command Function MODE GS P Page
DLE EOTSending status in real-time
ESC vSending printer status
GS aEnabling/disabling ASB (Automatic Status Back)
GS r Sending status
○Paper Detecting Commands
Command Function MODE GS P Page
ESC c 3
ESC c 4
Selecting the Paper Sensor valid for Paper-end
signal output
Selecting the Paper Near-end Sensor valid for print
stop
○Panel Switch Commands
Command Function MODE GS P Page
ESCc5Enabling/disabling the panel switches
○Macro Commands
Command Function MODE GS P Page
GS :Starting/ending macro definition
GS ^Executing the macro
S・P
S・P ○
S・P
P 37
S・P ○
P
S・P ○
S・P ○
S・P
S・P ○
MODE GS P Page
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
34
35
36
○
○
○
48
50
52
53
56
59
60
63
64
65
66
67
68
38
40
42
43
45
47
49
- 8 -
○Cutter Commands
Command Function MODE GS P Page
ESC iFull cutting of paper S 69
ESC mFull cutting of paper S 70
GS VCutting the paper
○Bar Code Commands
Command Function MODE GS P Page
GS HSelecting of printing position of HRI characters
GS fSelecting the font of HRI characters
GS hSpecifying the height of the bar code
GS kPrinting the bar code
GS w
Specifying the horizontal size (magnification) of bar
code
○Commands for Non-volatile Memory
Command Function MODE GS P Page
GS ( CEditing user NV memory S 82
FS pPrinting the download NV bit images S 89
FS qDefining the download NV bit image S 88
○Printer Function Setting Commands
Command Function MODE GS P Page
GS ( EPrinter function setting command S 92
GS ( KSelecting print control method S 113
GS ( MCustomizing the printer S 116
GS ( NDesignating font attribute S 119
○Special Commands
Command Function MODE GS P Page
ESC nSetting the remaining amount of printout S 120
ESC Y
GS R 0Collect the receipt S 121
GS R 1Setting receipt collection timer S 121
GS SDetecting a black mark S 122
FS ( LControlling black mark paper S 123
Specifying length of paper feed after black mark
detection
S・P ○
S・P
S・P
S・P
S・P
S・P
S
72
73
74
75
81
71
120
- 9 -
○Other Commands
Command Function MODE GS P Page
DLE ENQReal-time request to printer
DLE DC4 Buffer clear
ESC =Data input control
ESC @Initializing the printer
ESC LSelecting PAGE MODE S 130
ESC SSelecting STANDARD MODE P 131
ESC RS Sound buzzer
GS ( AExecution of test printing S 132
GS ISending the printer ID
GS PSpecifying the basic calculation pitch
GS ( L
GS 8
GS C 0Setting counter print mode
GS C 1Setting counter mode (A)
GS C 2Setting counter value
GS C ;
GS cPrint the counter
L
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
Specifying graphics data S 136
Setting counter mode (B)
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
S・P
126
127
128
129
131
133
135
144
145
145
146
146
- 10 -
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.
- 11 -
y
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
[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 W
ESC L
- 17 -
p
p
p
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.
[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.
• 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]
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
[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
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 %
[Example]
[Sample Program]
24dot
, ESC ?
12dot
p1
p4
p2
p5
p3
p6 p36
FontA
Create each data bit by setting “1” for a printed dot and “0” for an unprinted dot.
Refer to Sample Program and Print Results for ESC %.