Command Reference
Revision
Table of Contents
Macro Commands
Character Code Table
Program coding
Example
Print Control Commands Function Mode
Command
Print Character Commands Function Mode
Status Commands Function Mode
Print Position Commands Function Mode
Line Feed Span Commands Function Mode
Bit Image Commands Function Mode
Bar Code Commands Function Mode
Panel Switch Commands Function Mode
Macro Commands Function Mode
Cutter Commands Function Mode
Other Commands Function Mode
Printer Function Setting Commands Mode
Outline
Default
Code
Range
Sample Program
Command Details
See Also Sample Program
ESC FF, ESC L, ESC S
FF, ESC L, ESC S
ESC J n
ESC d n
Default Sample Program Print Results
ESC L, ESC W
Can
ESC SP n
Default See Also
Bit Function Value
ESC ! n
Lprint CHR$&HA
ESC
ESC % n
MSB LSB
ESC & s n m a p s ⋅ a m-n+1
ESC n
ESC ? n
ESC E n
ESC G n
Character Set
ESC M n
ESC R n
Range Outline
ESC V n
Default Sample Program
Character Code Table
ESC t n
Condition
Black-based Paper Red-based Paper
ESC ~ J n Valid in CBM1000II-Compatible Mode
DC3 n Valid in CBM1000II-Compatible Mode
Vertical Magnification Hex Decimal
GS ! n
Bit Function Value Hex. Number Decimal Number
Horizontal Magnification Hex Decimal
GS B n
1DH62Hn
Printing Result
Print Position Commands
ESC $ n1 n2
ESC D n k Null
Printing Direction Start Point
CAN, ESC L, ESC T, GS P
ESC W xL xH yL yH dxL dxH dyL dyH
ESC \ nL nH
Position
ESC a n
GS $ nL nH
GS P, GS W
GS L nL nH
GS W nL nH
GS L, GS P
GS \ nL nH
ESC
ESC 2, GS P
ESC 3 n
ESC * m n1 n2 d k
IMG1
GS * n1 n2 d n1 ⋅ n2 ⋅
Gosub IMG
See Also ESC &, GS
GS / m
GS v 0 m xL xH yL yH d1...dk
Msblsb
Status
DLE EOT n
Bit Status Hex Decimal
Status caused by an error when n = 3 is specified
Bit Status Item Addressed by ASB Hex Decimal
GS a n
1st byte Printer information
4th byte Paper Sensor information
GS r n
Drawer kick-out connector status n = 2
Bit Position Value
ESC c 3 n
ESC c 4 n
ESC c 5 n
Macro Commands
GS n1 n2 n3
GS V m GS V m n
Printing Position
GS H n
Print Results
Font
GS f n
1DH68Hn
GS k m d1 ...... dk Null GS k m n d1 ...... dn
Bar Code System Range of k Range of d
Bar Code System Range of n Range of d
For Standard Mode
For page Mode
For
UPC-E
Description of Bar Codes
DEL
Control Character HRI Character
Code Set a Code Set B Code Set C
Special characters Hex
JAN-8
Type Print Sample Outline of Symbol
Bar Code Print Example
UPC-A
GS w n
See Also ESC *, FS q, GS /, GS v
P n m
Q n xL xH yL yH d1…dk 1… xL xH yL yH d1…dk n
Example When xL = 64, xH = 0, yL = 96, yH =
GS Valid Only at B.M Paper Selection
GS FF Valid Only at B.M Paper Selection
GS a m n Valid Only at B.M Paper Selection
Correcting Direction
FF, GS
GS C0 m n
GS C1 n1 n2 n3 n4 n5 n6
GS C2 n1 n2
GS C n1 n2 n3 n4 n5
Sample Program Print Results
GS c
GS I n1L n1H n2L n2H
GS D pL pH m a1 b1 ··· ak bk
Default Kind of Real-time Command
Function No. fn
GS E pL pH fn ···
Null
Hex No. of Data
1dH28H45pL pH fn d1 d2 d3
Set Value Function
Setting memory switch 2 a =
Setting memory switch 4 a =
1dH28H45pL pH fn a
NL + nH ⋅ Printing Density
NL + nH ⋅ Paper Width
NL + nH ⋅ ACK Output Position
NL + nH ⋅ Printing Speed
NL + nH ⋅ No. of Divisions for Conducting Head
NL + nH ⋅ Paper
Sending Data 1st Byte 2nd Byte 3rd Byte
1FH
Divisions
Amount
Setting Status Sending Data Stored
Control
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
= 209 PNE sensor judgment time
Font Type
Dy ⋅ xk Fn =
1dH28H45pL pH fn x c1 c2 y d1...dyXxk
1dH28H45pL pH fn c1 c2
Flow Control
Parity Setting
Setting Data Length
Baud Rate
Set value
PL + pH ⋅ 256 = Fn = = 3, 5, 11
GS K pL pH fn m
1dH28H4BpL pH fn m
Fn = 4, 48 m
No. of Divisions for Head Conducting
ESC SP, ESC 2, ESC
Commands for this function Command Type
GS M pL pH fn m
ESC !, ESC -, ESC E, ESC G, ESC
Fn = 2, 50 Function GS M pL pH fn m
Fn = 1, 49 Function GS M pL pH fn m fn = 1
Fn = 3, 51 Function GS M pL pH fn m fn = 3
Default Outline
GS N pL pH fn m
Fn = 48 Function GS N pL pH fn m fn =
DLE ENQ n
DLE DC4 fn m t Specification of fn =
Hex Decimal No. of Data
DLE DC4 fn d1...d7 Specification of fn =
Bit Equipment Value
ESC = n
ESC @
G3S W
FS P
FF, CAN, ESC FF, ESC S, ESC T, ESC W, GS W, GS \
ESC S
ESC p m n1 n2
Category of Test Printing
Standard Mode
GS a pL pH n m
Category of Paper
CBM
Type of Printer ID Specification Value Hex
GS I n
Kind of Printer Information
127
GS P x y
ESC RS
Character Code Table
Codepage 00H to 7FH & Katakana
Codepage 00H to 7FH & PC850 Multilingual
Codepage 00H to 7FH & PC860 Portuguese
Codepage 00H to 7FH & PC863 Canadian-French
Codepage 00H to 7FH & PC865 Nordic
Codepage 00H to 7FH & PC852 Eastern Europe
Codepage 00H to 7FH & PC857 Russian
Codepage 00H to 7FH & PC857 Turkish
Codepage 00H to 7FH & PC864 Arabic
Codepage 00H to 7FH & WPC1252
International Character Code Table
Standard Mode ESC L ESC S
ESC FF Mode
Switching Between Standard Mode and page Mode
Mapping of Print Data in the Print Area
Example of Using page Mode
Example 2 Result of Print
Print Result of Adding a Program of Example 3 to Example
Overview
Bidirectional Parallel Interface
Negotiation
Negotiation Procedure
When 76543210 Supported Printer
Precautions
Data Communication from Printer to Host
Nibble Mode
Byte Mode
Device ID
CLS Printer
Termination
Identification of Send Status Command and Function
XON
Xoff