CITIZEN QP-051-D1 Command Reference Model: CBM-262 II Revision: 1.00 Prepared on: 2004.10.04 C i t i z e n W a t c h C o . , L t d . Information & Communication Products Division...
Page 2
Revision Date Details Remark 1.00 2004.10.04 First version TITLE: SHEET CITIZEN REVISION PB-32/33 2/85...
Page 3
Table of contents 2. Print Control Functions........................1 2-1. Control Code List ........................1 3. Descriptions of Control Code ......................4 ∗ − ° “ ” TITLE: SHEET CITIZEN REVISION PB-32/33 3/85...
Page 4
∼ ∼ ∗ 12-7. Position of character ........................79 Index..............................80 TITLE: SHEET CITIZEN REVISION PB-32/33 4/85...
Selection of character printing direction in PAGE MODE Setting Specifying/Canceling 90 -right-turned characters ESC V Setting ESC W Setting the print area in PAGE MODE Setting ESC \ Specifying the relative printing position ESC a Aligning the characters Line Setting TITLE: SHEET CITIZEN REVISION PB-32/33 1/85...
Page 6
Selection of height of the bar code GS k Printing the bar code GS r Sending of status GS v 0 Printing of raster bit image GS w Selection of horizontal size (magnification) of bar code TITLE: SHEET CITIZEN REVISION PB-32/33 2/85...
= 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) TITLE: SHEET CITIZEN REVISION PB-32/33 3/85...
[Hexadecimal] [Parameter] [Description] Executes a batch printout of the data mapped in the print area and returns to STANDARD MODE. All data is erased after printout. This command is effective only in PAGE MODE. TITLE: SHEET CITIZEN REVISION PB-32/33 4/85...
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. This command is effective only in PAGE MODE. TITLE: SHEET CITIZEN REVISION PB-32/33 5/85...
Page 10
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). If data are entered in PAGE MODE, this command will become invalid. TITLE: SHEET CITIZEN REVISION PB-32/33 6/85...
Page 11
Function Unused Fixed at 0 Unused Fixed at 1 Status of Pin 3 of Drawer “L” “H” Online/Offline Online Offline Unused Fixed at 1 Undefined − − Undefined − − Unused Fixed at 0 TITLE: SHEET CITIZEN REVISION PB-32/33 7/85...
Page 12
Paper not found Detecting Receipt Near-end Paper found Paper not found Unused Fixed at 1 Detecting Journal paper-end Paper found Paper not found Detecting Receipt paper-end Paper found Paper not found Unused Fixed at 0 TITLE: SHEET CITIZEN REVISION PB-32/33 8/85...
Page 13
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.) This command cannot be interleaved into the code string of another command consisting of 2 bytes or more codes. TITLE: SHEET CITIZEN REVISION PB-32/33 9/85...
Page 14
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. This command will be processed as it is received. In specification of serial interface, this command is executed even in off-line, reception buffer full and error conditions. TITLE: SHEET CITIZEN REVISION PB-32/33 10/85...
Page 15
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. TITLE: SHEET CITIZEN REVISION PB-32/33 11/85...
The character size can be specified also by GS !, but the last processed command will become effective. Printing of characters with different sizes such as double-size characters and normal-size characters is possible. The initial value is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 12/85...
Page 17
Only the lowest bit is valid for “n”. If the download character set is canceled, the internal character set will be automatically specified. Download characters and download bit images (GS∗) cannot be defined simultaneously. The initial value is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 13/85...
Once download characters are defined, they remain valid until redefinition, execution of ESC “@” and GS “∗” or power OFF is performed. It is possible to check with the ESC “v” command whether download is being performed. (Only in case of serial I/F) TITLE: SHEET CITIZEN REVISION PB-32/33 14/85...
Page 19
The rest of pattern on the right side is filled with space. By specifying a blank page with ESC t 255, printing is performed. The alignment of data is as follows. a=8h a=ch s=2h s=3h P1 P2 P3 P4 P5 P6 P7 P8 TITLE: SHEET CITIZEN REVISION PB-32/33 15/85...
Page 20
8-dots double density 24 dots single density 203DPI 101DPI 24 dots double density 203DPI 203DPI When the value of m is out of the above range, the data after n1 is processed as normal printing data. TITLE: SHEET CITIZEN REVISION PB-32/33 16/85...
Page 21
The width of underline is a specified width regardless of character size. The underline can be specified also by ESC !, but the last processed command will become effective. The initial value is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 17/85...
Page 22
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. The initial value is n=22h and approximately 1/6 inches (4.25mm) TITLE: SHEET CITIZEN REVISION PB-32/33 18/85...
Page 23
When the printer has not been selected, the printer abandons all received data until it is selected by this command. Even when the printer has not been selected, it may become a BUSY state through any printer operation. The initial value is n=1. TITLE: SHEET CITIZEN REVISION PB-32/33 19/85...
Clears data stored in the print buffer and initializes various settings. Macro definitions are not cleared. Data in the receiving buffer are maintained. NV bit image definitions are maintained. User NV memory data are maintained. TITLE: SHEET CITIZEN REVISION PB-32/33 20/85...
Page 25
ESC “D”NULL clears all the set tab positions. The horizontal tab (HT) command after clearing is ignored. Default is Font A and positions at eight-character intervals (9th, 17th, 25th, 33rd,…“n”th columns) at the right spacing =0. TITLE: SHEET CITIZEN REVISION PB-32/33 21/85...
Page 26
“n” is valid for the lowest bit (n0). Control by the lowest bit is as follows: n=0: Canceling double strike printing. n=1: Specifying double strike printing. With this printer, double-strike printing and emphasis printing provide completely the same result. TITLE: SHEET CITIZEN REVISION PB-32/33 22/85...
Page 27
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. TITLE: SHEET CITIZEN REVISION PB-32/33 23/85...
Page 28
(1) FS Printing of NV bit image (2) FS q Definition of NV bit image (3) FS g 1 Data writing to user NV memory (4) GS v 0 Printing of raster bit image TITLE: SHEET CITIZEN REVISION PB-32/33 24/85...
Page 29
[Parameter] 0<n<0Dh [Description] Selects the international character set. Default is Japan. n=8h n(HEX) International character set U.S.A. France Germany U.K. Denmark Sweden Italy Spain Japan Norway Denmark 2 Spain 2 Latin America Korea Legal TITLE: SHEET CITIZEN REVISION PB-32/33 25/85...
Page 30
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 When the printer is powered ON or reset, or when ESC @ is executed, STANDARD MODE is selected. TITLE: SHEET CITIZEN REVISION PB-32/33 26/85...
Page 31
(2) If the starting point is top right or bottom left, Commands using “x”: ESC 3, ESC J, GS $, GS \ Commands using “y”: ESC SP, ESC $, ESC \ Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 27/85...
Specifying 90°-right-turned characters. In PAGE MODE, settings with this command are not affected. In PAGE MODE, this command executes only the internal flagging of printer without affecting printing in PAGE MODE. Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 28/85...
Page 33
The horizontal length of printable area for this printer is 432/203 inches and the vertical length is 938/203 inches. (X, Y) Paper Printable (X + Dx -1, Y + Dy - 1) The default is xL=xH=yL=yH=0 dxL=B0, dxH=01, dyL=AA, dyH=03 TITLE: SHEET CITIZEN REVISION PB-32/33 29/85...
Page 34
(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. TITLE: SHEET CITIZEN REVISION PB-32/33 30/85...
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. Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 31/85...
Page 36
If “n” is defined out of the area, this command will be ignored. 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. Default is n=3. TITLE: SHEET CITIZEN REVISION PB-32/33 32/85...
Page 37
Each bit of “n” means as follows: Value Function Journal Invalid Valid Receipt Invalid Valid Undefined Undefined Undefined Undefined Undefined Undefined If “n” is defined out of the area, this command will be ignored. Default is n=3. TITLE: SHEET CITIZEN REVISION PB-32/33 33/85...
Page 38
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. If all sensors are set as disabled, the paper end signal will always output the “paper-in” status. TITLE: SHEET CITIZEN REVISION PB-32/33 34/85...
Page 39
If printing stops, it will become offline. 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. TITLE: SHEET CITIZEN REVISION PB-32/33 35/85...
Page 40
Prints date in the print buffer and feeds paper by “n” lines. Specified lines do not remain. The next print start position is set at the head of line. If the maximum feeding amount exceeds 40 inches, paper feeding by 40 inches will be executed. TITLE: SHEET CITIZEN REVISION PB-32/33 36/85...
Page 41
Drawer kick-out connector pin No. 5 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. TITLE: SHEET CITIZEN REVISION PB-32/33 37/85...
Page 42
This command is effective only at the head of line. Partial cut [ESC m] ESC m [ASCII] [Decimal] [Hexadecimal] [Parameter] [Description] Executes partial cut of Receipt paper (leaving one area uncut). This command is effective only at the head of line. TITLE: SHEET CITIZEN REVISION PB-32/33 38/85...
Page 43
Throughput, however, will be reduced. Block #1 Block#1 Block#2 Block#3 Paper feed Block#2 Block#3 Block Chopper This command is effective only at the head of line. Default is n=0. *On CBM262II, this command doesn’t function. TITLE: SHEET CITIZEN REVISION PB-32/33 39/85...
The character code table depending on the value of “n” is as follows: Character code PC437 (USA: Standard Europe) Katakana PC850 (Multilingual) PC860 (Portugal) PC863 (Canada − French) PC865 (Norway) PC858 Blank page The initial value of “n” is n=0 for PC437. TITLE: SHEET CITIZEN REVISION PB-32/33 40/85...
Page 45
If the host is not ready for receiving (DSR is LOW), the printer will wait till it becomes ready for receiving (DSR = HIGH). If the serial protocol is XON/XOFF, the printer will not check with DSR signal. TITLE: SHEET CITIZEN REVISION PB-32/33 41/85...
Page 46
In PAGE MODE, this command is disabled. 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. Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 42/85...
Page 47
This command doesn’t affect printing in PAGE MODE. 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 Paper feed direction TITLE: SHEET CITIZEN REVISION PB-32/33 43/85...
Page 48
1 2 or “0”, “1”, “2” [Description] 0: ANK Font 0: 24-dot size Font 1: Reserve 2: 16-dot size Font Default is 24 dot size Font. Fonts of various sizes are selected for printing. TITLE: SHEET CITIZEN REVISION PB-32/33 44/85...
Page 49
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 “n” value (Decimal) These values may be changed depending on ROM version. Don’t set any value except the 140. TITLE: SHEET CITIZEN REVISION PB-32/33 45/85...
Page 50
4: Auto Loading 11: Error hand shake 1: Disabling 1: Disabling 0: Enabling 5: Receipt Paper Near-end 1: Disabling 0: Enabling 6: Journal Paper Near-end 1: Disabling Note 1) These values may be changed. TITLE: SHEET CITIZEN REVISION PB-32/33 46/85...
Page 51
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. TITLE: SHEET CITIZEN REVISION PB-32/33 47/85...
Page 52
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. TITLE: SHEET CITIZEN REVISION PB-32/33 48/85...
Page 53
QUADRUPLE SIZE MODE, a paper feed of (the height of NV bit image “n” ×2) dots is executed. After completion of this bit image printing, the head of line will be the next printing position and normal data process will be executed. TITLE: SHEET CITIZEN REVISION PB-32/33 49/85...
Page 54
Once NV bit images are defined, the NV bit images are not initialized by execution of ESC @, resetting or Power OFF. 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. TITLE: SHEET CITIZEN REVISION PB-32/33 50/85...
Page 55
Settings except the above values are ignored. Settings are effective by line in STANDARD MODE and by page in PAGE MODE. Setting for the range from 100% to 130% are the same as setting by the “ESC~mn” command. TITLE: SHEET CITIZEN REVISION PB-32/33 51/85...
Page 56
If characters which have different vertical magnifications are contained in the same line, base lines of characters will be aligned. Double width and double height of character can be specified/canceled by ESC !, too. But the last processed command becomes effective. Default is n=o. TITLE: SHEET CITIZEN REVISION PB-32/33 52/85...
Page 57
The basic calculation pitch is a value set 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. TITLE: SHEET CITIZEN REVISION PB-32/33 53/85...
Page 58
A download character and a download bit image cannot be defined simultaneously. If this command is executed, download characters are cleared. The bit image data is defined as follows: x × 8 dots dy+1 dy 2+1 y × 8 dots dy 2 dx y 8 TITLE: SHEET CITIZEN REVISION PB-32/33 54/85...
Page 59
At this time, DIP switches will be read again. Paper cutting is executed at the end of test printing. The printer state will be BUSY if process by this command is started. TITLE: SHEET CITIZEN REVISION PB-32/33 55/85...
Page 60
(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.) TITLE: SHEET CITIZEN REVISION PB-32/33 56/85...
Page 61
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. Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 57/85...
Page 62
Above the bar code 2, 50h Below the bar code 3, 51h Above and below the bar code (both) HRI characters are printed in the font specified by GS “ f ”. Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 58/85...
Page 63
(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. TITLE: SHEET CITIZEN REVISION PB-32/33 59/85...
Page 64
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. Default is n1=0, n2=0. TITLE: SHEET CITIZEN REVISION PB-32/33 60/85...
Page 65
In PAGE MODE, regardless of print direction selected by ESC T, characters are reduced in the vertical direction of each character. If reduced character printing is specified, underline will not be attached. Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 61/85...
Page 66
Command using x : ESC 3, ESC J, ESC W, GS $, GS \ Command using y : ESC SP, ESC $, ESC W, ESC \, FS S Default is x=203, y=203. TITLE: SHEET CITIZEN REVISION PB-32/33 62/85...
Page 67
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. TITLE: SHEET CITIZEN REVISION PB-32/33 63/85...
Page 68
(1) The print area is extended to the right within the printable area so that the character is accommodated in the area. Printable area Extended to the right Left margin Print area width TITLE: SHEET CITIZEN REVISION PB-32/33 64/85...
Page 69
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. Default is nL=B0h, nH=1h. TITLE: SHEET CITIZEN REVISION PB-32/33 65/85...
Page 70
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. The basic calculation pitch is set by GS P. TITLE: SHEET CITIZEN REVISION PB-32/33 66/85...
Page 71
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. TITLE: SHEET CITIZEN REVISION PB-32/33 67/85...
Page 72
Status of Drawer kick-out connector No. 3 pin = “H” Online status Offline status Unused Lever closed Lever opened Not in the state of paper feeding by the paper feed switch In the state of paper feeding by the paper feed switch Unused TITLE: SHEET CITIZEN REVISION PB-32/33 68/85...
Page 74
– – Undefined – – Unused Undefined – – Undefined – – Unused Default: When error hand shake of menu setting is BUSY, Default: When error hand shake of menu setting is INVALID, n=2 TITLE: SHEET CITIZEN REVISION PB-32/33 70/85...
Page 75
Selects the font for HRI characters in printing bar code. “n” is as follows: Font 0, 48h Font A 1, 49h Font B HRI characters are printed at the position specified by GS H. Default is n=0. TITLE: SHEET CITIZEN REVISION PB-32/33 71/85...
Page 76
Selection of height of bar code [GS h ] GS h [ASCII] [Decimal] [Hexadecimal] [Parameter] 1<n<255 [Description] Specifies the height of bar code. “n” denotes the number of dots in vertical direction. Default is n=162. TITLE: SHEET CITIZEN REVISION PB-32/33 72/85...
Page 78
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. TITLE: SHEET CITIZEN REVISION PB-32/33 74/85...
Page 80
Drawer kick-out connector status (n=2, 50) Value Printer status Hex. Decimal 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 TITLE: SHEET CITIZEN REVISION PB-32/33 76/85...
Page 81
“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 yL + yH × 256 dots TITLE: SHEET CITIZEN REVISION PB-32/33 77/85...
Page 82
Selection of bar code width size (magnification) [GS w] GS w [ASCII] [Decimal] [Hexadecimal] [Parameter] 2<n<6h [Description] Specifies the horizontal size of bar code. “n” denotes the number of dots in horizontal direction of thin bar. Default is n=3. TITLE: SHEET CITIZEN REVISION PB-32/33 78/85...
Print mapping position of character (baseline) is as shown in the figure below. Bar code 24x2-6 24-3 dots 24-3 3 dots Baseline Bit image DOUBLE Bar code Download HEIGHT DOUBLE bit image HEIGHT character TITLE: SHEET CITIZEN REVISION PB-32/33 79/85...
Need help?
Do you have a question about the CBM-262 II and is the answer not in the manual?
Questions and answers