Citizen CT-S280 User Manual

Command Reference
LINE THERMAL PRINTER
MODEL CT-S280
Rev. 0.02 Issued on 2006/8/4
Rev No. Date Comment
0.00 2005/09/06 Newly issued
0.01 2005/11/24 It corrected wrong mention
0.02 2006/08/04 It corrected wrong mention
TABLE OF CONTENTS
1. OUTLINE .....................................................................................................5
1.1 Operation Mode ........................................................................................................5
1.2 Character Set ............................................................................................................5
1.3 Control Commands ..................................................................................................5
1.3.1 Control Command Details ...............................................................................................5
1.3.2 How to Send Control Commands ...................................................................................5
2. CONTROL COMMANDS.............................................................................6
2.1 ESC/POS Command List.......................................................................................... 6
2.1.1 Description of Items.......................................................................................................10
2.2 Command Details ...................................................................................................11
2.2.1 Print Control Commands...............................................................................................11
LF (
Printing and paper feed).......................................................................................................11
Back to printing) .................................................................................................................. 12
CR (
(Printing in PAGE MODE and returning to STANDARD MODE) ............................................ 13
FF
ESC FF (Printing data in PAGE MODE) ...................................................................................... 14
ESC J n ( ESC d n (
2.2.2 Print Character Commands...........................................................................................16
CAN ( ESC SP n ( ESC ! n ( ESC % n ( ESC & s n m [a [p] s x a] m–n+1 ( ESC – n ( ESC ? n ( ESC E n ( ESC G n ( ESC M n ( ESC R n ( ESC V n ( ESC t n ( ESC { n ( ESC ~ J n DC3 n GS ! n ( GS B n (
GS b n (Specifying/canceling the smoothing).............................................................................. 34
2.2.3 Print Position Commands .............................................................................................35
HT (Horizontal tab)...................................................................................................................... 35
ESC $ n1 n2 ( ESC D [ n ] k NULL ( ESC T n ( ESC W xL xH yL yH dxL dxH dyL dyH ( ESC ESC a n ( GS $ nL nH ( GS L nL nH ( GS W nL nH ( GS
Printing and feeding paper in minimum pitch)............................................................14
Printing and feeding the paper by “n” lines) ..............................................................15
Canceling print data in PAGE MODE) ............................................................................... 16
Setting the right spacing of the character)...............................................................17
Collectively specifying the printing mode) ..................................................................18
Specifying/canceling download character set)..........................................................20
Defining the download characters)..................................... 21
Specifying/canceling underline)..................................................................................22
Deleting download characters) ................................................................................... 23
Specifying/canceling emphasis printing) ................................................................... 24
Specifying/canceling double strike printing) ............................................................. 25
Selection of character fonts)......................................................................................26
Selecting the international character set) ..................................................................26
Specifying/canceling 90°-right-turned characters)..................................................... 27
Selecting the character code table) ............................................................................. 28
Specifying/canceling the inverted characters)............................................................ 29
(MSW3-7 CBM-270-compatible mode: When enabled)(Specifies/cancels printing in red)...............30
(MSW3-7 CBM-270-compatible mode: When enabled)(Specifies/cancels printing in red) ... 31
Specifying the character size)........................................................................................ 32
Specifying/canceling the black/white inverted printing) .............................................. 33
Specifying the absolute positions) ...................................................................... 36
Setting horizontal tab position) ................................................................ 37
Selecting the character printing direction in PAGE MODE) .......................................38
Defining the print area in PAGE MODE) .................... 39
nL nH (Specifying the relative position) ........................................................................ 40
Aligning the characters)..............................................................................................41
Specifying the absolute vertical position of characters in PAGE MODE).............42
Setting the left margin).......................................................................................... 43
Setting the print area width)................................................................................. 44
nL nH (Specifying the relative vertical position of a character in PAGE MODE) ............46
- 1 -
2.2.4 Line Feed Span Commands ..........................................................................................47
ESC 2 ( ESC 3 n (
Specifying 1/6-inch line feed rate)..................................................................................47
Setting line feed rate of minimum pitch).....................................................................48
2.2.5 Bit Image Commands ....................................................................................................49
ESC * m n1 n2 [ d ] k ( GS * n1 n2 [ d ] n1 x n2 x 8 ( GS / m (
Printing the downloaded bit image) .............................................................................. 53
GS v 0 m xL xH yL yH d1...dk (
Specifying the bit image mode) ............................................................. 49
Defining the download bit image) ................................................51
Printing of raster bit image).....................................................54
2.2.6 Status Commands..........................................................................................................56
DLE EOT n (Sending status in real-time) .................................................................................... 56
ESC v GS a n ( GS r n (
(MSW3-7 CBM-270-compatible mode: When enabled or at the selection of serial I/F) (Sending Printer status) ......... 59
Enabling/disabling ASB) ...............................................................................................60
Sending status) .............................................................................................................. 63
2.2.7 Paper Detecting Commands .........................................................................................64
ESC c 3 n ( ESC c 4 n (
Selecting the Paper Sensor valid for Paper-end signal output)...............................64
Selecting the Paper Near-end Sensor valid for print stop) ...................................... 65
2.2.8 Panel Switch Commands ..............................................................................................66
ESC c 5 n (
Enabling/disabling the panel switches) ................................................................... 66
2.2.9 Macro Commands ..........................................................................................................67
GS : (
Starting/ending macro definition) .....................................................................................67
GS ^ n1 n2 n3 (
Executing the macro)........................................................................................ 68
2.2.10 Bar Code Commands...................................................................................................69
GS H n ( GS f n ( GS h n (
GS k m [d1 ...... dk] NULL ......... (1) (
GS k m n [d1 ...... dn] ................ (2) (
GS w n(
Selecting of printing position of HRI characters) .........................................................69
Selecting the font of HRI characters)............................................................................. 71
Specifying the height of the bar code).......................................................................... 72
Printing the bar code) .....................................................73
Printing the bar code)......................................................73
Specifying the horizontal size (magnification) of bar code) ....................................... 79
2.2.11 Commands for Non-volatile Memory .........................................................................80
F S p n m ( F S q n
Printing the download NV bit images)......................................................................80
[xL xH yL yH d1…dk] 1… [xL xH yL yH d1…dk] n (Defining the download NV bit image) .. 81
2.2.12 Numbering Control Commands..................................................................................83
GS C 0 m n ( GS C 1 n1 n2 n3 n4 n5 n6 ( GS C 2 n1 n2 ( GS C ; n1 ; n2 ; n3 ; n4 ; n5 ; ( GS c (
Print the counter).............................................................................................................. 87
Setting the numbering print mode) .......................................................................83
Setting the numbering counter mode (A)) ..................................... 84
Setting the numbering counter)..........................................................................85
Setting the numbering counter mode (B)) ................................86
- 2 -
2.2.13 Printer Function Setting Commands..........................................................................88
GS ( E pL pH fn [··· ] (
fn = 1: Function 1 Transferring to Printer Function Setting Mode .....................................................89
fn = 2: Function 2 End of Printer Function Setting Mode ..................................................................90
fn = 3: Function 3 Setting Memory Switch Value...............................................................................91
fn = 4: Function 4 Sending the Set Memory Switch Value ................................................................93
fn = 5: Function 5 Setting Customized Value ....................................................................................94
fn = 6: Function 6 Sending the Set Customized Value......................................................................96
fn = 7: Function 7 Copying User-defined Page .................................................................................99
fn = 8: Function 8 Defining Data by the Column Format to Character Code Page of Work Area...100 fn = 9: Function 9 Defining Data in the Raster Format to the Character Code Page of Work Area101
fn = 10: Function 10 Erasing Data of Character Code Page Data in Work Area ............................102
fn = 11: Function 11 Setting Communication Conditions of Serial Interface ...................................103
fn = 12: Function 12 Sending the Set Communication Conditions of Serial Interface ....................104
fn = 255: Function 255 Setting All Contents Set by Printer Function Setting Mode to the State at Shipment ....105
Printer function setting command) ......................................................... 88
GS (K pL pH fn m (Selecting print control method) ................................................................ 106
fn = 49: Function 49 Setting Printing Density ..................................................................................107
fn = 50: Function 50 Setting Printing Speed....................................................................................108
GS (M pL pH fn m (
fn = 1, 49: Function 1 : Copies the set value stored in work area to the storage area ................... 110
fn = 2, 50: Function 2 : Copies the set value stored in storage area to the work area.................... 110
fn = 3, 51: Function 3: Specifies the auto loading function of the set value at initialization to be valid or invalid.111
GS (N pL pH fn m (
fn = 48: Function 48: Selects character color..................................................................................112
Customizing the printer) ........................................................................... 109
Designating font attribute) ........................................................................ 112
2.2.14 Other Commands .......................................................................................................113
DLE ENQ n ( DLE DC4 fn d1...d7 (Specification of fn = 8) ( ESC = n ( ESC @ ( ESC L ( ESC S ( GS ( A pL pH n m ( GS I n ( GS P x y (
Real-time request to printer)................................................................................ 113
Buffer clear).................................................... 114
Data input control) ....................................................................................................115
Initializing the printer)................................................................................................. 116
Selecting PAGE MODE)................................................................................................ 117
Selecting STANDARD MODE) ...................................................................................... 118
Execution of test printing)......................................................................... 119
Sending the printer ID) .................................................................................................120
Specifying the basic calculation pitch).................................................................... 122
3. CHARACTER CODE TABLE..................................................................123
3.1 Code Page ............................................................................................................. 123
3.1.1 Codepage 00H to 7FH & PC437 (USA, Europe Standard) ........................................123
3.1.2 Codepage 00H to 7FH & Katakana .............................................................................124
3.1.3 Codepage 00H to 7FH & PC850 (Multilingual) ...........................................................125
3.1.4 Codepage 00H to 7FH & PC860 (Portuguese) ...........................................................126
3.1.5 Codepage 00H to 7FH & PC863 (Canadian-French)..................................................127
3.1.6 Codepage 00H to 7FH & PC865 (Nordic)....................................................................128
3.1.7 Codepage 00H to 7FH & PC852 (Eastern Europe) ....................................................129
3.1.8 Codepage 00H to 7FH & PC866 (Russian) .................................................................130
3.1.9 Codepage 00H to 7FH & PC857 (Turkish) ..................................................................131
3.1.10 Codepage 00H to 7FH & PC864 (Arabic)..................................................................132
3.1.11 Codepage 00H to 7FH & WPC1252 ...........................................................................133
3.1.12 Codepage 00H to 7FH & Thai Code 18 .....................................................................134
3.2 International Character Code Table ....................................................................135
- 3 -
4. APPENDIX...............................................................................................136
4.1 Explanation on PAGE MODE ............................................................................... 136
4.1.1 Overview .......................................................................................................................136
4.1.2 Values Set by Each Command in STANDARD MODE and PAGE MODE ................136
4.1.3 Mapping of Print Data in the Print Area .....................................................................137
4.1.4 Example of Using PAGE MODE ..................................................................................138
4.2 Bidirectional Parallel Interface ............................................................................141
4.2.1 Parallel Interface Communication Mode....................................................................141
4.2.2 Interfacing Phases .......................................................................................................141
4.2.3 Negotiation ...................................................................................................................142
4.3 Identification of Send Status ...............................................................................147
4.4 Memory Switch .....................................................................................................148
4.4.1 Memory Switches ......................................................................................................148
4.4.2 Details of Memory Switches.....................................................................................149
- 4 -

1. OUTLINE

1.1 Operation Mode
CT-S280 has ESC/POSTM as control commands.
1.2 Character Set
All print data sent from the host computer to the printer are automatically converted to one-byte alphanumeric or katakana characters (ANK) or two-byte Kanji corresponding to the characters and symbols. NOTE: For the contents of character set, refer to Character Code Table of this document.
1.3 Control Commands

1.3.1 Control Command Details

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

1.3.2 How to Send Control Commands

Some methods are available for sending Control Commands from the host computer to the printer. Here, a method of sending by BASIC programming is explained.
Example 1
Let’s print a character string “CITIZEN” in enlarged (double-height, double-width) and in normal format.
Program coding
The Control Command shows that the command name for setting the size of a character is GS !. Let’s make a program using this code. An example is shown below.
Program List Print Result
10 A$="CITIZEN" 20 LPRINT CHR$(&H1D);"!"; CHR$(&H33); 30 LPRINT A$; 40 LPRINT CHR$(&HA); CHR$(&HA); 50 LPRINT CHR$(&H1D);"!"; CHR$(&H00); 60 LPRINT A$; 70 END
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.
CITIZEN
CITIZEN
- 5 -

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
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
Printing in PAGE MODE and returning to STANDARD MODE (at the selection of PAGE MODE)
P
Commands 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 ESC ~ J Specifies/cancels printing in red (black-based paper) S.P. DC3 Specifies/cancels printing in red (black-based paper) 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.
- 6 -
Print Position Commands
Commands 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 \ ESC a Aligning the characters S
GS $
GS L Setting the left margin S O GS W Setting the print area width S.P. O
GS \
Line Feed Span Commands
Specifying the relative position S.P. O
Specifying the absolute vertical position of characters in PAGE MODE
Specifying the relative vertical position of a character in PAGE MODE
P O
S.P. O
Commands 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
Commands 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 v0 Printing of raster bit image S
Status Commands
Commands Function Mode GS P
DLE EOT. Sending status in real-time S.P GS a Enabling/disabling ASB (Automatic Status Back) S.P. GS r Sending status S.P. ESC v Sending Printer status S.P.
Paper Detecting Commands
Commands Function Mode GS P
ESC c3 Selecting the Paper Sensor valid for Paper-end signal output S.P. ESC c4 Selecting the Paper Near-end Sensor valid for print stop S.P.
- 7 -
Panel Switch Commands
Commands Function Mode GS P
ESC c5 Enabling/disabling the panel switches S.P.
Macro Commands
Commands Function Mode GS P
GS : Starting/ending macro definition S.P. GS ^ Executing the macro S.P.
Bar Code Commands
Commands 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
Commands Function Mode GS P
FS p Printing the download NV bit images S FS q Defining the download NV bit image S
Numbering Control Commands
Commands Function Mode GS P
GS C 0 Setting the numbering print mode S.P. GS C 1 Setting the numbering counter mode (A) S.P. GS C 2 Setting the numbering counter S.P. GS C ; Setting the numbering counter mode (B) S.P. GS c Print the counter S.P.
- 8 -
Printer Function Setting Commands
Commands Function Mode GS P
GS ( E Printer function setting command S GS ( M Customizing the printer S GS ( K Selecting print control method S GS ( N Designating font attribute S
Other Commands
Commands 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 GS ( A Execution of test printing S GS I Sending the printer ID S.P. GS P Specifying the basic calculation pitch S.P.
In the Mode column: S = STANDARD MODE, P = PAGE MODE
O = shows the command affected by GS P.
- 9 -

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
defineddomain.
[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.
- 10 -
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
- 11 -
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
- 12 -
FF
[Function] Printing in PAGE MODE and returning to STANDARD MODE (at the selection of
PAGE MODE)
[Code] <0C>H
[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.
• 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
- 13 -
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] 0n255
[Outline] Prints the data held in the print buffer and feeds paper by [n x 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.
- 14 -
ESC d n
[Function] Printing and feeding the paper by “n” lines
[Code] <1B>H<64>H<n>
[Range] 0n255
[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 x 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 2/6-inch line feed AAAAA
- 15 -

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
- 16 -
ESC SP n
[Function] Setting the right spacing of the character
[Code] <1B>H<20>H<n>
[Range] 0n255
[Outline] Sets the right spacing of character to [n x 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 A A A A A 1-dot space A A A A A 12-dots space
- 17 -
ESC ! n
[Function] Collectively specifying the printing mode [Code] <1B>H<21>H<n> [Range] 0n255 [Outline] Printing mode is assigned.
Bit Function
0 Character Font Font A (12 x 24) Font B (9 x 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
[Caution] • With double height and double width being specified simultaneously, quadruple
characters are created.
• An underline is attached to the full character width, which, however, is not attached to the part having been skipped by the horizontal tab (HT). Neither is it attached to 90°-right-turned characters.
• The underline width is as specified by the ESC – command. (The default setting is 1 dot width.)
• Setting by this command is invalid for Kanji except setting and canceling of enhanced printing.
• In case characters with different vertical magnification ratios coexist on the same line, they are printed on the same base line.
• ESC E, ESC M, ESC –, and GS ! can individually set or cancel the mode but the command processed last is valid.
• Setting or canceling of enhanced 3rd bit is valid for alphanumeric and kana and kanji. Other print mode is valid only for alphanumeric and kana characters.
Setting MSW3-7 to ON allows the relation between length and width for a
0 1
character to be reversed when specifying 90°-right-turned characters.
[Default] n = 0
[See Also] ESC E, ESC –, GS !
Value
- 18 -
[Sample Program]
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);
[Print Results]
H H H
Font B + Emphasis + Quadruple + Underline Font A + Underline Font A + Double width Font A + Double height Font A + Emphasis Font B Font A
H
H
H
H
- 19 -
ESC % n
[Function] Specifying/canceling download character set
[Code] <1B>H<25>H<n>
[Range] 0n255
[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]
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
[Print Results]
@A Internal character set
A Download character
- 20 -
ESC & s n m [a [p] s x 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 x 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 x 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 x a”.
• Download characters thus defined remain valid until redefinition, execution of ESC @, GS *, FS q, GS (A, deletion by ESC ?, or power OFF is performed.
[Caution] • 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
24 dots
LSB 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 p4 …… p34
p2 p5 …… p35
p3 p6 …… p36
- 21 -
ESC n
[Function] edifying/canceling underline
[Code] <1B>H<2D>H<n>
[Range] 0n2
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
A A A A A A A A A A
Underline specified
- 22 -
ESC ? n
[Function] Deleting download characters
[Code] <1B>H<3F>H<n>
[Range] 32n126
[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 %
- 23 -
ESC E n
[Function] Specifying/canceling emphasis printing
[Code] <1B>H<45>H<n>
[Range] 0n255
[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
- 24 -
ESC G n
[Function] Specifying/canceling double strike printing
[Code] <1B>H<47>H<n>
[Range] 0n255
[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
- 25 -
ESC M n
[Function] Selection of character fonts
[Code] <1B>H<4D>H<n>
[Range] 0n2
48≤n≤50
[Outline] Selects character fonts.
n
0, 48 1, 49 2, 50
[Caution] • ESC ! can also select fonts, but the setting made by the command that has last been
processed becomes valid.
• In case font C selection ESC R is other than n = 8 (katakana), codepage PC437 is printed.
• In case ESC R is n = 8 (katakana), codepage katakana is printed.
[Default] n = 0
[See Also] ESC !
Selection of font A (12 x 24) Selection of font B (9 x 24) Selection of font C (8 x 16)
Function
ESC R n
[Function] Selecting the international character set
[Code] <1B>H<52>H<n>
[Range] 0n13
[Outline] Depending on the value of “n”, one of the following character sets is specified;
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
[Default] n = 0 (Overseas), n = 8 (Domestic)
[See Also] 3.2 “International Character Code Table”
- 26 -
ESC V n
[Function] Specifying/canceling 90°-right-turned characters
[Code] <1B>H<56>H<n>
[Range] 0n1
48≤n≤49
[Outline] Specifying/canceling 90°-right-turned characters.
n Function
0, 48 Canceling 90°-right-turned characters 1, 49 Specifying 90°-right-turned characters
[Caution] • No underlines are attached to 90°-right-turned characters.
• This command does not affect PAGE MODE but setting is maintained.
[Default] n = 0
[Sample Program]
LPRINT CHR$(&H1B);"V"; CHR$(0); LPRINT "AAAAA"; LPRINT CHR$(&H1B);"V"; CHR$(1); LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
90° rotation canceled
AAAAA
A
A
90° rotation specified
A
A
A
- 27 -
ESC t n
[Function] Selecting the character code table
[Code] <1B>H<74>H<n>
[Range] 0n9
16≤n≤19 n = 26,40, 255
[Outline] Selecting the character code table. The character code table is selected based on the value of “n”.
n Character Code Table 0 Codepage PC437 1 Katakana 2 Codepage PC850 3 Codepage PC860 4 Codepage PC863
5 Codepage PC865 6, 18 Codepage PC852 7, 17 Codepage PC866
8 Codepage PC857 9, 16 WPC1252
19 Codepage PC858 26 Thai code 18 40 Codepage PC864
255 Space Page (For user setting)
[Default]
n=1 for Japanese Kanji specifications
[Sample Program]
LPRINT CHR$(&H1B);"t"; CHR$(0); LPRINT "n=0 "; LPRINT CHR$(C); FOR C=&HB1 TO &HB5 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);
[Print Results]
n = 0 │┤ n = 1 アイウエオ
n=0 for overseas specifications
- 28 -
ESC { n
[Function] Specifying/canceling the inverted characters
[Code] <1B>H<7B>H<n>
[Range] 0n255
[Outline] Specifying/canceling inverted characters.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
Turns the data of the line by 180° and print the data.
n0 Condition
0 Canceling inverted characters. 1 Specifying inverted characters.
[Caution] • This command is valid only when it is specified at the beginning of a line.
• This command does not affect the PAGE MODE.
[Default] n = 0
[Sample Program]
LPRINT CHR$(&H1B); "{"; CHR$(0); LPRINT "TEN"; CHR$(&HA); LPRINT "ELEVEN"; CHR$(&HA); LPRINT CHR$(&H1B); "{"; CHR$(1); LPRINT "TEN"; CHR$(&HA); LPRINT "ELEVEN"; CHR$(&HA);
[Print Results]
Inversion canceled
Paper feed direction Inversion specified
- 29 -
ESC ~ J n (MSW3-7 CBM-270-compatible mode: When enabled)
[Function] Specifies/cancels printing in red
[Code] <1B>H<7E>H<4A>H<n>
[Range] 0n255
[Outline] Specifies or cancels printing in red.
• Red printing is valid on black-based thermal paper. Specifies or cancels printing in black
on red-based thermal paper.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0 Black-based Paper
0 Low density printing (1st color printing) 1 High density printing (2nd color printing)
[Caution] • Valid when 2-color paper is specified by the GS ( E command.
• Valid only when dedicated thermal paper is used.
• This command must not be used for normal thermal paper.
• Conducting pulse amount at low density printing is standard value. At the time of high density printing, conducting pulse amount is increased to change the coloring.
[Default] n = 0
[Sample Program]
LPRINT CHR$(&H1B);"~";"J"; CHR$(0); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"~";"J"; CHR$(1); LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA Red printing AAAAA Black printing
* When dedicated thermal paper (red-based paper) is used.
- 30 -
DC3 n (MSW3-7 CBM-270-compatible mode: When enabled) 
[Function] Specifies/cancels printing in red (black-based paper)
[Code] <13>H<n>
[Range] 0n255
[Outline] Specifies or cancels printing in red.
• Red printing is valid on black-based thermal paper. Specifies or cancels printing in black on red-based thermal paper.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0 Black-based Paper
0 Low density printing (1st color printing) 1 High density printing (2nd color printing)
[Caution] • Valid when 2-color paper is specified by the GS ( E command.
• Valid only at the top of a line.
• Valid only when dedicated thermal paper is used.
• This command must not be used for normal thermal paper.
• Conducting pulse amount at low density printing is standard value. At the time of high density printing, conducting pulse amount is increased to change the coloring.
[Default] n = 0
[Sample Program]
LPRINT CHR$(&H1B);"~";"J";CHR$(0); LPRINT "AAAAA";CHR$(&HA); LPRINT CHR$(&H1B);"~";"J";CHR$(1 ); LPRINT "AAAAA";CHR$(&HA);
[Print Results]
AAAAA Red printing AAAAA Black printing
* When dedicated thermal paper (red -based paper) is used.
- 31 -
GS ! n
[Function] Specifying the character size
[Code] <1D>H<21>H<n>
[Range] 0n255, where:
1≤vertical magnification≤8, 1≤horizontal magnification≤8
[Outline] Specifies the character size (Vertical and horizontal magnification).
Bit
0 1 2 3 4 5 6 7
Table 1 Horizontal Magnification Table 2 Vertical Magnification
[Caution] • This command is valid for all characters (alphanumeric, kana, and kanji) except for
[Default] n = 0
[See Also] ESC !
Hex. Decimal Magnification
00 0 1 x (Standard) 10 16 2 x (Double width) 20 32 3 x 30 48 4 x 40 64 5 x 50 80 6 x 60 96 7 x 70 112 8 x
HRI characters.
• This command is ignored if either the vertical magnification or horizontal
magnification is out of the defined range.
• In STANDARD MODE, the vertical direction is defined as the paper feed direction, and the horizontal direction is defined as the direction perpendicular to the paper feed.
• Setting memory SW 3-7 to ON allows the horizontal and vertical relations to be interchanged when 90°-right-turnning of character is specified.
• In PAGE MODE, the vertical direction means the top-bottom direction of each
character. The horizontal direction means the side-to-side direction of each character. If characters of different vertical magnification are contained in a line, the baseline of each character is lined up.
• Horizontal and vertical magnification can also be specified/canceled by ESC ! but
the setting of command last processed is valid.
• Setting MSW3-7 to ON allows the relation between length and width for a character
to be reversed when specifying 90°-right-turned characters.
Horizontal magnification
Function
Vertical magnification
specification
specification
Hex. Number
Refer to Table 2, “Vertical Magnification”.
Refer to Table 1, “Horizontal Magnification”.
Hex. Decimal Magnification
00 0 1 x (Standard) 01 1 2 x (Double ) 02 2 3 x 03 3 4 x 04 4 5 x 05 5 6 x 06 6 7 x 07 7 8 x
Value
Decimal Number
- 32 -
GS B n
[Function] Specifying/canceling the black/white inverted printing
[Code] <1D>H<42>H<n>
[Range] 0n255
[Outline] This command specifies or cancels the black/white inverted printing.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0 Function
0 The black/white inverted printing is canceled. 1 The black/white inverted printing is specified.
[Caution] • The black/white inversion works on internal and downloaded characters.
• The black/white inversion works also on the right spacing of characters defined by ESC SP.
• This command does not affect the bit image, downloaded bit image, bar code, HRI characters, or the skip area specified by HT, ESC $, or ESC
• This command does not affect the space between lines.
• Black/white inversion specification takes precedence over underline specification.
Underline printing specified is, therefore, nullified if black/white inversion is specified; the underline setting, however, remains unchanged.
[Default] n = 0
.
- 33 -
GS b n
[Function] Specifying/canceling the smoothing
[Code] <1D>H<62>H<n>
[Range] 0n255
[Outline] This command specifies or cancels the smoothing.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0 Function
0 The smoothing is canceled. 1 The smoothing is specified.
[Caution] • Smoothing is effective to printer’s internal characters, download characters, and
non-standard characters.
• Smoothing is not effective to characters with either of their vertical or horizontal magnification is x1.
[Default] n = 0
[See Also] ESC !, GS !
- 34 -

2.2.3 Print Position Commands

HT
[Function] Horizontal tab
[Code] <09>H
[Outline] Shifts the printing position to the next horizontal tab position.
• Ignored when the next horizontal tab position has not been set.
[Caution] The horizontal tab position is set by ESC D.
[Default] At the selection of font A, tabs are set every 8 characters (at 9th, 17th, 25th, ...) with
right space amount of a character set at 0 and horizontal enlargement rate of a character set at 1.
[See Also] ESC D
[Sample Program]
LPRINT "012345678901234567890"; CHR$(&HA); LPRINT CHR$(&H9);"AAA"; LPRINT CHR$(&H9);"BBB"; CHR$(&HA); LPRINT CHR$(&H1B);"D"; LPRINT CHR$(3); CHR$(7); CHR$(14);CHR$(0); LPRINT CHR$(&H9);"AAA"; LPRINT CHR$(&H9);"BBB"; LPRINT CHR$(&H9);"CCC"; CHR$(&HA);
[Printing Result]
12345678901234567890
AAA BBB Initially set horizontal tab
AAA
BBB CCC When set to the 4th, 8th, and 15th columns
- 35 -
ESC $ n1 n2
[Function] Specifying the absolute positions
[Code] <1B>H<24>H<n1><n2>
[Range] 0n1255
0≤n2≤255
[Outline] The printing start position is specified by the absolute position from the left margin
with the number of dots divided by 256 and quotient specified as “n2” and remainder as “n1”. Therefore, the printing start position is designated as n1 + n2 x256 x basic calculation pitch from the left margin.
[Caution] • The basic calculation pitch is set by GS P. After the line feed width is set, if the basic
calculation by GS P leaves a fraction, the fraction is corrected with the minimum pitch of the mechanism, and the remainder is omitted.
• In STANDARD MODE, this command uses the horizontal (Paper feed direction)
basic calculation pitch (x).
• In PAGE MODE, this command acts differently depending on the start point:
(1) If the start point specified by ESC T is top right or bottom left, the command uses
the vertical (Paper feed direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top left or bottom right , the command uses
the horizontal (Perpendicular to the paper feed direction) basic calculation pitch (x). Specification beyond the end of the line is ignored.
[See Also] ESC
[Sample Program]
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);
[Print Results]
Absolute position specified
0 50 100 256
A B C B A
Relative position specified –62
, GS P, GS \, GS $
\";
- 36 -
ESC D [ n ] k NULL
[Function] Setting horizontal tab position
[Code] <1B>H<44>H [<n>] k<00>H
[Range] 1n255
0≤k≤32
[Outline] Specifying a horizontal tab position.
• “n” indicates the number of columns from the beginning to the horizontal tab position. Note, however, that “n = set position – 1”. For example, to set the position at 9th column, n = 8 is to be specified.
• “k” denotes the number of horizontal tab positions you want to set.
• The tab position is set at a position where it is “character width x n” from the beginning of a line. The character width, at this time, includes the space on the right. In double width characters, it is made double the ordinary case.
• Tab positions that can be specified are maximum 32. Specifying tab positions
exceeding this limit is ignored.
• <n> k, which denotes a setting position, is input in the increasing order and ends at <00> H.
• ESC D <NULL> clears all the set tab positions. Following clearing, the horizontal tab command is ignored.
[Caution] • When the data, <n> k, is equal to or smaller than 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 data.
• When the data, <n> k, exceeds a 1-line print area, set the horizontal tab position, as
“Set column position = Maximum print columns + 1”.
• The horizontal tab position does not change even if the character width is altered
after setting the horizontal tab position.
[Default] • At the selection of font A, tabs are set every 8 characters (at 9th, 17th, 25th, ...) with
right space amount of a character set at 0 and horizontal enlargement rate of a character set at 1.
[See Also] HT
[Sample Program] Refer to Sample Program and Print Results for HT.
- 37 -
ESC T n
[Function] Selecting the character printing direction in PAGE MODE
[Code] <1B>H<54>H<n>
[Range] 0n3
48≤n≤51
[Outline] Selects the direction and start point of character printing in PAGE MODE.
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)
Paper feed direction
[Caution] • When STANDARD MODE is selected, this command only executes the internal flagging
of the printer without affecting the printing in STANDARD MODE.
• The character mapping position will be the start point of the print area specified by ESC W.
• The basic calculation pitch (x or y) used by the following commands varies with the start point.
(1) If the start point is the top left or bottom right (The characters are mapped in the
direction perpendicular to the paper feed),
• Commands using x: ESC SP, ESC S, ESC
• Commands using y: ESC 3, ESC J, GS $, GS
(2) If the start point is the top right or bottom left (The characters are mapped in the
paper feed direction),
• Commands using x: ESC 3, ESC J, GS $, GS
• Commands using y: ESC SP, ESC S, ESC
[Default] n = 0
[See Also] Appendix 4.1 “Explanation on PAGE MODE”
ESC $, ESC L, ESC W, ESC
, GS $, GS P, GS \
- 38 -
ESC W xL xH yL yH dxL dxH dyL dyH
[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, dyH255, except for dxL = dxH = 0 or dyL = dyH = 0
[Outline] Defines the location and size of the print area.
• Horizontal start point = [(xL + xH x 256) x basic calculation pitch] inches
• Vertical start point = [(yL + yH x 256) x basic calculation pitch] inches
• Horizontal length = [(dxL + dxH x 256) x basic calculation pitch] inches
• Vertical length = [(dyL + dyH x 256) x basic calculation pitch] inches
[Caution] • When STANDARD MODE is selected, this command only executes the internal
flagging of the printer without affecting the printing in STANDARD MODE.
• If the horizontal start point or vertical start point is out of the printable area, this command is canceled and the next data is handled as normal data.
• If the horizontal length or vertical length is 0, this command is canceled and the next data is handled as normal data.
• The character mapping position will be the start point specified by ESC T in the print area.
• If the “horizontal start point + horizontal length” is greater than the horizontal
printable area, the “horizontal printable area – horizontal start point” is taken as the horizontal length.
• If the “vertical start point + vertical length” is greater than the vertical printable area,
the “vertical printable area – vertical start point” is taken as the vertical length.
• The basic calculation pitch is defined by GS P. Once defined, the print area is not changed if the basic calculation pitch is changed by GS P.
• Fractions resulting from calculations are corrected with the minimum pitch of the mechanism, and the remainder is omitted.
• The horizontal start point and horizontal length are calculated with the basic calculation pitch (x). The vertical start point and vertical length are calculated with the basic calculation pitch (y).
• The figure below illustrates the print area, where X = horizontal start point, Y =
vertical start point, Dx = horizontal length, and Dy = vertical length.
Paper feed direction
The printable area for this printer is approximately 48 mm (384/203 inches) horizontally and 117 mm (938/203 inches) vertically.
[Default] xL = xH = yL = yH = 0 dxL = 128, dxH = 1, dyL = 126, dyH = 6
[See Also] Appendix 4.1 “Explanation on PAGE MODE” CAN, ESC L, ESC T, GS P
(X,Y) Paper Dx
Dy
(X+Dx-1,Y+Dy-1)
Print Area
- 39 -
ESC
[Function] Specifying the relative position
[Code] <1B>H<5C>H<nL><nH>
[Range] 0nL255
0≤nH≤255
[Outline] This command specifies the next print start position in a relative position with respect
[Caution] • Specification of a position outside the print area is ignored.
[See Also] ESC $, GS P
[Sample Program] Refer to Sample Program and Print Results for ESC $.
nL nH
to the current position. The next print start position will be at a point of [(nL + nH x
256) x basic calculation pitch] inches away from the current position.
• If a new position is specified to the right of the current position in the direction of printing, it should be specified as positive (+). If it is to the left, it should be as negative (–).
• A negative value is the complement of 65536. For example, to move the position by
N pitches to the left, specify it as: nL + nH x 256 = 65536 – N
• 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 horizontal basic calculation pitch (x).
• In PAGE MODE, this command acts differently depending on the start point:
(1) If the start point specified by ESC T is top left or bottom right, the command
specifies the relative position in the direction perpendicular to the paper feed (The character’s side-to-side direction), using the horizontal basic calculation pitch (x).
(2) If the start point is top right or bottom left, the command specifies the relative
position in the paper feed direction (The character’s side-to-side direction), using the vertical basic calculation pitch (y).
- 40 -
ESC a n
[Function] Aligning the characters
[Code] <1B>H<61>H<n>
[Range] 0n2
48≤n≤50
[Outline] All the printed data within one line are aligned in the specified position. Depending on the value “n”, positional alignment is carried out as shown in the table
below:
n Position 0, 48 Left end alignment 1, 49 Centering 2, 50 Right end alignment
[Caution] • This command is valid only when it is inputted at the beginning of a line.
• This command does not affect the PAGE MODE.
• Executes justification in the print area being set.
[Default] n = 0
[Sample Program]
LPRINT CHR$(&H1B);"a"; CHR$(0); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"a"; CHR$(1); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"a"; CHR$(2); LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
AAAAA AAAAA Paper feed direction AAAAA Left-justified Centered Right-justified
- 41 -
GS $ nL nH
[Function] Specifying the absolute position of character vertical direction in PAGE MODE
[Code] <1D>H<24>H<nL><nH>
[Range] 0nL255, 0nH255
[Outline] 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 x 256) x basic calculation pitch] from the start position.
[Caution] • This command is ignored except at PAGE MODE selection.
• Absolute position setting exceeding the specified print area is ignored.
• Position in horizontal direction of character at the start position of data development is not shifted.
• Start point used as the reference is set by <ESC T>.
• The following operation occurs at the start point of <ESC T>. (1) When start point is set at “upper left” or “lower right”, the absolute position of
paper feed direction (vertical direction of character) is set. In this case, basic calculation pitch (y) of vertical direction is used.
(2) When start point is set at “upper right” or “lower left”, the absolute position of
vertical direction of paper feed (vertical direction of character) is set. In this case, basic calculation pitch (x) of horizontal direction is used.
• Basic calculation pitch is set by <GS P>.
• When fractional number is caused by the calculation, it is corrected by the minimum
pitch of mechanism and the rest is discarded.
[See Also] ESC $, ESC T, ESC W, ESC
, GS P, GS \
- 42 -
GS L nL nH
[Function] Setting the left margin
[Code] <1D>H<4C>H<nL><nH>
[Range] 0nL255
0≤nH≤255
[Outline] This command sets the left margin specified by nL and nH.
The value of the left margin is [(nL + nH x 256) x basic calculation pitch] inches.
Printable area
Left Print area margin width
[Caution] • This command only works when it is entered at the beginning of a line.
• When PAGE MODE is selected, this command only executes the internal flagging of the printer.
• The setting of this command does not affect PAGE MODE.
• The maximum settable left margin is equal to the horizontal printable area. A setting greater than this maximum is trimmed to the maximum.
• The basic calculation pitch is defined by GS P. Once defined, the left margin is not changed if the basic calculation pitch is changed by GS P.
• The left margin is calculated with the horizontal basic calculation pitch (x) set by GS P. A fraction resulting from the calculation is corrected with the minimum pitch of the mechanism, and the remainder is omitted.
• When mapping character data, if the print area specified is not wide enough to accommodate one character of the current font, only the line for that character data is handled as follows: (1) The print area is extended toward the right to be equivalent to one character of
the current font, but not wider than the printable area.
(2) If an area for one character cannot be provided as a result of step (1), the print
area is extended toward the left. (So, the left margin is decreased.)
• When mapping non-character data (bit image, downloaded bit image, or bar code), if
the print area specified is narrower than 9-bits, only the line for that data is handled as follows:
(1) The print area is extended toward the left (so, the left margin is decreased) until it
is 9-dot wide, but not wider than the printable area.
[Default] nL = 0, nH = 0
[See Also] GS P, GS W
- 43 -
A
GS W nL nH
[Function] Setting the print area width
[Code] <1D>H<57>H<nL><nH>
[Range] 0nL255
0≤nH≤255
[Outline] Sets the print area width specified by nL and nH. The print area width will be [(nL + nH x 256) x basic calculation pitch] inches.
Printable area
Left margin Print area width
[Caution] • This command only works when it is entered at the beginning of a line.
• When PAGE MODE is selected, this command only executes the internal flagging of the printer.
• The setting of this command does not affect PAGE MODE.
• If the value entered with this command exceeds the printable area for one line, the entire area except the left margin is set as the print area width.
• The basic calculation pitches are defined by GS P. Once defined, the print area width is not changed if the basic calculation pitch is changed by GS P.
• The print area width is calculated with the horizontal basic calculation pitch (x) defined by GS P. A fraction resulting from the calculation is corrected with the minimum pitch of the mechanism, and the remainder is omitted.
• If the first character to be mapped at the beginning of a line has a width (including
the right spacing) greater than the print area width, only that line is handled as follows:
(1) The print area is extended toward the right to accommodate the first character,
but not wider than the printable area.
Printable area
(1) Extended toward the right
Left margin Print area width
A
- 44 -
(2) If a sufficient area cannot be provided as a result of step (1), the print area is
extended toward the left (so, the left margin is decreased).
Printable area
(1) Extended
Left margin toward the
right (2) The left margin is trimmed Print area width
(3) If a sufficient area cannot be provided as a result of step (2), the right spacing is
trimmed.
• When mapping a bit image (or downloaded bit image), if the print area is narrower than the minimum width of the bit image (two dots for single density, or one dot for double density), only the line for that image is handled as follows: (1) The print area is extended toward the left (so, the left margin is decreased)
until it is equal to the minimum width of the image, but not wider than the printable area.
[Default] nL = 128, nH = 1
[See Also] GS L, GS P
A
- 45 -
GS
[Function] Specifying the relative vertical position of a character in PAGE MODE
[Code] <1D>H<5C>H<nL><nH>
[Range] 0nL255
0≤nH≤255
[Outline] This command is used in PAGE MODE to specify the vertical position of a character
[Caution] • This command is ignored when PAGE MODE is not selected.
nL nH
in the data mapping start position, in a relative position with respect to the current position. The next data mapping start position will be at a point [(nL + nH x 256) x basic calculation pitch] inches away from the current position.
• If a new position is specified for a character located beneath the current position, it should be specified as positive (+). If it is above the current position, it should be negative (–).
• A negative value is the complement of 65536. For example, to move the position by N pitches up, specify it as: nL + nH x 256 = 65536 – N
• The specification of a relative position outside the specified print area is ignored.
• Depending on the start point specified by ESC T, this command acts as follows: (1) If the start point is the top left or bottom right, the command specifies the relative
position in the paper feed direction (the character’s top-bottom direction) using the vertical basic calculation pitch (y).
(2) If the start point is the top right or bottom left, the command specifies the relative
position in the direction perpendicular to the paper feed (the character’s top-bottom direction) using the horizontal basic calculation pitch (x).
• The basic calculation pitch is set by GS P.
• Fractions resulting from calculations are corrected with the minimum pitch of the mechanism, and the remainder is omitted.
- 46 -

2.2.4 Line Feed Span Commands

ESC 2
[Function] Specifying 1/6-inch line feed rate
[Code] <1B>H<32>H
[Outline] The line feed rate per line is specified by 1/6 inch.
[Caution] Line feed rate can be specified respectively for both STANDARD MODE and PAGE
MODE.
[Sample Program]
LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"3"; CHR$(0); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"3"; CHR$(50); LPRINT "AAAAA"; CHR$(&HA); LPRINT CHR$(&H1B);"2"; LPRINT "AAAAA"; CHR$(&HA); LPRINT "AAAAA"; LPRINT CHR$(&H1B);"J"; CHR$(100); LPRINT "AAAAA"; CHR$(&HA); LPRINT "AAAAA"; CHR$(&HA);
[Print Results]
A A A A A 1/6-inch line feed A A A A A 0/360-inch line feed A A A A A 50/360-inch line feed
A A A A A 1/6-inch line feed A A A A A 100 /360-inch line feed
A A A A A 1/6-inch line feed A A A A A
- 47 -
ESC 3 n
[Function] Setting line feed rate of minimum pitch
[Code] <1B>H<33>H<n>
[Range] 0n255
[Outline] Sets the line feed width per line to [n x basic calculation pitch] inches.
[Caution] • The line feed width can be set separately for the STANDARD and PAGE MODES.
• The basic calculation pitch is set by GS P. Once defined, the line feed width is not
changed if the basic calculation pitch is changed by GS P.
• Fractions resulting from calculation are corrected with the minimum pitch of the
mechanism, and the remainder is omitted.
• In STANDARD MODE, this command uses the vertical (paper feed direction) basic
calculation pitch (y).
• In PAGE MODE, this command acts differently depending on the start point:
(1) If the start point specified by ESC T is top left or bottom right, the command uses
the vertical (paper feed direction) basic calculation pitch (y).
(2) If the start point specified by ESC T is top right or bottom left, the command uses
the horizontal (perpendicular to the paper feed direction) basic calculation pitch (x).
• The maximum settable line feed width is 1016 mm (40 inches). A setting greater
than this maximum is trimmed to the maximum.
[Default] Approx. 4.23 mm
[See Also] ESC 2, GS P
- 48 -

2.2.5 Bit Image Commands

ESC * m n1 n2 [ d ] k
[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≤2 0≤d≤255 k = n1 + 256 x n2 (m = 0, 1) k = (n1 + 256 x n2) x 3 (m = 32, 33)
[Outline] • 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 x n2).
• When bit image data have been input in excess of dot positions that can be printed on one line, the excess data are discarded.
• ”d” is bit image data. Bits to be printed are specified as “1” and those not as “0”.
• The bit image modes specified by “m” are shown as follows:
Vertical Direction Horizontal Direction
m Mode
0 8-dots single density 8 67 DPI 101 DPI 288
1 8-dots double density 8 67 DPI 203 DPI 576
32 24-dots single density 24 203 DPI 101 DPI 288
33 24-dots double density 24 203 DPI 203 DPI 576
No. of Dots Dot Density
[Caution] • When the value of “m” is out of the above range, the data following after “n1” is
processed as normal printing data.
• After completion of bit image printing, the printer returns to normal data processing
mode.
Dot
Density
Max.
No. of Dots
- 49 -
[Sample Program]
LPRINT CHR$(&H1B);"*"; LPRINT CHR$(0);CHR$(20);CHR$(0); IMG1: GOSUB IMG1 LPRINT CHR$(&HFF); LPRINT CHR$(&HA); FOR I = 1 TO 18 LPRINT CHR$(&H1B);"*"; LPRINT CHR$(&H85); LPRINT CHR$(1);CHR$(20);CHR$(0); NEXT I GOSUB IMG1 LPRINT CHR$(&HFF); LPRINT CHR$(&HA); RETURN LPRINT CHR$(&H1B);"*"; IMG2: LPRINT CHR$(32);CHR$(20);CHR$(0); LPRINT CHR$(&HFF); GOSUB IMG2 LPRINT CHR$(&HFF); LPRINT CHR$(&HA); LPRINT CHR$(&HFF); LPRINT CHR$(&H1B);"*"; FOR I = 1 TO 18 LPRINT CHR$(33);CHR$(20);CHR$(0); LPRINT CHR$(&H80); GOSUB IMG2 LPRINT CHR$(&H00); LPRINT CHR$(&HA); LPRINT CHR$(&H05); END NEXT I LPRINT CHR$(&HFF); LPRINT CHR$(&HFF); LPRINT CHR$(&HFF); RETURN
[Print Results] 8-dots single density
8-dots double density 24-dots single density 24-dots double density
- 50 -
GS * n1 n2 [ d ] n1 x n2 x 8
[Function] Defining the download bit image
[Code] <1D>H<2A>H<n1><n2> [< d >] n1 x n2 x 8
[Range] 1n1255
1≤n2≤48 n1 x n2 ≤1536
[Outline] • Defines download bit images of the number of dots specified by “n1” and “n2”.
• The numbers of dots are n1 x8 in horizontal direction and n2 x8 in vertical direction.
• ”d” indicates bit image data.
• Once defined, the download bit image remains effective until it is redefined, ESC @,
ESC &, GS (A, or FS q, is executed, or power is turned OFF.
[Caution] • Relations between the bit image data and the dots defined are shown below.
• With this command executed, the defined content of a downloaded character is cleared.
[See Also] GS /
n1 x 8 dots
MSB
n2 x 8 dots
 LSB
d1
dn2 + 1
d2
dn2 + 2
dn2
dn2 x 2
dn2 x 2 + 1
dn2 x 2 + 2
…………
…………
…………
dn2 x n2 x 8
- 51 -
[Sample Program]
GOSUB IMG LPRINT CHR$(&H1D);"/"; CHR$(0); LPRINT CHR$(&H1D);"/"; CHR$(1); LPRINT CHR$(&H1D);"/"; CHR$(2); LPRINT CHR$(&H1D);"/"; CHR$(3); END IMG: n1=10:n2=5 LPRINT CHR$(&H1D);"*"; LPRINT CHR$(n1); CHR$(n2); FOR J=1 TO n1*8 FOR I=1 TO n2 LPRINT CHR$(J); NEXT I NEXT J RETURN
[Print Results]
- 52 -
GS / m
[Function] Printing the downloaded bit image
[Code] <1D>H<2F>H<m>
[Range] 0m3
48≤m≤51
[Outline] Prints downloaded bit image in a mode specified by “m”. Modes that can be selected by “m” are shown below.
m Mode Name
0, 48 NORMAL MODE 203 DPI 203 DPI 1, 49 DOUBLE WIDTH MODE 203 DPI 101 DPI 2, 50 DOUBLE HEIGHT MODE 101 DPI 203 DPI 3, 51 QUADRUPLE SIZE MODE 101 DPI 101 DPI
[Caution] • When a downloaded bit image has not been defined, this command is ignored.
• When data exist in the print buffer, this command is ignored.
• A portion of a downloaded bit image exceeding one line length is not printed.
[See Also] ESC &, GS *
Dot Density in
Vertical Direction
Dot Density in
Horizontal
Direction
- 53 -
GS v 0 m xL xH yL yH d1...dk
[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 x 256) x (yL + yH x 256), however, k ≠0
[Outline] Prints raster bit images in mode “m”.
• xL, xH specify the number of data in horizontal direction of the bit image to (xL + xH x256) bytes.
• yL, yH specify the number of data in vertical direction of the bit image to (yL + yH x
256) bytes.
m Mode Name
0, 48 NORMAL MODE 203 DPI 203 DPI 1, 49 DOUBLE WIDTH MODE 203 DPI 101 DPI 2, 50 DOUBLE HEIGHT MODE 101 DPI 203 DPI 3, 51 QUADRUPLE SIZE MODE 101 DPI 101 DPI
[Caution] • In STANDARD MODE, this command is valid only when there is no print data in the
print buffer.
• Any of the print modes (character size, emphasis, double strike, inverting, underlining, back-to-white reversing, etc.) does not affect the raster bit image.
• If the print area specified by GS L and GS W is narrower than a minimum width, the print area for that line only is extended to the minimum width. The minimum width is one dot in NORMAL MODE (m = 0, 48) and DOUBLE HEIGHT MODE (m = 2, 50), and 2 dots in DOUBLE WIDTH MODE (m = 1, 49) and QUADRUPLE SIZE MODE(m = 3, 51).
• Any part of data that is out of the print area is only read and discarded in units of dot.
• The print start position can arbitrarily be specified with HT (horizontal tab), ESC
$ (specifying absolute position), ESC (setting left margins). Note that if the print start position is not a multiple of 8, the printing speed may decrease.
• The setting of ESC a (aligning characters) are also valid for the raster bit image.
• If this command is executed during macro definition, the macro definition is
suspended, and the processing of the command starts. The macro is left undefined.
• “d” denotes defined data. Dots to be printed are specified as “1”, and those not to be printed as “0”.
Dot Density in
Vertical Direction
(specifying relative positions), and GS L
Dot Density in Horizontal Direction
- 54 -
[Example] When xL + xH x 256 = 64
(xL + xH x 256) 8 dots = 512 dots
yL + yH x 256 dots
1 2 3
65
66
67
……… ……… ………
62 63
126 127 128
K-2 K-1 K
64
7 6 5 4 3 2 1 0
MSB LSB
- 55 -

2.2.6 Status Commands

DLE EOT n
[Function] Sending status in real-time
[Code] <10>H<04>H<n>
[Range] 1n4
[Outline] Sends in real-time the status specified by “n”.
n Status
1 Printer status 2 Status caused by an offline condition 3 Status caused by an error 4 Continuous paper detector status
[Caution] • Each status represents the current status. It is 1 byte data.
• The status is transferred without checking whether the host is ready to receive or
busy.
• This command is executed even if the printer is in offline state, receive-buffer full state, or error state.
• This command is dealt with when it is received.
• With serial interface specifications, this command is executed in offline state, receiving buffer full state, and error state.
• With parallel interface specifications, this command cannot be executed while the printer is in Busy state. When memory SW1-3 is ON, the printer does not enter Busy state in the offline state and error state.
• If ASB (Automatic Status Back) is enabled by GS a, it is necessary to discriminate
between the status due to ASB and the status due to this command.
• This command can be executed even if printer setting by ESC = is invalid.
• If another data string of <10>H<04>H<n> (1 n 4) is received, the printer acts the same way as with this command. Therefore, the user should be reminded of this fact.
[Example 1] Suppose a command “ESC * m nL nH [d1 ... dk]”, where d1 = <10>H, d2 = <04>H, d3 = <01>H. The DLE EOT n command cannot be interleaved into the code string of another command consisting of 2 bytes or more.
[Example 2] If the printer sends DLE EOT 3 after the host has sent up to ESC 3 in its attempt to send ESC 3 n, the printer handles the ESC 3 as ESC 3 <10>H. Thus, the user should be cautious.
- 56 -
(1) Printer status (When n = 1 is specified)
Bit Status Hex. Decimal
0 Fixed 00 0 1 Fixed 02 2 2 Fixed 04 4
Online status 00 0
3
Offline status 08 8
4 Fixed 10 16
Not waiting online recovery 00 0
5
Waiting online recovery 20 32 FEED switch is not pressed 00 0
6
FEED switch is pressed 40 64
7 Fixed 00 0
(2) Status caused by an offline condition (When n = 2 is specified)
Bit Status Hex. Decimal
0 Unused 00 0 1 Unused 02 2
Cover closed 00 0
2
Cover open 04 4 Not in paper feed state triggered by FEED switch 00 0
3
In paper feed state triggered by FEED switch 08 8
4 Unused 10 16
Printing is not stopped because of “paper out” state 00 0
5
Printing is stopped because of “paper out” state 20 32 Error not occurred 00 0
6
Error occurred 40 64
7 Unused 00 0
Bit 5: Printing is stopped if the Paper-end detector detects a “paper out” state, or if
the printer is out of paper when the Paper Near-end Sensor is enabled by ESC c 4. At this time, bit 5 = 1.
- 57 -
(3) Status caused by an error (when n = 3 is specified)
Bit Status Hex. Decimal
0 Fixed 00 0 1 Fixed 02 2 2 Fixed 00 0 3 Fixed 00 0 4 Fixed 10 16
Unrecoverable error not occurred 00 0
5
Unrecoverable error occurred 20 32 Auto recovery error not occurred 00 0
6
Auto recovery error occurred 40 64
7 Fixed 00 0
Bit 6: If a head overheat error is detected, the printing is stopped until the head
temperature falls. At this time, bit 6 = 1.
(4) Continuous paper detector status (When n = 4 is specified)
Bit Status Hex. Decimal
0 Fixed 00 0 1 Fixed 02 02
Paper found by Paper Near-end Sensor 00 0
2
Paper not found by Paper Near-end Sensor 04 4 Paper found by Paper Near-end Sensor 00 0
3
Paper not found by Paper Near-end Sensor 08 8
4 Fixed 10 16
Paper found by Paper-end Sensor 00 0
5
Paper not found by Paper-end Sensor 20 32 Paper found by Paper-end Sensor 00 0
6
Paper not found by Paper-end Sensor 40 64
7 Fixed 00 0
[See Also] Appendix 4.3 “Identification of Send Status”
DLE ENQ, ESC c 4, GS a, GS r
- 58 -
ESC v(MSW3-7 CBM-270-compatible mode: When enabled or at the selection of serial I/F)
[Function] Transmission of printer status
[Code] <1D>H<61>H<n>
[Outline] Transmits current printer status.
[Caution] • Status is transmitted in 1byte with the content shown in the following table.
• In case of DTR/DSR control, only 1byte is transmitted after making sure the host is
ready for reception (DSR signal is in the Space state). In case of XON/XOFF control, only 1byte is transmitted without checking the status of DSR signal.
• In case of DTR/DSR, if the host is not ready for reception (DSR signal in Mark state,
wait till reception is available.
• This command is valid only for serial interface.
Bit Position
0 Paper Near-end With paper No paper 1 Undefined — 2 Paper-end With paper No paper 3 Undefined — 4 Unused Fixed — 5 Undefined — 6 Undefined — 7 Undefined
Bit 2: In case of Paper End, as this printer goes offline, this command is not
executed. Therefore, status "No Paper (04H)" is never transmitted.
[Sample Program]
OPEN "COM1:N81NN" AS #1 → OPEN statement varies with the type of BASIC.
PRINT #1, CHR$(&H1B);"v";
A$ INPUT$(1,#1)
CLOSE #1
Value
0 1
- 59 -
GS a n
[Function] Enabling/disabling ASB (Automatic Status Back)
[Code] <1D>H<61>H<n>
[Range] 0n255
[Outline] This command selects the status item to be addressed by ASB (Automatic Status
Back.)
Bit Status Item Addressed by ASB Hex. Decimal
0 Undefined — 1 Online/offline status = Disabled 00 0
Online/offline status = Enabled 02 2
Error status = Disabled 00 0
2
Error status = Enabled 04 4 Continuous Paper Sensor = Disabled 00 0
3
Continuous Paper Sensor = Enabled 08 8 4 Undefined — 5 Undefined — 6 Undefined — 7 Undefined
[Caution] • If any status item is enabled, the status is sent to the host when this command is
executed. After that time on, the status is sent each time an enabled status item changes. Because each status item represents the current condition, status items disabled for ASB may also have changed.
• The ASB function is disabled if all status items are disabled.
• If the ASB function is enabled by default, the host receives the status the first time the printer gets ready for communication after it is turned on.
• The printer sends 4 bytes of status shown in the tables below, without checking
whether the host is ready to receive or busy. The 4 bytes of status is a continuous string except for XOFF code.
• Because this command is executed when data is mapped in the receive buffer, there
may be a delay between command receiving and status sending depending on the condition of the receive buffer.
• Even if the printer is excluded from the selection of peripheral equipment ESC =, the
4 bytes of status is sent to the host whenever status changes.
• When DLE EOT, GS I, or GS r is used, the host must discriminate between the
status specified by these commands and the status due to ASB.
- 60 -
(1) 1st byte (Printer information)
Bit Status Hex. Decimal
0 Unused 00 0 1 Unused 00 0 2 Unused 00 0
Online status 00 0
3
Offline status 08 8
4 Unused 10 16
Cover closed 00 0
5
Cover open 20 32 Not in paper feed state triggered by FEED switch 00 0
6
In paper feed state triggered by FEED switch 40 64
7 Unused 00 0
(2) 2nd byte (Error occurrence information)
Bit Status Hex. Decimal
0 Undefined — 1 Undefined — 2 Unused 00 0 3 Unused 00 0 4 Unused 00 0
Unrecoverable error not occurred 00 0
5
Unrecoverable error occurred 20 32 Auto recovery error not occurred 00 0
6
Auto recovery error occurred 40 64
7 Unused 00 0
(3) 3rd byte (Paper Sensor information)
Bit Status Hex. Decimal
Paper found by Paper Near-end Sensor 00 0
0, 1
Paper not found by Paper Near-end Sensor 03 3 Paper found by Paper-end Sensor 00 0
2, 3
Paper not found by Paper-end Sensor 0C 12 4 Unused 00 0 5 Undefined — 6 Undefined — 7 Unused 00 0
- 61 -
(4) 4th byte (Paper Sensor information)
Bit Status Hex. Decimal
0 Undefined — 1 Undefined — 2 Undefined — 3 Undefined — 4 Unused 00 0 5 Undefined — 6 Undefined — 7 Unused 00 0
* In case of MSW3-7 ON (CBM-270-compatible mode enabled)
(4) 4th byte (Paper Sensor information)
Bit Status Hex. Decimal
0 Reserved 01 1 1 Reserved 02 2 2 Reserved 04 4 3 Reserved 08 8 4 Fixed 00 0 5 Reserved 00 0 6 Reserved 00 0 7 Fixed 00 0
* In case of MSW3-7 OFF (CBM-270-compatible mode disabled)
[Default] When MSW 1-3 OFF: n = 0 When MSW 1-3 ON: n = 2
[See Also] DLE EOT, GS r
- 62 -
GS r n
[Function] Sending status
[Code] <1D>H<72>H<n>
[Range] n=1,49
[Outline] Sends the specified status to the host.
n Function
1, 49 Sends the Paper Sensor status.
[Caution] • When the serial interface is used:
For DTR/DSR control:
The printer sends the status after verifying that the host is ready to receive. If the host is not ready to receive, the printer waits for the host to become ready to receive.
For XON/XOFF control:
The printer sends the status without checking whether the host is ready to receive or busy.
• Because this command is executed when data is mapped in the receive buffer, there may be a delay between receiving the command and sending the status depending on the condition of the receive buffer.
• If ASB (Automatic Status Back) is enabled by GS a, the host must discriminate between the status due to this command and the status due to ASB.
• Paper Sensor status (n = 1, 49)
Bit Status Hex. Decimal
Paper found by Paper Near-end Sensor 00 0
0, 1
Paper not found by Paper Near-end Sensor 03 3 Paper found by Paper-end Sensor 00 0
2, 3
Paper not found by Paper-end Sensor (0C) (12) 4 Unused 00 0 5 Undefined — 6 Undefined — 7 Unused 00 0
Bits 2, 3: Whenever the Paper-end Sensor detects a “paper out” state, the printer
goes offline, and the command is not executed. Therefore, the printer never sends a status “No paper in Paper-end detector (0CH)”
[See Also] Appendix 4.3 “Identification of Send Status”
DLE EOT, GS a
- 63 -

2.2.7 Paper Detecting Commands

ESC c 3 n
[Function] Selecting the Paper Sensor valid for a Paper-end signal output
[Code] <1B>H<63>H<33>H<n>
[Range] 0n255
[Outline] This command selects by which Paper Sensor a Paper-end signal should be output.
Each bit for “n” has the following meaning:
Bit Position
0 Paper Near-end Disabled Enabled 1 Paper Near-end Disabled Enabled 2 Paper-end Disabled Enabled 3 Paper-end Disabled Enabled 4 Undefined — 5 Undefined — 6 Undefined — 7 Undefined
[Caution] This command is valid only for the parallel interface.
[Default] n = 15
Value
0 1
- 64 -
ESC c 4 n
[Function] Selecting the Paper Near-end Sensor valid for print stop
[Code] <1B>H<63>H<34>H<n>
[Range] 0n255
[Outline] This command selects the Paper Near-end Sensor which helps to stop printing when
the paper supply almost runs out.
Each bit for “n” has the following meaning:
Bit Position
0 Paper Near-end Disabled Enabled 1 Paper Near-end Disabled Enabled 2 Undefined — 3 Undefined — 4 Undefined — 5 Undefined — 6 Undefined — 7 Undefined
[Caution] This printer can only select one kind of Paper Sensor, a Paper Near-end Sensor.
[Default] n = 0
Value
0 1
- 65 -

2.2.8 Panel Switch Commands

ESC c 5 n
[Function] Enabling/disabling the panel switches
[Code] <1B>H<63>H<35>H<n>
[Range] 0n255
[Outline] Enabling/disabling the FEED switch.
• “n” is valid only for the lowest bit (n0).
• Control by the lowest bit (n0) is shown as follows:
n0 Condition
0 FEED switch valid 1 FEED switch invalid
[Caution] • When the FEED switch is disabled with this command, the paper cannot be fed by
operating the FEED switch.
• While switch operation is waited at the execution of macro, the FEED switch is always enabled regardless of the setting of this command but no paper feed operation is carried out.
[Default] n = 0
[Sample Program]
LPRINT CHR$(&H1B);"c5"; CHR$(0); ← When enabling the FEED switch LPRINT CHR$(&H1B);"c5"; CHR$(1); ← When disabling the FEED switch
- 66 -

2.2.9 Macro Commands

GS :
[Function] Starting/ending macro definition
[Code] <1D>H<3A>H
[Outline] Specifying starting/ending macro definition.
Reception of this command during macro definition signifies ending the macro
definition.
[Caution] • Maximum content available for macro definition is 2048 bytes. A portion exceeding 2048
bytes is not defined.
• When GS ^ is processed in macro definition, the macro definition is stopped and the content of definition is cleared.
• Even with ESC @ (Initialization of the printer) having been executed, defined
content is not cleared. Therefore, it is possible to include ESC @ into the content of macro definition.
• Normal printing operation is carried out even during macro definition.
[Default] The initial value is not defined.
[See Also] GS ^
[Sample Program]
LPRINT CHR$(&H1D);":"; LPRINT "+------+"; CHR$(&HA); LPRINT "| |"; CHR$(&HA); LPRINT "+------+"; CHR$(&HA); LPRINT CHR$(&H1D);":"; LPRINT CHR$(&H1D);"^"; LPRINT CHR$(2); CHR$(10);
[Print Results] 󳌯󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌯󳌤
󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳎀󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳎀󳌤󳌤Normal printing during macro definition󳌤 󳌤󳌤󳌤󳌤󳌤󳌯󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌯󳌤 󳌯󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌯󳌤 󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳎀󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳎀󳌤 󳌤󳌤󳌤󳌤󳌤󳌯󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌯󳌤 󳌤 Printing during macro execution󳌤 󳌯󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌯󳌤 󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳎀󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳌤󳎀󳌤 󳌤󳌤󳌤󳌤󳌤󳌯󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌱󳌯󳌤 󳌤 󳌤
- 67 -
GS ^ n1 n2 n3
[Function] Executing the macro
[Code] <1D>H<5E>H<n1><n2><n3>
[Range] 0n1255
0≤n2≤255 0≤n3≤1
[Outline] Executing contents defined in macro. n1 : The number of times of macro execution n2 : Waiting time on macro execution: Waiting time of n2 x 100 msec is given for
every execution. n3 : Macro execution mode n3 = 0 Continuous execution: The Macro is executed “n1” times continuously at the
time interval specified by “n2”.
n3 = 1 Execution by FEED Switch: After waiting for the time specified by “n2”, the
ARARM LED flickers and the FEED switch is waiting to be pressed. When it is pressed, the macro is executed once. This action is repeated “n1” times.
[Caution] • When this command is received while in macro definition, suspension of macro
definition is indicated. At this time, the defined content is cleared.
• No execution takes place when the macro is held undefined.
• While in macro execution with n3 = 1, paper feed with the FEED switch is not available.
[See Also] GS :
[Sample Program] Refer to Sample Program and Print Results for GS:.
- 68 -

2.2.10 Bar Code Commands

GS H n
[Function] Selecting of printing position of HRI characters
[Code] <1D>H<48>H<n>
[Range] 0n3
48≤n≤51
[Outline] Selecting printing position of HRI characters in printing bar codes.
“n” means the followings.
n Printing Position
0, 48 No printing 1, 49 Above the bar code 2, 50 Below the bar code 3, 51 Both above and below the bar code
The HRI characters refer to the bar code-turned characters so that you can read them.
[Caution] • The HRI characters are printed in the font selected with GS f.
• Specify before the GS k command.
[Default] n = 0
[See Also] GS f, GS k
[Sample Program]
LPRINT CHR$(&H1B);”3”; CHR$(5); LPRINT CHR$(&H1D);”h”; CHR$(50); LPRINT CHR$(&H1D);”H”; CHR$(0); GOSUB BC LPRINT CHR$(&H1D);”H”; CHR$(1); GOSUB BC LPRINT CHR$(&H1D);”H”; CHR$(2); GOSUB BC LPRINT CHR$(&H1D);”H”; CHR$(3); GOSUB BC END BC: LPRINT CHR$(&H1D);”k”; LPRINT CHR$(4); LPRINT “12”; CHR$(0); LPRINT CHR$(&HA); RETURN
- 69 -
[Print Results]
No HRI characters
Printed above
Printed below
Printed above and below
󳮗󳌤󳌵󳌶󳮗
󳮗󳌤󳌵󳌶󳮗 󳮗󳌤󳌵󳌶󳮗
󳮗󳌤󳌵󳌶󳮗
- 70 -
GS f n
[Function] Selecting the font of HRI characters
[Code] <1D>H<66>H<n>
[Range] 0n2
48≤n≤50
[Outline] Selecting the font of HRI characters in printing bar code. The type of font can be selected with “n” as follows:
n Font
0, 48 Font A (12 x 24) 1, 49 Font B (9 x 24) 2, 50 Font C (8 x 16)
The HRI characters refer to the bar code-turned characters so that you can read
them.
[Caution] The HRI characters are printed at the position specified with GS H.
[Default] n = 0
[See Also] GS H
[Sample Program]
LPRINT CHR$(&H1D);"h"; CHR$(50); LPRINT CHR$(&H1D);"H"; CHR$(2); LPRINT CHR$(&H1D);"f"; CHR$(0); GOSUB BC LPRINT CHR$(&H1D);"f"; CHR$(1); GOSUB BC END BC: LPRINT CHR$(&H1D);"k"; LPRINT CHR$(4); LPRINT “12”; +CHR$(0); LPRINT CHR$(&HA); RETURN
[Print Results]
FONT A
FONT B
* 1 2 *
*1 2*
- 71 -
GS h n
[Function] Specifying the height of the bar code
[Code] <1D>H<68>H<n>
[Range] 1n255
[Outline] Selecting bar code height.
“n” denotes the number of dots in the vertical direction.
[Default] n = 162
[See Also] GS k, GS w
[Sample Program] Refer to Sample Program and Print Results for GS w.
- 72 -
GS k m [d1 ...... dk] NULL ......... (1)
GS k m n [d1 ...... dn] ................ (2)
[Function] Printing the bar code
[Code] (1) <1D>H<6B>H<m> [d1.....dk] NULL
(2) <1D>H<6B>H<m><n> [d1....dn]
[Range] (1) 0≤m6 The definitions of “k” and “d” vary with the bar code system. (2) 65≤m≤73 The definitions of “n” and “d” vary with the bar code system.
[Outline] Selects a bar code system and prints the bar code.
For (1):
m Bar Code System Range of “k” Range of “d”
0 UPC-A 1 UPC-E 2 JAN13 (EAN) 3 JAN8 (EAN)
4 CODE39
5 ITF
6 CODABAR
For (2):
m Bar Code System Range of “n” Range of “d”
65 UPC-A 66 UPC-E 67 JAN13 (EAN) 68 JAN8 (EAN)
69 CODE39
70 ITF
71 CODABAR
72 CODE93 73 CODE128
11≤k≤12 48≤d≤57 11≤k≤12 48≤d≤57 12≤k≤13 48≤d≤57 7k8 48d57
48≤d≤57, 65≤d≤90
1k
1k (An even number) 48d57
1k
11≤n≤12 48≤d≤57 11≤n≤12 48≤d≤57 12≤n≤13 48≤d≤57 7n8 48d57
1n255
1n255(An even number) 48d57
1n255
1n255 0d127 2n255 0d127
32, 36, 37, 43, 45, 46, 47
48≤d≤57, 65≤d≤68 36, 43, 45, 46, 47, 58
48≤d≤57, 65≤d≤90 32, 36, 37, 43, 45, 46, 47
48≤d≤57, 65≤d≤68 36, 43, 45, 46, 47, 58
- 73 -
[Caution] For (1):
• This command ends with a NULL code.
• For UPC-A or UPC-E, the bar code is printed when 12 bytes of bar code data have
been entered, and the subsequent data is handled as normal data.
• For JAN13, the bar code is printed when 13 bytes of bar code data have been
entered, and the subsequent data is handled as normal data.
• For JAN8, the bar code is printed when 8 bytes of bar code data have been entered,
and the subsequent data is handled as normal data.
• The data of ITF bar code must have an even number of columns. Should the data
have an odd number of columns, the last column is ignored.
For (2):
• Numeral “n” indicates the number of data items, and the subsequent “n” bytes of
data are handled as bar code data.
• If “n” is out of the range, the processing of the command is aborted, and the
subsequent data is handled as normal data.
For STANDARD MODE:
• If “d” is out of the range, only a paper feed is executed, and the subsequent data is
handled as normal data.
• If the bar code is wider than the print area for one line, the bar code is not printed,
but only a paper feed is executed.
• The amount of paper feed corresponds to the height of the bar code (including the
HRI characters if HRI character printing is specified), irrespective of the line feed width set by a command such as ESC 2 or ESC 3.
• This command only works if no data exists in the print buffer. If any data exists in the
print buffer, the data subsequent to “m” is handled as normal data.
• After the bar code is printed, the beginning of the line is taken as the start position
for the next print.
• This command is not affected by any print modes (emphasis, double strike,
underline, and character size), except for the inverted character mode.
For PAGE MODE:
• This command only maps the bar code, without performing a printout. After the bar
code is mapped, the dot next to the last data item of the bar code is taken as the start position for the next data mapping.
• If “d” is out of the range, the processing of the command is aborted, and the
subsequent data is handled as normal data. In this case, the data mapping start position does not move.
• If the bar code is wider than the print area, the bar code is not printed, but the data
mapping start position is moved to the left end of the non-print area.
- 74 -
[Description of Bar Codes]
UPC-A This bar code, consisting of numerals only, has a fixed length of 12 columns; a 11-
column number entered from the host or application software plus a check digit (12th column) automatically calculated inside the printer. If the 12th-column numeral is sent from the host, the entire bar code will be printed as it is.
UPC-E This bar code, consisting of numerals only, has a fixed length of 8 columns; the first
number system character is “0” stationary. A 12-column numeral entered from the host or application software is compressed to 8 columns with a check digit attached and then is printed. The 12th-column check digit is automatically calculated inside the printer. If it is and sent from the host, the entire bar code will be printed, compressed to 8 columns.
JAN-13(EAN) This bar code, consisting of numerals only, has a fixed length of 13 columns; a 12-
column number entered from the host or application software plus a check digit (13th column) automatically calculated inside the printer. If the 13th-column numeral is sent from the host, the entire bar code will be printed as it is.
JAN-8(EAN) This bar code, consisting of numerals only, has a fixed length of 8 columns; a 7-
column number entered from the host or application software plus a check digit (8 column) automatically calculated inside the printer. If the 8th-column numeral is sent from the host, the entire bar code will be printed as it is.
CODE39 This bar code, consisting of upper-case alphabetic characters and numerals, has a
variable length of columns. The start/stop code “*” is automatically added by the printer. The available characters include space and “$ % * + – . / 0 1 2 3 4 5 6 7 8 9” and upper-case alphabetic characters.
ITF This bar code, consisting of only numerals, has a variable length of even-number
columns. If a code of odd-number columns is sent, the bar code will not be printed.
CODABAR (NW-7) This bar code, consisting of alphanumeric, has a variable length of columns. Available
characters include “0 1 2 3 4 5 6 7 8 9 A B C D $ + – . / :”. A start/stop code is required; any one of A, B, C, and D is used.
CODE93 This bar code, consisting of alphanumeric and control characters, has a variable
length of columns. The HRI character string is preceded and followed by a “■” character. HRI characters for control characters (00H - 1FH, and 7FH) are each
printed as a combination of a “” character and an alphabetic character.
th
- 75 -
Control Character
ASCII Hex.
NULL
SOH
STX
ETX EOT ENQ ACK
BEL
BS HT LF VT
FF CR SO
SI
CODE128 This bar code consists of 103 bar code characters and three code sets, enabling 128
ASCII code characters to be printed. It has a variable length of columns.
• Code set A ASCII characters 00H - 5FH can be represented.
• Code set B ASCII characters 20H - 7FH can be represented.
• Code set C Two-digit numbers 00 - 99 can each be represented by one character. In addition to the above characters, special characters are available:
• Shift character (SHIFT) When used in code set A, one character next to a Shift character is treated as a character of code set B. When used in code set B, one character next to a Shift character is treated as a character of code set A. The Shift character cannot be used in code set C.
• Code set select characters (CODE A, CODE B, CODE C): The code set following a code set select character is switched to code set A, B, or C.
• Function characters (FNC1, FNC2, FNC3, FNC4): How the function characters are used depends on each application. In code set C, only FNC1 is available.
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
HRI
Character
U
A
B C D
E
F G H
I
J K L
M N
0
Control Character ASCII
DLE 10 DC1 11 DC2 12 DC3 13 DC4 14 NAK 15 SYN 16 ETB 17
CAN 18
EM 19 SUB 1A ESC 1B
FS 1C GS 1D RS 1E US 1F
DEL
Hex.
7F
HRI
Character
P Q R S T U V
W
X Y Z A B C D E T
- 76 -
When sending print data, note these points: (1) Each string of bar code data must begin with a code set select character (CODE A,
CODE B, or CODE C), which selects the first code set to use.
(2) Every special character is specified by a combination of two characters: a brace “{”
followed by one character. A brace “{” itself is sent twice consecutively.
Special characters
Hex. ASCII Code Set A Code Set B Code Set C
7B53 { S SHIFT SHIFT –N/A 7B41 { A –N/A CODE A CODE A 7B42 { B CODE B –N/A CODE B 7B43 { C CODE C CODE C –N/A 7B31 { 1 FNC1 FNC1 FNC1 7B32 { 2 FNC2 FNC2 –N/A 7B33 { 3 FNC3 FNC3 –N/A 7B34 { 4 FNC4 FNC4 –N/A 7B7B { { ‘ { ‘ ‘ { ‘ ‘ { ‘
<Example>
To print “No.” in code set B, followed by “123456” in code set C, send the following data string: GS k <73> <10> <7B>H <42>H, “No.” <7B>H <43>H <12> <34> <56>
• If the printer finds a string of bar code data that does not begin with a code set select character, it immediately aborts the command processing and handles the subsequent data as normal data.
• If the printer received a character that is not available in the currently selected code set, it immediately aborts the command processing and handles the subsequent data as normal data.
• An HRI character corresponding to either a Shift character or a code select character is not printed. An HRI character for either a function character or a control character is treated as a space character.
[Sample Program]
LPRINT CHR$(&H1D);"H"; CHR$(2); LPRINT CHR$(&H1D);"k"; LPRINT CHR$(4); LPRINT "123"; CHR$(0);
[Print Results]
When the data “123” is printed with the code 39
󳌮󳌤 󳌤 󳌵󳌤 󳌤 󳌶󳌤 󳌤 󳌷󳌤 󳌤 󳌮󳌤
- 77 -
[Bar Code Print Example]
UPC-A, UPC-E, JAN-13 (EAN), JAN-8 (EAN), CODE39, ITF, CODABAR, CODE93,
CODE128
Type Print Sample Outline of Symbol
UPC-A
UPC-E
JAN-13
JAN-8
CODE39
ITF
CODABAR
(NW-7)
CODE93
CODE128
12-column fixed-length bar code consisting of numerals only.
8-column fixed-length bar code consisting of numerals only. Abbreviated version of UPC-A.
13-column fixed-length bar code consisting of numerals only.
8-column fixed-length bar code consisting of numerals only.
Variable-length bar code consisting of alphabetic characters and numerals. The start/stop code “*”is automatically added.
Even-column variable-length bar code consisting of numerals only.
Variable-length bar code consisting of alphanumeric characters. Any one of A, B, C, and D is required as the start/stop code.
Variable-length bar code consisting of alphanumeric and control characters.
Variable-length bar code consisting of any of 128 ASCII code characters.
Printing is done according to bar code type, number of print columns, bar code height, width (magnification), availability of HRI character, and bar code data.
- 78 -
GS w n
[Function] Specifying the horizontal size (magnification) of bar code
[Code] <1D>H<77>H<n>
[Range] 2n6
[Outline] Selecting bar code width.
[Default] n = 3
[Sample Program]
LPRINT CHR$(&H1D);"h"; CHR$(30); LPRINT CHR$(&H1D);"w"; CHR$(2); GOSUB BC LPRINT CHR$(&H1D);"h"; CHR$(50); LPRINT CHR$(&H1D);"w"; CHR$(3); GOSUB BC LPRINT CHR$(&H1D);"h"; CHR$(80); LPRINT CHR$(&H1D);"w"; CHR$(4); GOSUB BC END BC: LPRINT CHR$(&H1D);"k"; LPRINT CHR$(4); LPRINT "12"; CHR$(0); RETURN
[Print Results]
Height = 30, Magnification = 2
Height = 50, Magnification = 3
Height = 80, Magnification = 4
- 79 -

2.2.11 Commands for Non-volatile Memory

F S p n m
[Function] Printing the download NV bit images
[Code] <1C>H<70>H<n><m>
[Range] 1n255
0≤m≤3,48≤m≤51
[Outline] This command prints the download NV bit images (n) using a specified mode (m).
• “n” denotes the number of the download bit image.
• “m” denotes the bit image mode.
m Mode Name
0, 48 NORMAL MODE 203 DPI 203 DPI
1, 49 DOUBLE WIDTH MODE 203 DPI 101 DPI
2, 50 DOUBLE HEIGHT MODE 101 DPI 203 DPI
3, 51 QUADRUPLE SIZE MODE 101 DPI 101 DPI
Dot Density in Vertical
Direction
[Caution] • The download NV bit image refers to the image that is defined by the FS q command
in
the non-volatile memory and printed by the FS p command.
• When the specified NV bit image “n” is undefined, this command is invalid.
• When the STANDARD MODE is selected, this command is valid only when there is no data in the print buffer.
• This command is invalid when PAGE MODE is selected.
• Any printing modes except the upside-down printing mode (i.e. emphasis, double strike, underlining, character size, inverted character printing, 90°-right-turned) are not affected.
• When the printing area set by the functions GS L and GS W is not enough for one vertical line of the download NV bit image, the line alone is dealt with as follows. One vertical line of the bit image is 1 dot in NORMAL MODE (m = 0, 48) and DOUBLE HEIGHT MODE (m = 2, 50), and it is 2 dots in double WIDTH MODE (m = 1, 49) and QUADRUPLE SIZE MODE (m = 3, 51). (1) The printing area is extended to the right side within the limits of the printing area
so that one vertical line of the download NV bit image can be printed.
(2) When a sufficient printing area cannot be maintained even after executing (1),
the printing area is extended to the left side. (The left margin is reduced.)
• When the size of a bit image exceeds the limits of the printing area, the data within the limits of the printing area will be printed but the parts exceeding the limit will not be printed.
• Regardless of the amount of line feed set with ESC 2 and ESC 3, NORMAL MODE and DOUBLE WIDTH MODE execute a paper feed of (height “n” of NV bit image) dots while DOUBLE HEIGHT MODE and QUADRUPLE SIZE MODE execute a paper feed of (height “n” of NV bit image x2) dots.
• At the completion of the bit image printing, the head of the line will be used for the next printing position and normal data processing will take place.
[See Also] ESC *, FS q, GS /, GS v 0
Dot Density in
Horizontal Direction
- 80 -
F S q n [xL xH yL yH d1…dk] 1… [xL xH yL yH d1…dk] n
[Function] Defining the download NV bit image
[Code] <1C>H<71>H<n>[<xL><xH><yL><yH><d1...dk>]1 ...[<xL><xH><yL><yH><d1...dk>]n
[Range] 1n255, 0xL255,
0≤xH≤3 but, 1≤(xL + xH x256)≤1023 0≤yL≤255 0≤yH≤1 but, 1≤(yL + yH x256)≤288 0≤d≤255 k = (xL + xH x256) x (yL + yH x256) x8 Total definition area = 2M bits (256K bytes)
[Outline] This command defines the specified NV bit image.
• “n” denotes the number of bit images to be defined.
• xL and xH denote the horizontal size of one NV bit image as (xL + xH x256) x8 dots.
• yL and yH denote the vertical size of one NV bit image as (yL + yH x256 ) x8 dots.
[Caution] • Because all the NV bit images previously defined by this command are deleted, it is not
possible to redefine any one of the previously defined multiple data. All the data must be resent.
• From the execution of this command until the completion of the hardware reset, any mechanical operation such as opening the cover, initializing the printer head position, or using the paper-feed switch etc.
• The NV bit image refers to a bit image that is defined by the FS q command in the
non-volatile memory and printed by the FS p command.
• When the STANDARD MODE is selected, this command is only valid when it is written at the head of a line.
• This command is invalid when PAGE MODE is selected.
• This command becomes valid after the 7 bytes of <FS q n xL xH yL yH> are
processed as normal values.
• When data which exceeds the remaining capacity of the defined area is specified by
xL, xH, yL, yH, outside-defined-area arguments will be processed.
• When outside-defined-area arguments are processed for the first bit image data
group, this command becomes invalid.
• If outside-defined-area arguments are processed for the second or subsequent NV bit image data groups, the processing of this command is suspended, and a writing process into the non-volatile memory starts. At this time, the NV bit image being defined becomes invalid (Undefined), but the preceding NV bit images are valid.
• “d” denotes the definition data. Bits which correspond to dots to be printed are represented as “1”, and those not to be printed as “0”.
• The definition will start from NV bit image number 01H and n-number bit images will be defined in ascending order. Therefore, the first data group [xL xH yL yH d1… dk] becomes NV bit image number 01H, and the last data group [xL xH yL yH d1… dk] becomes NV bit image number 0nH. These numbers of NV bit images coincide with those specified with FS p.
• The definition data of one NV bit image consists of [xL xH yL yH d1… dk]. Therefore, when only one NV bit image is defined, n = 1; the data group [xL xH yL yH d1… dk] is manipulated once, and ([Data: (xL + xH x256) x ( yL + yH x256 ) x8 ] + [Header: 4]) bytes of non-volatile memory is used to store it.
- 81 -
• The maximum definition area of this printer is 2M bits (256K bytes). Multiple NV bit images can be defined, but bit images of which total size (Bit image data + Header) exceeds 2M bits (256K bytes) can not be defined.
• The printer state will change to BUSY just before the writing operation into the non-volatile memory begins. Also, for a printer that have a dip switch [BUSY], the printer state will change to BUSY just before the writing operation begins regardless of the state of the dip switch.
• While this command is being executed, it is not possible to send ASB status or to detect the printer status even when the ASB function is selected.
• If this command is sent while a macro is still being defined, the definition process will be stopped and the execution of this command will start.
• NV bit images that are defined already are not initialized by using ESC @ command, or by resetting the printer or turning the power off.
• The command only executes definition of NV bit image, but not start printing. The printing of NV bit image will be executed by FS p.
• Because frequent writing in the non-volatile memory can destroy the memory, the
writing command should be used less than 10 times a day.
• It may happen that the printer becomes BUSY during the process of writing data into the non-volatile memory in the execution of this command. When the printer becomes BUSY, it will stop receiving data. Therefore, sending data from the host (including real time command) is prohibited.
[See Also] FS p (xL + xH x256) x8 dots = 512 dots
d97 d49057 d1
MSB d2 (yL + yH x256) x8 dots = 768 dots
d3
LSB d96 d49152
[Example] When xL = 64, xH = 0, yL = 96, yH = 0
- 82 -

2.2.12 Numbering Control Commands

GS C 0 m n
[Function] Setting the numbering print mode
[Code] <1D>H<43>H<30>H<m><n>
[Range] 0m5
0≤n≤2
[Outline] This command sets the numbering (serial number counter) print mode.
“m” denotes the number of print columns. m = 0 Prints the columns indicated by numeral. In this case, “n” has no meaning. m = 1 to 5 Indicates the maximum number of columns to be printed.
Prints the counter in “m” columns.
“n” specifies a printing position within the printing columns. n = 0 Prints the data right justified. The blank columns are spaced. n = 1 Prints the data right justified. The blank columns are filled with "0". n = 2 Prints the data left justified. The right blank will become invalid.
[Caution] If either “m” or “n” has a value beyond their ranges, that setting will becomes invalid.
[Default] m = 0 , n = 0
[See Also] GS C1, GS C2, GS c, GS C;
[Sample Program]
LPRINT CHR$(&H1D);"C0"; *CNT LPRINT CHR$(0); CHR$(0); FOR I=1 TO 5 GOUSAB *CNT LPRINT CHR$(&H1D);"c"; LPRINT CHR$(&H1D);"C0"; NEXT I LPRINT CHR$(1); CHR$(0); LPRINT CHR$(&HA); GOUSAB *CNT RETURN LPRINT CHR$(&H1D);"C0"; LPRINT CHR$(3); CHR$(0); GOUSAB *CNT LPRINT CHR$(&H1D);"C0"; LPRINT CHR$(3); CHR$(1); GOUSAB *CNT LPRINT CHR$(&H1D);"C0"; LPRINT CHR$(3); CHR$(2); GOUSAB *CNT END
[Print Results]
12345 Counts from 1 to 5 at m = 0 and n = 0. 67890 Counts from 6 to 10 at m = 1 and n = 0. 11 12 13 14 15 Counts from11 to 15 at m = 3 and n = 0. 0160 170 180 19020 Counts from 16 to 20 at m = 3 and n = 1. 21 22 23 24 25 Counts from 21 to 25 at m = 3 and n = 2.
- 83 -
GS C 1 n1 n2 n3 n4 n5 n6
[Function] Setting the numbering counter mode (A)
[Code] <1D>H<43>H<31>H<n1><n2><n3><n4><n5><n6>
[Range] 0 n1 , n2 , n3 , n4 , n5 , n6 255
[Outline] This command sets the numbering (serial number counter) mode.
n1 + n2 x256 (n1 = remainder, n2 = quotient): Counter default n3 + n4 x256 (n3 = remainder, n4 = quotient): Counter final value n5: Counter step value n6: Identical counter print counter (n1 + n2 x256) < (n3 + n4 x256): Count-up system (n1 + n2 x256) > (n3 + n4 x256): Count-down system (n1 + n2 x256) = (n3 + n4 x256) or n5 = 0 or n6 = 0: Counter stop
[Default] n1 + n2 x256 = 1 n3 + n4 x256 = 65535 n5 = 1 n6 = 1
[See Also] GS C0 , GS C2 , GS c , GS C ;
[Sample Program]
LPRINT CHR$(&H1D);"C0"; *CNT LPRINT CHR$(3); CHR$(0); FOR I=1 TO 5 LPRINT CHR$(&H1D);"C1"; LPRINT CHR$(&H1D);"c"; LPRINT CHR$(50); CHR$(0); NEXT I LPRINT CHR$(0); CHR$(0); LPRINT CHR$(&HA); LPRINT CHR$(5); CHR$(2); RETURN GOUSAB *CNT LPRINT CHR$(&H1D);"C2"; LPRINT CHR$(5); CHR$(0); CHR$(10); GOUSAB *CNT END
[Print Results] When printing the counter value by setting a count-down
range = 0 to 50, step value = 5, repeat count = 2, 50 50 45 45 40 and starting value = 50. 5 range to 0 to 50, step value = 5, repeat count = 1, and starting value = 5, step cleared.
0 50 45 40 When printing the counter value by setting a count-down
- 84 -
GS C 2 n1 n2
[Function] Setting the numbering counter
[Code] <1D>H<43>H<32>H<n1><n2>
[Range] 0n1255
0≤n2≤255
[Outline] This command sets the numbering (serial number counter) value. n1 + n2 x256 (n1 = remainder, n2 = quotient) becomes a counter value.
[Caution] • If the counter is set with this command, a repeat count of the idential count will be
cleared.
• If the counter value is beyond the range specified with the GS C1 or GS C; command, the counter will be initialized.
[Default] Not defined.
[See Also] GS C0, GS C1, GS c, GS C;
[Sample Program]
[Print Results] See the Sample Program and Print Results for the GS C1 command.
- 85 -
GS C ; n1 ; n2 ; n3 ; n4 ; n5 ;
[Function] Setting the numbering counter mode (B)
[Code] <1D>H<43>H<3B>H<n1><3B>H<n2><3B>H<n3><3B>H<n4><3B>H<n5><3B>H
<n1>, <n2>, <n3>, <n4>, <n5> are character codes.
[Range] 0 n1 , n2 , n5 65535 0≤ n3 , n4 ≤255
[Outline] This command sets the numbering (serial number counter) mode and a counter
value. n1: Counter default n2: Counter final value n3: Counter step value n4: Identical counter print count n5: Counter start value n1 < n2: Count-up system n1 > n2: Count-down system n1 = n 2 or n3 = 0 or n4 = 0 : Counter stop
[Caution] • If the n5 counter start value is beyond the counter range specified with n1 and n2, it
is assumed to be n1 = n5.
• If each value of n1 through n5 contains the character code other than “0” through “9”, the printer will invalidate the data up to that parameter and handle the subsequent data as normal data.
[Default] n1 = 1 n2 = 65535 n3 = 1 n4 = 1 n5 = 1
[See Also] GS C0 , GS C1 , GS C2 , GS c
[Sample Program]
LPRINT CHR$(&H1D);"C0"; *CNT LPRINT CHR$(3); CHR$(0); FOR I=1 TO 5 LPRINT CHR$(&H1D);"C;"; LPRINT CHR$(&H1D);"c"; LPRINT "50;0;5;2;50"; NEXT I GOUSAB *CNT LPRINT CHR$(&HA); LPRINT CHR$(&H1D);"C;"; RETURN LPRINT "50;0;5;2;5"; GOUSAB *CNT END
[Print Results]
When setting a count-down range = 0 to 50, step value = 5, 50 50 45 45 40 40 repeat count = 2, and start value = 50 to print a counter value. 5 repeat count = 1, and start value = 5 to print a counter value.
5 0 0 50 50 When setting a count-down range = 0 to 50, step value = 5,
- 86 -
GS c
[Function] Print the counter
[Code] <1D>H<63>H
[Outline] This command prints the serial number counter data.
After setting the current counter value in the print buffer as the print data (character string), it increments or decrements the counter according to the set count mode.
[Caution] • The format used in setting the value to the print buffer depends on the GS C0
command.
• The count mode is set by the GS C1 or GS C; command. When execution of GS c
command results in excess of the counter final value, the counting returns to the final value of the counter.
[See Also] GS C0 , GS C1 , GS C2 , GS C ;
[Sample Program]
[Print Results] See the Sample Program and Print Results of the commands related to the counter.
- 87 -

2.2.13 Printer Function Setting Commands

GS ( E pL pH fn [··· ]
[Function] Printer function setting command
[Outline] Printer function setting command is a command to change the function of the printer
stored on the non-volatile memory and executes the function set by the value of “fn”.
Function
No. (fn)
1 Transfers to printer function setting mode. (Note) 2 Terminates printer function setting mode. (Note) 3 Sets memory switch value. (Note) 4 Sends memory switch value set. 5 Sets customize value. (Note) 6 Sends customized value set. 7 Copies user-defined page.
8
9
10 Erases the data of character code page of work area. 11 Sets the communication condition of serial interface. (Note) 12 Sends the communication condition of serial interface set.
255
• pL, pH set the number of bytes following “fn” to (pL + pH x256).
• At the end of printer function setting mode (Function 2), resetting is executed. Then
the input buffer is cleared to return various kinds of setting to the state at the time of power on.
• The set value can be confirmed without transferring to printer function setting mode
by functions 4, 6, and 12.
• Other functions do not operate without transferring to printer function setting mode.
[Caution] • This command allows writing to non-volatile memory. Therefore, using this
command frequently may result in breakage of memory. Use this command appropriately [10 times max./day].
• During execution of this command, the printer is in Busy state and stops receiving
operation. Therefore, data transmission from the host is prohibited.
Defines the data in column format to the character code page of work area. Defines the data in raster format to the character code page of work area.
Sets all contents set in printer function setting mode to the state at the time of shipment.
Function
- 88 -
fn = 1: Function 1 Transferring to Printer Function Setting Mode
GS ( E pL pH fn d1 d2 fn = 1
[Code] <1d>H<28>H<45>H pL pH fn d1 d2
[Range] (pL + pH x256) = 3 (pL = 3, pH = 0)
fn = 1 d1 = 73 (“I”) d2 = 78 (“N”)
[Outline] Transfers to printer function setting mode and sends the report of mode transfer.
Header 37H 1
ID 20H 1
NULL 00H 1
Hex. No. of Data
- 89 -
fn = 2: Function 2 End of Printer Function Setting Mode
GS (E pL pH fn d1 d2 d3 fn = 2
[Code] <1d>H<28>H<45>H pL pH fn d1 d2 d3
[Range] (pL + pH x256) = 4 (pL = 4, pH = 0)
fn = 2 d1 = 79 (“O”) d2 = 85 (“U”) d3 = 84 (“T”)
[Outline] • Terminates printer function setting mode and executes resetting.
Clears input buffer and print buffer and restores various kinds of setting to the state at power on.
• Operates only in printer function setting mode.
- 90 -
fn = 3: Function 3 Setting Memory Switch Value
GS (E pL pH fn [a1 b18 ··· b11] ··· [ak bk8 ··· bk1] fn = 3
[Code] <1d>H<28>H<45>H pL pH fn[a1 b18···b11]···[ak bk8···bk1]
[Range] 10 (pL + pH x256) 65535
fn = 3 a = 1, 2, 3 b = 48, 49, 50
[Outline] • Changes the memory switch set in a to the value set in “b”.
b Function
48 Sets corresponding bit to OFF. 49 Sets corresponding bit to ON. 50 Does not change corresponding bit.
• Setting memory with 1 (a = 1)
n b (Set Value) Function
48 (Default) Reports the power on.
1
49 Does not report power on. 48 (Default) Sets input buffer capacity to 4K bytes.
2
49 Sets input buffer capacity to 45 bytes. 48 (Default) Sets input buffer full and offline to be Busy.
3
49 Sets to be busy with input buffer full.
48 (Default)
4
49 At the occurrence of receiving error, ignores the data. 48 (Default) Disables CR (0DH).
5
49 Enables CR (0DH).
6 48 (Default) Reserved
48 (Default) Does not reset at serial I/F pin 6.
7
49 Resets at serial I/F pin 6.
8 48 (Default) Reserved
At the occurrence of receiving error, replaces the data with “?”.
- 91 -
• Setting memory switch 2 (a = 2)
n
1 49 (Default) Reserved 2 48 (Default) Reserved
3
4
5
6 49 (Default) Reserved 7 48 (Default) Reserved
8
• Setting memory switch 3 (a = 3)
n
1 48 (Default) Reserved 2 48 (Default) Reserved
3
4 48 (Default) Reserved 5 48 (Default) Reserved 6 48 (Default) Reserved
7
8
b (Set
Value)
48 (Default) Disables stored printing. 49 Enables stored printing. 48 Line feed immediately at full column width printing 49 (Default) Wait for data at full column width printing 48 (Default) After cover close and PE recovery, prints as it is.
After cover close and PE recovery, prints from the beginning
49
48 (Default) Enables PNE. 49 Disables PNE.
b (Set
Value)
48 (Default) Resets with parallel pin 31. 49 Does not reset with parallel pin 31.
48 (Default) Enables CBM270 compatible mode. 49 Disables CBM270 compatible mode.
48 (Default)
49
using PAGE MODE, barcode, image, double-height printing, etc. as a unit.
Printer automatically clears error when it detects that the cover is closed.
Printer clears error when it receives a command <DLE+ENQ> after detecting that the cover is closed.
Function
Function
- 92 -
fn = 4: Function 4 Sending the Set Memory Switch Value
GS (E pL pH fn a fn = 4
[Code] <1d>H<28>H<45>H pL pH fn a
[Range] (pL + pH x256) = 2
fn = 4 a = 1, 2, 3
[Outline] • Sends the content of memory switch set in “a”.
Header 37H 1
ID 21H 1
Data 30H or 31H 8
NULL 00H 1
• Sends the set value of data in 8-byte data raw in order of bits 8, 7, 6, ....
OFF: 30H (“0”) ON : 31H (“1”)
Hex. No. of Data
- 93 -
fn = 5: Function 5 Setting Customized Value
GS (E pL pH fn [a1 n1L n1H]...[ak nkL nkH] fn = 5
[Code] <1d>H<28>H<45>H pL pH fn [a1 n1L n1H]...[ak nkL nkH]
[Range] 4(pL + pH x256) 65535
fn = 5 1≤a≤3 a = 5, 6, 116, 201, 202 1≤(nL + nH x256) ≤65535
[Default] Described in the processing table for “a”.
[Outline] • Sets the customized value set in “a” to (nL + nH x256).
a Function
5 Selects printing density.
6 Selects printing speed. 116 Selects printing color. 201 Sets ACK output position (only parallel I/F). 202 Selects input buffer full Busy output/cancel timing (idle capacity).
• a = 5: Sets printing density to the level specified by (nL + nH x256). (nL + nH x256)
65530 0.7 times 65531 0.75 times 65532 0.8 times 65533 0.85 times 65534 0.9 times 65535 0.95 times
0 (Default) 1
1 1.05 times 2 1.1 times 3 1.25 times 4 1.2 times 5 1.25 times 6 1.3 times 7 1.35 times 8 1.40 times
Printing Density
- 94 -
• a = 6: Sets printing speed to the value specified by (nL + nH x256). (nL + nH x256)
1 2 3 4 5 6 7 8
9 (Default)
• a = 116: Sets the paper specified by (nL + nH x256).
(nL + nH x256)
1 (Default) Specified single color paper.
257 Recommended 2-color paper
• a = 201: Outputs ACK to the position specified by (nL + nH x256).
(nL + nH x256)
1 (Default) ACK-in-Busy
2 ACK-while-Busy 3 ACK-after-Busy
• a = 202: Controls input buffer full Busy with the value selected by (nL + nH x256) and
controls Busy with output/cancel timing (remaining capacity).
When Input Buffer
(nL + nH x256)
1 16 26 128 256 2 16 40 128 512 3 30 50 72 256 4 30 60 72 512
• XON/XOFF is also output by the establishment of conditions.
• Ignores the data received when input buffer idle capacity is 0.
• This function operates only in printer function setting mode.
• The value changed by this command is enabled by the following.
• Execution of function 2 (fn = 2: End of printer function setting mode) (Recommended)
• Reentering power supply.
• Hardware resetting by reset terminal
Capacity“Small” is Set Output Cancel Output Cancel
Printing speed level 9 (100%)
Printing Speed
Printing speed level 1 (84%) Printing speed level 2 (86%) Printing speed level 3 (88%) Printing speed level 4 (90%) Printing speed level 5 (92%) Printing speed level 6 (94%) Printing speed level 7 (96%) Printing speed level 8 (98%)
Paper
ACK Output Position
When Input Buffer Capacity
4K Bytes (Large) is Set
- 95 -
fn = 6: Function 6 Sending the Set Customized Value
GS (E pL pH fn a fn = 6
[Code] <1d>H<28>H<45>H pL pH fn a
[Range] (pL + pH x256) = 2 : (pL = 2, pH = 0)
fn = 6 a = 1, 2, 5, 6, 116, 201, 202
[Outline] • Sends the set value of customized value set by “a”.
Header 37H 1
ID 27H 1
Customized value No. 30H ~ 39H 1 ~ 3
Separation number 1FH 1
Customized value 30H ~ 39H 1 ~ 5
NULL 00H 1
• Configuration of customized value No.
a
1 49 (“1”) — 2 50 (“2”) — 5 53 (“5”)
6 54 (“6”) — 116 49 (“1”) 49 (“1”) 54 (“6”) 201 50 (“2”) 48 (“0”) 49 (“1”) 202 50 (“2”) 48 (“0”) 50 (“2”)
• a = 1: User NV When memory capacity is specified
Setting Status Sending Data
Stored
Value
1 1k Byte 49 (“1”) — 2 64k Byte 50 (“2”) — 3 128k Byte 51 (“3”) — 4 192k Byte 52 (“4”)
1st Byte 2nd Byte 3rd Byte
Memory
capacity
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
Hex. No. of Data
Sending Data
- 96 -
• a = 2: NV When memory capacity of graphics is specified
Setting Status Sending Data
Stored
Value
Memory
capacity
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 Non 49 (“1”) — — — — 2 64k Byte 50 (“2”) — 3 128k Byte 51 (“3”) — 4 192k Byte 52 (“4”) 5 256k Byte 52 (“4”)
• a = 5: When print density is specified
Setting Status Sending Data
Stored
Value
Print
Density
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
65530 70% 54 (“6”) 53 (“5”) 53 (“5”) 51 (“3”) 48 (“0”) 65531 75% 54 (“6”) 53 (“5”) 53 (“5”) 51 (“3”) 49 (“1”) 65532 80% 54 (“6”) 53 (“5”) 53 (“5”) 51 (“3”) 50 (“2”) 65533 85% 54 (“6”) 53 (“5”) 53 (“5”) 51 (“3”) 51 (“3”) 65534 90% 54 (“6”) 53 (“5”) 53 (“5”) 51 (“3”) 52 (“4”) 65535 95% 54 (“6”) 53 (“5”) 53 (“5”) 51 (“3”) 53 (“5”)
0
Basic
density
48 (“0”)
1 105% 49 (“1”) — — — — 2 110% 50 (“2”) — — — — 3 115% 51 (“3”) — — — — 4 120% 52 (“4”) — — — — 5 125% 53 (“5”) — — — — 6 130% 54 (“6”) — — — — 7 135% 55 (“7”) — — — — 8 140% 56 (“8”) — — — —
• a = 6: When printing speed is specified
Setting Status Sending Data
Stored
Value
Print Density
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 Speed level 1 49 (“1”) — 2 Speed level 2 50 (“2”) — 3 Speed level 3 51 (“3”) — 4 Speed level 4 52 (“4”) — 5 Speed level 5 53 (“5”) — 6 Speed level 6 54 (“6”) — 7 Speed level 7 55 (“7”) — 8 Speed level 8 56 (“8”) — 9 Speed level 9 57 (“9”)
- 97 -
• a = 116: When kind of paper is specified
Setting Status Sending Data
Stored
Value
Print Control
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 Single-color paper 49 (“1”) — 2 2-color paper 50 (“2”)
• a = 201: When ACK output position is specified
Setting Status Sending Data
Stored
Value
ACK Output
Position
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 ACK-in-Busy 49 (“1”) — — — — 2 ACK-while-Busy 50 (“2”) — 3 ACK-after- Busy 51 (“3”)
• a = 202: Input buffer full Busy output/cancel timing
At 45 Byte setting (At MSW1-2 ON setting)
Setting Status Sending Data
Stored
Value
BUSY
Output/Cancel
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 16/26 49 (“1”) — — — — 2 16/36 50 (“2”) — — — — 3 8/26 51 (“3”) — 4 8/36 52 (“4”)
At 4k Byte setting (At MSW1-2 OFF setting)
Setting Status Sending Data
Stored
Value
BUSY
Output/Cancel
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
1 128/256 49 (“1”) — — — — 2 128/512 50 (“2”) — — — — 3 72/256 51 (“3”) — — — — 4 72/512 52 (“4”) — — — —
- 98 -
Loading...