CITIZEN CBM-262II Reference Guide

CITIZEN
QP-051-D1
Command Reference
Model: CBM-262 II
Revision: 1.00
Prepared on: 2004.10.04
Citizen Watch Co., Ltd.
Information & Communication Products Division
Revision Date Details Remark
1.00 2004.10.04
First version
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
2/85
Table of contents
2. Print Control Functions.....................................................................................................................1
2-1. Control Code List .....................................................................................................................1
3. Descriptions of Control Code............................................................................................................. 4
HorizontalTab[HT] ................................................................4
PrintingandLineFeed[LF].........................................................4
FormFeed[FF] .....................................................................4
Returningtoprinting[CR]..........................................................5
DatacancelinginPAGEMODE[CAN]....................................................5
JournalTab[RS] ...................................................................6
Real‑timesendingofstatus[DLEEOT]..............................................7
Real‑timerequestofstatus[DLEENQ]..............................................9
Real‑timeoutputofspecifiedpulse[DLEDC4].....................................10
DataprintinginPAGEMODE[ESCFF]...............................................11
Settingthespacingofcharacters[ESCSP]........................................11
Collectivelyspecifyingaprintingmode[ESC!]...................................12
Specifyingtheabsoluteprintingposition[ESC$].................................13
Specifying/Cancelingthedownloadcharacterset[ESC%]...........................13
Definingthedownloadcharacters[ESC&]..........................................14
Definingcharacterstoblankpages[ESC(].......................................15
Specifyingthebitimagemode[ESC∗].............................................16
Specifying/Cancelinganunderline[ESC]........................................17
Specifyingthe1/6‑inchlinefeedrate[ESC2]....................................18
Settingthelinefeedrate[ESC3]................................................18
Datainputcontrol[ESC=]........................................................19
Deletingthedownloadcharacters[ESC?]..........................................20
Initializingtheprinter[ESC@]..................................................20
Settingthehorizontaltabformat[ESCD].........................................21
Specifying/Cancelingemphasisprinting[ESCE]....................................22
Specifying/Cancelingdoublestrikeprinting[ESCG]...............................22
Printingandfeedingpaper[ESCJ]................................................23
SelectingPAGEMODE[ESCL].......................................................24
Selectionofcharacterfonts[ESCM]..............................................25
Selectingtheinternationalcharacterset[ESCR]................................25
SelectingSTANDARDMODE[ESCS]..................................................26
SelectionofcharacterprintingdirectioninPAGEMODE[ESCT] ...................27
Specifying/Canceling90°‑right‑turnedcharacters[ESCV] .........................28
SettingtheprintareainPAGEMODE[ESCW]......................................29
Specifyingtherelativeprintingposition[ESC¥].................................30
Aligningthecharacters[ESCa]...................................................31
Selectionofprintingsheet[ESCc0]............................................32
Selectionofsettingsheet[ESCc1].............................................33
Selectingthepaperendsensorvalidforpaperendsignaloutput[ESCc3] .......34
Selectingthepapersensorvalidforprintstop[ESCc4] ........................35
Enabling/Disablingthepanelswitches[ESCc5]..................................36
Printingandfeedingpaperby“n”lines[ESCd] ...................................36
Generatingthespecifiedpulses[ESCp]...........................................37
Fullcut[ESCi] .................................................................38
Partialcut[ESCm] ..........................................
Selectionofprintingmode(unprovided)[ESCs]...................................39
Selectingthecharactercodetable[ESCt]........................................40
Statussignalofperipheralequipment[ESCu].....................................41
Sendingtheprinterstatus[ESCv]................................................42
Specifying/CancelingprintingthesamedatetoReceipt/Journal[ESCz] ............42
TITLE:
CITIZEN
PB-32/33
....................38
SHEET REVISION
A
3/85
Specifying/Cancelinginvertedcharacters[ESC{].................................43
Specifyingfontsize[ESCf]...................................................44
Specifyingtheprintdensity[ESC∼]..............................................45
Settingofnonvolatilememory[ESCDEL]...........................................46
WritingdataintotheuserNVmemory[FSg1]....................................47
ReadingdatatotheuserNVmemory[FSg2]......................................48
PrintingtheNVbitimages[FSp].................................................49
DefiningtheNVbitimages[FSq].................................................50
Settingtheprintingdensity[FSI]...............................................51
Specificationthecharactersize[GS!]...........................................52
SpecifyingtheabsoluteverticalpositionofcharactersinPAGEMODE[GS$] .......53
Definingthedownloadbitimage[GS]............................................54
Executionoftestprinting[GS( ].................................................55
Printingthedownloadbitimage[GS/]...........................................56
Starting/Endingthemacrodefinition[GS:]......................................57
Specifying/Cancelingtheblack/whitereverseprinting[GSB] ......................57
SelectionofprintingpositionofHRIcharacters[GSH]...........................58
SendingtheprinterID[GSI].....................................................59
Settingtheleftmargin[GSL]....................................................60
Specifying/Cancelingreducedcharacterprinting[GSM]............................61
Settingthebasiccalculationpitch[GSP]........................................62
Papercutting[GSV]..............................................................63
Settingtheprintareawidth[GSW]...............................................64
SpecifyingtherelativeverticalpositionofcharacterinPAGEMODE[GS¥] .......66
Executionofmacro[GS^]........................................................67
Enabling/DisablingAutomaticStatusBack[GSa]..................................68
Specifying/Cancelingsmoothing[GSb]............................................71
SelectionoffontforHRIcharacters[GSf]......................................71
Selectionofheightofbarcode[GSh]...........................................72
Printingthebarcode[GSk].....................................................73
Sendingofstatus[GSr]..........................................................75
Printingofrasterbitimage[GSv]...............................................77
Selectionofbarcodewidthsize(magnification)[GSw]...........................78
12-7. Position of character................................................................................................................... 79
Index..................................................................................................................................................... 80
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
4/85
2. Print Control Functions
2-1. Control Code List
Character
HT
LF
FF
CR
CAN
RS
DLE EOT
DLE ENQ
DLE DC4
ESC FF
ESC SP
ESC !
ESC $
ESC %
ESC &
ESC *
ESC -
ESC 2
ESC 3
ESC =
ESC ?
ESC @
ESC D
ESC E
ESC G
ESC J
ESC L
ESC M
ESC R
ESC S
ESC T
ESC V
ESC W ESC \
ESC a
Command
Horizontal Tab Printing and Line Feed Form Feed Returning to printing Canceling print data in PAGE MODE Journal Tab Real-time sending of status Real-time request to printer Real-time output of specified pulse Data printing in PAGE MODE Setting the spacing of characters Collectively specifying a printing mode Specifying the absolute printing positions Specifying/Canceling the download character set Defining the download characters Specifying the bit image mode Specifying/Canceling underline Specifying the 1/6-inch line feed rate Setting the line feed rate Data input control Deleting the download characters Initializing the printer Specifying horizontal tab positions Specifying/Canceling emphasis printing Specifying/Canceling double strike printing Printing and feeding paper Selecting PAGE MODE Selection of character fonts Selecting the international character set Selecting STANDARD MODE Selection of character printing direction in PAGE MODE Specifying/Canceling 90°-right-turned characters
Setting the print area in PAGE MODE Specifying the relative printing position Aligning the characters
STANDARD
MODE
cc
cc
cc
c
cc
cc
cc c
cc
cc c
cc
cc
cc
cc
cc
cc c
cc
cc
cc
cc
cc
cc
cc c
Line
cc
cc
Setting
c
Setting
cc c
Line Setting
PAGE
MODE
Setting
Affect by
GSP
c
c
c
c
c
cc
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
1/85
Character
ESC C0
ESC C1
ESC C2
ESC C3
ESC C4
ESC C5 ESC d ESC P ESC t ESC { ESC~f
FS g 1
FS g 2 FS P FS q ESC i ESC m ESC s ESC u ESC v ESC z GS ! GS $ GS * GS ( A GS / GS : GS B GS H GS I GS L GS M GS P GS V GS W GS \ GS ^ GS a GS b GS f GS h GS k GS r GS v 0 GS w
Command
Selection of printing sheet
Selection of setting sheet
Selecting the Paper Sensor valid for a paper end signal output
Selecting the paper sensor valid for print stop
Selecting the paper sensor valid for print stop
Enabling/Disabling the panel switches Printing and feeding paper by “n” lines Generating the specified pulse Selecting the character code table Specifying/Canceling the inverted characters Font specifying command
Writing data into the user NV memory
Reading data from the user NV memory Printing the NV bit images Defining the NV bit images Full cut Partial cut (Leaving one area uncut) Specifying a printing mode Status signal of peripheral equipment Signal of printer status Printing the same data to Receipt/Journal Specifying character sizes Specifying the absolute vertical position of characters in PAGE MODE Defining download bit images Execution of test printing Printing download bit images Starting/Ending the macro definition Specifying/Canceling the black/white inverted printing Selecting of printing position of HRI characters Sending the printer ID Setting the left margin Specifying/Canceling the micro characters Setting the basic calculation pitch Paper cutting Setting the print area width Specifying the relative vertical position in PAGE MODE Execution of macro Enabling/Disabling Automatic Status Back Specifying/Canceling smoothing Selection of font for HRI characters Selection of height of the bar code Printing the bar code Sending of status Printing of raster bit image Selection of horizontal size (magnification) of bar code
STANDARD
MODE
Line
cc
cc
cc
cc
cc
cc cc cc
Line Setting
cc
c
(Line)
c
(Line) Disabling
ρρ ρρ
¯¯
ρρ ρρ
(Line)
cc
cc
cc cc cc cc
cc cc
(Line) Setting
cc
cc
(Line) (Line) Setting
cc cc cc cc
cc cc cc cc
cc
PAGE
MODE
Disabling
cc
cc
cc
Affect by
GSP
c
c
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
2/85
= Enabling
c
No mark = Disabling Line = Command which is valid at the line head Setting = Command by which only setting is valid ρ = Non-recommendable command (command provided only for maintaining compatibility with Version 1)
= Command for maintenance (which cannot be used by customers)
¯
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
3/85
3. Descriptions of Control Code
Horizontal Tab [HT]
[ASCII] HT [Decimal] 9 [Hexadecimal] 09
[Parameter]
[Description]
x Shifts the printing position to the next horizontal tab position. The horizontal tab position is set by ESC D.
The initial setting is at intervals of 8 characters for Font A (at 9th, 17th, 25th, 33rd columns).
Printing and Line Feed [LF]
[ASCII] LF [Decimal] 10 [Hexadecimal] 0A
[Parameter]
[Description]
x By specifying the C/R operation set inside the printer, the operations will be as follows:
HT
LF
<In case of CR+LF> x If data exist inside the print buffer, line feed is performed after printout. Without data, only line feed is
performed. The next printing position becomes the head of line. If LF code is entered right after CR code, the LF code will be ignored.
<In case of LF and being ignored> x If data exist inside the print buffer, line feed is performed after printout. Without data, only line feed is
performed. The next printing position becomes the head of line.
x Even if LF code is entered right after CR code, the LF code will not be ignored.
Form Feed [FF]
[ASCII] FF [Decimal] 12 [Hexadecimal] 0C
[Parameter]
[Description]
x Executes a batch printout of the data mapped in the print area and returns to STANDARD MODE. All data is
erased after printout.
x This command is effective only in PAGE MODE.
FF
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
4/85
Returning to printing [CR]
[ASCII] CR [Decimal] 13 [Hexadecimal] 0D
[Parameter]
[Description]
x By specifying the C/R operation set inside the printer, the operations will be as follows:
<In case of CR+LF>
If data exist inside the print buffer, line feed is performed after printout. Without data, only line feed is performed. The next printing position becomes the head of line. If LF code is entered right after CR code, the LF code will be ignored.
<In case of LF >
If data exist inside the print buffer, line feed is performed after printout. Without data, only line feed is performed. The next printing position becomes the head of line. Even if LF code is entered right after CR code, the LF code will not be ignored.
<In case of being ignored>
This code is ignored.
CR
Data canceling in PAGE MODE [CAN]
[ASCII] CAN [Decimal] 24 [Hexadecimal] 18
[Parameter]
[Description]
x Erases all data contained in the print area set in PAGE MODE. All data in the previously set print area are
also erased if they are in the currently specified print area.
x This command is effective only in PAGE MODE.
CAN
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
5/85
Journal Tab [RS]
[ASCII] RS [Decimal] 30 [Hexadecimal] 1E
[Parameter]
[Description]
x Shifts the printing position to the head of journal paper. x This command is effective only when both of RECEIPT/JOURNAL are selected (ESC“c1”3) and printout of the
same data to RECEIPT/JOURNAL is canceled (ESC“z”0).
x If data are entered in PAGE MODE, this command will become invalid.
RS
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
6/85
Real-time sending of status [DLE EOT]
[ASCII] DLE EOT n [Decimal] 16 4 n [Hexadecimal] 10 04 n
DLE EOT
[Parameter] 1<n<
4h
[Description]
x Sends in real-time the status specified by “n”.
n=1: Printer status. n=2: Status caused by an offline condition. n=3: Status caused by an error. n=4: Paper detector status.
x Each status represents the current status. x The status is transferred without checking whether the host is ready to receive or busy. x This command is dealt with when it is received. x If the same data string as that with this command is received, the same operation will be performed.
Therefore, the user should be reminded of this fact. (Bit Image, etc.)
x This command cannot be interleaved into the code string of another command consisting of 2 bytes or more
codes.
x If ASB is valid, it is necessary to discriminate between the status due to this command and the status due to
ASB.
Note) For details of ASB (Automatic Status Back), refer to the section of GS a.
(1) n = 1: In case of printer status
Bit Function
0 Unused Fixed at 0 1 Unused Fixed at 1 2
Status of Pin 3 of Drawer 3 Online/Offline Online Offline 4 Unused Fixed at 1 5 Undefined −− 6 Undefined −− 7 Unused Fixed at 0
01
“L” “H”
Value
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
7/85
(2) n = 2: In case of status caused by an offline condition
Value
01
0 Unused Fixed at 0 1 Unused Fixed at 1 2 Lever open Lever closed Lever opened 3
Paper feed by paper feed switch Not in paper feed state
4 Unused Fixed at 1
Printing stop because of
5
“paper out” state 6 Error occurred Not occurred Occurred 7 Unused Fixed at 0
Bit 5: If the paper end detector detects a “paper out” state, or the paper near-end sensor is enabled by ESC
C4, printing will be stopped. At this time, bit 5 = 1.
N = 3: In case of status caused by an error
No stopping Stopping
In paper feed state
Bit Function
0 Unused Fixed at 0 1 Unused Fixed at 1 2 Undefined −− 3 Auto Cutter error occurred No error Error occurred 4 Unused Fixed at 1 5 Unrecoverable error occurred No error Error occurred 6 Auto recovery error occurred No error Error occurred 7 Unused Fixed at 0
Bit 3: If this error occurs due to causes such as a paper jam, remove the cause of the error.
Then DLE ENQ n (1<n< It is not possible, however, to recover from any error due to defect in hardware or mechanism.
Bit 6: If a head overheat is detected, it will become “1”. If the temperature falls, it will become “0”.
N=4: In case of paper detector status
Bit Function
0 Unused
1 Unused Fixed at 1 2 Detecting Journal Near-end Paper found Paper not found 3 Detecting Receipt Near-end Paper found Paper not found 4 Unused Fixed at 1 5 Detecting Journal paper-end Paper found Paper not found 6 Detecting Receipt paper-end Paper found Paper not found 7 Unused Fixed at 0
2) can be used to recover from the error.
01
Value
Value
01
Fixed at 0
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
8/85
Real-time request of status [DLE ENQ]
[ASCII] DLE ENQ n [Decimal] 16 5 n [Hexadecimal] 10 05 n
DLE ENQ
[Parameter] 1<n<
[Description]
x Responds in real-time to the request that the host specifies with number “n”.
n=1: After recovering from an error, the printer resumes printing from the beginning of the line where the
error occurred.
n=2: After clearing the receive buffer and the print buffer, the printer recovers from the error.
x This command is effective only when an auto cutter error has occurred. x If the same data string as that with this command is received, the same operation will be performed.
Therefore, the user should be reminded of this fact. (Bit Image, etc.)
x This command cannot be interleaved into the code string of another command consisting of 2 bytes or more
codes.
2h
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
9/85
Real-time output of specified pulse [DLE DC4]
[ASCII] DLE DC4 n m t [Decimal] 16 20 n m t [Hexadecimal] 10 14 n m t
DLE DC4
[Parameter] n=1 m=0, 1 1<t<
[Description]
x A signal specified with “t” is output to the connector pin specified with “m”.
m Connector Pin
0 Pin No. 2 of Drawer Kick-Out Connector
1 Pin No. 5 of Drawer Kick-Out Connector
x On-time is set at t ×100ms and off-time is set at t ×100ms. x In case an error occurred during the processing of this command, this command is ignored. x In case pulse output was being performed during the processing of this command (ESC P or DEL DC 4 is
being executed), this command is ignored.
x This command will be processed as it is received. x In specification of serial interface, this command is executed even in off-line, reception buffer full and error
conditions.
8
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
C
10
10/85
Data printing in PAGE MODE [ESC FF]
ESC FF
[ASCII] ESC FF [Decimal] 27 12 [Hexadecimal] 1B 0C
[Parameter]
[Description]
x Executes a batch printout of data mapped in the print area in PAGE MODE. Data, ESC T and ESC W
settings and the character mapping position are held even after printing.
Setting the spacing of characters [ESC SP]
ESC SP
[ASCII] ESC SP n [Decimal] 27 32 n [Hexadecimal] 1B 20 n
[Parameter] 0<n<
[Description]
x Default n=0 x Sets the right spacing of characters to [n × basic calculation pitch] inches. x If the horizontal magnification of character is 2 or more, the spacing increases with the magnification. x The basic calculation pitch is set by GS P. Once the right spacing is set, it will not be changed even if the
basic calculation pitch is changed by GS P.
x In STANDARD MODE, the horizontal basic calculation pitch x is used. x In PAGE MODE
If the start point specified by ESC T is top left or bottom left, the horizontal basic calculation pitch x is used. If the start point specified by ESC T is top right or bottom right, the vertical basic calculation pitch y is
used.
The character size can be specified also by GS !, but the last set command will become effective. The initial value is n=0.
FFh
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
11
11/85
Collectively specifying a printing mode [ESC !]
[ASCII] ESC ! n [Decimal] 27 33 n [Hexadecimal
] 1B 21 n
ESC !
[Parameter] 0<n<
FFh
[Description]
x Printing mode is specified with each bit.
Value
Bit Function
0
1 Undefined 2 Undefined 3
4
5
6 Undefined −−
7
x With double height and double width of bit being specified simultaneously, quadruple characters are created. x An underline is attached to the full character width but not attached to the part having been skipped by the
horizontal tab, ESC“\” and ESC “$”. Neither is it attached to 90°-turned characters.
x The underline width is as specified by the <ESC –> command regardless of character size. x The underline can be specified also by the <ESC –> command but the last processed command will become
effective.
x The character size can be specified also by GS !, but the last processed command will become effective. x Printing of characters with different sizes such as double-size characters and normal-size characters is
possible.
x The initial value is n=0.
Character Font A (12∗24) 00 0 Character Font B (9∗24) 01 1
Canceling emphasis 00 0 Specifying emphasis 08 8 Canceling double height 00 0 Specifying double height 10 16 Canceling double width 00 0 Specifying double width 20 32
Canceling underline 00 0 Specifying underline 80 128
Hexadecimal
number
Decimal
number
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
12
12/85
Specifying the absolute printing position [ESC $]
[ASCII] ESC $ n1 n2 [Decimal] 27 36 n1 n2 [Hexadecimal] 1B 24 n1 n2
ESC $
[Parameter] 0<n1<
[Description]
x Specifies the next printing start position by the absolute position with reference to the left margin. The
printing position is set by [16 bit specification value × basic calculation pitch] inches.
x The basic calculation pitch is set by GS P. x “n1” is the low 8 bits of 16 bit data and “n2” is the high 8 bits. x If the calculation leaves a fraction, the fraction is corrected with the minimum pitch of the mechanism
(203DPI) and the remainder is omitted.
x Specification beyond the printing area is ignored. x In STANDARD MODE, the basic calculation pitch x is used. x In PAGE MODE,
If the start point specified by ESC T is top left or bottom left, the horizontal basic calculation pitch x is used. If the start point specified by ESC T is top right or bottom right, the vertical basic calculation pitch y is used.
Specifying/Canceling the download character set [ESC %]
[ASCII] ESC % n [Decimal] 27 37 n [Hexadecimal] 1B 25 n
FFh 0<n2<FFh
ESC %
[Parameter] 0<n<
[Description]
x Specifying/Canceling the download characters x The lowest bit “n0” is valid for “n”.
With n=<∗∗∗∗∗∗∗0>B, the download character set is canceled. With n=<∗∗∗∗∗∗∗1>B, the download character set is specified.
x Only the lowest bit is valid for “n”. x If the download character set is canceled, the internal character set will be automatically specified. x Download characters and download bit images (GS) cannot be defined simultaneously. x The initial value is n=0.
FFh
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
13
13/85
Defining the download characters [ESC &]
[ASCII] ESC & s n m a p1…pn [Decimal] 27 38 s n m a p1…pn [Hexadecimal] 1B 26 s n m a p1…pn
[Parameter] s=3h (Font A, B) 2h (Font C)
0<n<
7Eh 20h<m<7Eh In case of Font A, 0<a<0Ch In case of Font B, 0<a<09h In case of Font C, 0<a<08h
0<p1...pn<255
[Description]
x Defines the download characters of alphabet, number and Kana. x “s” indicates the number of bytes in vertical direction. x “n” indicates the start character code and “m” indicates the end character code. To define only one character,
set n=m.
x Definable character codes include 95 characters at maximum in the range of ASCII code (20h to 7Eh). x “a” indicates the number of dots in horizontal direction. x “pn” is the data to be defined, which indicates the pattern equal to “a” dots in horizontal direction from the
left end. The rest of pattern on the right side is filled with space.
x Once download characters are defined, they remain valid until redefinition, execution of ESC “@” and GS “∗”
or power OFF is performed.
x It is possible to check with the ESC “v” command whether download is being performed.
(Only in case of serial I/F)
ESC &
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
14
14/85
Defining characters to blank pages [ESC ( ]
[ASCII] ESC ( s a n m p1…pn [Decimal] 27 40 s a n m p1…pn [Hexadecimal] 1B 28 s a n m p1…pn
[Parameter] s = 3h (Font A, B) 2h (Font C)
80h<n< In case of Font A, a = 0Ch In case of Font B, a = 0Ch In case of Font C, a = 08h
[Description]
x Defines characters to blank pages. x The characters defined with this command are stored in the nonvolatile memory. Therefore, even if the
printer is powered OFF, the definition details will be held.
x “s” indicates the number of bytes in vertical direction. x “n” indicates the start character code and “m” indicates the end character code. To define only one character,
set n=m.
x Definable character codes are in the range of ASCII code (80h to FFh). x “a” indicates the number of dots in horizontal direction. If characters of Font B are defined, specify 12 dots
with command, define 9 dots for character data. Configure the remaining 4 dots with white data.
x “pn” is the data to be defined, which indicates the pattern equal to “a” dots in horizontal direction from the
left end. The rest of pattern on the right side is filled with space.
x By specifying a blank page with ESC t 255, printing is performed. x The alignment of data is as follows.
s=2h s=3h
FFh 80h<m<FFh
0p1...pn255
a=8h
a=ch
P1 P2 P3 P4 P5 P6 P7 P8
………
ESC (
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
15
15/85
Specifying the bit image mode [ESC ∗]
[ASCII] ESC m n1n2dn [Decimal] 27 42 m n1 n2 dn [Hexadecimal] 1B 2A m n1 n2 dn
ESC *
[Parameter] m=0, 1, 20h 21h 0<n1<
[Description]
x According to the bit image mode specified by m, bit image data are printed. x The number of dots printed is specified as 16 bits. “n1” is the low 8 bits and “n2” is the high 8 bits. x If bit image data have been input excess of dot positions that can be printed on one line, the excess data are
discarded.
x Concerning bit image data (dn), bits to be printed are specified as “1” and bits not to be printed as “0”. x The printing modes specified by m are as follows:
m(h) Mode
0 8-dots single density 8 67DPI 101DPI
1
8-dots double density
20 24 dots single density 24 203DPI 101DPI
21 24 dots double density 24 203DPI 203DPI
x When the value of m is out of the above range, the data after n1 is processed as normal printing data.
FFh 0<n2<03h
Vertical direction
No. of Dots Dot Density Dot Density
8 67DPI 203DPI
Horizontal
direction
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
16
16/85
Specifying/Canceling an underline [ESC −]
[ASCII] ESC n [Decimal] 27 45 n [Hexadecimal] 1B 2D n
ESC
[Parameter] 0<n<
[Description]
x Specifying/Canceling an underline. x An underline is attached to the full character width but not attached to the part having been skipped by the
horizontal tab (HT) and the dot position shifts (ESC $, ESC \). Neither is it attached to 90°-turned characters.
x The kinds of underline specified by n are as follows:
n=0 : Canceling an underline. n=1: Specifying an underline for 1-dot width. n=2: Specifying an underline for 2- dots width.
x The width of underline is a specified width regardless of character size. x The underline can be specified also by ESC !, but the last processed command will become effective. x The initial value is n=0.
02h, 30h<n<32h
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
17
17/85
Specifying the 1/6-inch line feed rate [ESC 2]
[ASCII] ESC 2 [Decimal] 27 50 [Hexadecimal] 1B 32
[Parameter]
[Description]
x Sets the line feed rate per line to 1/6-inch.
Setting the line feed rate [ESC 3]
[ASCII] ESC 3 n [Decimal] 27 51 n [Hexadecimal] 1B 33 n
ESC 2
ESC 3
[Parameter] 0h<n<
[Description]
x Sets the line feed rate per line to [n×basic calculation pitch] inches.
x Sets the line feed rate to the selected setting sheet with ESC c1. x Independent line feed rate can be set to Receipt and Journal, respectively. If printing of the same data to
Receipt and Journal is specified and PAGE MODE printing is performed, the line feed rate of Journal will be ignored and the line feed rate of Receipt will become effective.
x Independent line feed rate can be set for STANDARD MODE and PAGE MODE, respectively. x The basic calculation pitch is set by GS P. Once the line feed rate is set, it will not be changed even if the
basic calculation pitch is changed by GS P. If the calculation leaves a fraction, the fraction will be corrected with the minimum pitch of mechanism (203DPI) and the remainder will be omitted.
x In STANDARD MODE, the vertical basic calculation pitch y is used. x In PAGE MODE,
If the start point specified by ESC T is top left or bottom right, the horizontal basic calculation pitch y is used. If the start point specified by ESC T is top right or bottom left, the vertical basic calculation pitch x is used.
x If the specified line feed rate is smaller than the printing character size (vertical length), the line feed rate
will become a printing character size.
x The maximum settable line feed width is 40 inches. If the line feed width is specified to the value greater than
this maximum value, it will be trimmed to the maximum.
x The initial value is n=22h and approximately 1/6 inches (4.25mm)
FFh
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
18
18/85
Data input control [ESC =]
[ASCII] ESC = n [Decimal] 27 61 n [Hexadecimal] 1B 3D n
ESC =
[Parameter] 0<n<
[Description]
x Selects an equipment for which data input from the host is valid. x Each bit of “n” is as follows:
Bit Function
0
1 Undefined 2 Undefined 3 Undefined
5 Undefined 6 Undefined 7 Undefined
x When the printer has not been selected, the printer abandons all received data until it is selected by this
command.
x Even when the printer has not been selected, it may become a BUSY state through any printer operation. x The initial value is n=1.
FF
Value
Hexadecimal
number
Printer Valid 00 0 Printer Invalid 01 1
Undefined
Decimal
number
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
19
19/85
Deleting the download characters [ESC ?]
[ASCII] ESC ? n [Decimal] 27 63 n [Hexadecimal] 1B 3F n
ESC ?
[Parameter] 20<n<
[Description]
x Deletes the download characters of specified code. x “n” indicates the code of characters to be deleted. x This command deletes the character font selected by ESC !. x If the specified character code is undefined, this command will be ignored.
Initializing the printer [ESC @]
[ASCII] ESC @ [Decimal] 27 64 [Hexadecimal] 1B 40
[Parameter]
[Description]
x Clears data stored in the print buffer and initializes various settings. x Macro definitions are not cleared. x Data in the receiving buffer are maintained. x NV bit image definitions are maintained. x User NV memory data are maintained.
7E
ESC @
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
20
20/85
Setting the horizontal tab format [ESC D]
[ASCII] ESC D n1…nK NULL [Decimal] 27 68 n1…nK NULL [Hexadecimal] 1B 44 n1…nK NULL
ESC D
[Parameter] 1<n<
[Description]
x Sets the horizontal tab position. x “n” indicates the number of columns between the left margin and the horizontal tab setting position.
If n=8 is specified, for example, the next printing position will be shifted to the ninth column by execution of HT.
x “k” indicates the number of horizontal tab position data to be set. x The tab position is set to the position defined by “character width × n from the left margin”. x At this time, the character width includes space between characters. If a horizontal magnification of
character is 2 or more, the character width will increase with the magnification.
x <n> which denotes a setting position is processed in the increasing order and ends at <00>h. When <n> is
equal to or smaller than its preceding <n>, the tab setting is finished. Then, the next data onward will be processed as normal data.
x Settable tab positions are maximum 32. Tab positions specified exceeding this limit is ignored. x ESC “D”NULL clears all the set tab positions. The horizontal tab (HT) command after clearing is ignored. x Default is Font A and positions at eight-character intervals (9th, 17th, 25th, 33rd,…“n”th columns) at the
right spacing =0.
255 0<k<32
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
B
21
21/85
Specifying/Canceling emphasis printing [ESC E]
[ASCII] ESC E n [Decimal] 27 69 n [Hexadecimal] 1B 45 n
ESC E
[Parameter] 0<n<
[Description]
x Specifies/Cancels the printing of emphasized characters. x “n” is valid for the lowest bit (n0). x Control by the lowest bit is as follows:
n=0: Canceling emphasis printing. n=1: Specifying emphasis printing.
Specifying/Canceling double strike printing [ESC G]
[ASCII] ESC G n [Decimal] 27 71 n [Hexadecimal] 1B 47 n
[Parameter] 0<n<
[Description]
x Specifies/Cancels the double strike printing. x “n” is valid for the lowest bit (n0). x Control by the lowest bit is as follows:
n=0: Canceling double strike printing. n=1: Specifying double strike printing.
x With this printer, double-strike printing and emphasis printing provide completely the same result.
FFh
FFh
ESC G
CITIZEN
TITLE:
PB-32/33
SHEET REVISION
A
22
22/85
Loading...
+ 59 hidden pages