Command Reference
Revision
Table of Contents
Macro Commands
Character Code Table
Example
Program coding
Print Control Commands Function Mode
Command
Print Character Commands Function Mode
Bit Image Commands Function Mode
Print Position Commands Function Mode
Line Feed Span Commands Function Mode
Status Commands Function Mode
Cutter Commands Function Mode
Panel Switch Commands Function Mode
Macro Commands Function Mode
Bar Code Commands Function Mode
Printer Function Setting Commands Mode
Other Commands Function Mode
Range
Default
Code
Outline
Command Details
Sample Program
See Also Sample Program
ESC FF, ESC L, ESC S
ESC J n
FF, ESC L, ESC S
Default Sample Program Print Results
ESC d n
Can
ESC L, ESC W
Default See Also
ESC SP n
ESC ! n
Bit Function Value
Lprint CHR$&HA
ESC % n
ESC
ESC & s n m a p s ⋅ a m-n+1
MSB LSB
ESC n
ESC ? n
ESC E n
ESC G n
Range Outline
ESC M n
ESC R n
Character Set
Default Sample Program
ESC V n
ESC t n
Character Code Table
Condition
ESC ~ J n Valid in CBM1000II-Compatible Mode
Black-based Paper Red-based Paper
DC3 n Valid in CBM1000II-Compatible Mode
Horizontal Magnification Hex Decimal
GS ! n
Bit Function Value Hex. Number Decimal Number
Vertical Magnification Hex Decimal
GS B n
1DH62Hn
Print Position Commands
Printing Result
ESC $ n1 n2
ESC D n k Null
Printing Direction Start Point
ESC W xL xH yL yH dxL dxH dyL dyH
CAN, ESC L, ESC T, GS P
ESC \ nL nH
ESC a n
Position
GS $ nL nH
GS L nL nH
GS P, GS W
GS W nL nH
GS L, GS P
GS \ nL nH
ESC
ESC 3 n
ESC 2, GS P
ESC * m n1 n2 d k
IMG1
GS * n1 n2 d n1 ⋅ n2 ⋅
Gosub IMG
GS / m
See Also ESC &, GS
GS v 0 m xL xH yL yH d1...dk
Msblsb
DLE EOT n
Status
Bit Status Hex Decimal
Status caused by an error when n = 3 is specified
GS a n
Bit Status Item Addressed by ASB Hex Decimal
1st byte Printer information
4th byte Paper Sensor information
GS r n
Drawer kick-out connector status n = 2
ESC c 3 n
Bit Position Value
ESC c 4 n
ESC c 5 n
Macro Commands
GS n1 n2 n3
GS V m GS V m n
GS H n
Printing Position
Print Results
GS f n
Font
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
Description of Bar Codes
UPC-E
Control Character HRI Character
DEL
Special characters Hex
Code Set a Code Set B Code Set C
UPC-A
Type Print Sample Outline of Symbol
Bar Code Print Example
JAN-8
GS w n
P n m
See Also ESC *, FS q, GS /, GS v
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 FF Valid Only at B.M Paper Selection
GS 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
GS c
Sample Program Print Results
GS I n1L n1H n2L n2H
Default Kind of Real-time Command
GS D pL pH m a1 b1 ··· ak bk
GS E pL pH fn ···
Function No. fn
Hex No. of Data
Null
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 ⋅ Paper Width
NL + nH ⋅ Printing Density
NL + nH ⋅ Paper
NL + nH ⋅ Printing Speed
NL + nH ⋅ No. of Divisions for Conducting Head
NL + nH ⋅ ACK Output Position
1FH
Sending Data 1st Byte 2nd Byte 3rd Byte
Divisions
1st Byte 2nd Byte 3rd Byte 4th Byte 5th Byte
Setting Status Sending Data Stored
Control
Amount
= 209 PNE sensor judgment time
Font Type
Dy ⋅ xk Fn =
1dH28H45pL pH fn x c1 c2 y d1...dyXxk
1dH28H45pL pH fn c1 c2
Baud Rate
Parity Setting
Setting Data Length
Flow Control
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 !, ESC -, ESC E, ESC G, ESC
Commands for this function Command Type
GS M pL pH fn m
ESC SP, ESC 2, ESC
Fn = 1, 49 Function GS M pL pH fn m fn = 1
Fn = 2, 50 Function GS M pL pH fn m
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 =
DLE DC4 fn d1...d7 Specification of fn =
Hex Decimal No. of Data
ESC = n
Bit Equipment Value
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 Paper
Standard Mode
GS a pL pH n m
Category of Test Printing
Kind of Printer Information
Type of Printer ID Specification Value Hex
GS I n
CBM
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
Bidirectional Parallel Interface
Overview
Negotiation Procedure
Negotiation
Precautions
When 76543210 Supported Printer
Nibble Mode
Data Communication from Printer to Host
Byte Mode
Device ID
CLS Printer
Termination
Identification of Send Status Command and Function
XON
Xoff