- 8 -
1. OUTLINE
1.1 Operation Mode
Our printer hasESC/POSTM ascontrol commands.
1.2 Character Set
All print data sentfromthe hostcomputer tothe printer are automaticallyconvertedtoone-bytealphanumericorkatakana
characters(ANK) ortwo-byteKanji corresponding tothe charactersandsymbols.
NOTE: Forthecontentsofcharacter set,refer toCharacter Code Tableofthisdocument.
1.3 Control Commands
1.3.1 Control Command Details
ControlCommandsareusedforcontrollingtheoperationsoftheprintersuchasstarting/stoppingofprinting,linefeeding,paper
feeding, etc.Theycontrol allfunctions related toprinting, suchas type ofcharacters, enlargement ofcharacters orsetting of
format.
1.3.2 How to Send Control Commands
SomemethodsareavailableforsendingControl Commandsfrom thehostcomputer totheprinter.Here,a methodofsending
byBASIC programming isexplained.
Example1
Let’sprint acharacterstring “CITIZEN”in enlarged (double-height,double-width)andinnormal format.
Program coding
TheControl Command shows thatthe command name forsetting thesize ofa characterisGS !.Let’s make aprogram using
this code. Anexample isshownbelow.
ProgramList Print Result
Inlines 20and 50,setting andcancelingofenlarginga character issent. Asa result, lines 30and 60print the same character
stringbutline 30printsenlarged characters andline 60cancels theenlargementandprints innormalformat.
*In thisdocument, sample programs arein BASIC. FordetailsofBASIC programming, refer tothemanual forBASIC.
10A$="CITIZEN"
20LPRINT CHR$(&H1D);"!"; CHR$(&H11);
30LPRINT A$;
40LPRINT CHR$(&HA);CHR$(&HA);
50LPRINT CHR$(&H1D);"!"; CHR$(&H00);
60LPRINT A$;
70END
CITIZEN
CITIZEN