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
LineSetting
PAGE
MODE
Setting
Affect by
GSP
c
c
c
c
c
cc
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
1
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
LineSetting
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
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
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
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
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
6/85
Real-time sending of status [DLE EOT]
[ASCII]DLEEOTn
[Decimal]164n
[Hexadecimal]1004n
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
BitFunction
0UnusedFixed at 0
1UnusedFixed at 1
2
Status of Pin 3 of Drawer
3Online/OfflineOnlineOffline
4UnusedFixed at 1
5Undefined−−
6Undefined−−
7UnusedFixed at 0
01
“L”“H”
Value
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
7
7/85
(2) n = 2: In case of status caused by an offline condition
Value
01
0UnusedFixed at 0
1UnusedFixed at 1
2Lever openLever closedLever opened
3
Paper feed by paper feed switchNot in paper feed state
4UnusedFixed at 1
Printing stop because of
5
“paper out” state
6Error occurredNot occurredOccurred
7UnusedFixed 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 stoppingStopping
In paper feed state
BitFunction
0UnusedFixed at 0
1UnusedFixed at 1
2Undefined−−
3Auto Cutter error occurredNo errorError occurred
4UnusedFixed at 1
5Unrecoverable error occurredNo errorError occurred
6Auto recovery error occurredNo errorError occurred
7UnusedFixed 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
BitFunction
0Unused
1UnusedFixed at 1
2Detecting Journal Near-endPaper foundPaper not found
3Detecting Receipt Near-endPaper foundPaper not found
4UnusedFixed at 1
5Detecting Journal paper-endPaper foundPaper not found
6Detecting Receipt paper-endPaper foundPaper not found
7UnusedFixed 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
8/85
Real-time request of status [DLE ENQ]
[ASCII]DLEENQn
[Decimal]165n
[Hexadecimal]1005n
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
x A signal specified with “t” is output to the connector pin specified with “m”.
mConnector Pin
0Pin No. 2 of Drawer Kick-Out Connector
1Pin 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]ESCFF
[Decimal]2712
[Hexadecimal]1B0C
[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]ESCSPn
[Decimal]2732n
[Hexadecimal]1B20n
[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]2733n
[Hexadecimal
]1B21n
ESC !
[Parameter]0<n<
FFh
[Description]
x Printing mode is specified with each bit.
Value
BitFunction
0
1Undefined
2Undefined
3
4
5
6Undefined−−
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)000
Character Font B (9∗24)011
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]2737n
[Hexadecimal]1B25n
FFh0<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.
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.
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.
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
08-dots single density867DPI101DPI
1
8-dots double density
2024 dots single density24203DPI101DPI
2124 dots double density24203DPI203DPI
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 DotsDot DensityDot Density
867DPI203DPI
Horizontal
direction
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
16
16/85
Specifying/Canceling an underline [ESC −]
[ASCII]ESC−n
[Decimal]2745n
[Hexadecimal]1B2Dn
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]ESC2
[Decimal]2750
[Hexadecimal]1B32
[Parameter]
[Description]
x Sets the line feed rate per line to 1/6-inch.
Setting the line feed rate [ESC 3]
[ASCII]ESC3n
[Decimal]2751n
[Hexadecimal]1B33n
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]2761n
[Hexadecimal]1B3Dn
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:
BitFunction
0
1Undefined
2Undefined
3Undefined
4
5Undefined
6Undefined
7Undefined
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 Valid000
Printer Invalid011
Undefined
Decimal
number
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
19
19/85
Deleting the download characters [ESC ?]
[ASCII]ESC?n
[Decimal]2763n
[Hexadecimal]1B3Fn
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]2764
[Hexadecimal]1B40
[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.
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]ESCEn
[Decimal]2769n
[Hexadecimal]1B45n
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: