- Computers & electronics
- Print & Scan
- Print & scan accessories
- Citizen
- CBM-262 II
- User manual
- 85 Pages
CITIZEN CBM-262 II Printer Command Reference
Below you will find brief information for Printer CBM-262 II. This document provides a comprehensive overview of the command reference for the CBM-262 II printer. The information provided helps you understand the various commands and their functions. It details how to use these commands to control various aspects of the printer, including character size, printing modes, and paper handling. This information is essential for integrating the CBM-262 II printer into your systems and applications, allowing you to use its full capabilities.
advertisement
Assistant Bot
Need help? Our chatbot has already read the manual and is ready to assist you. Feel free to ask any questions about the device, but providing details will make the conversation more productive.
CITIZEN
Command Reference
Model: CBM-262 II
Revision: 1.00
Prepared on: 2004.10.04
QP-051-D1
C i t i z e n W a t c h C o . , L t d .
Information & Communication Products Division
Revision
1.00
Date
2004.10.04
Details
First version
Remark
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
2
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] ..............................................................38
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
SHEET
REVISION
A
3
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
4/85
2. Print Control Functions
2-1. Control Code List
Character
ESC E
ESC G
ESC J
ESC L
ESC M
ESC R
ESC S
ESC T
ESC -
ESC 2
ESC 3
ESC =
ESC ?
ESC @
ESC D
HT
LF
FF
CR
CAN
RS
DLE EOT
DLE ENQ
DLE DC4
ESC FF
ESC SP
ESC !
ESC $
ESC %
ESC &
ESC *
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 c c c
PAGE
MODE c c c c c c c c c c
Affect by
GSP c c c c c c c c c c c c c c c c c c c c c c
Line c c c c c c
Setting c
Setting c
Setting c c c
Line Setting c c c c c c c c c c c c c c c c
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
GS M
GS P
GS V
GS W
GS \
GS ^
GS a
GS b
GS *
GS ( A
GS /
GS :
GS B
GS H
GS I
GS L
FS g 2
FS P
FS q
ESC i
ESC m
ESC s
ESC u
ESC v
ESC z
GS !
GS $
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 c c c
PAGE
MODE c c c c c c c c
Line c c c c c c
Setting c c
(Line) c Disabling
(Line) Disabling
ρ
ρ
¯
ρ
ρ
(Line)
ρ
ρ
¯
ρ
ρ c c c c c c c c c c c c c c c c c
(Line) Setting c c c c c c c c
(Line) c c
(Line) Setting c c c c c c c c c c c c c c
Affect by
GSP c c c c c
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
2
2/85
c
= Enabling
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]
HT
9
09
HT
[ASCII]
[Decimal]
[Hexadecimal]
[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]
LF
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
LF
10
0A
[Description] x By specifying the C/R operation set inside the printer, the operations will be as follows:
<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]
FF
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
FF
12
0C
[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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
4
4/85
Returning to printing [CR]
CR
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
CR
13
0D
[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.
Data canceling in PAGE MODE [CAN]
CAN
24
18
CAN
[ASCII]
[Decimal]
[Hexadecimal]
[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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
5
5/85
Journal Tab [RS]
RS
30
1E
RS
[ASCII]
[Decimal]
[Hexadecimal]
[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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
6
6/85
Real-time sending of status [DLE EOT]
DLE EOT
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
DLE
16
10
1<n<4h
EOT
4
04 n n n
[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
1 Unused
2 Status of Pin 3 of Drawer
3 Online/Offline
4 Unused
5 Undefined
6 Undefined
7 Unused
Value
0
Fixed at 0
Fixed at 1
“L”
Online
Fixed at 1
−
−
Fixed at 0
1
“H”
Offline
−
−
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
7
7/85
(2) n = 2: In case of status caused by an offline condition
0
1
2
3
4
5
6
7
Unused
Unused
Lever open
Paper feed by paper feed switch
Unused
Printing stop because of
“paper out” state
Error occurred
Unused
Value
0 1
Lever closed Lever opened
Not in paper feed state In paper feed state
Fixed at 1
Fixed at 0
Fixed at 1
No stopping Stopping
Not occurred
Fixed at 0
Occurred
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
Bit
0 Unused
1 Unused
2 Undefined
Function
3 Auto Cutter error occurred
4 Unused
5 Unrecoverable error occurred
6 Auto recovery error occurred
7 Unused
0
−
No error
No error
No error
Value
1
Fixed at 0
Fixed at 1
−
Error occurred
Fixed at 1
Error occurred
Error occurred
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<2) can be used to recover from the error.
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
0
6
7
4
5
1
2
3
Unused
Function
Unused
Detecting Journal Near-end
Detecting Receipt Near-end
Unused
Detecting Journal paper-end
Detecting Receipt paper-end
Unused
Value
0 1
Paper found
Paper found
Fixed at 0
Fixed at 1
Paper not found
Paper not found
Paper found
Fixed at 1
Paper not found
Paper found Paper not found
Fixed at 0
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
8
8/85
Real-time request of status [DLE ENQ] n n n
DLE ENQ
[ASCII]
[Decimal]
[Hexadecimal]
DLE
16
10
[Parameter] 1<n<2h
ENQ
5
05
[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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
9
9/85
Real-time output of specified pulse [DLE DC4]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
DLE DC4
16
10
20
14 n n n n=1 m=0, 1 1<t<8 m m m t t t
[Description] x A signal specified with “t” is output to the connector pin specified with “m”.
DLE DC4 m
0
1
Connector Pin
Pin No. 2 of Drawer Kick-Out Connector
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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
C
10
10/85
Data printing in PAGE MODE [ESC FF]
ESC
27
1B
FF
12
0C
ESC FF
[ASCII]
[Decimal]
[Hexadecimal]
[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
27
1B
0<n<FFh
SP
32
20 n n n
ESC SP
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
11
11/85
Collectively specifying a printing mode [ESC !]
[ ASCII]
[Decimal]
[Hexadecimal ]
[Parameter]
ESC
27
1B
0<n<FFh
33
21
!
n n n
[Description] x Printing mode is specified with each bit.
ESC !
Bit
0
1
2
3
4
5
6
7
Function
Character Font A (12∗24)
Character Font B (9∗24)
Undefined
Undefined
Canceling emphasis
Specifying emphasis
Canceling double height
Specifying double height
Canceling double width
Specifying double width
Undefined
Canceling underline
Specifying underline
Value
Hexadecimal number
Decimal number
00
01
00
08
00
10
00
20
−
00
80
0
1
0
8
0
16
0
32
−
0
128 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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
12
12/85
Specifying the absolute printing position [ESC $]
ESC
27
1B
0<n1<FFh
$
36
24 n1 n1 n1
0<n2<FFh n2 n2 n2
ESC $
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[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]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
0<n<FFh
%
37
25 n n 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.
ESC %
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
13
13/85
Defining the download characters [ESC &]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC &
ESC
27
1B
&
38
26 s s s n n n m m m a a a s=3h (Font A, B) 2h (Font C)
0<n<7Eh
In case of Font A,
In case of Font B,
In case of Font C,
20h<m<7Eh
0<a<0Ch
0<a<09h
0<a<08h
0<p1...pn<255 p1…pn p1…pn p1…pn
[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)
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
14
14/85
Defining characters to blank pages [ESC ( ]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC (
ESC (
27
1B
40
28 s s s a a a n n n m m m s = 3h (Font A, B) 2h (Font C)
80h<n<FFh 80h<m<FFh
In case of Font A,
In case of Font B,
In case of Font C, a = 0Ch a = 0Ch a = 08h
0≦p1...pn≦255 p1…pn p1…pn p1…pn
[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.
a=8h a=ch s=2h s=3h P1 P2 P3 P4 P5 P6 P7 P8 ………
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
15
15/85
Specifying the bit image mode [ESC ∗]
ESC
27
1B
∗
42
2A m m m n1 n1 n1 n2 n2 n2 dn dn dn m=0, 1, 20h 21h 0<n1<FFh 0<n2<03h
ESC *
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[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:
20
21
0
1 m(h) Mode
8-dots single density
8-dots double density
24 dots single density
24 dots double density
Vertical direction
Horizontal direction
No. of Dots Dot Density Dot Density
8 67DPI 101DPI
8 67DPI 203DPI
24
24
203DPI
203DPI
101DPI
203DPI x
When the value of m is out of the above range, the data after n1 is processed as normal printing data.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
16
16/85
Specifying/Canceling an underline [ESC −]
ESC
27
1B
−
45
2D n n n
0<n<02h, 30h<n<32h
ESC −
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
17
17/85
Specifying the 1/6-inch line feed rate [ESC 2]
ESC 2
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
2
50
32
[Description] x Sets the line feed rate per line to 1/6-inch.
Setting the line feed rate [ESC 3]
ESC
27
1B
0h<n<FFh
3
51
33 n n n
ESC 3
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[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)
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
18
18/85
Data input control [ESC =]
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
[Parameter] 0<n<FF
=
61
3D n n 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
Value
Hexadecimal number
Decimal
number
0
4
5
6
7
1
2
3
Printer Valid
Printer Invalid
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
00
01
0
1
ESC = 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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
19
19/85
Deleting the download characters [ESC ?]
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
[Parameter] 20<n< 7E
?
63
3F n n 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]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
@
64
40
[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.
ESC ?
ESC @
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
20
20/85
Setting the horizontal tab format [ESC D]
NULL
NULL
NULL
ESC D
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
D
68
44
[Parameter] 1<n<255 0<k<32 n1…nK n1…nK n1…nK
[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.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
21
21/85
Specifying/Canceling emphasis printing [ESC E]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
0<n<FFh
E
69
45 n n 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.
ESC E
Specifying/Canceling double strike printing [ESC G]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
0<n<FFh
G
71
47 n n 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.
ESC G
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
22
22/85
Printing and feeding paper [ESC J]
ESC
27
1B
0<n<FFh
J
74
4A n n n
ESC J
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[Description] x Prints data stored in the print buffer and feeds paper by [n×basic calculation pitch] inches.
x After execution of this command, the beginning of line becomes the next print start position.
x This command does not affect the line feed width defined by ESC 2 or ESC 3.
x The basic calculation pitch is set by GS P.
x If the calculation leaves a fraction, the fraction will be corrected with the minimum pitch of the 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 vertical basic calculation pitch y is used.
If the start point specified by ESC T is top right or bottom left, the horizontal basic calculation pitch x is used.
If the [n×basic calculation pitch] is specified to the value greater than 40 inches, it will be trimmed to 40 inches.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
23
23/85
Selecting PAGE MODE [ESC L]
ESC
27
1B
L
76
4C
ESC L
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[Description] x Switches from STANDARD MODE to PAGE MODE.
This command becomes effective only if it is entered at the head of line.
x With FF code or ESC S, ESC @, STANDARD MODE is restored.
x The starting position of character mapping will be the point specified by ESC T within the print area specified by ESC W.
x The settings by the following commands, which have separate settings for PAGE MODE and STANDARD
MODE, are changed to the settings for PAGE MODE.
Spacing setting: ESC SP, FS S
Line feed setting: ESC 2, ESC 3 x In PAGE MODE, the following commands are effective only for setting.
(1) ESC V Specifying/Canceling 90°-turned characters.
(2) ESC a
(3) ESC {
Alignment of characters
Specifying/Canceling inverted characters
(4) GS L
(5) GS W
Setting the left margin
Setting the print area x In PAGE MODE, the following commands are ignored.
(1) GS (A Execution of test printing x In PAGE MODE, the following commands become invalid.
(1) FS p Printing of NV bit image
(2) FS q
(3) FS g 1
(4) GS v 0
Definition of NV bit image
Data writing to user NV memory
Printing of raster bit image
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
24
24/85
Selection of character fonts [ESC M]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
M
77
4D n=0,1,48,49 n n n
[Description] x
Selects character fonts.
n
0, 48
1, 49
Selecting Font a (12 x 24).
Selecting Font B (9 x 24).
Function
Selecting the international character set [ESC R]
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
[Parameter] 0<n<0Dh
R
82
52 n n n
[Description] x Selects the international character set.
x Default is Japan.
n=8h n(HEX) International character set
0A
0B
0C
0D
8
9
6
7
2
3
0
1
4
5
40
U.S.A.
France
Germany
U.K.
Denmark
Sweden
Italy
Spain
Japan
Norway
Denmark 2
Spain 2
Latin America
Korea
Legal
ESC M
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
25
25/85
ESC R
Selecting STANDARD MODE [ESC S]
ESC
27
1B
S
83
53
ESC S
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[Description] x Switches from PAGE MODE to STANDARD MODE.
x This command is effective only if it is entered in PAGE MODE.
x Data mapped in PAGE MODE are cleared.
x The print area defined by ESC W is initialized.
x The settings by the following commands, which have separate settings for PAGE MODE and STANDARD
MODE, are changed to the settings for PAGE MODE.
Spacing setting: ESC SP, FS S
Line feed setting: ESC 2, ESC 3 x In STANDARD MODE, the following commands are effective only for setting.
(1) ESC W Setting of print area in PAGE MODE
(2) ESC T Selection of printing direction of characters in PAGE MODE x In STANDARD MODE, the following commands are ignored.
(1) GS $ Specifying the absolute position of characters in vertical direction in PAGE MODE
(2) GS \ Specifying the relative position of characters in vertical direction in PAGE MODE x When the printer is powered ON or reset, or when ESC @ is executed, STANDARD MODE is selected.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
26
26/85
Selection of character printing direction in PAGE MODE [ESC T]
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
T
84
54 n n n
[Parameter] 0<n<3h, 30h<n<33h
[Description] x Selects the printing direction and starting point of characters in PAGE MODE.
n
0,30h
1,31h
2,32h
3,33h
Printing direction
Left to right
Bottom to top
Right to left
Top to bottom
Starting point
Top left
(A in the figure)
Bottom left
(B in the figure)
Bottom right
(C in the figure)
Top right
(D in the figure)
A → → →
P rint A rea
In STANDARD MODE, only internal settings of printer will be executed with this command.
The character mapping position will be the starting point within the print area specified by ESC W.
The basic calculation pitch “x” or “y” used by the following commands varies with starting point.
(1) If the starting point is top left or bottom right, x x
Commands using “x”: ESC SP, ESC $, ESC \
Commands using “y”: ESC 3, ESC J, GS $, GS \
(2) If the starting point is top right or bottom left, x x
Commands using “x”: ESC 3, ESC J, GS $, GS \
Commands using “y”: ESC SP, ESC $, ESC \ x
Default is n=0.
ESC T
C →
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
27
27/85
Specifying/Canceling 90°-right-turned characters [ESC V]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
V
86
56 n n n
0<n<1h, 30h<n<31h
[Description] x Specifying/Canceling 90°-right-turned characters.
x Depending on the “n” value, specifying or canceling is performed as follows:
ESC V n
0, 30
1, 31
Function
Canceling 90°-right-turned characters
Specifying 90°-right-turned characters.
x
In PAGE MODE, settings with this command are not affected.
x
In PAGE MODE, this command executes only the internal flagging of printer without affecting printing in
PAGE MODE.
x
Default is n=0.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
28
28/85
Setting the print area in PAGE MODE [ESC W]
ESC W
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
W xL xH yL yH dxL dxH dyL dyH
87 xL xH yL yH dxL dxH dyL dyH
57 xL xH yL yH dxL dxH dyL dyH
[Parameter]
[Description]
0< xL, xH, yL, yH, dxL, dxH, dyL, dyH <FFh x Sets the location and the size of print area.
Horizontal start point = xL + xH × 256 / Vertical start point = yL + yH × 256
Horizontal length = d xL + dxH × 256 / Vertical Length = dyL + dyH × 256 x In STANDARD MODE, this command executes only the internal flagging of printer without affecting printing in STANDARD MODE.
x If the horizontal start point or the vertical start point is out of the printable area, this command will be canceled and the next data will be processed as normal printing data.
x If the horizontal length or the vertical length is 0, this command will be canceled and the next data will be processed as normal printing data.
x The character mapping position will be the start point specified by ESC T in the print area.
If the (horizontal start point + horizontal length) exceeds the horizontal printable area, the (horizontal printable area−horizontal start point) will be taken as a horizontal length.
If the (vertical start point + vertical length) exceeds the vertical printable area, the (vertical printable area− vertical start point) will be taken as a vertical length.
x The basic calculation pitch is calculated by GS P. Once a print area is set, the print area 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 the mechanism (203DPI) and the remainder will be omitted. The horizontal start point and the horizontal length are calculated with the basic calculation pitch x. The vertical start point and the vertical length are calculated with the basic calculation pitch y.
x The print area, where the horizontal start point is X, the vertical start point is Y, the horizontal length is Dx and the vertical length is Dy, will be as shown in the figure below.
x The horizontal length of printable area for this printer is 432/203 inches and the vertical length is 938/203 inches.
(X, Y) Dx Paper
Dy Printable
(X + Dx -1, Y + Dy - 1)
The default is xL=xH=yL=yH=0
dxL=B0, dxH=01, dyL=AA, dyH=03
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
29
29/85
Specifying the relative printing position [ESC \]
ESC
27
1B
\
92
5C n1 n1 n1
0<n1<FFh 0<n2<FFh n2 n2 n2
ESC \
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[Description] x Specifies the next print start position in a relative position with respect to the current position.
The relative amount (moving amount) is specified as 16 bit, the [specified 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 will be corrected with the minimum pitch of the mechanism
(203DPI) and the remainder will be omitted. If the next print start position is specified to the right of the current position, specify it as positive (plus). If it is to the left, specify it as negative (minus).
In case the position is moved to the left by N pitches, specify it as: n1 + n2 × 256=65536 −N x If a position is specified outside the print area, the specification will be ignored.
x In STANDARD MODE, the basic calculation pitch x is used.
x In PAGE MODE,
(1)If the start point specified by ESC T is top left or bottom left, the horizontal basic calculation pitch x is used.
(2)If the start point specified by ESC T is top right or bottom right, the vertical basic calculation pitch y is used.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
30
30/85
Aligning the characters [ESC a]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B a
97
61 n n n
0<n<2h, 30h<n<32h
[Description] x Print data are aligned in the specified position.
x Depending on the “n” value, alignment is carried out as follows:
ESC a n
0, 30
1, 31
2, 31
Left end alignment
Centering
Right end alignment
Function x This command is valid only at the head of line.
x In PAGE MODE, this command executes only the internal flagging of printer without affecting printing in
PAGE MODE.
Alignment is performed on the portions skipped by HT,ESC $ or ESC \, too.
x Default is n=0.
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
31
31/85
Selection of printing sheet [ESC c 0]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
1<n<3h c
99
63
0
48
30
[Description] x Selects the printing sheet (Receipt/Journal).
x Each bit of “n” means as follows: n n n
ESC c 0
Bit
6
7
4
5
2
3
0
1
Function
Journal
Receipt
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
0
Invalid
Invalid
Value
1
Valid
Valid x If the same printing date to Receipt/Journal are cleared with ESC z and both Receipt and Journal are selected for the printing sheet, Receipt will become effective only for the printing sheet in PAGE MODE and printing to Journal will not be executed.
x This command is valid only at the head of line.
x If “n” is defined out of the area, this command will be ignored.
x If the printing sheet in PAGE MODE is selected, this command will be executed prior to ESC L. Once PAGE
MODE is selected, this command becomes invalid.
x Default is n=3.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
32
32/85
Selection of setting sheet [ESC c 1]
ESC
27
1B
1<n<3h c
99
63
1
49
31 n n n
ESC c 1
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[Description] x Selects the sheet for setting line feed with ESC 2 or ESC 3 and setting the print area with GS L or GS
W.
x Each bit of “n” means as follows:
Bit
6
7
4
5
2
3
0
1
Function
Journal
Receipt
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
0
Invalid
Invalid
Value
1
Valid
Valid x If “n” is defined out of the area, this command will be ignored.
x Default is n=3.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
33
33/85
Selecting the paper end sensor valid for paper end signal output [ESC c 3]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
1<n<FFh c
99
63
3
51
33 n n n
[Description] x Selects a sensor with which output to PE signal of Centronics parallel I/F is performed.
x Each bit of “n” means as follows:
Bit Function
0
1
Journal near-end sensor disabled
Journal near-end sensor enabled
Receipt near-end sensor disabled
Receipt near-end sensor enabled
Journal end sensor disabled
2
Journal end sensor enabled
Receipt end sensor disabled
3
Receipt end sensor enabled
4 Undefined
5 Undefined
6 Undefined
7 Undefined
Value
Hexadecimal
00
01
00
02
00
04
00
08
Decimal
0
1
0
2
0
4
0
8
ESC c 3 x
Multiple paper end sensors can be selected simultaneously. If multiple sensors are set as enabled, paper end signal will be output when any sensor detects paper end.
x
This command is valid only for Parallel Interface specification. This command is ignored on Serial Interface specification.
x
When this command is executed, sensors are switched. Therefore, depending on receiving buffer conditions, the command receiving and the paper end sensor are selected.
x
If either of bit 0 and bit 1 is 1, a roll paper near-end sensor will be selected as a paper end sensor effective for paper end signal output.
x
If either of bit 2 and bit 3 is 1, a roll paper near-end sensor will be selected as a paper end sensor effective for paper end signal output.
x
If all sensors are set as disabled, the paper end signal will always output the “paper-in” status.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
34
34/85
Selecting the paper sensor valid for print stop [ESC c 4]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
1<n<FFh c
99
63
4
52
34 n n n
[Description] x Selects the paper end sensor which helps to stop printing when a paper-out condition occurs.
ESC c 4
Bit
0
1
4
5
2
3
6
7
Journal near-end sensor disabled
Journal near-end sensor disabled
Receipt near-end sensor disabled
Receipt near-end sensor disabled
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
Function
Value
Hexadecimal
00
01
00
02
Decimal
0
1
0
2 x Printing stops after printing of the current line and paper feed are completed.
x If printing stops, it will become offline.
x If either of bit 0 and bit 1 is 1, a roll paper near-end sensor will be selected as a paper end sensor effective for print stop.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
35
35/85
Enabling/Disabling the panel switches [ESC c 5]
5
53
35 n n n
ESC c 5
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
[Parameter] 0<n<FFh c
99
63
[Description] x Switches enabling/disabling the paper feed switch on the operation panel.
x “n” is valid for the lowest bit “n0”.
n=<∗∗∗∗∗∗∗0>B enables the paper feed switch.
n=<∗∗∗∗∗∗∗1>B disables the paper feed switch.
x While a cover is opened, the switch is invalid regardless of specification with this command.
x During the wait state of macro execution, the switch is valid regardless of specification with this command.
x Default is n0=0.
Printing and feeding paper by “n” lines [ESC d]
ESC d
[ASCCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
[Parameter] 0<n<FFh d n
100
64 n n
[Description] x Prints date in the print buffer and feeds paper by “n” lines.
x Specified lines do not remain.
x The next print start position is set at the head of line.
x If the maximum feeding amount exceeds 40 inches, paper feeding by 40 inches will be executed.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
36
36/85
Generating the specified pulses [ESC p]
ESC p
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B p
112
70 m m m n1 n1 n1 n2 n2 n2
[Parameter] 0<m<1, 30h<m<31h 0<n1<FFh 0<n2<FFh
[Description] x The signals specified by “n1” and “n2” are output to the drawer kick-out connector pin specified by “m”.
m
0. 30h
1. 31h
Connector pin
Drawer kick-out connector pin No. 2
Drawer kick-out connector pin No. 5 x The ON time is n1 × 2ms, and the OFF time is n2 × 2ms.
In case of n2<n1, the OFF time is n1 × 2ms for execution.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
37
37/85
Full cut [ESC i]
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
[Parameter] 1<n<FFh
105 i
69
[Description] x Executes full cut of Receipt paper.
x This command is effective only at the head of line.
Partial cut [ESC m]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B m
109
6D
[Description] x Executes partial cut of Receipt paper (leaving one area uncut).
x This command is effective only at the head of line.
ESC i
ESC m
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
38
38/85
Selection of printing mode (unprovided) [ESC s] n n n
ESC s
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
0<n<FFh s
115
73
[Description] x Selects a printing mode.
x Each bit of “n” is as follows:
Bit
6
7
4
5
2
3
0
1
Function
Divided current-carrying
Printing speed
Undefined
Undefined
Undefined
Undefined
Undefined
Undefined
0
Block
High speed
Value
1
Chopper
Low speed x Printing speed
At a low speed, paper feed is stopped and current is passed through the head, resulting in improvement of printing quality, especially in high-density bit image such as halftone.
At a high speed, current is passed through the head during paper feeding, resulting in improvement of throughput.
x Divided current-carrying
On this printer, power consumption is reduced in case of high-density printing. Therefore, printing is performed in a maximum of three blocks (divided current-carrying). If the divided current-carrying is specified to Block, high-speed printing will be enabled. Deviation, however, will occur between blocks.
If the divided current-carrying is specified to Chopper, deviation between blocks will not occur and printing quality will be improved. Throughput, however, will be reduced.
Paper feed
Block #1
Block#2
Block#3
Block x
This command is effective only at the head of line.
x
Default is n=0.
Block#1 Block#2 Block#3
Chopper
*On CBM262II, this command doesn’t function.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
39
39/85
Selecting the character code table [ESC t]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B t
116
74
0<n<6h n=FFh n n n
[Description] x Selects the character code table.
x The character code table depending on the value of “n” is as follows: n
3
4
5
6
0
1
2
Character code
PC437 (USA: Standard Europe)
Katakana
PC850 (Multilingual)
PC860 (Portugal)
PC863 (Canada −French)
PC865 (Norway)
PC858
255 Blank page x
The initial value of “n” is n=0 for PC437.
ESC t
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
40
40/85
Status signal of peripheral equipment [ESC u]
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
[Parameter] n=0,1 u
117
75 n n n
[Description] x Sends the current status of drawer kick-out connector pin No.3.
x This command is valid only at Serial I/F.
x The status to be sent is 1 byte and its details are as follows:
Value
Bit
6
7
4
5
2
3
0
1
Function
Level of No.3 pin
Undefined
Undefined
Undefined
Unused
Undefined
Undefined
Undefined
0
“L”
Fixed at 0
1
“H”
ESC u x If the serial protocol is DTR/DSR, before sending a signal, the printer will check with DSR signal that the host is ready for receiving. If the host is not ready for receiving (DSR is LOW), the printer will wait till it becomes ready for receiving (DSR = HIGH).
x If the serial protocol is XON/XOFF, the printer will not check with DSR signal.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
41
41/85
Sending the printer status [ESC v]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B v
118
76
[Description] x Sends the current printer status.
x This command is valid only at Serial I/F.
x The status to be sent is 1 byte and its details are as follows:
ESC v
Bit Function
0 Journal near-end sensor
1 Receipt near-end sensor
2 Journal paper end sensor
3 Receipt paper end sensor
4 Unused
5 Download of ANK
6 Download of bit image
7 Unused
Value
0 1
Paper-in
Paper-in
Paper-out
Paper-out
Paper-in Paper-out
Paper-in Paper-out
Fixed at 0
No download Download enabled
No download Download enabled
Fixed at 0 x If the serial protocol is DTR/DSR, before sending a signal, the printer will check with DSR signal that the host is ready for receiving. If the host is not ready for receiving (DSR is LOW), the printer will wait till it becomes ready for receiving (DSR = HIGH).
x If the serial protocol is XON/XOFF, the printer will not check with DSR signal.
Specifying/Canceling printing the same date to Receipt/Journal [ESC z]
ESC z
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
0<n<FFh z
122
7A n n n
[Description] x Specifies/Cancels printing the same data to Receipt/Journal.
x “n” is valid for the lowest bit “n0”.
n0=0: Cancels printing the same data.
n0=1: Specifies printing the same data.
x This command is effective only at the head of line.
x In PAGE MODE, this command is disabled.
x Unless both Receipt and Journal are selected for the printing sheet, the same printing will not be executed by specification of the same date printing.
x Default is n=0.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
42
42/85
Specifying/Canceling inverted characters [ESC { ]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B 7B
{
123 n n n
[Description] x Specifies/Cancels inverted characters.
x “n” is valid for the lowest bit.
n=0: Cancels inverted characters.
n=1: Specifies inverted characters.
x This command is effective only at the head of line.
x In PAGE MODE, this command executes only the internal flagging of printer.
x This command doesn’t affect printing in PAGE MODE.
x Default is n=0.
Printing Example)
Canceling inverted characters Specifying inverted characters
A B C D E F G
0 1 2 3 4 5 6
6
G
45
EF
23
CD
01
AB
Paper feed direction
ESC {
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
C
43
43/85
Specifying font size [ESC ∼ f]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
ESC
27
1B
∼
126
7E
102
66 f m=0,1 or “0”,“1” n=0,1,2,or “0”, “1”, “2”
[Description] x m= x n=
0: ANK Font
0: 24-dot size Font
1: Reserve
2: 16-dot size Font x Default is 24 dot size Font.
x Fonts of various sizes are selected for printing.
m m m n n n
ESC ∼ f
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
C
44
44/85
Specifying the print density [ESC ∼]
ESC ∼
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
∼
126
7E m m m n n n
[Parameter]
[Description]
0<m<1 x Specifies the print density.
x This command is for maintenance. Users shouldn’t use this command.
If users use this command, it may damage reliability of the product. This command may be subject to change without notice.
x Specifies Receipt/Journal by “m”.
m=0: Specifies the printing density of Receipt.
m=1: Specifies the printing density of Journal.
x Specifies the density by “n”. The specification is on percentage (%). In case of standard, for example, n=100.
The print densities on menu setting correspond to the following “n” values.
Density
1
2
3
4
“n” value (Decimal)
100
110
120
130 x These values may be changed depending on ROM version. Don’t set any value except the 140.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
C
45
45/85
Setting of nonvolatile memory [ESC DEL] n n n
ESC DEL
[ASCII]
[Decimal]
[Hexadecimal]
ESC
27
1B
DEL
127
7F
[Parameter] 0<m<8 0<n<FFh m m m
[Description] x Set the status at power-on to nonvolatile memory.
x This command is for maintenance. Users shouldn’t use this command.
If users use this command, it may damage reliability of the product. This command may be subject to change without notice.
x The settable contents are the same as the menu setting items.
x The setting contents are stored in nonvolatile memory and they are kept even after power is turned OFF.
x Specifies items by “m” and selects contents by “n”.
m
0: Receipt print density
1: Journal print density
2: Cover Open
3: Auto Cutter
4: Auto Loading
5: Receipt Paper Near-end
6: Journal Paper Near-end n
0: Density1
1: Density2
2: Density3
3: Density4
0: Density1
1: Density2
2: Density3
3: Density4
0: Enabling
1: Disabling
0: Enabling
1: Disabling
0: Enabling
1: Disabling
0: Enabling
1: Disabling
0: Enabling
1: Disabling m
7: C/R operation
8: -----------
9: Reset by INIT
10: DSR reset
11: Error hand shake n
0: CR + LF
1: LF
2: Ignoring
0: Enabling
1: Disabling
0: Enabling
1: Disabling
0: BUSY
1: Disabling
Note 1) These values may be changed.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
46
46/85
Writing data into the user NV memory [FS g 1]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter] d1..dk
d1..dk
d1..dk
FS g 1
FS
28
1C g
103
67
1 m
49 m
31 m a1 a2 a3 a4 nL nH a1 a2 a3 a4 nL nH a1 a2 a3 a4 nL nH m=0
0< (a1 + (a2 × 256) + (a3 × 65536) + (a4 + 16777216)) <1023
1< (nL + (nH × 256)) < 1024
32 < d <255 k= (nL + (nH × 256))
[Description] x
Stores data into the user NV memory.
x
“m” is fixed at 0.
x a1, a2, a3, a4 specify the start address for storing data at (a1 + (a2 × 256) + (a3 × 65536) + (a4 + 16777216)).
x nL, nH specify the stored data to (nL + (nH × 256)) bytes.
x
“d” denotes the data to be stored.
x
“User NV memory” refers to a storage area exclusively for character data secured on nonvolatile memory.
In STANDARD MODE, this command is valid only when it is processed at the head of line.
In PAGE MODE, this command is invalid.
x
If this command is sent while a macro is being defined, the macro definition process will be stopped and the execution of this command will be started.
x
If the argument (m), the storage start address (a1, a2, a3, a4) or the number of stored data (nL, nH) is outside the definition area, or in case of “the storage start address (a1, a2, a3, a4) + the number of stored data (nL, nH)>1024”, this command will become invalid and the following data will be processed as normal data.
x
At the time of completion of processing of the stored data (d) outside the definition area, processing by this command will be stopped and the next data will be processed as normal data. At this time, the data which has already been processed will be stored into memory.
x
Data storage processing executes “overwriting”. Therefore, the data which have been already stored into the area for storage processing are erased.
x
If an error occurs during the writing process, the error will be “Memory R/W Error”.
x
The data in the user NV memory can be read by FS g.
x
The data in the user NV memory is not initialized by execution of ESC @, execution of FS q, resetting or power OFF.
[Caution] x
Frequent use of the “writing into the nonvolatile memory” command (FS g1) may destroy memory.
Therefore, the “writing into the nonvolatile memory” command should be used “less than 10 times a day”.
x
In some cases, the printer may become BUSY while data is being written into the nonvolatile memory with this command.
While the printer is BUSY, it will stop receiving data and sending data from the host (including real-time commands) will be prohibited.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
C
47
47/85
Reading data to the user NV memory [FS g 2]
FS g 2
[ASCII]
[Decimal]
[Hexadecimal]
FS g
28 103
1C 67
2 m
50 m
32 m a1 a2 a3 a4 nL nH a1 a2 a3 a4 nL nH a1 a2 a3 a4 nL nH
[Parameter] m=0
0< (a1 + (a2 × 256) + (a3 × 65536) + (a4 + 16777216) <1023
1< (nL + (nH× 256)) < 80
[Description] x
Reads data to the user NV memory.
x
“m” is fixed at 0.
x a1, a2, a3, a4 specify the start address for sending data at (a1 + (a2 × 256) + (a3 × 65536) + (a4 + 16777216)).
x nL, nH specify the number of data to be sent to (nL + (nH × 256)) bytes.
x
“User NV memory” refers to a storage area exclusively for character data secured on nonvolatile memory.
x
If the argument (m), the storage start address (a1, a2, a3, a4) or the number of stored data (nL, nH) is outside the definition area, or in case of “the storage start address (a1, a2, a3, a4) + the number of stored data (nL, nH)>1024”, this command will become invalid and the following data will be processed as normal data.
x
After the preparation for sending data is completed, the following processes will be executed.
(1) The printer state will change from READY to BUSY. If the state has already been set to BUSY, the printer will do nothing.
(2) “Header + Data + NUL” will be sent.
(3) The printer state will change BUSY from to READY. At this time, if the printer state has already been set to BUSY due to other causes, the printer will do nothing.
x
The configuration of “Header + Data + NUL” is as follows:
Header: Hexadecimal number = 5F/Decimal number = 95 (1 byte)
Data: Data in User NV memory “ (nL + (nH × 256)) bytes”
NUL: Hexadecimal number = 00H/Decimal number =0 (1 byte) x
When the DTR/DSR control is selected, all codes are sent continuously after checking that the host can receive data when the header is sent. If the host cannot receive data, the printer will wait until the host is ready for receiving data.
x
When the XON/XOFF control is selected, all codes are sent continuously without checking whether the host can receive data or not. Data that has been sent is always continuous except for XOFF code.
x
When parallel interface is used, the size of buffer for data to be sent (buffer that stores all data to be sent except for ASB status) is 99 bytes. Data exceeding 99 bytes will be discarded.
x
Data in the user NV memory can be written by using FS g1.
x
Depending on the state of receiving buffer, there may be a delay between receiving this command and storing data.
x
After the header is sent, all data will be sent without checking whether the host can receive the data or not.
Therefore, when this command is used, more than (the number of sending data + 2) bytes of space should be secured in the receiving buffer of the host in order not to fail to receive data.
x
While data is being sent, real-time commands (DLE extension command) are ignored. Even if ASB function is selected as enabled, ASB status will not be sent while data are being sent.
Accordingly, it is not possible to know any change in printer state by its status during data sending. Users should pay attention to this.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
48
48/85
Printing the NV bit images [FS p]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
FS
28
1C p
112
70
1<n<255
0<m<3, 48<m<51 n n n m m m
[Description] x Prints the NV bit images “n” with a mode “m”.
FS p m
0, 48
1, 49
2, 50
3, 51
Mode
Dot density in vertical direction
180 DPI NORMAL MODE
DOUBLE WIDTH
MODE
DOUBLE HEIGHT
MODE
QUADRUPLE
SIZE MODE
180 DPI
90 DPI
90 DPI
Dot density in horizontal density
180 DPI
90 DPI
180 DPI
90 DPI x
“n” denotes the NV bit image number.
x
“m” denotes the NV bit image mode.
x
The NV bit image refers to a bit image defined by FS q in the nonvolatile memory and printed by FS p.
x
If the specified NV bit image “n” is undefined, this command will be invalid.
x
In STANDARD MODE, this command is valid only when there is no data in the print buffer.
x
In PAGE MODE, this command is invalid.
x
This command doesn’t affect any printing modes (i.e. emphasis, double strike, underline, character size, reversed characters, 90°-right turned characters) except inverted printing x
When the print area set by GS L and GS W is not enough for one vertical line of NV bit image, the line alone is dealt with as mentioned below. One vertical line of NV bit image is 1 dot in NORMAL MODE (m=0, 48) and DOUBLE HEIGHT WIDTH (m=2, 50) and 2 dots in DOUBLE WIDTH MODE (m=1, 49) and QUADRUPLE
SIZE MODE (m=3,51).
(1) The print are is extended to the right side within the limit of print area so that one vertical line of NV bit image can be printed.
(2) When a sufficient print area cannot be maintained even after executing (1), the print area is extended to the left side.
(The left margin is reduced.) x
If the size of bit image exceeding the limit of print area is specified, the data within the limit of print area will be printed, but the data outside the print area will not be printed.
x
In NORMAL MODE and DOUBLE WIDTH MODE, regardless of the line feed amount set by ESC 2 and
ESC 3, a paper feed of (the height of NV bit image “n”) dots is executed, while in DOUBLE HEIGHT MODE and QUADRUPLE SIZE MODE, a paper feed of (the height of NV bit image “n” ×2) dots is executed.
x
After completion of this bit image printing, the head of line will be the next printing position and normal data process will be executed.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
49
49/85
Defining the NV bit images [FS q]
[ASCII]
[Decimal]
[Hexadecimal]
FS
28
1C q
113
71
FS q n [xL xH yL yH d1...dk]1... [xL xH yL yH d1...dk]n n [xL xH yL yH d1...dk]1... [xL xH yL yH d1...dk]n n [xL xH yL yH d1...dk]1... [xL xH yL yH d1...dk]n
[Parameter] 1<n<255
0< xL<255
0<xH<3
0<yL<255
0<yH<1 on condition that 1< (xL + xH × 256) < 1023 on condition that 1< (yL + yH × 256) <288
0<d<255 k= (xL +xH × 256) × (yL + yH × 256) × 8
Total definition area =2M bits (256k bytes)
[Description] x Defines the specified NV bit image.
x xL and xH denote the horizontal size of one NV bit image as (xL + xH × 256) × 8dots.
x yL and yH denote the vertical size of one NV bit image as (xL + xH × 256) × 8dots.
x All the previously defined NV bit images are deleted by this command. Therefore, it is not possible to redefine any one of the previously defined multiple data. To make it possible, all data must be resent.
x During the time between the process start by this command and the completion of hardware reset, any mechanical operation (such as initializing a printer head position by opening a cover and paper feeding with switch) cannot be executed.
x NV bit image refers to a bit image that is defined by FS q in the nonvolatile memory and printed by FS p.
x This command is valid only when it is specified at the head of line where STANDARD MODE was selected, x This command is valid only when it is specified at the head of line where PAGE MODE was selected x This command becomes valid after 7 bytes of <FS∼yH> are processed as normal values.
x If the number of data exceeding the remaining capacity of the area defined by (xL, xH, yL, yH) is specified, this command will be invalid.
x “d” denotes a definition data. Bits which correspond to dots to be printed are represented as 1, and bits which correspond to dots not to be printed are represented as 0.
x “n” pieces of NV bit images are defined starting from the number 01H in ascending order. Therefore, the first data group[xL xH yL yH d1...dk]becomes NV bit image No.01H. This number is identical to the NV bit image number specified by FS p.
x The definition data of one NV bit image consists of [xL xH yL yH d1...dk]. Therefore, if only one NV bit image is defined, n=1; the data group [xL xH yL yH d1...dk] will be processed once, and ([Data: (xL + xH × 256) × (yL + yH × 256) × 8 + [header:4]] bytes of nonvolatile memory is used.
x The maximum definition area of this printer is 2M bits (256K bytes). Multiple NV bit image can be defined, but data of bit images of which total size (bit image data + header) exceeds 2M bits (256K bytes) cannot be defined.
x The printer state will be BUSY just before writing data into the nonvolatile memory.
x While this command is being executed, processes of ABS status sending and status detection will not be executed even if ABS function is specified.
x If this command is sent while a macro is still being defined, the macro definition process will be stopped and the process by this command will start.
x Once NV bit images are defined, the NV bit images are not initialized by execution of ESC @, resetting or
Power OFF.
x This command executes only definition of NV bit image, and it doesn’t start printing. Printing of NV bit image will be executed by FS p.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
C
50
50/85
Setting the printing density [FS I]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
FS
28
1C
I
73
49 n n n
0h < n < 6h, 30h < n < 36h
[Description] x Adjusts the printing density.
n=0h, 30h
-
3
n=1h, 31h
n=2h, 32h
n=3h, 33h
n=4h, 34h
n=5h, 35h
n=6h, 36h
-2
-1
0
+1
+2
+3
(Light)
↑
↑
(Standard)
↓
↓
(Dark)
70%
80%
90%
100%
110%
120%
130% x Settings except the above values are ignored.
x Settings are effective by line in STANDARD MODE and by page in PAGE MODE.
x Setting for the range from 100% to 130% are the same as setting by the “ESC~mn” command.
FS I
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
51
51/85
Specification the character size [GS !]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
33
!
31 n n n
[Parameter] 0 < n < FFh on condition that 1 < magnification in vertical direction < 8,
1 < magnification in horizontal direction < 8
[Description] x
Specifies (character sizes magnification in vertical direction/magnification in horizontal direction).
GS !
Bit
4
5
2
3
6
7
0
1
Function
Specification of magnification in vertical direction
Specification of magnification in horizontal direction
Value
Hexadecimal number
Decimal number
Refer to the following
Table 1
Refer to the following
Table 2
Table 1
(magnification in horizontal direction)
Hex.
30
40
50
60
70
00
10
20
Decimal
0
16
32
48
64
80
96
112
Magnification
1x (Standard)
2x (Double width)
3x
4x
5x
6x
7x
8x
Hex.
03
04
05
06
07
00
01
02
Table 2
(magnification in horizontal direction)
Decimal
5
6
3
4
7
0
1
2
Magnification
1x (Standard)
2x (Double width)
3x
4x
5x
6x
7x
8x x
This command works for all characters except for HRI characters.
x
In STANDARD MODE, the vertical direction means a paper feed direction and the horizontal direction means a direction perpendicular to paper feed direction. Therefore, if 90°-right-turned characters are specified, the relationship between vertical and horizontal directions will be reversed.
x
In PAGE MODE, the vertical direction means the top-bottom direction of each character and the horizontal direction means the side-to side direction of each character.
x
If characters which have different vertical magnifications are contained in the same line, base lines of characters will be aligned.
x
Double width and double height of character can be specified/canceled by ESC !, too. But the last processed command becomes effective.
x
Default is n=o.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
52
52/85
Specifying the absolute vertical position of characters in PAGE MODE [GS $]
GS $
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
$
36
24 n1 n1 n1
[Parameter] 0 < n1 < FFh 0 < n2 < FFh
2
2
2
[Description] x Specifies the vertical position of characters at the data mapping start position in PAGE MODE as an absolute value measured from the start point. The vertical position will be at a point of [16 bit specification value × basic calculation pitch] inches from the start point.
x “n1” is the low 8 bits of 16 bit data and “n2” is the high 8 bits.
x This command is ignored except when PAGE MODE is selected.
x Any specification of absolute vertical position out of the specified print area is ignored.
x The horizontal position of character at the start point is not moved.
x The start point as a base is specified by ESC T. Depending on the start point, this command executes as follows:
(1) If the start point is specified at top left or bottom right, this command will specify the absolute position of paper feed direction (vertical direction of characters). At this time, vertical basic calculation pitch (y) is used.
(2) If the start point is specified at top right or bottom left, this command will specify the absolute position in the direction perpendicular to paper feed direction (vertical direction of characters). At this time, horizontal basic calculation pitch (x) is used.
x The basic calculation pitch is a value set by GS P.
x If the calculation leaves a fraction, the fraction will be corrected with the minimum pitch of the mechanism
(203DPI) and the remainder will be omitted.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
53
53/85
Defining the download bit image [GS ∗]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
GS *
GS
29
1D
∗
42
2A n1 n1 n1 n2 n2 n2 dn dn dn
0 < n1 < FFh 0 < n2 < 30h n1×n2 < 600h
Defines the download bit images of dots specified by n1 and n2.
[Description] x
Defines the down load bit images of dots specified by n1 and n2.
x
The number of dots in horizontal direction is n1 × 8 and the number of dots in vertical direction is n2 × 8.
x
“dn” indicates bit image data.
x
Once a download bit image is defined, it remains effective until redefinition, execution of ESC @, execution of ESC & or power OFF is conducted.
x
A download character and a download bit image cannot be defined simultaneously. If this command is executed, download characters are cleared.
x
The bit image data is defined as follows: d1 dy+1 dy×2+1 d2
MSB dy dy×2 dx×y×8
LSB
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
54
54/85
Execution of test printing [GS ( ]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
(
40
28
A
65
41 pL pL pL pH pH pH n n n m m m
[Parameter] (pL + (pH × 256)) = 2
0 < n < 2, 48 < n < 50
1 < m < 3, 49 < n < 51
(pL=2, pH=0)
[Description] x
Executes the specified test printing.
x pL, pH set the number of subsequent parameters to (pL + (pH × 256))bytes.
x
“n” specifies the paper for test printing shown in the following table.
n
0, 48
1, 49
2, 50
Kind of paper
Basic sheet (Roll paper)
Roll paper
GS ( x
“m” specifies the kind of test printing shown in the following table.
m Kind of test printing
1, 49
2, 50
Hexadecimal dump
Printer status printing
3, 51 Rolling pattern printing x In STANDARD MODE, this command is valid only when it is processed at the head of line.
x In PAGE MODE, this command is ignored.
x If this command is processed while a macro is being defined, the macro definition process will be stopped and the execution of this command will be started.
x After completion of test printing, the printer will reset its hardware. Therefore, download characters, download bit images and macros will be made undefined, reception buffer/print buffer will be cleared and various settings will be returned to the initial values. At this time, DIP switches will be read again.
x Paper cutting is executed at the end of test printing.
x The printer state will be BUSY if process by this command is started.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
55
55/85
Printing the download bit image [GS / ]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
47
/
2F m m m
[Parameter]
[Description]
0<m<3h, 30h<m<33h x Prints the download bit image in a mode specified by “m”.
x Modes selected by “m” are as shown in the table below.
GS / m
0, 30h
1, 31h
2, 32h
3, 33h
Mode
NORMAL MODE
DOUBLE WIDTH MODE
DOUBLE HEIGHT MODE
QUADRUPLE SIZE MODE
Dot density in vertical direction Dot density in horizontal direction
203DPI
203DPI
101DPI
101DPI
203DPI
101DPI
203DPI
101DPI x If data exist in the print buffer, this command will be ignored.
x If a download bit image has not been defined, this command is ignored.
x The download bit image for the portion exceeding the length of one line is not printed.
x If the print area width specified by GS L, GS W is less than the minimum horizontal width of bit image mode (1 dot in NORMAL MODE and DOUBLE HEIGHT MODE, 2 dots in DOUBLE WIDTH MODE and
QUADRUPLE SIZE MODE), the following processes will be executed only for the line.
(1) The print area is extended to the right within the printable area so that it becomes equal to the minimum horizontal width of bit image mode
(2) If sufficient print area cannot be secured after execution of the process mentioned in (1), the print area will be extended to the left. (The left margin will be reduced.)
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
56
56/85
Starting/Ending the macro definition [GS : ]
GS
29
1D
58
:
3A
GS :
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[Description] x Specifies starting/ending of macro definition.
x Macro is a single instruction into which existing printer commands and printing data are compiled. By using macro, repeated printings and commands which are used frequently can be executed efficiently.
x ESC @ can be included into the definition content.
x The maximum data available for macro definition is 2048 bytes.
x Even during execution of macro definition, printing can be executed.
Specifying/Canceling the black/white reverse printing [GS B]
GS B
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
B
66
42 n n n
[Parameter]
[Description]
0<n<255 x Specifying/Canceling the black/white reverse printing.
x “n” is effective for the lowest bit “n0”. “n0” is as follows: n = <*******0>: Canceling (Cancels the black/white reverse printing.) n = <*******1>: Specifying (Specifies the black/white reverse printing.) x The black/white reverse printing works on internal characters and download characters.
x The black/white reverse printing also works on the right space of character set by ESC SP.
x This command doesn’t affect bit image, download bit image, bar code, HRI characters and the parts skipped by HT, ESC $, ESC \.
x This command doesn’t affect the parts skipped by ESC \.
x This command doesn’t affect the space between lines.
x Specification of black/white reverse printing takes precedence over specification of underline. Therefore, even if underline has been specified, underline is not be attached to black/white inverted characters. The state of underline setting, however, remains unchanged.
x Default is n=0.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
57
57/85
Selection of printing position of HRI characters [GS H]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
GS
29
1D
H
72
48 n n n
0<n<3, 30h<n<33h
[Description] x Selects the printing position of HRI characters for printing bar codes.
x “n” is as follow: n
0, 48h
1, 49h
2, 50h
3, 51h
Printing position
No printing
Above the bar code
Below the bar code
Above and below the bar code (both) x HRI characters are printed in the font specified by GS “ f ”.
x Default is n=0.
GS H
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
58
58/85
Sending the printer ID [GS I]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
GS
29
1D
1<n<3, 49<n<51, 65<n<69
[Function] x Sends the specified printer ID.
n
1, 49
2, 50
3, 51
65
66
67
68
I
73
49
Model ID
Type ID
ROM version n n n
Type of printer ID
Firmware version
Maker name
Model name
Serial number
Specification
********
Refer to Table “Type ID”.
As per ROM version
As per firmware version
CBM
CBM262-2
As per serial number
Value (Hex.)
60
GS I
Table “Type ID”
Bit
0
Function
Not equipped for 2 byte code
1
Equipped for 2 byte code
Equipped with auto cutter
2
Direct connection of customer display
Without MICR reader 3
4
5
6
7
Unused
Undefined
Undefined
Unused
Hex.
00
01
02
00
00
00
−
−
00
Decimal
0
1
2
0
0
0
−
−
0 x
When Serial Interface is being used, under DTR/DSR control, the printer sends the printer ID after checking that the host is ready to receive.
If the hose is not ready to receive, the printer will wait until the host becomes ready to receive. Under
XON/XOFF control, the printer sends the printer ID without checking whether the host is ready to receive or not.
x
This command is executed at the time of mapping of the receive buffer. Therefore, depending on the state of receive buffer, a delay between command receiving and printer ID sending may occur.
x
By specifying (1<n<3, 49<n<51), one byte of printer ID will be sent.
x
If ASB is enabled by GS a, it is necessary to discriminate between the printer ID due to this command and the status due to ASB. For the discriminating method.
x
By specifying (65<n<69), the following printer information will be sent.
Header : Hexadecimal=5FH/Decimal=95 (1 byte)
Data : Printer information
NUL : Hexadecimal : 00H/Decimal = 0 (1 byte)
After data processing is completed, the following process will be executed.
(1) The process of (READY BUSY) is executed. At this time, if the printer state has already been BUSY, the printer will do nothing.
(2) The sending process of “Header + Data +NULL” is executed.
(3) The process of (BUSY READY) is executed. At this time, if the printer state has already been set to
BUSY due to other causes, the printer will do nothing.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
59
59/85
Setting the left margin [GS L]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
L
76
4C n1 n2 n1 n2 n1 n2
[Parameter] 0<n1<FFh 0<n2<FFh
[Description] x Sets the left margin specified by n1 and n2.
x The left margin is “(n1+n2 × 256) × basic calculation pitch”.
Printable area
GS L
Left margin Print area width x
This command is effective only when it is entered at the head of line.
x
In PAGE MODE, this command executes only the internal flagging operation of printer and doesn’t affect printing in PAGE MODE.
x
The maximum settable left margin is equal to the print area in horizontal direction. If the left margin is specified to the value greater than the maximum value, it will be set to the maximum value.
x
The left margin can be set separately for RECEIPT and JOURNAL. But if printing of the same data to
RECEIPT and JOURNAL is specified, the left margin set for JOURNAL will be ignored and the left margin set for RECEIPT will be effective.
x
Default is n1=0, n2=0.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
60
60/85
Specifying/Canceling reduced character printing [GS M]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
M
77
4D n n n
[Parameter] 0<n<FFh, on condition that bit 1, 2, 4, 5, 6 should be 0.
[Description]
Bit
6
7
4
5
2
3
0
1
Function
Reduced character printing in vertical direction
Unused
Unused
Undefined
Unused
Unused
Unused
Undefined
0
Cancel
0
0
Value
1
Specify
Fixed
Fixed
0
0
0
Fixed
Fixed
Fixed
GS M x This command is effective for all characters except for HRI characters.
x In STANDARD MODE, characters are reduced in the paper feed direction.
x In PAGE MODE, regardless of print direction selected by ESC T, characters are reduced in the vertical direction of each character.
x If reduced character printing is specified, underline will not be attached.
x Default is n=0.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
61
61/85
Setting the basic calculation pitch [GS P]
GS P
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
P
80
50 x y x y x y
[Parameter]
[Description]
0<x<FFh 0<y<FFh x Sets the horizontal basic calculation pitch to (1/x) inches and the vertical basic calculation pitch to (1/y) inches.
In case of x=0, the horizontal basic calculation pitch is reverted to the initial value.
In case of y=0, the vertical basic calculation pitch is reverted to the initial value.
x The horizontal direction refers to the direction perpendicular to paper feed direction. The vertical direction refers to paper feed direction.
x In STANDARD MODE, the following parameters are used regardless of the orientation of character (e.g.
inverted or 90°-turned),.
Command using x : ESC SP, ESC $, ESC \, FS S, GS L, GS W
Command using y : ESC 3, ESC J x In PAGE MODE, depending on the orientation of character, the following parameters are used.
In case the start point specified by ESC T is set at top left or bottom right (characters are mapped in the direction perpendicular to paper feed)
Command using x : ESC SP, ESC $, ESC W, ESC \, FS S
Command using y : ESC 3, ESC J, ESC W, GS $, GS \
In case the start point specified by ESC T is set at bottom left or top right ( characters are mapped in the paper feed direction)
Command using x : ESC 3, ESC J, ESC W, GS $, GS \
Command using y : ESC SP, ESC $, ESC W, ESC \, FS S x Default is x=203, y=203.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
62
62/85
Paper cutting [GS V]
[ASCII]
[Decimal]
[Hexadecimal]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
GS
29
1D
V
86
56
V
86
56 m m m m n m n m n
− (1)
− (2)
[Parameter]
(1) m=0,1 m=48,49
(2) m=65, 66 0h<n<255
[Description] x Executes the specified paper cutting.
GS V n1
0, 48
1, 49
65
66
Function
Full cut
Partial cut (leaving one portion uncut)
Paper feed by (cut position + n × basic calculation pitch) and full cut
Paper feed by (cut position + n × basic calculation pitch) and partial cut (leaving one portion uncut)
In case of (1) x
In case of m=0, full cut is executed.
x
In case of m=1, partial cut is execute.
In case of (2)
In case of n=0, after paper is fed to the cut position, paper is cut.
In case of n≠0, after paper is fed to the position exceeding the cut position by (n2× basic calculation pitch) inches, paper is cut.
x
The basic calculation pitch is set by GS P.
x
The paper feed amount is calculated with the vertical basic calculation pitch (y). If the calculation leaves a fraction, the fraction will be corrected with the minimum pitch of the mechanism and the remainder will be omitted.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
63
63/85
Setting the print area width [GS W]
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
GS
29
1D
W
87
57 n1 n2 n1 n2 n1 n2
0<n1<FFh 0<n2<FFh
[Description] x Sets the print area width specified by n1 and n2.
x The print area width will be “(n1 + n2 × 256) ×basic calculation pitch” inches.
Printable area
GS W
Left margin Print area width x
In STANDARD MODE, this command is effective only when it is entered at the head of line.
x
In PAGE MODE, this command executes only the internal flagging operation of printer.
x
This command doesn’t affect printing in PAGE MODE.
x
If the value exceeding the printable area for one line is specified, the entire area except the left margin will be set as the printable area width.
x
The print area width is set to the setting sheet selected as enabled by ESC c.
x
The basic calculation pitch is set by GS P. Once the print area width is set, it will not be changed, even if the basic calculation pitch is changed by GS P.
x
The print area width is calculated with the horizontal basic calculation pitch (x) defined by GS P. If the calculation leaves a fraction, the fraction will be corrected with the minimum pitch of the mechanism and the remainder will be omitted.
x
In case the first character is mapped at the head of line, if the print area width is smaller than the horizontal width of the character to be mapped (including the right spacing), the following processes will be executed only for that line.
(1) The print area is extended to the right within the printable area so that the character is accommodated in the area.
Printable area
Left margin Print area width
Extended to the right
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
64
64/85
(2) If sufficient area cannot be provided after the process of (1), the right space will be reduced.
Printable area
A
(2) The left margin is reduced
( 1) Extension to the right
Print area width
(3) If sufficient area cannot be provided after the process of (2), the left space will be reduced.
x In case of bit image mapping, if the print area width is smaller than the minimum horizontal width of bit image, the following processes will be executed only for that line.
(1)The print area is extended to the right within the printable area so that it becomes equal to the minimum horizontal width of bit image.
(2)If sufficient area cannot be provide after the process of (1), the print area will be extended to the left.
x
(The left margin will be reduced.) x The minimum width of each bit image for the process of extending the print area width is as follows: x Bit image (ESC *) : Single density = 2 dots/ Double density= 1 dot
Download bit image (GS /) : DOUBLE WIDTH MODE, QUADRUPLE
MODE = 2 dots x
NORMAL MODE, DOUBLE HEIGHT MODE = 1 dot
NV bit image mode (FS p) : DOUBLE WIDTH MODE, QUADRUPLE
MODE = 2 dots x
NORMAL MODE, DOUBLE HEIGHT MODE = 1 dot
Raster image mode (GS v0) : DOUBLE WIDTH MODE,
QUADRUPLE MODE = 2 dots
NORMAL MODE, DOUBLE HEIGHT MODE = 1 dot x The print area width can be set separately for RECEIPT and JOURNAL. If printing of the same data to
RECEIPT and JOURNAL is specified, the print area width set for JOURNAL will be ignored and the print area width set for RECEIPT will be effective.
x Default is nL=B0h, nH=1h.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
65
65/85
Specifying the relative vertical position of character in PAGE MODE [GS \ ]
GS
29
1D
\
92
5C n1 n2 n1 n2 n1 n2
0<n1<FFh 0<n2<FFh
GS \
[ASCII]
[Decimal]
[Hexadecimal]
[Parameter]
[Description] x Specifies the relative vertical position of character in the data mapping start position in PAGE MODE by the relative position with respect to the current position. The next data start position will be set at the position of
(16 bit specification value × basic calculation pitch) inches away from the current position.
x Except for PAGE MODE, this command is ignored.
x The basic calculation pitch is a value set by GS P.
x n1 is the low 8 bits of 16 bits and n2 is the high 8 bits.
x If the calculation leaves a fraction, the fraction will be corrected with the minimum pitch (203DPI) of the mechanism and the remainder will be omitted.
x If a new position is specified to a position located beneath the current position with respect to a character, it should be specified as positive (+). If a new position is specified to a position located above the current position, it should be specified as negative (–).
x The negative setting value is calculated with the following expression if a position is moved upward by N pitches, for example.
n1 + n2 × 256 = 65536 –N x The following processes are executed depending on the start point of ESC T.
If the start point is specified at top left or bottom right, the relative position will be set to the paper feed direction.
At this time, the vertical basic calculation pitch (y) is used.
If the start point is specified at top right or bottom left, the relative position will be set to the direction perpendicular to the paper feed direction.
At this time, the horizontal basic calculation pitch (x) is used.
x The basic calculation pitch is set by GS P.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
66
66/85
Execution of macro [GS ^ ]
GS ^
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
^
94
5E n1 n2 n3 n1 n2 n3 n1 n2 n3
[Parameter]
[Description]
0<n1<FFh 0<n2<FFh 0<n3<1 x Executes the defined macro.
x Contents of n1, n2 and n3 are as follows: x With the following specification, printing and commands which are frequently used can be executed efficiently.
n1 : The number of times of macro execution n2 :Waiting time on macro execution x Waiting time of 100msec is given per one execution.
n3 : Macro execution mode n3 = 0 : Specifies continuous execution.
Macro is executed n1 times continuously at the time interval specified by n2.
n3=1 : Specifies execution by the paper feed switch.
After waiting for the time specified by n2, ERROR LED flashes till the paper feed switch for RECEIPT or
JOURNAL is pressed.
If the switch is pressed, the macro will be executed. This action is repeated n1 times.
If this command is entered during macro definition, the macro definition will be suspended. At this time, the defined content will be cleared.
If the macro is undefined or n1=0, the printer will do nothing.
In case of n3=1, paper feed cannot be executed by the paper feed switch.
During the waiting time of macro, ERROR LED is flashing.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
67
67/85
Enabling/Disabling Automatic Status Back [GS a ]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D a
97
61 n n n
[Parameter]
[Description]
0<n<FFh x Selects the status to be addressed by Automatic Status Back (ASB : Automatic Status Back)
Bit Status to be addressed by ASB
0
1
2
3
Status of Drawer kick-out connector No. 3 pin = Disabled
Status of Drawer kick-out connector No. 3 pin = Enabled
Online/Offline status = Disabled
Online/Offline status = Enabled
Error status =Disabled
Error status =Enabled
Continuous paper sensor = Disabled
Continuous paper sensor =Enabled
4 Undefined
5 Undefined
6 Undefined
7 Undefined
−
−
−
−
Hex.
Value
Decimal
00
04
00
08
00
01
00
02
0
8
0
4
0
2
0
1
−
−
−
−
GS a x
If any one of statuses is enabled, the status at the time of execution of this command will be sent. After that, the status will be sent each time an enabled status changes.
x
If all statuses are disabled, the ASB function will be disabled.
x
The 4 byte statuses shown in the tables below are sent without checking that the host is ready to receive or busy.
x
The 4 byte statuses are continuous except XOFF code.
The 1st byte (Printer information)
Bit Status
0 Unused
1 Unused
2
3
Status of Drawer kick-out connector No. 3 pin = “L”
Status of Drawer kick-out connector No. 3 pin = “H”
Online status
Offline status
4 Unused
Lever closed
5
Lever opened
6
Not in the state of paper feeding by the paper feed switch
In the state of paper feeding by the paper feed switch
7 Unused
20
00
40
00
00
04
00
08
10
00
Hex.
Value
Decimal
00 0
00 0
16
0
0
8
0
4
32
0
64
0
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
68
68/85
The 2nd byte (Error occurrence information)
Bit Status
4
5
0
1
2
3
6
7
Undefined
Undefined
Undefined
No occurrence of auto cutter error
Occurrence of auto cutter error
Unused
No occurrence of unrecoverable error
Occurrence of unrecoverable error
No occurrence of auto recovery error
Occurrence of auto recovery error
Unused
The 3rd byte
(Paper sensor information For single)
Bit Status
0, 1
2, 3
6
7
4
5
Roll paper near-end = Paper-in
Roll paper near-end = Paper-out
Roll paper end = Paper-in
Roll paper end = Paper-out
Unused
Undefined
Undefined
Unused
(Paper sensor information For two stations)
Bit Status
0
1
2
3
6
7
4
5
Journal near-end = Paper-in
Journal near-end = Paper-out
Receipt near-end =Paper-in
Receipt near-end =Paper-out
Journal end =Paper-in
Journal end =Paper-out
Receipt end =Paper-in
Receipt end =Paper-out
Unused
Undefined
Undefined
Unused
Hex.
00
00
00
00
08
00
00
20
00
40
00
Value
Decimal
0
0
8
0
0
0
0
32
0
64
0
Hex.
00
–
–
00
00
03
00
0C
Value
Decimal
–
0
0
–
0
3
0
12
Hex.
00
08
00
–
–
00
00
01
00
02
00
04
Value
Decimal
0
–
0
8
–
0
0
3
0
1
0
4
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
69
69/85
The 4th byte (Paper sensor information) x x
Bit
6
7
4
5
2
3
0
1
Undefined
Undefined
Undefined
Undefined
Unused
Undefined
Undefined
Unused
Status
Hex.
00
–
–
00
–
–
–
–
Value
Decimal
–
0
0
–
–
–
–
–
Default: When error hand shake of menu setting is BUSY, n=0
Default: When error hand shake of menu setting is INVALID, n=2
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
70
70/85
Specifying/Canceling smoothing [GS b ]
GS b
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D b
98
62 n n n
[Parameter]
[Description]
0<n<255 x Specifies/Cancels smoothing.
In case of n = <*******0> B, smoothing is canceled.
In case of n = <*******1> B, smoothing is set.
x “n” is effective only for the lowest bit.
x Smoothing works on internal characters, download characters and external characters.
x Even if smoothing is specified, when either of vertical magnification and horizontal magnification is one time, smoothing will not be executed.
x Default is n=0.
Selection of font for HRI characters [GS f ]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D f
102
66 n n n
[Parameter]
[Description]
0<n<1, 48<n<49 x Selects the font for HRI characters in printing bar code.
x “n” is as follows: n
0, 48h
1, 49h
Font A
Font B
Font x HRI characters are printed at the position specified by GS H.
x Default is n=0.
GS f
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
71
71/85
Selection of height of bar code [GS h ]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D h
104
68 n n n
[Parameter]
[Description]
1<n<255 x Specifies the height of bar code.
x “n” denotes the number of dots in vertical direction.
x Default is n=162.
GS h
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
72
72/85
Printing the bar code [GS k ]
[ASCII]
[Decimal]
[Hexadecimal]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D
GS
29
1D k
107
6B k
107
6B n Ds NULL ..... (1) n Ds NULL ..... (1) n Ds NULL ..... (1) n S Ds ...... (2) n S Ds ...... (2) n S Ds ...... (2)
[Parameter]
[Description]
In case of (1), 0<n<6. In case of (2), 41h<n<49h x Selects the bar code system and prints it.
x The next printing start position will be the head of line.
x “n” is as follows:
In case of (1) n Bar code system
0 UPC-A
1 UPC-E
2 JAN13(EAN13)
3 JAN8(EAN8)
4 CODE39
5 ITF
6 CODEBAR
11 < s < 12
11 < s < 12
12 < s < 13
7 < s < 8
1 < s
1 < s
1 < s
Definition range of “s”
(Even number)
Definition range of D
48 < D < 57
48 < D < 57
48 < D < 57
48 < D < 57
48 < D < 57, 65 < D < 90
32, 36, 37, 43, 45, 46, 47
30h < D < 39h
30h < D < 39h, 41h < D < 5Ah
24h, 2Bh, 2Dh, 2Eh, 2Fh,
3Ah
In case of (2) n Bar code system
65 UPC-A
66 UPC-E
67 JAN13(EAN13)
68 JAN8(EAN8)
69 CODE39
70 ITF
71 CODEBAR
72 CODE93
73 CODE128
Definition range of “s”
11 < s < 12
11 < s < 12
12 < s < 13
7h < s < 8h
1 < s < 255
1 < s < 255 (Even number)
1 < s < 255
1 < s < 255
2 < s < 255
Definition range of D
48 < D < 57
48 < D < 57
48 < D < 57
48 < D < 57
48 < D < 57,65 < D < 90
32,36,37,43,45,46,47
48h < D < 57
48 < D < 57,65 < D < 68
36,43,45,46,47,58
0 < D < 127
0 < D < 127
GS k
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
73
73/85
In case of (1) :
This command ends with a NULL code.
For UPC-A or UPC-E, when 12 bytes of bar code data is entered, the bar code will be printed and the subsequent data will be handled as normal data.
For JAN 13, when 13 bytes of bar code data is entered, the bar code will be printed and the subsequent data will be handled as normal data.
For JAN 8, when 8 bytes of bar code data is entered, the bar code will be printed and the subsequent data will be handled as normal data.
The number of data of ITF bar code must be an even number. If the number of data be an odd number, the last datum will be ignored.
In case of (2) : x x
S denotes the number of data and “n” bytes of subsequent data will be processed as bar code data.
If S is out of the definition range, the command process will be aborted and the subsequent data will be handled as normal data.
In case of STANDARD MODE x If D is out of the definition range, only paper feed will be executed and the subsequent data will be handled as normal data.
If the horizontal width of bar code exceeds the print area of one line, only paper feed will be executed without printing of bar code.
Paper is fed by the amount of height of bar code (including HRI characters when HRI character printing is specified) regardless of the line feed amount set by ESC 3, ESC 2.
If data exists in the print buffer, this command will be ignored.
If the character code Dn is an unprintable character, the subsequent data will be handled as normal data.
x After printing the bar code, the next printing start position will be set at the head of line.
This command doesn’t affect the printing modes (emphasis printing, double printing, underline, character size) except for inverted printing.
In case of PAGE MODE
Only mapping of bar code is executed and printing is not executed. After completion of mapping of bar code, the dot next to the last data of bar code will be the next data mapping start position.
If D is out of the definition range, the command process will be aborted and the subsequent data will be handled as normal data.
At this time, the data mapping start position is not moved.
If the horizontal width of bar code exceeds the print area, the data mapping start will be moved to the left end outside the print area without printing of bar code.
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
B
74
74/85
Sending of status [GS r]
GS r
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D r
114
72 n n n
[Parameter]
[Description]
1<n<2h, 49<n<50 x Sends the specified status.
n=1, 49 : Sends the paper sensor status.
n=2, 50 : Sends the drawer kick-out connector status.
x When Serial Interface is used,
In case of DTR/DSR control ............. The printer sends the status after checking that the host is ready to receive.
If the host isn’t ready to receive, the printer will wait until it becomes ready to receive.
In case of XON/XOFF control .......... The printer sends the status without checking whether the host is ready to receive or not.
Paper sensor status (n=1, 49)
(1) For Single
Bit
0, 1
2, 3
6
7
4
5
Status
Roll paper near-end = Paper-in
Roll paper near-end = Paper-out
Roll paper end = Paper-in
Roll paper end = Paper-out
Unused
Undefined
Undefined
Unused
Hex.
00
–
–
00
00
03
00
(0C)
Value
Decimal
–
0
0
–
0
3
0
(12)
(2) For two stations
Bit
0
1
2
3
4
5
6
7
Status
Journal near-end = Paper-in
Journal near-end = Paper-out
Receipt near-end = Paper-in
Receipt near-end = Paper-out
Journal end = Paper-in
Journal end = Paper-out
Receipt end = Paper-in
Receipt end = Paper-out
Unused
Undefined
Undefined
Unused
08
00
–
–
02
00
04
00
00
Hex.
00
01
00
Value
Decimal
0
1
0
–
–
8
0
4
0
3
0
0
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
75
75/85
Drawer kick-out connector status (n=2, 50)
Bit Printer status
0
1
2
3
4
5
6
7
Status of Drawer kick-out connector No.3 pin “L”
Status of Drawer kick-out connector No.3 pin “H”
Undefined
Undefined
Undefined
Unused
Undefined
Undefined
Unused
−
−
00
−
−
−
00
Hex.
00
01
Value
Decimal
0
0
−
−
0
−
−
−
0
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
76
76/85
Printing of raster bit image [GS v]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D v
118
76
0
48
30 m xL xH yL yH d1…dk m xL xH yL yH d1…dk m xL xH yL yH d1…dk
[Parameter] 0<m<3, 30h<m<33h
0<xL<FFh
0<xH<FFh, on condition that 1< (xL + xH × 256) <128
0<yL<FFh
0<yH<8h, on condition that 1< (yL + yH × 256) <4095 k= (xL + xH × 256) × (yL + yH × 256), on condition that k≠0
[Description] x
Prints raster bit images in mode “m”.
GS v m
0, 48
1, 49
2, 50
3, 51
Mode
NORMAL MODE
DOUBLE WIDTH MODE
DOUBLE HEIGHT MODE
QUADRUPLE SIZE MODE
Dot density in vertical direction Dot density in horizontal direction
203dpi 203dpi
203dpi
101dpi
101dpi
101dpi
203dpi
101dpi x xL, xH specify the number of data in horizontal direction to (xL + xH × 256) bytes.
x yL, yH specify the number of data in vertical direction to (yL + yH × 256) bytes.
x In STANDARD MODE, this command is effective only when there is no data in the print buffer.
x If the print area width set by GS L, GS W is smaller than the minimum width, the print area only for the line will be extended to the minimum value. The minimum value is 1 dot in NORMAL MODE and DOUBLE
HEIGHT MODE, and 2 dots in DOUBLE WIDTH MODE and QUADRUPLE MODE.
x Data which is out of the print area is read and discarded in units of dot.
x By the horizontal tab setting, the absolute position and relative position specifying, and the left margin setting, the printing start position of raster bit image can be specified arbitrarily. The print start position is a multiple of 8.
x ESC a (Aligning the characters) is effective for the raster bit image.
x If this command is executed during macro definition, the macro definition will be suspended, and the process of this command will be started. At this time, the macro will become undefined.
x “d” denotes a definition data. The bit corresponding to the dot to be printed is 1 and the bit corresponding to the dot not to be printed is 0.
( xL + xH × 256) × 8 dots
1 2 3 ……
……
……
……
……
…… k−2 k−1 k yL + yH × 256 dots
7 6 5 4 3 2 1 0
MSB LSB
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
77
77/85
Selection of bar code width size (magnification) [GS w]
[ASCII]
[Decimal]
[Hexadecimal]
GS
29
1D w
119
77 n n n
[Parameter]
[Description]
2<n<6h x Specifies the horizontal size of bar code.
x “n” denotes the number of dots in horizontal direction of thin bar.
x Default is n=3.
GS w
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
78
78/85
12-7. Position of character
Print mapping position of character (baseline) is as shown in the figure below.
24-3 dots
3 dots
48 Bar code
24x2-6
24-3
3
DOUBLE
HEIGHT
3x2
Bit image
DOUBLE
HEIGHT
Download bit image
Bar code
HRI character
Baseline
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
79
79/85
Index
C
CAN ............................................................................................................................................................. 5
CR ................................................................................................................................................................ 5
D
DLE DC4 ................................................................................................................................................... 10
DLE ENQ..................................................................................................................................................... 9
DLE EOT ..................................................................................................................................................... 7
E
ESC \ ......................................................................................................................................................... 30
ESC -.......................................................................................................................................................... 17
ESC ! .......................................................................................................................................................... 12
ESC $ ......................................................................................................................................................... 13
ESC % ........................................................................................................................................................ 13
ESC & ........................................................................................................................................................ 14
ESC (.......................................................................................................................................................... 15
ESC * ......................................................................................................................................................... 16
ESC ?.......................................................................................................................................................... 20
ESC @......................................................................................................................................................... 20
ESC {.......................................................................................................................................................... 43
ESC ~f........................................................................................................................................................ 44
ESC ~mn.................................................................................................................................................... 45
ESC = ......................................................................................................................................................... 19
ESC 2 ......................................................................................................................................................... 18
ESC 3 ......................................................................................................................................................... 18
ESC a ......................................................................................................................................................... 31
ESC C0....................................................................................................................................................... 32
ESC C1....................................................................................................................................................... 33
ESC C3....................................................................................................................................................... 34
ESC C4....................................................................................................................................................... 35
ESC c5........................................................................................................................................................ 36
ESC d ......................................................................................................................................................... 36
ESC D ........................................................................................................................................................ 21
ESC DEL ................................................................................................................................................... 46
ESC E......................................................................................................................................................... 22
ESC FF ...................................................................................................................................................... 11
ESC G ........................................................................................................................................................ 22
ESC i .......................................................................................................................................................... 38
ESC J ......................................................................................................................................................... 23
ESC L......................................................................................................................................................... 24
ESC m ........................................................................................................................................................ 38
ESC M........................................................................................................................................................ 25
ESC p ......................................................................................................................................................... 37
ESC R......................................................................................................................................................... 25
ESC s ......................................................................................................................................................... 39
ESC S......................................................................................................................................................... 26
ESC SP....................................................................................................................................................... 11
ESC t.......................................................................................................................................................... 40
ESC T......................................................................................................................................................... 27
ESC u ......................................................................................................................................................... 41
ESC v ......................................................................................................................................................... 42
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
80
80/85
ESC V......................................................................................................................................................... 28
ESC W........................................................................................................................................................ 29
ESC z ......................................................................................................................................................... 42
F
FF................................................................................................................................................................. 4
FS g1 .......................................................................................................................................................... 47
FS g2 .......................................................................................................................................................... 48
FS I ............................................................................................................................................................ 51
FS p............................................................................................................................................................ 49
FS q............................................................................................................................................................ 50
G
GS \ ........................................................................................................................................................... 66
GS ! ............................................................................................................................................................ 52
GS $............................................................................................................................................................ 53
GS ( ............................................................................................................................................................ 55
GS *............................................................................................................................................................ 54
GS /............................................................................................................................................................. 56
GS :............................................................................................................................................................. 57
GS ^ ........................................................................................................................................................... 67
GS a............................................................................................................................................................ 68
GS b............................................................................................................................................................ 71
GS B........................................................................................................................................................... 57
GS f ............................................................................................................................................................ 71
GS h ........................................................................................................................................................... 72
GS H........................................................................................................................................................... 58
GS I ............................................................................................................................................................ 59
GS k ........................................................................................................................................................... 73
GS L ........................................................................................................................................................... 60
GS M .......................................................................................................................................................... 61
GS P ........................................................................................................................................................... 62
GS r............................................................................................................................................................ 75
GS v............................................................................................................................................................ 77
GS V........................................................................................................................................................... 63
GS w........................................................................................................................................................... 78
GS W .......................................................................................................................................................... 64
H
HT ................................................................................................................................................................ 4
L
LF................................................................................................................................................................. 4
R
RS................................................................................................................................................................. 6
CITIZEN
TITLE:
PB-32/33
SHEET
REVISION
A
81
81/85
advertisement
Key Features
- Supports various printing modes
- Character size control
- Paper handling options
- Real-time status monitoring
- Defined download characters
- Download bit image support
- User-configurable settings
- Macro definition and execution
- Multiple character fonts
- International character set support
Frequently Answers and Questions
What is the purpose of the 'ESC FF' command?
How do I specify the absolute printing position?
What is the difference between STANDARD MODE and PAGE MODE?
Related manuals
advertisement
Table of contents
- 5 2. Print Control Functions
- 5 2-1. Control Code List
- 8 3. Descriptions of Control Code
- 8 Horizontal Tab [HT]
- 8 Printing and Line Feed [LF]
- 8 Form Feed [FF]
- 9 Returning to printing [CR]
- 9 Data canceling in PAGE MODE [CAN]
- 10 Journal Tab [RS]
- 11 Real-time sending of status [DLE EOT]
- 13 Real-time request of status [DLE ENQ]
- 14 Real-time output of specified pulse [DLE DC4]
- 15 Data printing in PAGE MODE [ESC FF]
- 15 Setting the spacing of characters [ESC SP]
- 16 Collectively specifying a printing mode [ESC !]
- 17 Specifying the absolute printing position [ESC $]
- 17 Specifying/Canceling the download character set [ESC %]
- 18 Defining the download characters [ESC &]
- 19 Defining characters to blank pages [ESC ( ]
- 22 Specifying the 1/6-inch line feed rate [ESC 2]
- 22 Setting the line feed rate [ESC 3]
- 23 Data input control [ESC =]
- 24 Deleting the download characters [ESC ?]
- 24 Initializing the printer [ESC @]
- 25 Setting the horizontal tab format [ESC D]
- 26 Specifying/Canceling emphasis printing [ESC E]
- 26 Specifying/Canceling double strike printing [ESC G]
- 27 Printing and feeding paper [ESC J]
- 28 Selecting PAGE MODE [ESC L]
- 29 Selection of character fonts [ESC M]
- 29 Selecting the international character set [ESC R]
- 30 Selecting STANDARD MODE [ESC S]
- 31 Selection of character printing direction in PAGE MODE [ESC T]
- 32 Specifying/Canceling 90°-right-turned characters [ESC V]
- 33 Setting the print area in PAGE MODE [ESC W]
- 34 Specifying the relative printing position [ESC ¥]
- 35 Aligning the characters [ESC a]
- 36 Selection of printing sheet [ESC c 0]
- 37 Selection of setting sheet [ESC c 1]
- 38 Selecting the paper end sensor valid for paper end signal output [ESC c 3]
- 39 Selecting the paper sensor valid for print stop [ESC c 4]
- 40 Enabling/Disabling the panel switches [ESC c 5]
- 40 Printing and feeding paper by “n” lines [ESC d]
- 41 Generating the specified pulses [ESC p]
- 42 Full cut [ESC i]
- 42 Partial cut [ESC m]
- 43 Selection of printing mode (unprovided) [ESC s]
- 44 Selecting the character code table [ESC t]
- 45 Status signal of peripheral equipment [ESC u]
- 46 Sending the printer status [ESC v]
- 46 Specifying/Canceling printing the same date to Receipt/Journal [ESC z]
- 47 Specifying/Canceling inverted characters [ESC { ]
- 48 ∼ f]
- 50 Setting of nonvolatile memory [ESC DEL]
- 51 Writing data into the user NV memory [FS g 1]
- 52 Reading data to the user NV memory [FS g 2]
- 53 Printing the NV bit images [FS p]
- 54 Defining the NV bit images [FS q]
- 55 Setting the printing density [FS I]
- 56 Specification the character size [GS !]
- 57 Specifying the absolute vertical position of characters in PAGE MODE [GS $]
- 60 Printing the download bit image [GS / ]
- 61 Starting/Ending the macro definition [GS : ]
- 61 Specifying/Canceling the black/white reverse printing [GS B]
- 62 Selection of printing position of HRI characters [GS H]
- 63 Sending the printer ID [GS I]
- 64 Setting the left margin [GS L]
- 65 Specifying/Canceling reduced character printing [GS M]
- 66 Setting the basic calculation pitch [GS P]
- 67 Paper cutting [GS V]
- 68 Setting the print area width [GS W]
- 70 Specifying the relative vertical position of character in PAGE MODE [GS ¥ ]
- 71 Execution of macro [GS ^ ]
- 72 Enabling/Disabling Automatic Status Back [GS a ]
- 75 Specifying/Canceling smoothing [GS b ]
- 75 Selection of font for HRI characters [GS f ]
- 76 Selection of height of bar code [GS h ]
- 77 Printing the bar code [GS k ]
- 79 Sending of status [GS r]
- 81 Printing of raster bit image [GS v]
- 82 Selection of bar code width size (magnification) [GS w]
- 83 12-7. Position of character
- 84 Index