POS425S - Receipt printer OKI - Free user manual and instructions
Find the device manual for free POS425S OKI in PDF.
Download the instructions for your Receipt printer in PDF format for free! Find your manual POS425S - OKI and take your electronic device back in hand. On this page are published all the documents necessary for the use of your device. POS425S by OKI.
USER MANUAL POS425S OKI
2001-05-10 41049421PS Rev.3 Page Description of change Person in charge ISSUE ODS Kanno ALL Review in entirely and update ODS Kanno ALL Addition of Bar Code Command and update ODS Kanno
2.3.2.2 All Letter and Rolling ASCII Continuous Print Test (Journal) ................ 14
2.3.2.3 All Letter and Rolling ASCII Continuous Print Test (Receipt + Journal) 14
2.3.2.4 All Letter and Rolling ASCII Continuous Print Test (Slip/Sprocket) ...... 15
2.3.2.5 Sample Data Continuous Print Test (Validation) ................................... 15
4.3.1.1.1 Data receive (forward data transfer phase) .......................
4.7.3 Error control during device ID data transfer ........................................................
4.8.1 Reverse channel transfer data ...........................................................................
4.8.1.1 Transfer priority of reverse channel transfer data ...............................
4.8.2 Error control while reverse channel transfer data is being transferred ...............
4.8.2.1 Control when status other than ASB is being transferred ...................
4.8.2.2 Control when ASB is being transferred ...............................................
4.8.2.3 Control while MICR read data is being transferred .............................
4.8.2.4 Control while ASB/non-ASB mixed data is being transferred ............
5.2.2 Interface Cable Wiring Diagram .........................................................................
5.2.2.1 Wiring diagram when the host side serial board connector is D-SUB 9-pin ..
5.2.2.2 Wiring diagram when the host side serial board connector is D-SUB 25-pin
5.2.3 Overview .............................................................................................................
5.3.4.1 DSR signal when data is being received .............................................
5.3.4.2 DSR signal when data is being sent ...................................................
5.3.4.3 Printer status request command that monitors status of DSR signal ..
5.3.4.4 Printer status request command when DSR signal is in MARK status
5.3.5 Protocol ..............................................................................................................
5.3.8.2 Customer display connection/non-connection and RTS signal status
5.3.9 Printer reset signal ..............................................................................................
5.3.9.1 Printer Busy control when reset signal is received ..............................
OVERVIEW This specification defines the following that are realized by the firmware, for the OKIPOS 425S/D (POS Printer) OKI Standard Version.
- OKIPOS 425S : OKI Single Standard Version
- OKIPOS 425D : OKI Dual Standard Version <Conventions in this specification document> This printer comes in two models, 1-Roll Model and 2-Roll Model. The 2-Roll Model printer has three roll paper modes, Receipt, Journal, and Receipt+Journal. The 1-Roll Mode printer has only the Roll paper mode. In this specification document, if the 1-Roll Model is not specifically mentioned when the 1-Roll Model is involved, for “Receipt (mode)”, read “Roll Paper (mode)”, and ignore the descriptions for “Journal (mode)” or “Receipt+Journal (mode)”. <Definitions of Off-line> This printer is not equipped with the On-line/Off-line switch. It becomes Off-line under the following conditions: (1) (2) (3) (4) (5) (6) (7) During the period from POW ON or initialization of the mechanism prompted by the reset from the interface, to the time communications become available. During execution of local test. When the cover is opened (“Cover Open Alarm” on the menu is set to “Yes”) During paper feed by the switch. Printing has stopped due to Paper End. (Paper End of Receipt, Journal, or Receipt+Journal selected by ESC c4.) Recoverable Error has occurred. (Except Head Thermal Alarm, SP Thermal Alarm or LF Thermal Alarm) Unrecoverable Error has occurred. At Off-line, an On-line/Off-line status that is sent by GS a n, ESC DLE a Pno n, GS ENQ, DLE EOT n, and ESC DLE r Pno n becomes off-line, and the I/F becomes Busy. In the case of (3) through (6), the I/F becomes Busy only if “Off-line Busy Control” on the menu is set to “Yes”
- Each I/F becomes Busy in the following manner.
- With the Parallel model (Centronics I/F), the Busy signal becomes High at Off-line.
- With the Serial model (RS232C I/F), the following Busy control is performed at Off-line. If handshake is DTR/DSR, the DTR signal will change to MARK. If handshake is XON/XOFF, DC3 will be sent. 41049421PS Rev.3
OPERATOR CONTROL This specification document describes the details of the operator panel and the local functions that are realized by the firmware.
2.1 Operator Panel Functions
This chapter describes the operator panel functions.
Operator Panel Specifications (Operator Panel layout) POWER LED LED1 LED2 LED3 LED4 SW2 SW3 SW1 SW4
- The SW names in the above layout are tentative. They have been assigned to make their explanations easy. <Panel sheet design> 41049421PS Rev.3
(Switch functions) No. Switch
SW2 (FF/LOAD/ PARK) In Receipt mode: Line-feeds receipts for a Paper not loaded: Auto Load fixed amount (10/6") Paper already loaded: Auto Park In Receipt+Journal mode: Same as above. * When No Paper is sensed by Slip In Journal mode: Invalid. Sensor, Auto Park is invalid. In Slip mode: Ejects when paper is already set. In Validation mode: Invalid
- Does not cause printing to start.
SW3 (CUT) Auto Cut (partial cut) Note 1) Cut position: Reverse-feeds to print
- Valid regardless of print sheet mode or position. print sheet status. Print position: Feeds to cut position. Paper not loaded: Above does not occur when pressed.
SW1 (LF) In Slip mode: Line-feeds the slip already set by 1-line . In Receipt mode: Line-feeds a journal by 1 line. Note 2) In Validation mode: Invalid. In Journal mode: Line-feeds a journal by 1line. In Receipt+Journal mode: Line-feeds a journal by 1-line.
- None of the above cause printing to start.
SW4 (RECEIPT LF) Function in Modes other than Tractor Mode Function in Tractor Mode Single Press: Feeds Sprocket paper by 1-line. Continuous Press: Form-feeds.
- Line-feeds 1-line immediately after the SW is pressed. Formfeeds after the SW is held down continuously at least for 500ms.
- Does not cause printing to start. Line-feeds a receipt by 1-line.
- Valid regardless of the print sheet mode or print sheet status. Note 1) Invalid when “Auto Cutter Unit = No” is set in the menu. In the 1-Roll Model, Auto Cut function is invalid since this model does not have the auto cutter unit. Note 2) In the 1-Roll Model, a receipt is line-fed by 1-line.
- When panel SW is set to invalid by Panel SW enable/disable command (ESC c5), the SW is invalid.
- During the time between MICR read start and check paper eject, SW is invalid. 41049421PS Rev.3
(LED display) No. LED
LED2 Orange Paper not loaded (wait(STATUS) ing for paper to be loaded) state
Green Powered on Red OFF BLINK Powered off Recoverable alarms Normal state
- Fatal alarms (Alarm type is differentiated by the number of times the light blinks)
- Refer to the table on next page.
- SP thermal alarm (Blinks simultaneously with LED2.)
- SP thermal alarm (Blinks simultaneously with LED1.) Validation mode MICR mode
- Slow blinking Receipt mode
- Fast blinking Journal mode
- Slow blinking Note 1) When “Cover Open Alarm” is set to No in Menu, Cover Open Alarm does not happen (Printing does not stop.)
- Media Does Not Match Alarm (1) is detected by monitoring the lever of the option tractor. Media Does Not Match Alarm (2) is detected by the Validation sensor monitoring (media manually inserted to the validation opening). 41049421PS Rev.3 10 / (Timing charts for LED1 and LED2 display for Waiting for removal and SP/LF thermal alarm state and LED3 display for Validation mode and Receipt mode.) LED T1=T2=500msec T1 T2 (LED3 display timing chart for MICR mode and Journal mode) LED T1=T2=1sec T1 T2 (Number of times LED1 blinks when fatal alarms have occurred) Number of times
Fatal alarm Program ROM EEPROM Internal RAM External RAM Homing Spacing Auto Cutter Platen Switch Head A/D Error WDT (F/W Control) NMI (F/W Control) BRK command (F/W Control) MICR Unit Error I/F board (LED1 display timing chart when a fatal alarm has occurred) LED1
The local and maintenance functions are described next.
Kinds of Local Functions and How to Start (1) Kinds Local functions Local tests All Letter and Rolling ASCII Continuous Print Test (Receipt) All Letter and Rolling ASCII Continuous Print Test (Journal) All Letter and Rolling ASCII Continuous Print Test (Receipt + Journal) All Letter and Rolling ASCII Continuous Print Test (Slip/Sprocket) Sample Data Continuous Print Test (Validataion) MICR Read Test (Receipt) Rewinder Rewind Evaluation Continuous Print Test (Journal) Menu (Receipt) HEX Dump (Receipt) Platen Maintenance Mode (2) How to start NO. Local Functions
Sample Data Continuous Print Test (Validation)
MICR Read Test (Receipt)
Platen Maintenance Mode SW 2 SW 3 SW 1 SW 4 10 Rewinder Rewind Evaluation Continuous Print Test (Journal) Note 1 To enter the above modes, turn the power on while holding down the switches marked with a circle ( ). Note 2 In No.4, if the lever is on the tractor side, the Sprocket Print Test becomes effective. If the lever is not on the tractor side, the Slip Print Test becomes effective. Note 3 In Nos. 5, 8 and 10, if the lever is on the tractor side, these local functions become invalid, and the printer starts in normal mode. Nos.1 ~ 3, 6, 7 and 9 become effective regardless of the lever state. Note 4 In Nos.1~ 3, the print widths will be those set in the menu “Width of Roll Paper”. Note 5 In Nos.1 ~ 4 and 10, if SW1 is pressed, printing suspends. When the SW1 is pressed again, the printing resumes. Note 6 In No.1 ~ 5, 8 and 10, if the cover is opened, printing suspends. When the cover is closed, printing resumes. (This is limited to only with the setting of Menu "Cover Open Alarm = YES", suspend in the cases of No.6 and 7.) Note 7 In each local function, if the tractor lever is switched, Media Does Not Match Alarm (1) will result. When the tractor is returned to the original position, the alarm is cleared and test printing resumes. 41049421PS Rev.3 12 /
This function creates test data internally as if the printer received the data from the host, and prints the test pattern.
Printer Status in Local Test Mode When the local test begins, the printer cannot receive data (*1). Even when a recoverable alarm occurs, the test mode is not cleared, and the test print resumes when the alarm element is cleared. The condition to end the local test is to turn the power off, but the local test is terminated when I- PRIME signal (Parallel model) /Reset signal (Serial model) is received or a fatal alarm occurs. (*1) When the printer cannot receive data, each I/F presents Busy as follows.
- Parallel model (Centronics interface): Busy signal → High
- Serial model (RS232C I/F): Busy control as follows. When handshake is DTR/DSR: DTR signal → MARK status When handshake is XON/XOFF: Sends DC3
Details of Local Test Prints
All Letter and Rolling ASCII Continuous Print Test (Receipt) This function performs All Letter Print and Rolling ASCII Continuous Print in Receive mode. It can test Auto Cutter Unit as well, and executes Auto Cut operations. It executes Auto Cut operation only when “Auto Cutter Unit = Yes” is sent in the menu, however.
- In case of 1-Roll Model, since this model does not come with Auto Cutter Unit, the Auto Cut function is invalid. (1) How to start Turn the power on while holding down the SW1. (2) How to exit this mode Turn the power off.
- During test printing, if you press SW1, printing suspends. If you press the SW1 again, printing resumes. (3) Printed contents and operations (a) Auto Cut (Full Cut) operation (b) Horizontal line (bit image print) printing (c) Pattern (“ ”) printing to check breakage of the head pins (d) Local test header printing (e) UTL and HSD characters (20H~FFH) All Letter Print (f) Auto Cut (Partial Cut) operation (g) UTL characters (20H~7EH) Rolling ASCII Continuous Print 41049421PS Rev.3 13 /
All Letter and Rolling ASCII Continuous Print Test (Journal) This function performs All Letter Print and Rolling ASCII Continuous Print in Journal mode.
- In case of 1-Roll Model, this function is invalid. (1) How to start Turn the power on while holding down the SW4. (2) How to exit this mode Turn the power off.
- During test printing, if you press SW1, printing suspends. If you press the SW1 again, printing resumes. (3) Printed contents (a) Horizontal lines (bit image print) printing (b) Pattern (“ ”) printing to check breakage of the head pins (c) Local test header printing (d) UTL and HSD characters (20H~FFH) All Letter Print (e) UTL characters (20H~7EH) Rolling ASCII Continuous Print
All Letter and Rolling ASCII Continuous Print Test (Receipt + Journal) This function performs All Letter Print and Rolling ASCII Continuous Print in the Receipt+Journal mode. Prints the same data on both receipt and journal. This function can test the auto cutter unit as well, and executes Auto Cut operation of receipts only when “Auto Cutter Unit = Yes” is set in the menu, however.
- In case of 1-Roll Model, this function is invalid. (1) How to start Turn the power on while holding down SW1 + SW4. (2) How to exit this mode Turn the power off.
- During test printing, if you press SW1, printing suspends. If you press the SW1 again, printing resumes. (3) Print contents and operations (a) Auto Cut (Full Cut) operation (b) Horizontal line (bit image print) printing (c) Pattern (“ ”) printing to check breakage of the head pins (d) Local test header printing (e) UTL and HSD characters (20H~FFH) All Letter Print (f) Auto Cut (Partial Cut) operation (g) UTL characters (20H~7EH) Rolling ASCII Continuous Print 41049421PS Rev.3 14 /
All Letter and Rolling ASCII Continuous Print Test (Slip/Sprocket) This function performs Rolling ASCII Continuous Print after All Letter Print. (1) How to start Turn the power on while holding down the SW2. If the lever is on the tractor side, the Sprocket paper print test takes place. Otherwise, Slip paper print test takes place. (2) How to exit Turn the power off.
- During test printing, if you press SW1, printing suspends. If you press the SW1 again, printing resumes. (3) Print contents (a) Horizontal line (bit image print) printing (b) Pattern (“ ”) printing to check breakage of the head pins (c) Local test header printing (d) UTL and HSD characters (20H~FFH) All Letter Print (e) UTL and HSD characters (20H~FFH) All Letter Print in Compressed Mode. (f) UTL characters (20H~7EH) Rolling ASCII Continuous Print
Sample Data Continuous Print Test (Validation) This function performs the test print on the Validation paper. (1) How to start Turn the power on while holding down the SW3. (2) How to exit Turn the power off. (3) Print contents (a) UTL character (20H~86H) printing (prints only one-line)
- Prints one-line when Validation is inserted, then enters Waiting for Removal state. After the validation is removed, the printer enters the Waiting for Insertion state. Repeat the sequence : Set paper → Print → Remove. 41049421PS Rev.3 15 /
MICR Read Test (Receipt) This function performs MICR read and prints that result on the receipt paper. Effective only when the MICR unit is installed and “MICR Unit = Yes(CMC-7)” or “MICR Unit = Yes(E13B)” is set in the menu. (1) How to start Turn the power on while holding down SW2 + SW3. (2) How to exit Turn the power off. (3) Contents of the test (a) When this mode is started, the printer enters Wait for MICR Insertion state. (b) Insert MICR card and perform MICR read. (c) The printer prints MICR read results on the Receipt paper, and enters Wait for MICR Insertion state. (b) and (c) above are repeated. (4) Contents printed <When Read is OK:> (a) Prints “Read OK”. (b) Prints the MICR read results in HEX dump. (“XX XX ...... XX” + ASCII: 1 line contains 8 byte information) <When Read is NG:> (a) Prints “Read NG”. (b) Prints the MICR read results (Return Code (1 byte) and read data) in HEX dump. (“XX XX ...... XX” + ASCII: 1 line contains 8 byte information)
- Regarding MICR Read result, Return Code (1 byte) and Read Data are printed. When the Return Code is 30H (“No errors”), it is assumed as “Read OK” Otherwise, it is assumed as “Read NG”
- Return codes are shown below: Return code 30H (0) 33H (3) 34H (4) 36H (6) 41049421PS Rev.3 Status No errors. Error: Read/Decode error. Error: No magnetic ink detected. Error: Document jam or document is too long. 16 /
- When character set is CMC-7, the below codes are returned.
- When character set is E-13B, the below codes are returned. A: dash symbol B: amount symbol C: transit symbol D: On-Us symbol Character Code Character Code Character Code Character Code
In both cases of CMC-7 and E-13B, special character codes are different from those sent to host by a check paper read command. Rewinder Winding Evaluation Continuous Print Test (Journal) This function performs print/platen switch continuous test to evaluate the rewinder winding performance.
- In case of 1-Roll Model, this function will be in Roll Paper mode. (1) How to start Turn the power on while holding down SW3 + SW1 + SW4. (2) How to exit Turn the power off.
- During test printing, if you press the SW1, printing suspends. If you press the SW1 again, printing resumes. (3) Contents printed (a) Prints “HHH”+ Space + “HHH” (UTL characters) (b) Print Sheet Mode switching (Journal → Slip → Journal) 41049421PS Rev.3 17 /
Local Test Header Prints Model Name, Design Drawing Number, Version and F/W Revision.
1-Roll model: OKIPOS 425S 41783701YR 2-Roll model: OKIPOS 425D 41783801YR The device names are not finalized yet. The above names are tentative. 41049421PS Rev.3 18 /
2.4 MENU FUNCTION (Receipt)
Overview The menu function is the local function that sets each mode to control the printer and adjusts it. This mode has the following items, saved in the E2P-ROM. This information is printed only when the menu mode is activated at Power On, and the information can be written over from the operator panel. Menu Print is printed in Receipt Mode. For the printer’s initialization state, each mode is set according to the information of this area.
Menu Items (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) Auto Cutter Unit MICR Unit Print Registration Top Adjust Cut Adjust Auto LF (Auto line feed) Receive Buffer Size Print Mode Off-line Busy Control Cover Open Alarm Width of Roll Paper Zero Character Page Lengths Page End Signal 41049421PS Rev.3 19 / Default Value Item NO. Function Sets
Auto Cutter Unit Selects Auto Cutter Unit Installed/Not Installed.
Top Adjust Adjusts Top Of Form position when Slip/Sprocket are used. -1.75mm ~ +1.75mm
- Can be set in the 0.35mm unit.
- Default value : 0 mm
Cut Adjust Adjusts Cut Position when cutting Sprocket paper. -1.75mm ~ +1.75mm
- Can be set in the 0.35mm unit.
- Default value : 0 mm
Auto LF (Auto line feed) Selects auto line feed. (Selects auto line feed by CR Code)
Receive Buffer Size Selects Receive Buffer Size
Off-line Busy Control Selects conditions of BUSY Yes * Off-line or Receive buffer-full No * Receive buffer-full
Cover Open Alarm Selects enable/disable of print stop in Cover Open Yes
Width of Roll Paper Selects the paper width of Roll paper (Changes the print area.)
Page Length Selects the paper length of Sprocket paper. 88.9mm 139.7mm 215.9mm 279.4mm 304.8mm
Yes *Default of 1-Roll Model is No. Yes
16K 76.2mm 69.5mm Note 1) In the 1-Roll Model, an auto cutter unit cannot be installed. Note 2) I/F control information (baud rate and etc.) and customer display connection/disconnection of serial model are set by DIP-SW of the I/F board. Note 3) MICR Unit selection has the following two types for MICR Read test (Refer to Section
2.3.2.6.): “Yes (CMC-7),” and “Yes (E-13B)” Normally, either selection is recognized as
an actual installation status of MICR Unit, and MICR type is selected by designation of the command. 41049421PS Rev.3 20 /
Start To start the Menu Mode, turn the printer on while holding down SW2 + SW1. When the printer’s initialization ends correctly, the printer prints the title “Menu Print” and all the menu items and set values. Then, the printer line-feeds until the print result goes beyond the Manual Cutter position, prints the item/set value immediately after “Menu Print”, then, waits for a switch to be pressed.
Operation The switch functions during the menu mode are as follows: 41049421PS Rev.3 Switch Function SW2 Advances the set values of the Menu Item, one at a time. From the last set value, returns to the first set value. SW3 Ends Menu Mode. Registers the set values in EEPROM, then, prints the end message “Menu End” and returns to the same initialized state as at power on. SW1 Advances the Menu Items, one at a time. From the last Menu Item, returns to the first Menu Item. SW4 Feeds the receipt, by one line. 21 /
2.5 HEX DUMP FUNCTION (Receipt)
This function converts received data, as it is, to character codes, and prints it in the Receipt mode. The printed contents are as follows: Upon receiving one byte, the printer divides it into three characters, High-nibble, Low-nibble and a space. Regarding these as 1 block, the printer prints 8 blocks in one line, then, prints the same data in the character format. Upon entering the HEX dump mode, the printer prints “Hex Data Dump”. (Title printing)
Hex data ASCII data How to Print (1) (2) (3) (4) If it does not receive data after 150ms have passed since receiving last data, the printer starts printing (CR) if it has some data. (If there is not enough data to form 8 blocks, spaces will be used.) If it subsequently receives data, the printer prints from a position next to the position at which the printing started. If it receives the I-PRIME signal (Parallel model)/Reset signal (Serial model), the printer starts printing if it has some data, then, feeds one line. Then, the printer is initialized. (If it does not have any data, the printer feeds one line and then, is initialized.) After the initialization, the printer starts up in dump mode again and prints. The line number is reset, however, and counting begins from “0000”.
- When I-PRIME signal (Parallel model)/Reset signal (Serial model) is hard reset (setting by Short Plug with Parallel I/F board and by DIP SW with Serial I/F board), it immediately starts initialization and does not continue hex dump. One line-feed is added for every 16 lines. The count begins from “0000” when the line number exceeds “FFF8”. 41049421PS Rev.3 22 /
2.6 PLATEN MAINTENANCE MODE
This function is for switching the platen position when the print head gap is adjusted in the production line. (1) How to start the mode Turn the power on while holding down SW2 + SW3 + SW1. *1 This mode can be executed even when the print head is not installed. *2 When this mode is being started, the initial platen position should be on the Receipt side. If the paper is already loaded in the Tractor mode, the platen should be on the Slip side. (2) How to operate Switch Function SW2 Moves the platen to the Receipt side. SW3 Moves the platen to the Slip side. SW1 Invalid SW4 (3) How to exit the maintenance mode Turn the power off. 41049421PS Rev.3 23 /
COMMAND DESCRIPTION The intent of this document is to describe the details of the command functions that are effectuated by the firmware.
Function Code (1) List of Function Codes No. HEX DEC CODE Remarks Section Print Start
Print/carriage return
ESC Start ESC sequence
- Print Start Column : Command that invokes print start : Command that does not invoke print start : Command that sometimes invokes print start (This applies hereafter.)
No. DLE Sequence (1) Command recognition A code that follows a DLE code is treated as a 7-bit code. (MSB=0) For the parameters, which vary among the commands, see each command’s functions. If a function code follows a DLE code, it is is treated as a stand-alone function code. If DLE codes come in succession, they are treated as a DLE code. Example: DLE DLE EOT n is treated as command DLE EOT n. (2) DLE sequences HEX Command Sequence Functions Section Print Start
DLE ENQ n Real-time request to Printer
No. ESC Sequence (1) Command recognition For the handling of codes that follow the ESC Code, when the ESC codes come in succession, and their relationship with the functional codes, the way the DLE sequence is handled applies. (2) ESC sequence list HEX Command Sequence Functions Section Print Start
10 1B 21 ESC ! n Designates Print Mode all at once
12 1B 25 35 ESC % 5 n Feeds paper in inrements of n/144"
13 1B 25 39 ESC % 9 n Sets n/144" line feed
15 1B 2D ESC - n Designates/clears Underline
16 1B 30 ESC 0 Sets 1/8" line feed
17 1B 31 ESC 1 Sets 7/72" line feed
18 1B 32 ESC 2 Sets 1/6" line feed
19 1B 33 ESC 3 n Sets n/144" line feed
22 1B 3C ESC < Designates one-line uni-directional print 3.2.8.7 23 1B 3D ESC = n Selects peripheral device
24 1B 40 ESC @ Initializes printer
25 1B 41 ESC A n Sets n/72" line feed pitch
26 1B 43 ESC C n Sets page length for Sprocket paper
27 1B 45 ESC E n Designates/cancels Emphaize print
28 1B 47 ESC G n Designates/cancels Double Strike print 3.2.5.8 29 1B 4A ESC J n Feeds paper in increments of n/144" 30 1B 4E ESC N n Sets Sprocket paper performation skip 3.2.3.9 31 1B 4F ESC O Resets Sprocket paper perforation skip 3.2.3.10 32 1B 52 ESC R n Selects international character set 33 1B 55 ESC U n Designates/cancels uni-directional print 3.2.8.6 41049421PS Rev.3 Condense Designate
25 / No. HEX Command Sequence Functions Section Print Start 34 1B 57 ESC w n Designates/cancels double width print
40 1B 63 32 ESC c 3 n Selects paper sensor that enables the 3.2.7.3 paper end signal; valid only with Parallel I/F 41 1B 63 34 ESC c 4 n Selects print stop sensor
43 1B 64 ESC d n Feeds paper for n lines
44 1B 66 ESC f t1 t2 Sets Cut paper wait time
45 1B 69 ESC i Full cut
46 1B 6D ESC m Partial cut (keeping one point uncut)
47 1B 70 ESC p m t1 t2 Generaes designated pulse (Open Cash Drawer)
48 1B 74 ESC t n Selects character code table
51 1B 77 ESC w n Sets/resets Double Height print
52 1B 7A ESC z n Designates/cancels Receipt+Journal same data print
- The ESC DLE sequence other than No. 2~8, 53, 54 will be ignored by the sequence. (The data that follows “Pno” will be ignored as many bytes as set by Pno.) 41049421PS Rev.3 26 /
FS Sequence (1) Command recognition For the handling of subsequent codes that follow the FS code, when the FS codes come in succession, and their relationship with the functional codes, the way the DLE sequence is handled applies. (2) FS Sequence table No. HEX Command Sequence Functions Section Print Start
1C 62 FS b Requests for resending a result of reading Check paper
No. GS Sequence (1) Command recognition For the handling of subsequent codes that follow the GS code, when the GS codes come in succession, and their relationship with the functional codes, the way the DLE sequence is handled applies. (2) GS Sequence table HEX Command Sequence Functions Section Print Start
1D 45 GS E n Selects print speed and printhead current flow time
The control functions are described in the subsequent sections.
Print Operation Control This section describes the print operation control functions.
Print/Carriage Return
Code Functions: (1) (2) (3) (4) To start printing received data and set the position to start receiving the next line’s data at the left margin position (start of that line) after printing. To perform Carriage Return and Line Feed if Auto LF is set to Enabled on the menu. To perform Carriage Return to the start position of the line on Receipt side in Receipt+Journal mode. To prompt the mode to shift Receipt+Journal in Validation Mode if Auto LF is set to Enabled on the menu. 41049421PS Rev.3 28 /
Space Control The space control functions are described in the subsequent sections.
Left Margin Set ESC DLE l Pno n1 n2 Name: Setting Left Margin HEX: 1BH 10H 6CH Pno n1 n2 DEC: 27 16 108 Pno n1 n2 Code Function: (1) (2) (3) To set Left Margin in increments of 1/60" from the home position. n1= low-order bytes and n2=high-order bytes The DEL in the command sequence disables MSB. (“90H” is effective as well.) Valid range and definitions of parameters (a) Pno: To designate the number of bytes (number of parameters) following ESC DLE l Pno MSB is invalid. Range: 00H ≤ Pno ≤ FFH With this command, Pno=2. (b) To designate the print position by n1 n2 on the basis of the home position. Example) In case of ESC DLE l 02H 02H 00H: n1=02H n2=00H The print position would be: Home Position "0" (4) Left Margin (increments of 1/60") In this case, Left Margin is 2/60" from the home position. Range and definitions of n1,n2 0(00H) ≤ n1 ≤ 255 (FFH) 0(00H) ≤ n2 ≤ 255 (FFH) If a value exceeding the value below is set, this command will be ignored and the previous setting will remain valid. The maximum value of n1, n2 would be one that does not fall below 1.25" in the distance to the right margin. Selected print sheet (5) (6) (7) (8) Range of n1, n2 Right Margin (") Receipt/Journal/Receipt+Journal(76.2mm) 0 ≤ n2 n1 ≤ 93
Receipt/Journal/Receipt+Journal(69.5mm) 0 ≤ n2 n1 ≤ 77
Received within the line, this command will be ignored. If setting is made by this command in Receipt/Journal/Receipt+Journal Mode, that setting will be valid for both Receipt and Journal. It will not affect Slip/Validation/Sprocket. If setting is made by this command in Slip/Validation/Sprocket Mode, that setting will be valid for all of Slip/Validation/Sprocket. It will not affect Receipt or Journal. Neither the left margin position that is set in Receipt/Journal/Receipt+Journal Mode nor the left margin position set in Slip/Validation/Sprocket Mode will change when the mode is switched. 41049421PS Rev.3 29 /
Absolute Position Designate ESC $ n1 n2 Name: Absolute Position Designate HEX: 1BH 24H n1 n2 DEC: 27 36 n1 n2 Code Function: (1) (2) To move a next printing position from the start position in the line to the one designated by n1 n2 in increments of 1/180" or 1/240". Default unit of measurement is 1/180", but 1/240" if Condense is set. n1 = low-order byte, n2 = high-order byte To designate the print position according to n1 n2, based on the left margin position (start position of the line). The left margin changes, the print start position, too, changes even if the setting is the same. e.g.) ESC $ 02H 00H n1 = 02H n2 = 00H The print position would be: Left Margin (3) (4) Print Position (increments of 1/180 or 1/240") In this case, subsequent data will be printed 2/180" or 2/240" from the left margin. Valid range and definitions of n1,n2 0(00H) ≤ n1 ≤ 255(FFH) 0(00H) ≤ n2 ≤ 255(FFH) Range of n1 n2 (If any value outside the range is designated, the command will be ignored in its entirety.) The range in the table below assumes the left margin position being 0. If Left Margin + Absolute Position exceeds the right margin (ininches) in the table below, the command will be ignored in its entirety. Selected print sheet (5) (6) (7) (8) Range of n1 n2 Margin Right Margin (") Receipt/Journal/Receipt+Journal 0 ≤ n2 n1 ≤ 504 (1/180") (76.2mm) 0 ≤ n2 n1 ≤ 672 (2/240") 504/180" 672/240"
Receipt/Journal/Receipt+Journal 0 ≤ n2 n1 ≤ 456 (1/180") (69.5mm) 0 ≤ n2 n1 ≤ 608 (2/240") 456/180" 608/240"
Slip/Validation 0 ≤ n2 n1 ≤ 1134 (1/180") 1134/180" 0 ≤ n2 n1 ≤ 1512 (2/240") 1512/240"
Sprocket (option) 0 ≤ n2 n1 ≤ 1134 (1/180") 1134/180" 0 ≤ n2 n1 ≤ 1512 (2/240") 1512/240"
The amount of movement is calculated according to the following formula. Movement (Distance from left margin) = {n1+(n2 AND 03H) × 256}/180 (inch) or = {n1+(n2 AND 03H) × 256}/240 (inch) 0 ≤ movement < 6.3 (inch) If the parameter (n1 n2), which would set the print position to the left of the present print position, is designated, print start is prompted. No underline is added to the movement made by this command. When Same Data Print is reset with Receipt+Journal, if the present position is located on the Receipt side, the setting within the Receipt print position is valid, and if the present position is located on the Journal side, the setting within the Journal print range is valid. (On the Journal side, the left edge of the Journal print area is set as a start position of the pint line.) 41049421PS Rev.3 30 /
Relative Position Designate ESC \ n1 n2 Name: Relative Position Designate HEX: 1BH 5CH n1 n2 DEC: 27 92 n1 n2 Code Function: (1) (2) To move a next print position to the right or to the left, relative to the present position. To move the print position to the position designated by n1 n2 in increments of 1/180" or 1/240". Default unit is 1/180" but 1/240" if Condense is set. n1 = low-order byte, n2 = high-order byte To designate the print position to left/right by the dots as designated by n1 n2, on the basis of the present position being “0.” Ex.) In case ESC \ 02H 00H is received: n1=02H n2=00H Thus, the print position would be 1/180" or 1/240" Present Position (3) Print Position A pair of n1 n2 consists of 2 bytes making up a 16-bit numerical value. Its 16th bit indicates a code. {positive = right, negative (Two’s complement)=left}
b b MSB 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 LSB Code bit 41049421PS Rev.3 0: Right 1: Left 31 / (4) Range of move Selected Print Right Margin Range of n1 n2 Sheet Forward Receipt/Journal 0H ≤ n2 n1 ≤ 504-(present Position) (1/180") 504/180" (76.2mm) 0H ≤ n2 n1 ≤ 672-(present Position) (1/240") 672/240" Direction Right Margin (")
Receipt/Journal 0H ≤ n2 n1 ≤ 456-(present position) (1/180") (69.5mm) 0H ≤ n2 n1 ≤ 608-(present position) (1/240") 456/180" 608/240"
Slip/Validation 0 ≤ n2 n1 ≤ 1134-(present position) (1/180") 0 ≤ n2 n1 ≤ 1512-(present position) (1/240") 1134/180" 1512/240"
Reverse Receipt/Journal (76.2mm) -(present position) ≤ n2 n1<0 (1/180") -(present position) ≤ n2 n1<0 (1/240") 504/180" 672/240"
Receipt/Journal (69.5mm) -(present position) ≤ n2 n1<0 (1/180") -(present position) ≤ n2 n1<0 (1/240") 456/180" 608/240"
Slip/Validation -(present position) ≤ n2 n1<0 (1/180") -(present position) ≤ n2 n1<0 (1/240") 1134/180" 1512/240"
Sprocket (option) -(present position) ≤ n2 n1<0 (1/180") -(present position) ≤ n2 n1<0 (1/240") 1134/180" 1512/240"
(5) Maximum value of n2 n1 Selected Print Sheet Maximum value for Forward Maximum value for Reverse Receipt/Journal (76.2mm) 504/180" 672/240" -504/180" -672/240" Receipt/Journal (69.5mm) 456/180" 608/240" -456/180" -608/240" Slip/Validation 1134/180" 1512/240" -1134/180" -1512/240" Sprocket(option) 1134/180" 1512/240" -1134/180" -1512/240" (6) (7) A move in Reverse will prompt print start. If a move outside the printable range is designated, the command is ignored in its entire sequence. (8) If Underline is designated with the move made by this command, no underline will be applied to the skipped spaces. (9) When Same Data Print is reset with Receipt+Journal, if the present position is located on the Receipt side, the setting within the Receipt print position is valid, and if the present position is located on the Journal side, the setting within the Journal print range is valid. (On the Journal side, the left edge of the Journal print area is set as a start position of the line.) (10) In Validation Mode, if this command is received when the present position is already beyond the right margin, the command will be ignored in its entire sequence. (See 3.4.3 Right Margin Process.) 41049421PS Rev.3 32 /
Definition Left alignment (Default) Center alignment Right alignment (a) If n is any other value than the above, this command is ignored and the previously set mode remains effective. (b) This command is valid only when received at the start of the line. Received some-way into the line, the command will be ignored. Mode 0 (Left alignment) To align the print start position relative to the left margin. Mode 1 (Center alignment) (a) Those characters that would go beyond the right margin will be aligned relative to the center of a next line. (This includes spaces at the start and end of the line.) (b) Even if character pitch is changed in the middle of the line (Normal, Enlarge, and Character right-side space), an entire text will be spread over evenly. Mode 2 (Right alignment) To align the printer end position relative to the right margin. To align image as well. To align absolute skip and relative slip as well. (3) (4) (5) (6) (7)
Code Function: (1) (2) To move the print position to the top of Journal. Valid only in Receipt+Journal Mode and if Same Data Print to Receipt/Journal has been reset. (Invalid if the present horizontal position is on the Journal side.) 41049421PS Rev.3 33 /
Line Feed Control The line feed control functions are described in the subsequent sections.
Name: Print/Line Feed HEX: 0AH DEC:
Code Functions: (1) (2) (3) (4) (5) (6) (7) To complete receiving data for a line and start printing. To perform one line-feed after printing has ended, according to the amount of line feed set for each type of print sheet (Receipt, Journal, Slip, or Sprockect paper (option)). (To perform line feed for the amount in accordance with each set value in the Receipt+Journal mode.) To perform carriage return after printing by this command has started. The position following carriage return is at the left margin (start of the line). (The position is at the left margin on the Receipt side with the Same Data Print is reset in Receipt+Journal Mode.) To perform perforation skip to the next TOF position when the selected print sheet is Sprocket (option) if the position following line feed is within the perforation skip area. To set the line feed pitch for each type of print sheet in a combination of designation by ESC 0, ESC 1, ESC 2, ESC 3 n, ESC A n, or ESC % 9 n and Sheet selection by ESC c 1 n, ESC DLE c Pno 1 n. Default line feed is one sixth of an inch (1/6") for all types of print sheet. To perform only carriage return following print start if the line feed pitch is “0.” (No line feed is performed.) To perform only carriage return following print start in the Validation mode and prompt the mode to shift to the Receipt+Journal mode when Validation media is removed. 41049421PS Rev.3 34 /
1/8-inch Line Feed Set ESC 0 Name: 1/8-inch Line Feed Set HEX: 1BH 30H DEC:
Code Function: (1) To set the line feed pitch for the print sheet selected by the Set Sheet Select command (ESC c 1 n, ESC DLE c Pno 1 n) to one eighth of an inch (1/8"). To perform 1/8-inch line feed upon receiving the LF code with the type of print sheet set after this command has been designated. For line feed by Right Margin Over and Switch, too, the 1/8-inch line feed pitch set by this command applies. Default line feed is one sixth of an inch (1/6") for all types of print sheet. This command is effective at any point in the line. Except in the middle of image data or a function sequence. The commands that execute line feed by the line feed pitch set by this command are LF and CR (with Auto LF enabled). This command does not set TOF. The line feed pitch set by this command applies to the following commands. (a) ESC d n (Printing, then feeding paper for an “n” number of lines) (b) ESC C n (Setting the eject length for cut sheet paper and the page length for sprocket paper) (c) ESC N n (Setting perforation skip for sprocket paper) (2) (3) (4) (5) (6) (7) (8)
Code Function: (1) (2) (3) (4) (5) (6) (7) (8) To set the line feed pitch for the print sheet selected by the Set Sheet Select command (ESC c 1 n, ESC DLE c Pno 1 n) to seven seventy-seconds of an inch (7/72"). To perform 7/72-inch line feed upon receiving the LF code with the type of print sheet set after this command has been designated. For line feed by Right Margin Over and Switch, too, the 7/72-inch line feed pitch set by this command applies. Default line feed is one sixth of an inch (1/6") for all types of print sheet. This command is effective at any point in the line. Except in the middle of image data or a function sequence. The commands that execute line feed by the line feed pitch set by this command are LF and CR (with Auto LF enabled). This command does not set TOF. The line feed pitch set by this command applies to the following commands. (a) ESC d n (Printing, then feeding paper for an “n” number of lines) (b) ESC C n (Setting the eject length for cut sheet paper and the page length for sprocket paper) (c) ESC N n (Setting perforation skip for sprocket paper) 41049421PS Rev.3 35 /
Code Function: (1) To set the line feed pitch for the print sheet selected by the Set Sheet Select command (ESC c 1 n, ESC DLE c Pno 1 n) to one sixth of an inch (1/6"). To perform 1/6-inch line feed upon receiving the LF code with the type of print sheet set after this command has been designated. For line feed by Right Margin Over and the switch, too, the 1/6-inch line feed pitch set by this command applies. Default line feed is one sixth of an inch (1/6") for all types of print sheet. This command is effective at any point in the line. Except in the middle of image data or a function sequence. The commands that execute line feed by the line feed pitch set by this command are LF and CR (with Auto LF enabled). This command does not set TOF. The line feed pitch set by this command applies to the following commands. (a) ESC d n (Printing, then feeding paper for an “n” number of lines) (b) ESC C n (Setting the eject length for cut sheet paper and the page length for sprocket paper) (c) ESC N n (Setting perforation skip for sprocket paper) (2) (3) (4) (5) (6) (7) (8)
n/144-inch Line Feed Pitch Set ESC 3 n Name: n/144-inch Line Feed Pitch Set HEX: 1BH 33H n DEC: 27 51 n Code Function: (1) (2) (3) (4) (5) (6) (7) (8) (9) To set the line feed pitch for the print sheet selected by the Set Sheet Select command (ESC c 1 n, ESC DLE c Pno 1 n) to n hundred forty-forth of an inch (n/144"). To perform n/144-inch line feed upon receiving the LF code with the type of print sheet set after this command has been designated. For line feed by Right Margin Over and Switch, too, the n/144-inch line feed pitch set by this command applies. Default line feed is one sixth of an inch (1/6") for all types of print sheet. This command is effective at any point in the line. Except in the middle of image data or a function sequence. The commands that execute line feed by the line feed pitch set by this command are LF and CR (with Auto LF enabled). Range of n 0 ≤ n ≤ 255 This command does not set TOF. The line feed pitch set by this command applies to the following commands. (a) ESC d n (Printing, then feeding paper for an “n” number of lines) (b) ESC C n (Setting the eject length for cut sheet paper and the page length for sprocket paper) (c) ESC N n (Setting perforation skip for sprocket paper) 41049421PS Rev.3 36 /
n/72-inch Line Feed Pitch Set ESC A n Name: n/72-inch Line Feed Pitch Set HEX: 1BH 41H n DEC: 27 65 n Code Function: (1) (2) (3) (4) (5) (6) (7) (8) (9)
To set the line feed pitch for the print sheet selected by the Set Sheet Select command (ESC c 1 n, ESC DLE c Pno 1 n) to n seventy-seconds of an inch (n/72"). To perform n/72-inch line feed upon receiving the LF code with the type of print sheet set after this command has been designated. For line feed by Right Margin Over and Switch, too, the n/72-inch line feed pitch set by this command applies. Default line feed is one sixth of an inch (1/6") for all types of print sheet. This command is effective at any point in the line. Except in the middle of image data or a function sequence. The commands that execute line feed by the line feed pitch set by this command are LF and CR (with Auto LF enabled). Range of n 0(00H) ≤ n ≤ 85(55H) 128(80H) ≤ n ≤ 213(D5H) MSB will be ignored. If an n value is other than the above, this command is invalid and the previously set mode remains valid. This command does not set TOF. The line feed pitch set by this command applies to the following commands. (a) ESC d n (Printing, then feeding paper for an “n” number of lines) (b) ESC C n (Setting the eject length for cut sheet paper and the page length for sprocket paper) (c) ESC N n (Setting perforation skip for sprocket paper) Cut Sheet Paper Print and Eject or Sprocket Paper Form Feed
Code Functions: (1) (2) (3) (4) This command is ignored if the selected print sheet is Receipt/Journal/Receipt+Journal Paper. The selected print sheet is Slip:
- To print the data in the print buffer and perform CR, then prompt the sensor to monitor the bottom of paper, eject a sheet of cut sheet paper and switch the selected print sheet to Receipt+Journal.
- If the bottom is not detected after a pre-set amount has been fed, Eject Error occurs.
- The command is not affected by the setting by Print Stop Sensor Select (ESC c 4 n). To print data in the print buffer and perform carriage return, then feed paper to the next TOF position if the print sheet is Sprocket paper (with the option tractor installed.) To perform only carriage return following print start if the selected print sheet is Validation, prompting the mode to switch to Receipt+Journal upon removal of Validation
- Valid even at the heading position or the TOF position in Step (2) and (3) above. 41049421PS Rev.3 37 /
Sprocket Paper Page Length Set ESC C n Name: Sprocket Paper Page Length Set HEX: 1BH 43H n DEC: 27 67 n Code Functions: (1) To set the page length for sprocket paper by lines, based on the selection by the Set Sheet Select command (ESC c 1 n, ESC DLE c Pno 1 n). Only the lower seven bits of n are valid. (a) Sprocket Paper selected by Set Sheet Select is valid:
- The page length set by this command becomes valid only if the print sheet is Sprocket paper (with the option tractor installed).
- To initialize the page length to default (Setting made on Menu “Page Length”) if n = 00H.
- To set “n x LF pitch” as the page length if n ≠ 00H.
- If the line feed pitch is 0, the same setting takes place as n=00H.
- The maximum length that can be set is 40 inches and if any length that goes over this limit will be set to 40 inches.
- To set the page length based on the line feed pitch for Sprocket paper as a unit of measurement. (The line feed pitch set by ESC 0, ESC 1, ESC 2, ESC 3 n, ESC A n, or ESC % 9 n with Sprocket paper selected by Set Sheet Select.)
- Once set, the page length is not affected even if the line feed pitch is changed.
- To clear Perforation Skip for Sprocket paper.
- When the print sheet is Sprocket paper (with the option tractor installed), the position where this command is received becomes the TOF position.
- Default page length is the setting made on Menu “Page Length”. 41049421PS Rev.3 38 /
Sprocket Paper Perforation Skip Set ESC N n Name: Sprocket Paper Perforation Skip Set HEX: 1BH 4EH n DEC: 27 78 n Code Function: (1) (2) (3) To set the perforation skip area for an “n” number of lines, based on the line feed pitch for Sprocket paper if Sprocket paper selected by Set Sheet Select is valid. The perforation skip area set by this command becomes valid only if the print sheet is Sprocket paper (with the option tractor installed). To set the perforation skip area based on the line feed pitch set by ESC 0, ESC 1, ESC 2, ESC 3 n, ESC A n, or ESC % 9 n if Sprocket paper is selected by Set Sheet Select. Example: 1 line = 1/6" and n = 12 Perforation Skip Area = 1/6 × 12 = 2 (inches) Range of n Command ESC N n (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) Valid range 0 ≤ n ≤ 255 Remarks Only the lower 7 bits of n are valid; thus, 0 ≤ n ≤ 127. If n=0, the entire command is ignored. Perforation Skip set by this command is cleared when the page length is set for sprocket paper. Once set, the Perforation Skip area is not affected even if the line feed pitch is changed. To perform Perforation Skip, when a line feed by LF/CR (with Auto Line Feed enabled), ESC J n, ESC d n, or ESC % 5 n brings the position into the perforation skip area, then to feed paper to the next TOF position. If the setting is set as “Page Length ≤ Perforation Skip Area, that perforation skip setting becomes invalid, and previous perforation skip setting remains effective. Difference between ESC O and ESC N 00H: The command ESC O clears Perforation Skip while ESC N 00H is ignored. (In other words, the previous setting remains effective.) When the print sheet is Sprocket paper (with the option tractor installed), if setting a perforation skip area brings the present vertical position into the perforation skip area, the printer can still print one line even if the position is in the perforation skip area. Execution of the next forward line feed command feed paper to the next page’s TOF position. When the print sheet is Sprocket paper (with the option tractor installed) and the line feed pitch larger than the perforation skip area is set, if the line feed command that would prompt a jump over the perforation skip area is received, paper is fed as much as the designated amount of line feed. When the line feed pitch is set to 0, if n > 0. the perforation skip set command sets the amount of skip to “0”. (This clears Perforation Skip.) When the print sheet is Sprocket paper (with the option tractor installed) and the perforation skip area is set by this command, the setting becomes immediately effective within the current page. The default perforation skip area is now cleared. 41049421PS Rev.3 39 /
Code Functions: (1) (2) To reset the perforation skip setting if the sprocket paper selected by Set Sheet Select is valid. Perforation Skip is also reset when the page length is set for Sprocket paper by ESC C n. (This applies only when Sprocket by Print Sheet Select is valid.)
3.2.3.11 n/144-inch Paper Feed
ESC J n Name: n/144-inch Paper Feed HEX: 1BH 4AH n DEC: 27 74 n Code Function: (1) (2) (3) To print data in the print buffer and perform n/144-inch line feed. To perform carriage return as this command is executed. Range of n Valid range 0 ≤ n ≤ 255 (4) (5) (6) Remarks No line feed is performed if n=0, but printing starts. To perform Perforation Skip to the next TOF position if n/144-inch paper feed results in the position being within the perforation skip area when the print sheet is Sprocket paper (with the option tractor installed). To perform only carriage return following print start in the Validation mode, prompting the mode to switch to Receipt+Journal upon removal of Validation media. To perform line feed for as much as each setting in the Receipt+Journal mode. The carriage return position is at the left margin on the Receipt side upon cancellation of Same Data Print. 41049421PS Rev.3 40 /
3.2.3.12 n-line Paper Feed
ESC d n Name: n-line Paper Feed HEX: 1BH 64H n DEC: 27 100 n Code Function: (1) (2) (3) To print data in the print buffer and perform line feed for an “n” number of lines based on the line feed pitch set for each type of print sheet. This command is accompanied by carriage return. Range of n Valid range 0 ≤ n ≤ 255 (4) (5) (6) (7) Remarks Line feed is not performed if n=0, but print start is prompted. The maximum paper feed amount that can be designated is 40 inches, and if “n x line feed pitch” results in more than 40 inches, line feed is performed just for 40 inches. To perform Perforation Skip to the next TOF position if paper feed for an “n” number of lines results in the position being within the perforation skip area when the print sheet is Sprocket paper (with the option tractor installed). To perform only carriage return following print start in the Validation mode, prompting the mode to switch to Receipt+Journal when Validation media is removed. To perform line feed as much as each setting in the Receipt+Journal mode. The carriage return position is at the left margin on the Receipt side upon cancellation of Same Data Print.
3.2.3.13 n/144-inch Paper Feed
ESC % 5 n Name: n/144-inch Paper Feed HEX: 1BH 25H 35H n DEC: 27 37 53 n Code Functions: (1) (2) (3) To print data in the print buffer and perform n/144-inch line feed. This command is accompanied by carriage return. Range of n Valid range 0 ≤ n ≤ 255 (4) (5) (6) Remarks No line feed is performed if n=0, but print start is prompted. To perform Perforation Skip to the next TOF position if forward paper feed for n/144" results in the position being within the perforation skip area when the print sheet is Sprocket paper (with the option tractor installed). To perform only carriage return following print start in the Validation mode, prompting the mode to switch to Receipt+Journal upon removal of Validation media. To perform line feed for the amount designated for both Receipt and Journal in the Receipt+Journal mode. The carriage return position is at the left margin on the Receipt side upon cancellation of Same Data Print. 41049421PS Rev.3 41 /
3.2.3.14 n/144-inch Line Feed Pitch Set
ESC % 9 n Name: n/144-inch Line Feed Pitch Set HEX: 1BH 25H 35H n DEC: 27 37 53 n Code Function: (1) (2) (3) (4) (5) (6) (7) (8) (9) To set the line feed pitch for the print sheet selected by the Set Sheet Select command (ESC c 1 n, ESC DLE c Pno 1 n) to n hundred forty-forth of an inch (n/144"). To perform n/144-inch line feed upon receiving the LF code with the type of print sheet set after this command has been designated. For line feed by Right Margin Over and Switch, too, the n/144-inch line feed pitch set by this command applies. Default line feed is one sixth of an inch (1/6") for all types of print sheet. This command is effective at any point in the line. Except in the middle of image data or a function sequence. The commands that execute line feed by the line feed pitch set by this command are LF and CR (if Auto LF enabled). Range of n 0 ≤ n ≤ 255 This command does not set TOF. The line feed pitch set by this command applies to the following commands. (a) ESC d n (Printing, then feeding paper for an “n” number of lines) (b) ESC C n (Setting the eject length for cut sheet paper and the page length for sprocket paper) (c) ESC N n (Setting perforation skip for sprocket paper) 41049421PS Rev.3 42 /
Character Control The character control functions are described in the subsequent sections.
International Character Set Select ESC R n Name: International Character Set Select HEX: 1BH 52H n DEC: 27 82 n Code Function: (1) (2) (3) (4) To set a character set for each language as designated by n. Range of n If the value of n is other than those listed in the table, this command will be ignored in its entirety and the previously selected Set remains effective. n value Character set n value Character set 00H American 08H Japanese 01H French 09H Norwegian 02H German 0AH Danish II 03H British 0BH Spanish II 04H Danish I 0CH Latin American 05H Swedish 0DH French Canadian 06H Italian 0EH Dutch 07H Spanish I 40H Publisher Default is American (n=00H). For the International Character Set table, see Section 3.3.1. 41049421PS Rev.3 43 /
Character Code Table Select ESC t n Name: Character Code Table Select HEX: 1BH 74H n DEC: 27 116 n Code Function: (1) (2) To select a character code table. (For the Character Code tables, see Section 3.3.1.) Values of n: Value of n (3) Code Page 00H USA 02H Multilingual 03H Portugal 04H Canada French 05H Norway 50H BRASCII 51H Abicomp 52H ISO 8859/15 53H Multilingual 858 If the value of n is other than the above, the entire command is ignored and the previously set Code Page remains effective. Default is USA (n=00H). 41049421PS Rev.3 44 /
Character Right-side Space Set ESC SP n Name: Character Right-side Space Set HEX: 1BH 20H n DEC: 27 32 n Code Function: (1) To set the amount of space on the right side of a character in increments of n/180". It is set in increments of n/240", however, for Condense Print. Character width n dots Character clearance space set by ESC SP n Each character’s Right space Each character’s left space (2) (3) Note 1) At default, n=0. Note 2) This printer’s character left-side space is “0.” Values of n: 0 ≤ n ≤ 32 If n is other than the above the command is ignored in its entirety. The character clearance is also doubled if Double Width Print is set. 41049421PS Rev.3 45 /
Underline Designate/Clear ESC - n Name: Underline Designate/Clear HEX: 1BH 2DH n DEC: 27 45 n Code Function: (1) (2) To set or clear Underline Print. Values of n Values of n 01H, 31H 00H, 30H Meaning Sets underline mode. Clears underline mode. If n is other than the above, the entire command is ignored. (3) Underlines are not applied to bit image. (Refer to Section 3.4.4.) (4) Underlines are applied to graphic characters. (5) Underlines are applied to the spaces (20H. 7FH or FFH). (6) This command does not prompt print start. (7) For the print position of underline, refer to Section 3.4.5. (8) Underlines are printed in the same pass as for the characters. (9) Double Strike Print is not applied to underlines even if the mode is specified. (10) Emphasized Print is not applied to underlines even if the mode is specified. (11) Underlines are not applied to the move made by the Absolute Position Designate command (ESC $ n1 n2). (12) Underlines are not applied to the move prompted by the Relative Position Designate command (ESC \ n1 n2).
Double Height Print Set/Reset ESC w n Name: Double Height Print Set/Reset HEX: 1BH 77H n DEC: 27 119 n Code Function: (1) (2) Sets/Clears Double Height Print. To print characters received subsequent to this command in double height. Values of n Values of n 01H, 31H 00H, 30H (3) Meaning Sets Double Height Print Resets Double Height Print If n is other than the above, the entire command is ignored. In Validation Mode, the above setting is valid but printing will be the same as when Double Height Mode is reset. 41049421PS Rev.3 46 /
Double Width Print Set/Reset ESC W n Name: Double Width Print Set/Reset HEX: 1BH 57H n DEC: 27 87 n Code Function: (1) To set/reset Double Width Print. To enlarge the characters received after this command double in width, then print. Values of n (2) Values of n 01H, 31H 00H, 30H If the value of n is other than the above, the entire command is ignored. For how to enlarge characters refer to Section 3.3.3. The table below shows the character sizes in Double Width Print for each font selected. (3) (4) Font type
Code Function: (1) (2) (3) (4) To set Italic Print. To print characters received subsequently to this command in Italic. This command is valid even if received in the middle of the line and takes effect immediately. Graphics characters are not printed in Italic. (See 3.4.4.) Characters in Italic are printed in slant on the basis of the lowest dot (9th dot) in the normal character patterns. For how characters are slanted, see 3.3.3. 41049421PS Rev.3 47 /
To reset Italic Print Mode. This command is valid even if received in the middle of the line and takes effect immediately. If characters overlap as a result of setting/resetting of Italic characters, OR takes place for printing. Emphasized Print Designate/Clear ESC E n Name: Emphasized Print Designate/Clear HEX: 1BH 45H n DEC: 27 69 n Code Function: (1) (2) To designate or clear Emphasized Print Mode. To print characters that are received after this command emphasized in the horizontal direction. Characters in Emphasized Print are heavier in the horizontal direction than normal character pattern. (Horizontally emphasized print) Values of n Values of n 01H 00H (3) (4) (5) Meaning Designated Emphasized Print. Clears Emphasized Print. The upper seven bits of n are ignored. For more about Emphasized Print, refer to Section 4.3. Emphasized Print applies to line graphics as well. Emphasize Print does not apply to bit images. 41049421PS Rev.3 48 /
Double Strike Print Designate/Clear ESC G n Name: Double Strike Print Designate/Clear HEX: 1BH 47H n DEC: 27 71 n Code Function: (1) To designate or clear Double Strike Print Mode. To print again over the characters that are received after this command. Values of n (2) Values of n 01H 00H The upper seven bits of n are ignored. To print over the same characters in 2 passes. Double Strike Print applies to line graphics as well. This command does not prompt print start. In Validation Mode, the above setting is valid but printing will be the same as when Double Strike Mode is “cleared.” (3) (4) (5) (6)
Meaning Designates Double Strike Print Mode. Clears Double Strike Print Mode. Blanket Print Mode Designate ESC ! n Name: Blanket Print Mode Designate HEX: 1BH 21H n DEC: 27 33 n Code Function: (1) (2) To designate printer modes all at once. The n is a parameter that designates print modes by each bit, and the correspondence between Print Modes and bits are as follows: MSB LSB
Emphasized Print (Horizontally) Designate ESC E 1 Clear ESC E 0
Double Width Print Designate ESC W 1 Clear ESC W 0
Underline Designate ESC-1 Clear ESC-0 Designations by this command have the same effects as by the above individual corresponding commands. 41049421PS Rev.3 49 /
Code Function: (1) (2) (3) (4) To designate Condense Print. To print characters and bit images at 240DPI. (A printing area does not change; thus, the number of printable columns changes.) This command is valid only when received at the start of the line (If Condense Print Designate and Condense Print Clear are both present in the same line, printing cannot take place.) This is valid in all modes of Journal, Receipt, Receipt+Journal, Validation, Slip and Sprocket, and printing is performed at 180DPI if Condense is cleared and at 240DPI if Condense is designated. At default, Condense mode is reset.
Code Function: (1) To designate Condense Print. (This is the same function as 3.2.5.10 SI.)
Code Function: (1) (2) (3) (4) To clear Condense Print. To clear Condense Print that has been set by the Condense Designate commands (SI, ESC SI). This command is valid only when received at the start of the line. (If Condense Print Designate and Condense Print Clear are present in the same line, printing cannot take place.) At default Condense mode is cleared. This command is valid in all print sheet modes, and printing is performed at 180DPI if Condense is cleared and at 240DPI if Condense is designated. 41049421PS Rev.3 50 /
Image Control This section describes Image Control Function.
Bit Image Mode Designate ESC * m n1 n2 Name: Bit Image Mode Designate HEX: 1BH 2AH m n1n2 data DEC: 27 42 m n1n2 data Code Function: (1) (2) Prints in bit image mode set by m. Types of bit images set by m: Parameters Details
00H (Single density) 01H (Double density) Dots in vertical direction
(3) (4) (5) The upper value is the number of dots when the width is 76.2mm while the lower values is the number of dots when the width is 69.5mm. Note) In Double Density, when two or more columns continue horizontally next to each other, adjacent even-number positioned dots cannot be printed. For details, refer to (9). When an m value other than the above is received, the “ESC * m” part of the command will be ignored, and n1 and thereafter will be processed as print data or a function code. Definitions and range of n1 and n2 (a) Definitions To specify the number of columns according to the following formula: Number of columns =n1+n2 × 256 (b) Range
- If n1=n2=0, the entire command of ESC* m n1 n2 will be ignored. The number of data will be determined based on the number of columns set by n1 and n2. (a) Number of data=n1+n2 × 256 (bytes) When a setting exceeding the right margin is made, data up to the right margin will be valid, and data exceeding the right margin will be ignored. 41049421PS Rev.3 51 / (6) (7) With Same Data Print cleared in Receipt+Journal Mode, if the position to start receiving data is on the Receipt side, yet goes beyond the Receipt’s right margin, the data that goes beyond the right margin will be printed from the Journal’s left margin (start of the line). If it goes beyond the Journal’s right margin, the data only up to the Journal’s right margin will be valid. (See
n1+n2 × 256 bytes (8) Data is written in the above sequence. Relationship between data and print head pins (Single density images) Dot clearance is 1/90" horizontally and 1/72" vertically. It is 1/120" horizontally if Condense is designated. bit pin 1/72 inch
1/90 inch or 1/120 inch (9) Relationship between data and print head pins (Double density images) Dot spacing is 1/180 inch horizontally and 1/72 inch vertically. Dot spacing is 1/240 inch horizontally if Condense is designated. bit pin 1/72 inch
1/180 inch or 1/240 inch Dots are not printed. 41049421PS Rev.3 52 /
9-Pin Bit Image Mode Designate ESC ^ m n1 n2 Name: 9-Pin Bit Image Mode Designate HEX: 1BH 5EH m n1n2 data DEC: 27 94 m n1n2 data Code Function: (1) (2) To print according to the bit image set by m. Types of bit images that are set by m are as follows: Parameters Details
00H (Single density) 01H (Double density) Dots in vertical direction
(3) (4) (5) (6) The upper value is the number of dots when the width is 76.2mm while the lower values is the number of dots when the width is 69.5mm. Note) In Double Density, when two or more columns continue horizontally next to each other, adjacent even-number positioned dots cannot be printed. For details, refer to (9). When an m value other than the above is received, the ESC ^ m part of the command will be ignored, and n1 and thereafter will be processed as print data or a function code. Definitions and range of n1 and n2 (a) Definitions To specify the number of columns according to the following formula: Number of columns =n1+n2 × 256 (b) Range
- If n1=n2=0, the entire command of ESC ^ m n1 n2 will be ignored. The number of data will be determined by doubling the columns based on the number of columns set by n1 and n2. (a) Number of data=n1+n2 × 256 × 2 (bytes) When a setting exceeding the right margin is made, data up to the right margin will be valid, but data exceeding the right margin will be ignored. With Same Data Print cleared in Receipt+Journal Mode, if the position to start receiving data is on the Receipt side, yet goes beyond the Receipt’s right margin, the data that goes beyond the right margin will be printed from the Journal’s left margin (start of the line). If it goes beyond the Journal’s right margin, the data only up to the Journal’s right margin will be valid. (See
MSB LSB MSB LSB n1+n2 × 256 columns (8) Data is written in the above sequence. The number of data is twice that of columns. Bit 7 of even bytes will form a 9-pin image. Relationship between data and print head pins (Single density images) Dot clearance is 1/90" horizontally and 1/72" vertically. It is 1/120" horizontally if Condense is designated. pin
1/90 inch or 1/120 inch 41049421PS Rev.3 54 / (9) Relationship between data and print head pins (Double density images) Dot clearance is 1/180 inch horizontally and 1/72 inch vertically. Dot clearance is 1/240 inch horizontally if Condense is designated. bit pin
Dots are not printed. 41049421PS Rev.3 55 /
Print Sheet Select ESC c 0 n Name: Print Sheet Select HEX: 1BH 63H 30H n DEC: 27 99 48 n Code Function: (1) (2) To select print sheet subject to printing. The n is a parameter that designates print sheet by the bit, and the correspondence between print sheet and bit is as follows: MSB LSB
- Undefined bits will be masked; therefore, either 0 or 1 can be set.
- Only the combination of Receipt+Journal is valid; other types of print sheet are valid only if they are individually selected. If any other combinations than Receipt+Journal are set, the entire command will be ignored.
- If all types of print sheets are invalid, the entire command is ignored. *1 With the 1 Roll Model, if either Journal (bit0) or Receipt (bit1) is valid, Roll paper becomes valid. When this command is received while a line is being received, the entire command will be ignored. To perform Eject when the following print sheet switch takes place, in the same way as when the FF command is received: (a) Switch from Slip to Receipt/Journal/Receipt+Journal. (b) Switch from Slip to Validation. To set Print Sheet to Receipt+Journal regardless of the setting by this command when the option tractor is installed and the lever is switched. With the optional tractor installed, if this command is received when the lever is set to Tractor, the setting of Receipt/Journal/Receipt+Journal is valid. (Any other print sheet settings are invalid.) Line feed pitch can be set separately for each print sheet in a combination of the set sheet selection and the Line Feed Pitch Set command. (In Receipt+Journal Mode, line feed is performed according to each set line-feed pitch at the execution of LF. ) Whether to or not to stop printing at Paper Out can be set separately for each print sheet by the Stop Print Sensor Select. The default print sheet is Receipt+Journal. When the option tractor is installed and the lever is set to the Tractor side, if the sprocket paper has been fed, the default print sheet will be Sprocket. 41049421PS Rev.3 56 /
Set Sheet Select ESC c 1 n Name: Set Sheet Select HEX: 1BH 63H 31H n DEC: 27 99 49 n Code Function: (1) (2) To select a sheet subject to setting the line feed pitch. The n is a parameter that designates a sheet (s) that becomes subject to setting by the bits. Correspondence between print sheet and bit is as follows: MSB LSB
- Undefined bits will be masked. Therefore either 0 or 1 setting is permitted.
- Multiple sheets can be selected simultaneously and in that case all the selected sheets will be subject to selection.
- If all types of print sheets are invalid, the LF Pitch Set command is ignored in its entirety. (3) (4) (5) (6) With the 1 Roll Model, if either Journal (bit0) or Receipt (bit1) is valid, Roll paper becomes valid. The settings by this command are applied when the following setting commands are received:
- Line Feed Pitch Set command: ESC 0, ESC 1, ESC 2, ESC 3 n, ESC A n, ESC % 9 n At default, all types of print sheet are subject to this command. (Valid with all.) Even if Validation is made valid, there are no other items to actually set. To disable Set Sheet selection of Sprocket, which can be set by ESC DLE c Pno 1 n. 41049421PS Rev.3 57 /
Paper Sensor Select Enabling Paper End Signal ESC c 3 n Name: Paper Sensor Select Enabling Paper End Signal HEX: 1BH 63H 33H n DEC: 27 99 51 n Code Function: (1) (2) (3) (4) To select a paper sensor that enables the Paper End Signal. Range of n 00H ≤ n ≤ FFH To select a status of the sensor to enable the paper end signal. The n is a parameter that designates the sensor by the bit, and the correspondence between the sensor and each bit is as follows: MSB LSB
- Undefined bits will be masked. Therefore either 0 or 1 setting is permitted.
- Multiple sheets can be selected simultaneously and in that case all the selected sheets will be subject to selection. *1 With the 1 Roll Model, if either Journal Near End sensor (bit0) or Receipt Near End sensor (bit1) is valid, the Roll Paper Near End sensor will become valid. *2 With the 1 Roll Model, if either Journal Near End sensor (bit2) or Receipt Near End sensor (bit3) is valid, the Roll Paper Near End sensor will become valid. (5) If multiple sensors are designated to Enable, when one of the sensors has detected paper end, the paper end signal will be enabled. (6) This command becomes valid only with the parallel interface; it is received and ignored until ESC c 3 n with the serial interface. (7) The initial state of this command conforms to the settings of the menu "Paper End Signal". "Yes (RNE or RE)" : n = 0FH (Receipt/Journal Near End Sensor and End Sensor enabled) "Yes (RE)" : n = 0CH (Receipt/Journal End Sensor enabled) "No" : n = 00H (all the sensors disabled) (8) If the sensor that has been set valid by this command detects Paper End without regard to the selected, the paper end signal will be enabled. (Example) When bit4 (Slip Insert sensor) of ESC c 3 n is valid, even if the selected print sheet is Receipt, the Paper End signal will be enabled in the Slip paper end status. (9) To enable/disable the Paper End signal solely based on the sensor status. (Example) The Paper End signal is enabled/disabled according to a status of the Slip Insert sensor and Slip Eject sensor, even if Slip paper has been already fed. (10) The Fault signal, too, will change together with the Paper End signal. The Busy signal will not change. (11) The setting of Paper End signal enable/disable by this command will not affect the status of the LED (ON, OFF, Blink) influenced by the status of each paper sensor. 41049421PS Rev.3 58 /
Print Stop Sensor Select ESC c 4 n Name: Stop Print Sensor Select HEX: 1BH 63H 34H n DEC: 27 99 52 n Code Function: (1) (2) To select in which sensor status printing should be stopped. The n is a parameter that designates a sensor(s) by the bit. The correspondence between sensor and bit is as follows: MSB LSB
- Undefined bits will be masked. Therefore, setting either 0 or 1 is permitted.
- Multiple sensors can be selected simultaneously and in that case, all the selected sensors become subject to this command.
- If either bit 4 or bit 5 is “1,” the Slip Insert sensor takes effect. *1 With the 1 Roll Model, if either Journal Near End sensor (bit0) or Receipt Near End sensor (bit1) is valid, Roll paper Near End sensor will become valid. *2 With the 1 Roll Model, if either Journal Near End sensor (bit2) or Receipt Near End sensor (bit3) is valid, the Roll paper Near End sensor will become valid. The initial state of this command is as follows: n = 0CH Only the Journal End sensor and Receipt End sensor are valid; any other sensors are invalid. The sensors that determine the validity of setting by this command vary, depending on the selection of print sheet.
- If print sheet is Receipt, the setting by bit 1 and bit 3 takes effect.
- If print sheet is Journal, the setting by bit 0 and bit 2 takes effect.
- If print sheet is Receipt+Journal, the setting by bit 0,bit 1, bit 2 and bit 3 takes effect.
- If print sheet is Slip, the setting by bit 4 and bit 5 takes effect.
- If print sheet is Validation, Print Stop Sensor Select is disabled, and printing will stop as with the Slip Eject sensor (Validation sensor) at paper end. (Valid Print Stop Sensor is fixed.)
- If print sheet is Sprocket, Print Stop Sensor Select is disabled, and the bottom edge of paper is monitored by the Slip Insert sensor, and when it goes beyond the printable area, printing will stop. (Valid Print Stop sensor is fixed.) 41049421PS Rev.3 59 /
Cut Form Wait Time Set ESC f t1 t2 Name: Cut Form Wait Time Set HEX: 1BH 66H t1 t2 DEC: 27 102 t1 t2 Code Function: (1) (2) (3) (4) (5) (6) To set a time for the printer to wait for Slip and Validation to be inserted and a time till an operation begins after either is inserted. (Feeding Slip or printing Validation.) Definition and range of t1 (a) Definition t1 specifies a time to wait for Slip or Validation to be inserted in increments of a minute. (b) Range 00H(0D) ≤ t1 ≤ 0FH(15D) When the value of t1 is other than the above, the entire command is ignored. (c) When t1=0, a wait time for paper to be inserted is infinite. (d) If paper insertion is not detected even after the time specified by t1 has elapsed, Slip or Validation Print Sheet Mode will automatically be cancelled, and Receipt+Journal Print Sheet mode becomes effective. (e) If Slip is ejected because the switch is pressed while receiving data for the line and the printer waits for insertion, a wait time will be infinite regardless of the setting by this command. The printer waits for insertion after paper eject has been made by the switch, only when the Slip Print Stop Sensor is effective (bit5=1 of ESC c 4 n). (f) Default setting is limitless. (t1=0) Meaning and range of t2 (a) Meaning t2 specifies a time to start of operation following insertion, in increments of 0.1 second. Start of operation following insertion means an operation of starting feeding paper if Slip is selected and printing if Validation is selected. (b) Range 00H(0D) ≤ t2 ≤ 40H(64D) If the value of t2 is other than above the entire command will be ignored. (c) Default setting is 1 second (t2=10) This command becomes valid regardless of the selected Print Sheet(s), but the setting itself becomes effective in the Slip or Validation Print Sheet Mode. This setting cannot be made separately for Slip and Validation Print Sheet. (The same setting is used for Slip and Validation.) The same time value(s) will be used in MICR Read Mode as well. 41049421PS Rev.3 60 /
Code Function: (1) To cut the entire Receipt when “Auto Cutter Yes” is set in “Auto Cutter YES/NO” on the menu. (If an Auto Cutter is not installed, however, Auto Cutter Alarm will occur.) If “Auto Cutter No” is set in “Auto Cutter YES/NO” on the menu, the entire command will be ignored (regardless of Auto Cutter being installed or not). To operate without regard to the print sheet mode or the print sheet status. (2) (3)
Partial Cut (one point left intact) ESC m Name: Partial Cut (1 point left intact) HEX: 1BH 6DH DEC:
Code Function: (1) To cut Receipts leaving 1 point intact when “Auto Cutter Yes” is set in “Auto Cutter YES/NO” on the menu. (If an Auto Cutter is not installed, however, Auto Cutter Alarm occurs.) If “Auto Cutter No” is set in “Auto Cutter YES/NO” on the menu (regardless of Auto Cutter being installed or not), the entire command will be ignored. To operate without regard to the print sheet mode or the print sheet status. (2) (3)
Receipt+Journal Same Data Print Designate/Clear ESC z n Name: Receipt+Journal Same Data Print Designate/Clear HEX: 1BH 7AH n DEC: 27 122 n Code Function: (1) (2) To designate or clear Same Data Print with Receipt+Journal. Value of n 01H 00H (3) (4) (5) (6) (7) Definition Designates Same Data Print Clears Same Data Print Upper 7 bits of n are ignored. Default value: n=00H (Same Data Print Clear) This is valid only when received at the start of the line. The Setting (designate or clear) is valid even in other modes than Receipt+Journal. If Same Data Print is designated, the same data is printed to both Receipt and Journal. Line feed, however, will be performed according to the line feed pitch set for each. If Same Data Print is cleared, the line will be treated as with the line that includes a skip area in the printing area. 41049421PS Rev.3 61 /
Print Sheet Select ESC DLE c Pno 0 n Name: Print Sheet Select HEX: 1BH 10H 63H Pno 30H n DEC: 27 16 99 Pno 48 n Code Function: (1) (2) (3) To select a sheet subject to printing. The MSB of DLE (10H) in the command sequence will be ignored. (“90H” is effective as well.) Valid range and definition of parameter (a) Pn0: To designate the bytes (parameters) following ESC DLE c Pno. Its MSB will be ignored. Range: 00H ≤ Pno ≤ FFH With this command, Pno=2. (b) n: A parameter that designates a print sheet by the bit, and the correspondence between print sheet and bit is shown below. MSB LSB
- Undefined bits will be masked; therefore, either 0 or 1 can be set.
- Only the combination of Receipt+Journal is valid; other types of print sheet are valid only if they are individually selected. If any other combinations than Receipt+Journal are set, the will be ignored in their entirety.
- If all types of print sheets are invalid, the command is ignored in its entirety. *1 With the 1 Roll Model, if either Journal(bit0) or Receipt(bit1) is valid, Roll paper will be valid. When this command is received while a line is being received, the entire command will be ignored. To perform Eject when the following print sheet switch takes place, in the same way as when the FF command is received: (a) Switch from Slip to Receipt/Journal/Receipt+Journal. (b) Switch from Slip to Validation. To set Print Sheet to Receipt+Journal when the option tractor is installed and the lever is switched to either side (Tractor side or Slip side) regardless of the setting by this command. With the optional tractor installed and the lever set to the Tractor side, only the setting of Receipt/Journal/Receipt+Journal/Sprocket is valid when this command is received. (Any other print sheet setting is invalid.) 41049421PS Rev.3 62 / (8) Line feed pitch can be set separately for each print sheet by the combination of the Set Sheet Select and the Line Feed Pitch Set commands. (In Receipt+Journal Mode, line feed is performed according to each set line-feed pitch at the execution of LF.) (9) Whether to or not to stop printing at Paper End can be set separately for each print sheet by the Stop Print Sensor Select. (10) The default print sheet is Receipt+Journal. With the option tractor installed, the lever set to Tractor, and the sprocket paper loaded, the default print sheet is Sprocket. (11) When the optional tractor is not installed, or when the optional tractor is installed but the lever is not set to Tractor, the selection of Sprocket will be invalid. (12) This command is exactly the same as ESC c 0 n except for Sprocket being added to bit 4 relative to the parameter n. 41049421PS Rev.3 63 /
3.2.7.10 Set Sheet Select
ESC DLE c Pno 1 n Name: Set Sheet Select HEX: 1BH 10H 63H Pno 31H n DEC: 27 16 99 Pno 49 n Code Function: (1) (2) (3) To select a sheet subject to line feed pitch setting and page length setting. The MSB of DLE (10H) in the command sequence will be ignored. (“90H” is effective as well.) Valid range and definition of n (a) Pn0: To designate the number of bytes (parameters) following ESC DLE c Pno. Its MSB will be ignored. Range: 00H ≤ Pno ≤ FFH With this command, Pno=2. (b) n: A parameter that designates a sheet subject to setting by the bit, and the correspondence between sheet and bit is shown below. MSB LSB
- Undefined bits will be masked; therefore, either 0 or 1 can be set.
- Multiple sheets can be selected at the same time, and in that case all sheets are subject to setting.
- If all types of print sheets are invalid, the Line Feed Pitch and Page Length Set commands will be ignored in their entirety. *1 With the 1 Roll Model, if either Journal (bit0) or Receipt(bit1) is valid, Roll paper will be valid. The settings by this command are applied when the following setting commands are received:
- Line Feed Pitch Set command : ESC 0, ESC 1, ESC 2, ESC 3 n, ESC A n, ESC % 9 n
- Page Length Set command : ESC C n
- Perforation Skip Set/Reset command : ESC N n, ESC O
- Even if Validation is valid (bit3=1), it will not affect the settings by the above commands. At default, all types of print sheet are subject to this command. (All sheets are valid.) This command is exactly the same as ESC c 1 n except for addition of Sprocket to bit 4 relative to the parameter n. Upon reception of ESC c 1 n, however, Set Sheet Select for Sprocket will be become invalid. 41049421PS Rev.3 64 /
Printer Hardware Control This section describes the printer hardware control functions.
Peripheral Device Select ESC = n Name: Peripheral Device Select HEX: 1BH 3DH n DEC: 27 61 n Code Function: (1) (2) To select a peripheral device, with which data input from the host PC becomes valid. Definition of bits in n: Bit (3) (4) (5) (6) Device Value
Printer Deselected Selected
Customer Display Deselected Selected
If the value of n is other than the above, the command will be ignored in its entirety.
- Printer and Customer Display can be simultaneously selected or deselected. Presence of any data that has not yet been printed before reception of data command will not invoke print start. With the setting of Printer Deselected, this printer will ignore all data it receives (except for DLE ENQ 02H) until selected by this command. If there is any data not printed as yet before Printer Deselected takes effect, that data will be printed when print start is prompted after Printer Selected takes placed. Even if Printer Deselected is in effect, the printer sometimes goes Off-line through some printer operations (the cover is opened or SW on the Operator Panel is pressed). 41049421PS Rev.3 65 / (7) Default (a) At POW ON, reception of I-PRIME signal (Parallel model)/Reset signal (Serial model) 02H 01H Customer Display connected or disconnected DIP-SW 1-8 setting on the Serial I/F board is Customer Display connect *1 DIP-SW 1-8 setting on the Serial I/F board is Customer Display disconnect *1 (b) Execution of ESC@ Default setting by ESC@ is determined according to the value designated by ESC = and the menu setting immediately prior to the process of ESC@, as shown in the table below. Preceding setting (n) 01H 02H 03H After DIP-SW 1-8 setting on the Serial I/F board is CusESC @ tomer Display connect *1 Process DIP-SW 1-8 setting on the Serial I/F board is Customer Display disconnect *1 01H 02H *2 02H 01H 02H *2 01H
Fixed to Disconnect with Parallel models. In the Printer Deselected state, the printer will not process ESC @; thus, the value set in ESC = will not change. Customer Display is optional and can be connected only with the Serial models. The command itself is valid, however, even with the Parallel models. 41049421PS Rev.3 66 /
Peripheral Device Status Send ESC u n Name: Peripheral Device Status Send HEX: 1BH 75H n DEC: 27 117 n Code Function: (1) (2) To create(send) a status of the connector pin “n” at execution of the command. Types of n: 00H 30H Connector Pin Drawer Kick Connector Pin #3 (Notes) (Notes common to Parallel/Serial) (a) Bit 0 is always “1” if nothing is connected to the connector. (b) If ASB by the command GS a or ESC DLE a is valid, it becomes necessary to distinguish a status by this command from a status by ASB. (c) If the value of n is other than the defined range, the command will be ignored in its entirety. (d) If the printer holds one status by ASB and another by this command, it sends the one by ABS first. (Notes specific to Parallel Mode) (a) This command is executed as incoming data is processed in the receive buffer and a onebyte status is created. This status is sent at the request from the host PC for reverse data transfer. (b) There may be some delay incurred between command reception and status creation, depending on the status of the receive buffer. (c) If the host PC does not request reverse data transfer after reception of this command, data will be held to the maximum of 100bytes (except a status by ASB). If the size of data held exceeds 100 bytes, reception of this command will not prompt creating data to be sent to the host PC. 41049421PS Rev.3 67 / (Notes specific to Serial Mode) (a) This command is executed as incoming information is processed in the receive buffer, and a one-byte status is sent. (b) With DTR/DSR Control selected, the printer sends one byte after confirming that the host PC is enable to receive (DSR Signal is in SPACE). If the host PC is not enable to receive (DSR Signal is in MARK), the printer keeps waiting until the host becomes enabled to receive. With XON/XOFF Control selected, the printer sends one byte without confirming the status of the DSR signal. (c) This command is executed as incoming data is processed in the receive buffer; thus, there may be some delay incurred between command reception and status creation, depending on the status of the receive buffer. Statuses to be sent: Functions LSB MSB Bit value= 0 Bit value= 1 “L” “H”
Drawer Kick Connector Level of Pin #3
(Fixed) Fixed at 0. Fixed at 0.
(Fixed) Fixed at 0. Fixed at 0.
- For any undefined bits, 0 will be sent.
Panel Switch Enable/Disable ESC c 5 n Name: Panel Switch Enable/Disable HEX: 1BH 63H 35H n DEC: 27 99 53 n Code Function: (1) (2) (3) (4) To switch Enable/Disable for all the panel switches. To enable the panel switch if n has bit0=0. To disable the panel switch if n has bit0=1. Range of n
- Only the LSB of n is valid. If any of the panel switches is disabled by this command, all panel switches will be disabled. (Except for Cover Open) Reception of this command will not invoke printing of data that has not yet been printed. 41049421PS Rev.3 68 /
To clear the contents of the print buffer for the line, at which this command was received and shift the next print start position to the Left Margin position. The data for which print start has already been prompted cannot be cleared, however. To clear the contents of the print buffer for Receipt and Journal within the same line if Same Data Print Clear is in effect while in the Receipt+Journal mode. Only data that is canceled is the print data (including spaces, etc.) within the line, at which this command was received. Therefore, print modes such as Double Width are not canceled. Printer Initialize ESC @ Name: Printer Initialize HEX: 1BH 40H DEC:
Code Functions: (1) (2) (3) (4) (5) (6) (7) (8) (9) To initialize printer settings. To clear all printing data in the print buffer and initialize each setting. The data in the line that has already been received and for which print start has already been invoked prior to reception of this command cannot be cleared. The receive buffer is not cleared either. Refer to 3.4.1 for defaults. Default print sheet is Receipt+Journal. If the optional tractor is installed, the lever is set to Tractor, and Sprocket paper is loaded, then default print sheet is Sprocket paper. To eject paper according to the sensor monitoring if Slip is already loaded, and start initializing after removal of paper. (This is the same ejecting action as reception of the FF command without Eject Length set.) With the optional tractor installed, the lever set to Tractor and Sprocket paper loaded the position where this command is received is the TOF position for Sprocket paper. (If it happens to be in the cut position, then the cut position remains effective.) When Sprocket paper (with optional tractor installed) is set for print sheet, even if the print sheet is not present at the Slip sensor at the time of reception of this command, the paper loaded status will remain effective. For Validation (already loaded), initialization starts after removal of paper. This command becomes invalid if Printer is not selected by the command ESC = (Peripheral Device Select). 41049421PS Rev.3 69 /
Unidirectional Print Designate/Clear ESC U n Name: Unidirectional Print Designate/Clear HEX: 1BH 55H n DEC: 27 85 n Code Functions: (1) (2) To designate/clear Unidirectional Print (printing from left to right). Value and definitions of n Value of n 01H 00H (3) (4) (5) (6)
Desigantion Unidirectional Print Designate Unidirectional Print Clear (Bidirectional) The upper seven bits of n are ignored. To print in a single direction starting with the line at which the Unidirectional Print Designate command was received. To print in two directions starting with the line at which the Unidirectional Print Clear command was received. If both Designate and Clear are present in the same line, whichever print direction is set last will take effect. Default is Bi-directional Print. One Line Unidirectional Print ESC < Name: One Line Unidirectional Print HEX: 1BH 3CH DEC:
Code Functions: (1) (2) (3) (4) To print from left to right the line at which this command was received. (To move the head to the home position. As a result, Unidirectional printing takes place.) This command is not continual. This command does not invoke printing. This can be set effectively anywhere in the line. 41049421PS Rev.3 70 /
Code Functions: (1) To create(send) a status of the paper sensor at the time of command execution. Notes) (Items common to both Parallel and Serial Models) (a) If ASB by the command GS a or ESC DLE a is effective, it is necessary to distinguish a status by this command from one by ASB. (b) Statuses of all the sensors are monitored regardless of the selected paper mode. (With the sensor for other than the selected paper mode, its status to be created(sent), too, will change if its state changes.) (c) Presence of print data not printed as yet at the time of reception of this command will not prompt printing. (d) If the printer holds one status by ASB and another by this command, it sends the one by ASB first. (Notes specific to Parallel Mode) (a) This command is executed as incoming data is processed in the receive buffer and a onebyte status is created after printing and paper feeding has completely stopped. (Its status create timing is different from ESC u, GSI, or GS r 2.) This status is sent at the request from the host PC for reverse data transfer. (b) There may be some delay incurred between command reception and status creation, depending on the status of the receive buffer. (c) If the host PC does not request reverse data transfer after reception of this command, data will be held to the maximum of 100bytes (except a status by ASB). If the size of data held exceeds 100 bytes, reception of this command will not prompt creating data to be sent to the host PC. (Notes specific to Serial Mode) (a) This command is executed as incoming information is processed in the receive buffer, and a one-byte status is created and sent after printing and paper feeding has completely stopped. (Its status create timing is defferent from ESC u, GS I, or GS r 2.) (b) With DTR/DSR Control selected, the printer sends one byte after confirming that the host PC is enable to receive (DSR Signal is in SPACE). If the host PC is not enable to receive (DSR Signal is in MARK), the printer keeps waiting until the host becomes enabled to receive. With XON/XOFF selected, the printer sends one byte without confirming the status of the DSR signal. (c) There may be some delay incurred between command reception and status creation, depending on the status of the receive buffer. 41049421PS Rev.3 71 / Functions LSB MSB Bit value= 0 Bit value= 1
Receipt Near End Sensor Paper present Paper End
Receipt Paper Sensor Paper present Paper End
(Fixed value) Fixed at 0 Fixed at 0
Slip Exit Sensor (Validation sensor) Paper present Paper End
(Fixed value) Fixed at 0 Fixed at 0 Bit 0, 1: With 1-Roll model, the Roll paper Near End Sensor status takes effect. Bit 2, 3: With 1-Roll model, the Roll paper End Sensor status takes effect. 41049421PS Rev.3 72 /
Menu Item Set ESC DLE D Pno Pa1 Pb1 … Pan Pbn Name: Menu Item Set HEX: 1BH 10H 44H Pno Pa1 Pb1 … Pan Pbn DEC: 27 16 68 Pno Pa1 Pb1 … Pan Pbn Code Functions: (1) (2) (3) (4) (5) (6) (7) To set Menu. MSB of DLE (10H) in the command sequence is invalid. (“90H” is effective as well.) Valid range and meaning of parameters (a) Pno: Designates the number of bytes (parameters) following ESC DLE D Pno. MSB is invalid. Range 00H ≤ Pno ≤ FFH If Pno=00H or 01H, the menu settings do not change, but initialization takes place. If Pno=01H, whatever follows, up to one byte, is the sequence. (b) Pa: Sets the Menu item number. If Bit6=1, then it is recognized as a Pa parameter. MSB is invalid. Range 40H ≤ Pa ≤ 7F, 0H ≤ Pa ≤ FFH (c) Pb: Sets Menu set values. If Bit6=0, it is recognized as a Pb parameter. MSB is invalid. Range 00H ≤ Pb ≤ 3F, 80H ≤ Pb ≤ BFH Printing is activated when ESC DLE D is received. After the settings by this command are completed, each mode is set to default. (For the initial state, refer to Section 3.4.1.) EEPROM contents are rewritten by this command setting. However, it does not write in EEPROM, when the setting items by this command are the same as the Menu settings. The following shows examples of command sequences. No.
x110 1000 Paper End Signal Slashed Unslashed 88.9mm 139.7mm 215.9mm 279.4mm 304.8mm Yes (RNE or RE) Yes (RE) No.
- The setting with 41049421PS Rev.3 Menu items
GS E n Name: Print Speed and Head Current Run Time Set HEX: 1DH 45H n DEC: 29 69 n Code Functions: (1) (2) Selects print speed and head current run time (printing operation mode) (Effective in with selected sheet.) n: A parameter that specifies print speed and head current run time by each bit. The following shows how each bit works. MSB LSB
Head current run time
Print speed Slow speed High speed
- Undefined bits are masked; thus, either 0 or 1 can be set.
- If bit4=0, Standard Mode applies regardless of 0 or 1 for bit0. Therefore, there are the following three types of printing modes. bit7 bit0 ***0***0 (3) Print speed Head current run time Print operation mode ***0***1 High speed (100%) Standard 1 (Short) Standard mode ***1***0 Low speed 2 (80%) Copy (Long) Copy mode ***1***1 Low speed 1 (85%) Standard 2 (Medium) Low speed mode This print operation mode can be set separately for the following print sheets. It is set when a print sheet is selected this command is received. No.
(4) The setting for Receipt/Journal/Receipt+Journal is shared among them. If the setting for Receipt is different from that for Journal, the setting made last is effective in all modes. If the command is received while a line is being received, the command becomes valid in that line onward. 41049421PS Rev.3 75 /
3.2.8.11 Desiganted Pulse Generate (Open Cash Drawer)
ESC p m t1 t2 Name: Designated Pulse Generate (Open Cash Drawer) HEX: 1BH 70H m t1 t2 DEC: 27 112 m t1 t2 Code Functions: (1) (2) Outputs the signals designated by t1 and t2 to Connector Pin m. Values and definitions of m Value of m 00H, 30H 01H, 31H (3) Content of designation Drawer Kick Connector Pin 2 Drawer Kick Connector Pin 5 If the value of m is other than the above, the command is ignored to ESC p m, and t1 and thereafter are processed as either print data or a function code. Range and definitions of t1 and t2
- t1: ON time in increments of 10ms t2: OFF time in increments of 10ms
- Range 00H ≤ t1 ≤ FFH, 00H ≤ t2 ≤ FFH
- If t1>t2, the value of t2 is processed as if t1=t2. 41049421PS Rev.3 76 /
Byte 3 – Bit 5,6 Byte 4 – Bit 0,1,2,3 (Notes) (Notes common to Parallel/Serial) (a) Setting and creating(sending) status by this command is performed when the receive buffer is expanded. (b) When none of the statuses is selected, ASB function becomes invalid. (No status will be created or sent.) (c) For statuses to be sent refer to the tables on the subsequent pages. (d) This command is disabled in Printer Deselected set by the Peripheral Device Select (ESC =), but the ASB functions, once set, are valid. (e) In using ESC u, ESC v, GS I, GS r, DLE EOT, GS ENQ, or ESC DLE r, it becomes necessary to distinguish a status by this command or the ASB function from one by each command. (f) For the undefined bits, 0 is sent instead. (For the undefined bit of Byte 4, 1 is sent instead.) (g) If Menu “Off-line Busy Control” is set to “No,” the ASB status is created (sent) immediately after POW ON, reception of I-PRIME signal (Parallel model)/Reset signal (Serial model), reception of ESC @, or initialization by Menu setting command reception. 41049421PS Rev.3 77 / (Notes specific to Parallel Model) (a) If any of statuses is selected valid, the ASB function becomes enabled, and the printer uses the change to the status selected valid as a trigger, and creates a 4-byte status as send data to the host PC. (Even for statuses selected invalid, the printer still creates a current status.) (b) If any of statuses is selected valid, the printer creates a status as data to be sent to the host PC as subsequent data is processed in the receive buffer. There may be some delay incurred between reception of this command and creation of status data. (You must be aware that when a status change occurs before the entire command is processed, the printer creates a new status.) (c) The created send data to the host PC is sent at a request for reverse transfer from the host PC. (d) If the selected status changes several times without data being read due to the reverse data transfer requests from the host PC, the printer will hold up to two sets of the latest status (8bytes). (e) If any ASB statuses by the ESC DLE a Pno n command that has not been sent is held, they will be cleared upon reception of this command. (f) If an unrecoverable error occurs, the same status will be sent whenever host requests a reverse transfer when any of the statuses is subject to auto status send. Regarding information of other than unrecoverable errors, the information available at the time of an unrecoverable error occurrence will be continuously sent. (Special notes for Serial Model) (a) If any of statuses is selected valid, the ASB functions become valid, and the printer uses the change to the status selected valid as a trigger, and creates a 4-byte status as send data to the host PC. (Even for statuses selected invalid the printer still creates the current status.) (b) If any of statuses is selected valid, the printer creates a status as data to be sent to the host PC as subsequent data is processed in the receive buffer. There may be some delay incurred between reception of this command and creation of status data. (You must be aware that when a status change occurs before the entire command is processed, the printer creates a new status.) (c) The printer sends four bytes of status without checking the DSR signal status. (d) A status of four bytes must be sent except for the XOFF code. (e) If an unrecoverable error occurs, the information available at the time of an unrecoverable error occurrence will be continuously sent when any of the statuses is subject to auto status send. After this, even though a status being selected valid changes, the status data will not be sent to host. 41049421PS Rev.3 78 / Byte 1 (Printer information) Functions Bit value = 0 Bit value = 1
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 0 Fixed at 0
Level of Drawer Kick Connector Pin 3 “L” “H”
(Fixed value) Fixed at 1 Fixed at 1
Cover status Cover Close Cover Open
Paper feed by switch Not feeding paper Feeding paper MSB
(Fixed value) Fixed at 0 Fixed at 0 Bit 3: Indicates printer’s On-line/Off-line status. <Parallel Model> A status is sent at the reverse data transfer request from the host PC regardless of printer’s On-line/Off-line status. <Serial Model> A status is sent when a printer status change is recognized regardless of printer’s Online/Off-line status. LSB Bit 5/6: <Parallel Model> The Off-line status takes effect during Cover Open (With Cover Open Alarm set to Yes) and Feeding Paper by the switch; hence, the printer creates status information as “Offline/Cover Open” or “Off-line/Feeding paper by Switch” and sends at the reverse data transfer request from the host PC. <Serial Model> The Off-line status takes effect during Cover Open (with Cover Open Alarm set to Yes) and Feeding Paper by the switch; hence, the printer sends a status as “Off-line/Cover Open” or “Off-line/Feeding paper by Switch.” 41049421PS Rev.3 79 / Byte 2 (Error occurrence information) Functions Bit value = 0 Bit value = 1
Mechanical error No error Error has occurred
Auto Cutter Error No error Error has occurred
(Fixed value) Fixed at 0 Fixed at 0
Unrecoverable error No error Error has occurred
Temperature error No error Error has occurred MSB
(Fixed value) Fixed at 0 Fixed at 0 Bit 2: When the following condition has arose, a status is sent as mechanical error.
- Slip paper feed/Exit Alarm
- Auto Loading/Auto Parking Alarm
- Media Mismatch Alarm (1)/(2)
- Platen Switch Error (*1) *1: Unrecoverable, prompting Bit 5 to turn “1.” Bit 5: When the following conditions have arose, a status is sent as unrecoverable error.
- Auto Cutter error (*2) (*3) *1: Mechanical error, prompting Bit 2 to turn “1.” *2: Auto Cutter Error is unrecoverable, prompting this bit to turn “1.” *3: If this error occurs during POW ON Initialization, none of these statuses will be sent. Bit 6: If the temperature of the print head, SP motor, or LF motor rises, the printer stops printing (*1), during which time this bit is “1.” This error automatically recovers. Online status remains effective. *1: Print stop time: 3 seconds for SP Motor and 5 seconds for LF Motor, until the temperature of the print head goes down. LSB 41049421PS Rev.3 80 / Byte 3 (Paper Sensor Information) Functions LSB MSB Bit value= 0 Bit value= 1
Receipt Near End Sensor Paper present Paper End
Receipt Paper Sensor Paper present Paper End
(Fixed value) Fixed at 0 Fixed at 0
Slip Exit Sensor (Validation sensor) Paper present Paper End
(Fixed value) Fixed at 0 Fixed at 0 If only the Roller Paper sensor is selected, the printer does not use the change to the Slip Insert sensor or the Exit sensor as a trigger for creating(sending) a status. If only Cut Paper Sensor and Cut Paper Status are selected, the printer does not use the change to the Journal sensor or Receipt sensor as a trigger for creating(sending) a status. Bit 0,1: With 1-Roll model, the Roll paper Near End Sensor status takes effect. Bit 2,3: With 1-Roll model, the Roll paper End Sensor status takes effect. Byte 4 (Cut Paper Information) Functions Bit value= 0 Bit value= 1
Slip Select Selected Deselected
Validation Select Selected Deselected
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 0 Fixed at 0 Bit 1: Slip status turns 0 (printable) at end of loading and 1 (not printable) at start of ejection.
- Even if Bit 3 of Byte 1 (On-line/Off-line) is Off-line, Slip status does not change to 1 (not printable).
- When Slip is selected and its insertion is awaited: Of Byte 3, Bit 5 and Bit 6 turn 1 (Paper End). Of Byte 4, Bit 0 turns 0 (selected) and Bit 1 turns 1 (not printable).
- When Slip is selected and its removal is awaited: Of Byte 3, Bit 5 turns 1 (Paper End) and Bit 6 turns 0 (paper present). Of Byte 4, Bit 0 turns 0 (selected) and Bit 1 turns 1 (not printable).
- When there is no Slip paper and Print Stop (ESC c 4) is disabled, even if there is no more printable area in the Slip paper, Slip status does not turn 1 (unprintable). Whether or not there is still a printable area in the Slip paper must be checked by using the Status Send command (GS r 3). LSB 41049421PS Rev.3 81 /
Code Functions: (1) (2) (3) Creates(sends) a status of the printer upon reception of this command. Contents of statuses to be sent are found in the table on the next page. It must be noted that printer status is created(sent), too, when a string of data by 1DH 05H is received, in addition to by this command. (Example) ESC *m n1 n2 (4) This command may not be used in the middle of a code sequence of other commands made of more than two bytes. (Example) In sensing ESC 3 n from the host PC, if GS ENQ is sent at the point past ESC 3, these commands are processed as ESC 3 n = 1DH instead. This must be kept in mind. (5) If ASB is enabled by GS a or ESC DLE a, a status sent by this command must be distinguished from one by ASB. (Limitation with Parallel Models) (6) A status is sent at a request from the host PC for Reverse Transfer. (7) If the Busy signal is at High, reception of this command is disabled. The Busy signal becomes High either when the receive buffer is full or the Off-line state is effective. (See Section 1 “Definitions of Off-line>.) (8) If the printer holds one status sent by ASB and another by this command, it sends the one by ASB first. (9) If there is not a request from the host PC for Reverse Transfer following the reception of this command, the printer holds data up to 100bytes (except the status data by ASB). Once the data it holds goes over 100bytes, the printer does not generate data to send to the host upon reception of this command. (Limitation with Serial Models) (10) The printer sends only one byte without checking the status of the DSR signal. (11) This command is executed in the Off-line mode and Receive Buffer Full state. This process is not performed if an unrecoverable error has occurred. (12) It is desirable not to use this command if the communication data length is 7 bits and handshake is done in the XON/XOFF control. Neither any of statuses sent by this nor the XON/XOFF code can be recognized. 41049421PS Rev.3 82 / Functions LSB MSB Bit value= 0 Bit value= 1
Receipt Near End Sensor Paper present Paper End
Cover status Cover Close Cover Open
Status of Drawer Kick Connector Pin 3 "L" "H"
Error No error Error has occured
(Fixed value) Fixed at 1 Fixed at 1 Bit 0,1: With 1-Roll model, the Roller paper Near End Sensor status takes effect. Bit 3: Turns “1” if the printer is Off-line because of print stop due to Paper End, Cover Open (with “Cover Open Alarm” set to “Yes” on the menu), and so forth. Bit 6: Turns “1” if error has occurred due to the following causes. Cover Open is not considered error.
- Slip Paper Feed/Exit Alarm
- Auto Loading/Auto Parking Alarm
- LF Thermal Alarm (*1) *1: These errors automatically recover. On-line remains effective for On-line/Off-line status. Print stop time: Until the temperature goes down for Print Head, 3 seconds for SP Motor, and 5 seconds for LF Motor. 41049421PS Rev.3 83 /
01 (Version 1) (2) Range of n 01H ≤ n ≤ 03H 31H ≤ n ≤ 33H (Notes) (Notes common to Parallel/Serial) (a) The ROM version ID is variable. (b) IF the ASB is enabled by GS a or ESC DLE a, a status sent by this command and one by ASB must be distinguished, (c) If the value of n is outside the above range, this command is ignored. (If n is 04H 34H, 00H ID is created(sent).) (d) If the printer holds one status by ASB and another by this command, it sends the one by ABS first. (Notes specific to Parallel Models) (a) This command is executed as incoming data is processed in the receive buffer and a onebyte status is created. This status is sent at the request from the host PC for reverse data transfer. (b) If the host PC does not request reverse data transfer after reception of this command, data will be held to the maximum of 100bytes (except a status by ASB). If the size of data held exceeds 100 bytes, reception of this command will not prompt creating data to be sent to the host PC. (c) There may be some delay incurred between command reception and status creation, depending on the status of the receive buffer. (Notes specific to Serial Models) (a) This command is executed as incoming information is processed in the receive buffer, and a one-byte status is sent. (b) With DTR/DSR Control selected, the printer sends one byte after confirming that the host PC is enable to receive (DSR Signal is in SPACE). If the host PC is not enable to receive (DSR Signal is in MARK), the printer keeps waiting until the host becomes enabled to receive. With XON/XOFF selected, the printer sends one byte without confirming the status of the DSR signal. (c) There may be some delay incurred between command reception and status creation, depending on the status of the receive buffer 41049421PS Rev.3 84 / n=2 Type ID Functions LSB MSB Bit value= 0 Bit value= 1
2-byte code (Kanji) support Unsupported Supported
Customer Display connect/disconnect Setting OFF
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 0 Fixed at 0 Bit 0: Fixed at 0 (Kanji unsupported) Bit 1/3: By Menu setting Bit 2: By the DIP-SW setting on the Serial I/F board for Serial Models while fixed at 0 (OFF) for Parallel Models.
- For the undefined bits, 0 is sent instead. 41049421PS Rev.3 85 /
3.2.8.15 Status Send
GS r n Name: Status Send HEX: 1DH 72H n DEC: 27 114 n Code Functions: (1) Creates(sends) a status according to n. 01H 31H 02H 32H 03H 33H Functions Sends a status of Paper Sensor. (Same as ESC v.) Sends a status of Drawer Kick Connector. (Same as ESC u 0.) Sends a status of Slip paper. (Notes) (Notes common to Parallel/Serial Models) (a) For statuses to be sent refer to the tables on the subsequent pages. (b) If ASB is enabled by GS a or ESC DLE a, a status sent by this command must be distinguished from one by ASB. (c) If the value of n is outside the above range, this command is ignored. (d) If the printer holds one status sent by ASB and another by this command, it sends the one by ASB first. (Notes specific to Parallel Models) (a) This command is executed as incoming data is processed in the receive buffer and a onebyte status is created (excluding GS r 1, GS r 3). This status is sent at the request from the host PC for reverse data transfer. (b) If the Busy signal is at High, reception of this command is disabled. The Busy signal becomes High either when the receive buffer is full or in the Off-line state. (See Section 1 “Definitions of Off-line”.) (c) With GS r 3 (Slip Mode only) and GS r 1, a one-byte status is created after printing and paper feeding has completely stopped. (Its status create timing is different from ESC u, GS I, or GS r 2.) (d) There may be some delay incurred between command reception and status creation, depending on the status of the receive buffer. (e) Status information is not generated during a wait for Slip paper or for removal of Slip paper. (f) If there is not a request from the host PC for Reverse Transfer following the reception of this command, the printer holds data up to 100bytes (except the status data by ASB). Once the data it holds goes over 100bytes, the printer does not generate data to send to the host upon reception of this command. (g) In checking paper present/paper end by using this command in Receipt, Journal, or Receipt+Journal mode, if the sensor, for which Print Stop Enable has been set by ESC c 4n, has no paper, the printer mode turns Off-line. Thus, a status is not sent until this offline state is reset. In other words, no status will be sent as long as the sensor for which Print Stop Valid is set is in paper empty state. (The default value of ESC c 4 n is, the Receipt and Journal Paper End Sensors are Valid.) 41049421PS Rev.3 86 / (Notes specific to Serial Modes) (a) This command is executed as incoming information is processed in the receive buffer, and a one-byte status is sent (excluding GS r 1, GS r 3). (b) With DTR/DSR Control selected, the printer sends one byte after confirming that the host PC is enable to receive (DSR Signal is in SPACE). If the host PC is not enable to receive (DSR Signal is in MARK), the printer waits until it becomes enabled to receive. With XON/ XOFF selected, the printer sends one byte without confirming the status of the DSR signal. (c) With GS r 3 (Slip Mode only) and GS r 1, a one-byte status is created after printing and paper feeding has completely stopped. (Its status create timing is different from ESC u, GS I, or GS r 2.) (d) There may be some delay incurred between command reception and status creation, depending on the status of the receive buffer. (e) During Slip paper wait and Slip paper ejection wait, none of statuses is sent. (f) In checking paper present/paper end by using this command in Receipt, Journal, or Receipt-Journal mode, if the sensor, for which Print Stop Enable has been set by ESC c 4n, has no paper, the printer mode turns Off-line. Thus, a status is not sent until this offline state is reset. In other words, no status will be sent as long as the sensor for which Print Stop valid is set is in paper empty state. (The default value of ESC c 4 n is, the Receipt and Journal Paper End Sensors are Valid.) n= 1: Paper Sensor Status Functions LSB MSB Bit value= 0 Bit value= 1
Receipt Near End Sensor Paper present Paper End
Receipt Paper Sensor Paper present Paper End
(Fixed value) Fixed at 0 Fixed at 0
Slip Eject Sensor (Validation sensor) Paper present Paper End
(Fixed value) Fixed at 0 Fixed at 0 Bit 0,1: With 1-Roll model, the Roll paper Near End Sensor status takes effect. Bit 2,3: With 1-Roll mode, the Roll paper End Sensor status takes effect. n = 2: Status of Drawer Kick Connector Functions LSB MSB Bit value = 0 Bit value = 1 "L" "L"
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 0 Fixed at 0
- For undefined bits, 0 is sent instead. 41049421PS Rev.3 87 / n=3: Status of Slip paper Current status of Slip paper 00000000B No printable area or Slip paper not selected 00000001B One line with no double-height characters printable 00000010B One line with no double-height characters printable 00000011B Multiple lines printable at the currently set line feed pitch (Remarks) 41049421PS Rev.3 Whether or not the Slip paper still has a printable area can be found by GS r 3.
- Sends 03H if several more lines can be printed at the currently set lien feed pitch.
- Sends 02H if only one line including double-height characters can be printed.
- Sends 01H if only one line excluding double-height characters can be printed.
- Sends 00H if no printing can be made to the current paper. 88 /
3.2.8.16 Status Real-time Sent
DLE EOT n Name: Status Real-time Send HEX: 10H 04H n DEC: 16 04 n Code Functions: (1) Creates(sends) a status of n real-time. 01H 02H 03H 04H 05H 06H Function Sends printer status Sends Off-line cause status Sends Error cause status Sends Roll Paper Sensor status Sends Slip paper status Sends Validation status (2) Range of n 01H ≤ n ≤ 06H (Notes) (Notes common to Parallel/Serial Models) (a) For statuses to be sent refer to the tables on the subsequent pages. (b) This command is executed as data is received. (c) Be aware that in addition to this command, reception of a data sequence of 10H 04H n (01H ≤ n ≤ 05H) prompts the same operation as this command does. (Example) ESC * m n1 n2 (d) This command may not be used in the middle of a code sequence of other commands of more than two bytes. (Example) It must be made aware that when the host has sent ESC 3 in sending ESC 3 n, if DLE EOT 4 is sent, ESC 3 n will be processed as ESC 3 n=10H. (e) This command is disabled in the Printer Deselected state set by the Peripheral Device Select (ESC =). (f) If the ASB function is enabled by GS a or ESC DLE a, a status sent by this command and one by ASB must be distinguished, (g) If the value of n is outside the above range, this command is ignored. (Notes specific to Parallel Models) (a) Sends a status at a request from the host PC for Reverse Transfer. (b) If the Busy signal is at High, reception of this command is disabled. The Busy signal becomes High either when the receive buffer is full or in the Off-line state. (See Section 1 “Definitions of Off-line”.) (Hence, when an unrecoverable error has occurred, this command cannot be received.) (c) If the printer holds a status sent by ASB and one by this command, it sends the one by ASB first. (d) If there is not a request from the host PC for Reverse Transfer following the reception of this command, the printer holds data up to 100bytes (except the status data by ASB). Once the data it holds goes over 100bytes, reception of this command does not prompt the printer to generate data to send to the host. (Notes specific to Serial Models) (a) Sends only one byte without checking the status of the DSR signal in sending a status. (b) Processes while Off-line or in the Receive Buffer Full state. This process is not performed if an unrecoverable error has occurred. 41049421PS Rev.3 89 / n= 1: Printer status Functions LSB MSB Bit value= 0 Bit value= 1
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
Level of Drawer Kick Connector Pin 3 “L” “H”
(Fixed value) Fixed at 1 Fixed at 1
(Fixed value) Fixed at 0 Fixed at 0 Bit value= 0 Bit value= 1
- For undefined bits, 0 is sent instead. n= 2: Status of Off-line causes Functions
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
Cover Status Cover Close Cover Open
Paper feed by switch Not feeding paper Feeding paper
(Fixed value) Fixed at 1 Fixed at 1
Error status No error Error has occured MSB
(Fixed value) Fixed at 0 Fixed at 0 Bit 5: Turns 1 (Printing has stopped) if printing has stopped based on the ESC c 4 setting while in the Receipt, Journal, and Receipt+Journal modes.(It turns 0 (Printable) otherwise.) Turns “1” if error has occurred due to the following causes. Cover Open is not considered error.
- Slip Paper Feed/Exit Alarm
- Auto Loading/Auto Parking Alarm
- MICR Unit Error *1: These errors automatically recover. On-line remains effective for On-line/Off-line status. Print stop time: Until the temperature goes down for Print Head, 3 seconds for SP Motor, and 5 seconds for LF Motor. LSB Bit 6: 41049421PS Rev.3 90 / n = 3: Status or Error Causes Functions Bit value= 0 Bit value= 1
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
Mechanical error No error Error has occured
Auto Cutter Error No error Error has occured
(Fixed value) Fixed at 1 Fixed at 1
Unrecoverable error No error Error has occured
Thermal error No error Error has occured MSB
(Fixed value) Fixed at 0 Fixed at 0 Bit 2: Sends Mechanical error as a status instead if one of the following conditions has occurred.
- Slip Paper Feed/Exit Alarm
- Auto Loading/Auto Parking Alarm
- Media Mismatch Alarm (1), (2) 0 (No error). This is because this command cannot be processed when any unrecoverable error occurs. Printing stops (*1) when the temperature has gone up with the print head, SP motor, and LF motor. The bit value changes to “1” during this time. This error automatically recovers. On-line remains effective for On-line/Off-line status. *1 Print stop time: Until the temperature goes down for Print Head, 3 seconds for SP Motor, and 5 seconds for LF Motor. LSB Bit 5: Bit 6: n=4: Roll Paper Sensor Status Functions LSB MSB Bit value= 0 Bit value= 1
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
Receipt Near End Sensor Paper present Paper end
(Fixed value) Fixed at 1 Fixed at 1
Receipt Paper Sensor Paper present Paper end
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
Slip Select Selected Deselected
(Fixed value) Fixed at 1 Fixed at 1
Slip Eject Sensor Paper present Paper end
(Fixed value) Fixed at 0 Fixed at 0 Bit 2: There may be some delay incurred between reception of ESC c 0 and actual selection of Slip. During this delay, the status is 1 (non-select). After the Slip paper has been ejected and before it is removed, the status is 0 (Deselected). Bit 3: The status turns 0(Not waiting) as loading starts, following detection of Slip paper. Bit 5,6: Sends a status of the Slip sensor. n=6: Validation status Functions LSB MSB Bit value= 0 Bit value= 1
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
Validation select Selected Deselected
Validation Insert wait Not waiting for insertion Waiting for insertion
(Fixed value) Fixed at 1 Fixed at 1
Slip Eject sensor (Validation Sensor) Paper present Paper end
Slip Eject sensor (Validation Sensor) Paper present Paper end
(Fixed value) Fixed at 0 Fixed at 0 Bit 2: There may be some delay between reception of ESC c 0 and actual selection of Validation. During this delay, the status is 1 (Non-select). The status is 0 (Select) while removal of Validation is awaited and until it is actually removed. Bit 3: The status turns 0 (not waiting for insertion) when the printer goes into the state where the paper is actually loaded, after the Slip Eject sensor (Validation sensor) has detected the paper and the time between paper insertion and operation start has elapsed. Bit 5/6: Sends the current status of Slip Eject Sensor (Validation sensor). 41049421PS Rev.3 92 /
3.2.8.17 Real-time Request to Printer
DLE ENQ n Name: Real-time Request to Printer HEX: 10H 05H n DEC: 16 05 n Code Functions (1) Responds to the request from the host based on the designation of n. The operations based on n are explained in the table below. 02H 03H Function If this command is received in the recoverable error state (*1), clearing of the receive buffer and print buffer, and clearing the cause of error prompt setting the print sheet to Receipt+Journal. (*2) (This command is ignored with any other error than recoverable error.) If this command is received in the state (*3) waiting for Slip, Validation or Check (MICR Mode), or when there is no Sprocket paper, the receive buffer and print buffer are cleared; then the print sheet is set to Receipt+Journal. (*2) (This command is ignored in any other states than Waiting.)
Recoverable errors (Not including Cover Open Error).
- Slip Paper Feed/Eject Alarm
- Auto Loading/Auto Parking Alarm
- Media Mismatch Alarm (1)/(2) *2 Nothing other than Receive Buffer, Print Buffer, and Print Sheet Mode will be initialized. When the Option tractor is installed and the lever is set to Tractor, if Paper Mode is Sprocket, the Sprocket Mode remains effective if the status is Paper present. *3 This is the state effective before an operation starts at insertion of paper. (2) Range of n: 02H ≤ n ≤ 03H (Notes) (a) This command is processed at reception. (b) (Parallel Models) Reception is disabled in the Off-line (Menu, “Off-line Busy Control” is “Yes”), Receive Buffer Full and an unrecoverable error state; hence, this command cannot be processed. (Serial Models) The command is processed even in the Off-line and Receive Buffer Full state. It is not processed in an unrecoverable error. (c) It must be noted that reception of a string of data as 10H 05H n (02H ≤ n ≤ 03H), in addition to this command, also prompts an operation by this command. Example) ESC * m n1 n2 (d) This command may not be used in the middle of a code sequence of other commands made of more than two bytes. (Example) It must be made aware that when the host has sent ESC 3 in sending ESC 3 n, if DLE ENQ 02H is sent, ESC 3 n will be processed as ESC 3 n=10H. (e) If DLE ENQ 02H is received in the recoverable error state, clearing the cause of error prompts clearing of the receive buffer and print buffer, then setting the print sheet to Receipt+Journal. For various settings by ESC !, ESC 3, and so forth, the printer retains the status effective at the time of error occurrence. This command and ESC @ can completely initialize the printer. Furthermore, this command is valid only if the errors are recoverable except for Thermal Error. 41049421PS Rev.3 93 / (f) DLE ENQ 03H is valid only during Slip Insert Wait or Validation Insert Wait. Hence, it must be confirmed prior to execution of DLE ENQ 03H that Slip or Validation has been selected by DLE EOT 05H or 06H, and insertion of either print sheet is being awaited. The print sheet will be Receipt+Journal once Slip Insert Wait or Validation Insert Wait is reset. (g) In the Printer Deselected states set by Peripheral Device Select (ESC=), the error recovery function (DLE ENQ 02H) is enabled while the insert wait cancel (DLE ENGQ 03H) function becomes disabled. (h) When the print sheet selected is Slip, if error recovery has been made after reception of DLE ENQ 02H, the print sheet will be Receipt+Journal. Hence, the Slip mode needs to be selected again by ESC c 0 04H in order to print Slip paper again. (i) If the value of n is outside the specified range, this command is ignored. (j) Reception of this command will not clear a status that has not yet been sent. [In the Serial mode, if the DTR signal is MARK, sending of a status prompted by Non-Realtime command (such as ESC u n) is awaited until the DTR signal changes to SPACE and no other commands or data are processed during this wait. In other words, there cannot be any occurrence of state (such as Recoverable Error and Paper Insert Wait) that would allow this command to become effective while there is still an unsent status.] (Notes) In case of MICR Mode: (a) When MICR Mode is selected by FS a 0, if error recovery has been made after reception of DLE ENQ 02H, the printer clears the contents of the receive buffer and print buffer, prompting Receipt+Journal. Hence, the MICR mode needs to be selected again by FS a 0 in order to print Check paper. (b) DLE ENQ 03H can reset the Check Insert Wait status in Check Paper Insert Wait state. Prior to resetting, it is necessary to check that the MICR mode is selected by DLE EOT BS 01H, and also the Check Insert Wait state. Once Insert Wait is cleared, the print sheet is set to Receipt+Journal. (c) Canceling Insert Wait by DLE ENQ 03H prompts clearing the receive buffer and print buffer. (d) This command is invalid during reading of MICR data. 41049421PS Rev.3 94 /
3.2.8.18 Real-time MICR Status Send
DLE EOT BS n Name: Real-time MICR Status Send HEX: 10H 04H 08H n DEC: 17 04 08 n Code Functions (1) (2) Creates(sends) real-time a 1-byte status of MICR if n=01H. This command functions only if the menu item “MICR Unit” is set to “Yes.” If the setting of Menu “MICR Unit” is “No,” the command is ignored to DLE EOT BS. If the MICR option is not installed and the setting of MICR Unit is “Yes,” the status is MICR Mode Deselected, prompting sending of this status. (3) This command is ignored during reading of Check paper. (4) It must be noted that reception of a data queue as 1DH 61H n (00H ≤ n ≤ FFH), in addition to this command, also prompts an operation by this command. Example) ESC * m n1 n2 (5) This command may not be used in the middle of a code sequence of other commands made of more than two bytes. Example) In sensing ESC 3 n from the host PC, if you send DLE EOT BS 01H past ESC 3, these commands are processed as ESC 3 n = 1DH instead. This must be kept in mind. (Notes specific to Parallel Models) (6) Sends a status when the host PC requests for Reverse Data Transfer. (7) If the Busy signal is at High, reception of this command is disabled. The Busy signal becomes “High” at Receive Buffer Full or at Off-line. (See Section 1 “Definitions of Off-line.”) (8) If the printer holds a status sent by ASB and another by this command, it sends the one by ASB first. (9) If there is not a request from the host PC for Reverse Transfer following the reception of this command, the printer holds data up to 100bytes (except the status data by ASB). Once the data it holds goes over 100bytes, reception of this command does not prompt the printer to generate data to send to the host. (Notes specific to Serial Models) (10) Sends one byte without checking the status of the DSR signal in sending a status. (11) Processes while at Off-line or in the Receive Buffer Full state. This process is not performed when an unrecoverable error has occurred. (12) MICR status is sent as follows:
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
MICR Mode Select/Deselect MICR Mode Selected MICR Mode deselected
(Fixed value) Fixed at 1 Fixed at 1
Slip Exit Sensor Paper present Paper end
(Fixed value) Fixed at 0 Fixed at 0 95 /
3.2.8.19 Check Paper Read (MICR Mode Select)
FS a 0 n Name: Check Paper Read (MICR Mode Select) HEX: 1CH 61H 30H n DEC: 28 97 48 n Code Functions (1) (2) Selects MICR Mode and reads Check paper. Range and definitions of n Functions LSB
(Fixed value) Fixed at 0
- If an undefined font is selected, this command is entirely ignored. 41049421PS Rev.3 96 / Character Codes If the character code is E-13B, the following codes are returned. D: dash symbol A: amount symbol O: On-Us symbol T: transit symbol Chrs Code Chrs Code Chrs Code Chrs Code
- For any unrecognizable characters, “?”(3FH) is returned. If the character set is CMC-7, the following codes are returned. /: transit symbol #: On-Us symbol =: dash symbol >: amount symbol ^: comma symbol Chrs Code Chrs Code Chrs Code Chrs Code
- For any unrecognizable characters, “?”(3FH) is returned. 41049421PS Rev.3 97 / (3) (4) (5) (6) (7) (8) This command functions only if Menu Item “MICR Unit” is set to “Yes.” If Menu Item “MICR Unit” is set to “No,” the command is partially ignored, to FS a. When the MICR option is not installed and Menu Item “MICR Unit” is set to “Yes,” reception of this command will result in MICR Unit error (unrecoverable error). This command is valid only if designated at the start of the line. Designated in the middle of the line, the command is ignored in its entirely. Upon reception of this command, the printer enters the MICR mode and waits for insertion of Check paper. The printer waits for insertion of Check paper until DLE ENQ 03H is received, the Insert Wait time (t1) set by ESC f has lapsed, the printer is reset, or the power supply is shut off. Whether the status is MICR Mode Selected or Deselected can be checked by DLE EOT BS. The printer only processes the real-time commands (DLE EOT n, DLE EOT BS n, DLE ENQ n, ESC DLE r Pno n, or GS ENQ) while waiting for the Check paper to be inserted or reading the Check paper. The Check paper insert wait status can be cancelled by DLE ENQ 03H. In this case, the data in the print and receive buffers are cleared. The Check paper insert wait status can be checked by DLE EOT BS. Reading the Check paper, the printer creates (sends) a result to the host PC.
- The printer read normally. “1 Header + 2 Read status (Normal end) + 3 Date + 4 NUL”
- The printer did not read normally. “1 Header + 2 Read status (Anomalous end) + 4 NUL” (Data is not sent) 1 Header: 5FH 2 Read status: Functions LSB
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 0 Fixed at 0
Re-read operation Enable/Disable Re-read operation Re-read operation enabled disabled
(Fixed value) Fixed at 1 Fixed at 1
(Fixed value) Fixed at 0 Fixed at 0
- For the undefined bit, 0 is returned.
- This printer has the setting constant at Re-read operation (reading from the normal read end position) diable; hence, bit 4 is always 1.
- Read status is constant at 70H in case of anomalous end. 41049421PS Rev.3 98 / Font Recognition Bit1
Font E13B CMC7 (Undefined) (Undefined) 3 Data: Recognized character strings (ASCII Codes) 4 NUL: 00H (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) Bit 0 and Bit 1 of read status indicate the recognized character fonts. If reading did not end normally neither Bit 0 nor Bit 1 carries any meaning. In the following cases, the status is read anomalous end (Bit 5=1).
- Check Insert Wait has been cleared by DLE ENQ 03H.
- The Insert Wait Time (t1) set by ESC f has elapsed.
- Characters to be read could not be found.
- Less than five characters are recognizable.
- More than three characters are unrecognizable.
- The character font is not what is designated.
- The printer is waiting for Check paper to be inserted and the lever is switched to Tractor. In the case of Check Read anomalous end (Read status bit5=0), the printer sends “Header~NUL” to the host PC but does not eject the Check paper. If any command other than FS a 0, FS a 1, FS a 2, FS b, and real-time commands (DLE EOT n, DLE EOT BS n, DLE ENQ n, ESC DLE r Pno n) has been processed, the printer ejects Check paper and goes into Receipt+Journal Mode. (The real-time commands “GS ENQ” prompt ejection of Check paper as “GS” is processed in the receive buffer.) In the case of Check Read anomalous end (Read status bit5=1), the printer ejects Check paper to set MICR Mode to Deselected. It moves to Receipt+Journal Mode. If Check Read action results in JAM, paper feed alarm occurs. When the alarm condition is cleared, the status is Check Insert Wait. When paper feed alarm has occurred, if DLE ENQ 02H is received, the alarm status is cleared and MICR Mode is deselected; then the printer goes into Receipt+Journal mode. The printer ignores the Real-time command while sending “Header~NUL.” Even if the ASB function is selected, the printer does not send ASB status while reading, and sending “Header~NUL.” In the case of Parallel Mode, the printer sends “Header~NUL” at the request from the Host PC for Reverse Data Transfer, then sends ASB status at a next Reverse Data Transfer request. Read status will be hold until reception of either ESC @, FS a 0 n, Menu setting command, IPRIME signal (Parallel model), or Reset signal (Serial Model). (DLE ENQ n does not initialize Read status.) All switches are invalid between the start of MICR read and ejection of Check paper. In the case of Check Read Normal End (Read status bit5=0), reception of this command prompts the printer to eject Check paper and go into the Check Insert Wait state again. With the option tractor installed and the lever set to the tractor, reception of this command will be ignored. If MICR Reader Unit communication error has occurred, MICR Unit error (unrecoverable error) occurs. 41049421PS Rev.3 99 / (Notes specific to Serial models) (a) With DTR/DSR Control selected, the printer sends a result of reading Check paper after confirming that the host PC is enable to receive (DSR Signal is in SPACE). If the host PC is not enable to receive (DSR Signal is in MARK), the printer waits until it becomes enabled to receive. With XON/XOFF selected, the printer sends a result of reading Check paper irrespective of the status of the DSR signal. (b) While the printer sends status data read, if the host PC becomes unable to receive (DSR signal is in MARK), it keeps sending status data. (c) While waiting for Check paper to be inserted according to this command, if the printer receives the real-time status request command, it sends response data in reply to the realtime request command. (d) While waiting for Check paper to be inserted according to this command, if the printer receives the non-real-time status request command, it does not send response data in reply to the non-real-time request command. The printer sends response data in reply to the non-real-time request command after having finished sending status data as a result of reading Check paper.
3.2.8.20 Paper Load to Print Start Position
Code Functions (1) (2) (3) (4) (5) (6) Loads Check paper to the print start position. This command functions only when MICR Mode is selected by FS a 0. If MICR Mode is not selected, the command is ignored in its entirety. If Menu “MICR Unit” is set to “No,” this command is ignored to FS a. If Check read has ended normally (Read status Bit5=0), this command is executed. Resets MICR Mode after loading Check paper and enters Slip Mode. If JAM has occurred, paper feed alarm occurs. When the alarm condition is cleared, the printer goes into Slip Mode.
Code Functions: (1) (2) (3) (4) (5) Ejects Check paper. Switches Print sheet Mode to default (Receipt+Journal) after Check paper has been loaded. This command functions only when MICR Mode is selected by FS a 0. If MICR Mode is not selected, the command is ignored in its entirety. If Menu “MICR Unit” is set to “No,” this command is ignored to FS a. In the case of Check Read Normal End, the printer ejects the Check paper as at reception of this command. 41049421PS Rev.3 100 /
3.2.8.22 Check Paper Read Result Re-send Request
Code Functions: (1) (2) Re-sends a result of Check Paper Read. If Check Paper Read has not yet been executed (FS a 0 not received yet), reception of this command prompts creating(sending) the following. 1 Header: 5FH 2 Read status: 70H (Anomalous end) 3 NUL: 00H (3) This command functions only when MENU “MICR Unit” is set to “Yes.” If Menu “MICR Unit” is set to “No,” the command is ignored in its entirety. With the MICR option unit uninstalled and Menu “MICR Unit” set to “Yes,” reception of this command prompts sending of the same status as in (2). (Same status as Check read is disabled and Read has not been executed.) (4) The information sent is the same as by FS a 0. (5) A result of Read is retained until reception of ESC @, FS a 0 n, Menu Set command, I-PRIME signal (Parallel Models) or Reset signal (Serial Models). (Initialization results in (2) above.) DLE ENQ n does not prompt initialization of read results. (Notes specific to Serial models) (a) With DTR/DSR Control selected, the printer re-sends a result of reading Check paper after confirming that the host PC is enable to receive (DSR Signal is in SPACE). If the host PC is not enable to receive (DSR Signal is in MARK), the printer waits until it becomes enabled to receive. With XON/XOFF selected, the printer re-sends a result of reading Check paper irrespective of the status of the DSR signal. (b) While the printer re-sends a result of reading Check paper, if the host PC becomes disabled to receive (DSR Signal is in MARK), the printer still keeps sending status data. 41049421PS Rev.3 101 /
3.2.8.23 Validation Insert Position Select
ESC DLE v Pno n Name: Validation Insert Position Select HEX: 1BH 10H 76H Pno n DEC: 27 16 118 Pno n Code Functions: (1) (2) (3) Selects the position to insert Validation. MSB of DLE (10H) in the command sequence is invalid. (“90H” is effective as well.) Valid range and definitions of parameters: (a) Pno: Designates the number of bytes (number of parameters) following ESC DLE c Pno. MSB is invalid. Range: 00H ≤ n ≤ FFH With this command, Pno=1 is designated. (b) Value and definitions of n: Value of n 01H 00H (4) (5) Designation Inserts at the left sensor position Inserts at the right sensor position The upper 7 bits of n are ignored. “Insert at the right sensor position” takes effect at default. This selection changes only the head’s centering position when Print Sheet Select is set to Validation. (It does not affect the Validation’s printing area, etc.) 41049421PS Rev.3 102 /
3.2.8.24 Auto Status Send Enable/Disable
ESC DLE a Pno n Name: Auto Status Send Enable/Disable HEX: 1BH 10H 61H Pno n DEC: 27 16 97 Pno n Code Functions: (1) (2) (3) Selects which status is subject to Auto Status Send (ASB: Automatic Status Back). It is practically the same spec as Auto Status Send Enable/Disable by the command GS except that Byte 5 is added. Hence, only the differences are described herein. MSB of DLE (10H) in the command sequence is ignored. (“90H” is effective as well.) Valid range and definitions of parameters (a) Pno: Designates the number of bytes (number of parameters) following ESC DLE a Pno. MSB is invalid. Range: 00H ≤ Pno ≤ FFH With this command, Pno=1 is designated. (b) n: Range: 00H ≤ n ≤ FFH Default: n=0 Definitions of bit: Functions LSB MSB 41049421PS Rev.3 Bit value= 0 Bit value= 1 Supported status
Sprocket select Selected Deselected
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 0 Fixed at 0 Bit 1: (4) Sprocket paper status is 0 (Printable) at end of auto loading and 1 (Unprintable) at Auto Park, or Paper End due to bottom detection.
- Even if Bit 3 of Byte 1 (On-line/Off-line status) is Off-line, Sprocket paper status does not turn 1 (Unprintable).
- If Sprocket paper is selected and there is no paper, the status is: Of Byte 3, Bit 5 and Bit 6 are 1 (Paper End). Of Byte 5, Bit 0 is 0 (Selected) and Bit 1 is 1 (Unprintable).
- For the undefined bits, 1 is sent. If an unsent ASB status by the command GS a n is still retained, reception of this command will clear it. (Applicable to only Parallel Models.) 41049421PS Rev.3 104 /
3.2.8.25 Status Real-time Send
ESC DLE r Pno n Name: Status Real-time Send HEX: 1BH 10H 72H Pno n DEC: 27 16 114 Pno n Code Functions: (1) (2) (3) Sends real-time a status of “n” This is the same spec as the DLE EOT n Status Real-time Send command except the addition of Parameter 07H (Sprocket Paper Status Send); hence, only the differences are described herein. The DEL in the command sequence disables MSB. (“90H” is effective as well.) Valid range and definitions of parameters (a) Pno : Designates the number of bytes (number of parameters) following ESC DLE r Pno. Invalidates MSB. Range : 00H ≤ Pno ≤ FFH With this command, Pno=1 is designated. (b) n : Range : 01H ≤ n ≤ 07H 01H 02H 03H 04H 05H 06H 07H Function Sends printer status Sends Off-line Cause status Sends Error cause status Sends Roller Paper Sensor status Sends Slip paper status Sends Validation status Sends Sprocket paper status N=7: Sprocket Paper status Functions LSB MSB Bit value = 0 Bit value = 1
(Fixed value) Fixed at 0 Fixed at 0
(Fixed value) Fixed at 1 Fixed at 1
Sprocket Paper Select Selected Deselected
Status of Lever Tractor Slip
(Fixed value) Fixed at 1 Fixed at 1
Slip Eject Sensor (Validation Sensor) Paper present Paper end
(Fixed value) Fixed at 0 Fixed at 0 Bit 2: There may be some delay between reception of ESC DLE c Pno 0 n and actual selection of Sprocket paper. During this delay, the status is 1 (Deselected). Bit 3: Sends a status of the lever at the present time. Bit 5/6: Sends a status of Slip Sensor (Sprocket Insert Sensor and Validation Sensor) at the present time. 41049421PS Rev.3 105 /
Bar Code Style Select and Size Set ESC DLE A Pno N1...N8 Name: Bar Code Type and Size Select and Set HEX: 1BH 10H 41H Pno N1 N2 N3 N4 N5 N6 N7 N8 DEC: 27 16 65 Pno N1 N2 N3 N4 N5 N6 N7 N8 Code Functions: (1) (2)
Pno The number of bytes following Pno (the number of parameters) Refer to (a).
N1N2 Bar code type Refer to (b).
N3N4 Vertical length of the bar Refer to (c).
Narrow Element's space width (magnification) Refer to (e).
Wide Element and Narrow Element ratio Refer to (f).
Human Readable Character Present/Not Present Refer to (g). (a) Pno specifies the number of bytes (the number of parameters) following ESC DLE A Pno. (MSB: Invalid) Pno=0,1,3: This command becomes invalid, and the entire command is ignored. Pno=2,4,5,6,7,8: This command becomes valid. Pno≥9: N1 to N8 become valid and data from N9 is ignored. (b) N1N2 selects barcode type. (N1N2: High order 4 bits are invalid.) N1 N2
Interleaved 2 of 5 (ITF)
CODABAR (NW-7) Only the above values in the N1N2 combinations are valid parameters. If an invalid parameter is received, the entire command is ignored. (c) N3N4 sets the vertical length of the bar. (N3N4: High order 4 bits are invalid.) The unit is 6/72 inch. The height of the bar is (N3 x 10+N4) x(6/72 inch). N3=N4=0: The previous setting remains effective. N3>9 or N4>9: The previous setting remains effective. N3 x 10+N4≥25: It is set as N3 x 10+N4=24. 41049421PS Rev.3 106 / The bar code consists of 6 dots vertically and prints with 1/144-inch line feed in two passes. When printing a bar code over multiple lines (N3N4 > 1), the printer prints it in 7 vertical dots except for the last line, in order to overlap the lowest dot of the 1st pass of the line printed the previous time and the highest dot of the 1st pass of the line to be printed this time. (This is to prevent a white line.) In line feed in bar code printing, the base line that becomes the reference to the vertical current position moves, too. 1st line 1st pass 1/144 1st line 2nd pass
2~(n-1)th line 1st pass
2~(n-1)th line 2nd pass
1st pass 2nd pass nth line (last line) 1st pass nth line (last line) 2nd pass
2~(n-1)th line 1st pass 7 dots 2~(n-1)th line 2nd pass 7 dots
Nth line(Last line) 1st pass
Head pins 41049421PS Rev.3 Nth line (last line) 2nd pass 6 dots 107 / (d) N5 sets the width of the bar (module width) when EAN8 / EAN13 / UPC-A / UPC-E / CODE128 are selected, and sets the width of black bar of Narrow Element when CODE39 / Interleaved 2 of 5 / CODABAR are selected.
- N5's high order 4 bits are invalid.
- N5=0: The previous setting remains valid.
- N5≥8: N5 is set as N5=7. (EAN8 / EAN13 / UPC-A / UPC-E / CODE128)
- The minimum width of the black bar and a space is 1 / 72-inch.
- N5 sets the magnification of the bar width. (N6 and N7 settings are ignored.)
- The number of columns (144DPI) of the four-value level (bar widths of four types) is shown below (Table 1): Table 1 EAN8 / EAN13 / UPC-A / UPC-E / CODE128 module width
(CODE39 / Interleaved 2 of 5 / CODABAR)
- The minimum width of a black bar shall be 1 / 72-inch.
- Relation of N5 and magnification is shown below (Table 2):
- The printer prints in the number of columns shown below (144DPI): Table 2 CODE39/Interleaved 2 of 5/CODABAR Narrow Element’s Black Bar Width
41049421PS Rev.3 108 / (e) N6 sets the space width of the Narrow Element when CODE39 / Interleaved 2 of 5 / CODABAR are selected, and when EAN8 / EAN13 / UPC-A / UPC-E / CODE128 are selected, all it takes place is setting, and it is ignored.
- The minimum width of the space is 1 / 72-inch.
- N6’s high order 4 bits are invalid.
- N6=0: The previous setting remains valid.
- N6≥8: N6 is set as N6=7.
- The N6 and magnification relation is shown below (Table 3).
- The printer prints in the number of columns shown below (144DPI). Table 3 CODE39/Interleaved 2 of 5/CODABAR Space width of Narrow Element
(f) N7 sets the ratio of the Wide Element and the Narrow Element whenCODE39 / Interleaved 2 of 5 / CODABAR are selected, and when EAN8 / EAN13 / UPC-A / UPC-E / CODE128 are selected, all it takes place is setting and it is ignored.
- N7’s high order 4 bits are invalid.
- N7=0: The previous setting remains effective.
- N7≥8: N7 is set as N7=7.
- The N7 and ratio relation is shown below (Table 4). Table 4 CODE39/Interleaved 2 of 5/CODABAR Wide Element and Narrow Element ratio
Number of columns (144DPI) 41049421PS Rev.3 109 / Table 6 shows the Narrow Element and Wide Element relation of CODE39 / Interleaved 2 of 5 / CODABAR spaces. (Relation of N6 and N7) Table 6 CODE39 / Interleaved 2 of 5 / CODABAR Space Symbol List
Number of columns (144DPI) (g) N8 sets the Human Readable Character Present/Not-present.
- N8’s high order 4 bits are invalid.
- Table 7 shows the relation of N8 and Human Readable Character Present/Not-present: Table 7
Do not add human readable character(s). Value other than 0 Add human readable character(s). (Print font: Utility) *1 Human readable characters are printed according to each bar width, in 144DPI. (Spaces are added to the left and the right of the font.) For the bar code and human readable character positional relation, refer to the bar code print command (ESC DLE B). 41049421PS Rev.3 110 / (3) This section shows how to calculate the print width of each bar code. Use the maximum width of the bar code for the calculation to obtain the print width because the bar code width varies with barcode data. If the actual bar code width is smaller than the calculated width, add spaces to make up for the deficiency to the right of the barcode. (a) EAN8 / EAN13 / UPC-A / UPC-E / CODE128 Obtain the barcode print width by adding the number of columns shown below, according to the parameter N5 (magnification of bar width). Table 8 EAN8/EAN13/UPC-A/UPC-E/CODE128 structure and the number of columns (1/2) No Bar code type Bar code structure Number of columns(144DPI) Remarks
Start Bar Data Characters (4 characters, fixed) Center Bar Data Characters (3 characters, fixed) Check Digit (1 character, fixed) End Bar
Center Bar Data Characters (5 characters, fixed)
Check Digit (1 character, fixed)
Data Characters (6 characters, fixed) End Bar
41049421PS Rev.3 24, fixed. HRC is an acronym for Human Readable Character, and when Attach HRC is specified, /HRC is printed. EAN13’s Flag Character is used for judging the parity when a bar pattern is being created, and the barcode is not printed. 111 / Table 8 EAN8/EAN13/UPC-A/UPC-E/CODE128 structure and the number of columns (2/2) No Bar code type
Left Margin 24, fixed. (HRC:Number System Character) Start Bar Number System Character (1 character,fixed) Data Characters (5 characters, fixed) Center Bar Data Characters (5 characters, fixed) Check Digit (1 character, fixed) End Bar
Right Margin (HRC: Check Digit) 24, fixed. Left Margin 24, fixed. (HRC:Number System Character) Start Bar
Data Characters (6 characters, fixed)
CODE128 Data Characters (50 characters, max) Stop Character
The last character shall be the Check digit. For CODE128(CODE C), calculate with the number of characters x 1/2. (If the number of characters is an odd-number, use (the number of characters +1) x 1/2.) HRC is an acronym for Human Readable Character, and when Attach HRC is specified, HRC is printed. The UPC-E’s Number System Character is fixed to the “0” character, and the bar code is not printed. The Check Digit is used for judging the parity when a bar pattern is being created, and the barcode is not printed. 112 / Table 9 shows the parameter N5 or the maximum value of the number of characters for each media: Table 9 No Bar code type Number of characters Receipt, Journal Slip, Sprocket 76.2mm 69.5mm
UPC-E 6 characters, fixed.
CODE 128(*1) Max 50 characters (Upper row: CODE A & B Lower row:BCODE C) N5=4 N5=7 N5=1 11 characters N5=5 10 characters 28 characters 22 characters 20 characters 50 characters 7 characters 6 characters 20 characters 14 characters 12 characters 40 characters 5 characters 4 characters 15 characters N5=2 N5=3 10 characters 8 characters 30 characters N5=4 4 characters 3 characters 12 characters 8 characters 6 characters 24 characters N5=5 3 characters 2 characters 10 characters 6 characters 4 characters 20 characters N5=6 2 characters 2 characters 8 characters 4 characters 4 characters 16 characters N5=7 2 characters 1 characters 7 characters 4 characters 2 characters 14 characters *1 Indicates the number of characters without CODE A/B/C mode switch. 41049421PS Rev.3 113 / (b) CODE39 / Interleaved 2 of 5 / CODABAR Obtain the bar code print width by the formulas shown in Table 10, using the parameter N5 (the magnification of Narrow Element’s black bar width), N6 (the magnification of Narrow Element space width), N7(Wide Element and Narrow Element ratio), Table 5 and Table 6. NB = Narrow Element’s black bar; WB = Wide Element’s black bar NS = Narrow Element’s space; WS = Wide Element’s space Table 10 CODE39/Interleaved 2 of 5/CODABAR structure and the number of columns No Bar code type Bar code structure
41049421PS Rev.3 Calculation of the number of columns (144DPI) Start Character N5=<N6: NBx5 +NSx1+WSx3 N5>N6: NBx3+NSx3+WBx2+WSx1 Gap between characters Data Characters (*2) N5=<N6: NBx5+NSx1+WSx3 (Max 50 characters) N5>N6: NBx3+NSx3+WBx2+WSx1 Gap between characters(*1) NS Stop Character N5=<N6: NBx5+NSx1+WSx3 N5>N6: NBx3+NSx3+WBx2+WSx1 Start Character NBx2+NSx2 Data Characters (*2,*3) (Max 50 characters) Stop Character NBx3+NSx3+WBx2+WSx2 Start Character (1 character) Gap between characters Data Characters (*2) (Max 48 characters) Gap between characters(*1) N5=<N6: NBx3+NSx1+WBx 1+WSx2 N5>N6: NBx1+NSx3+WBx3 N5=<N6: NBx3+NSx1+WB x1+WSx2 N5>N6: NBx1+NSx3+WBx3
Stop Character (1 character) N5=<N6: NBx3+NSx1+WBx 1+WSx2 N5>N6: NBx1+NSx3+WBx3 WB+NS+NB Gap between characters is added for every 1 character. The last character shall be the Check Digit. For Interleaved 2 of 5, calculate with the number of characters x 1/2. (If the number of characters is an odd-number, use (the number of characters +1) x 1/2.) Since Start/Stop Characters of CODABAR vary, they are included in data string (ESC DLE B’s DATA). The printer expands the data without being conscious of the Start/Stop Characters, and adds the gap between characters when there are multiple characters. (Consequently, even when the number of characters is 1 or 2, printing is possible.) 114 / Table 11 shows the maximum value of the number of characters for each media by the parameters N5, N6 and N7: Table 11
9 characters 8 characters 24 characters
6 characters 5 characters 16 characters
3 characters 3 characters 10 characters
2 characters 1 character 7 characters
2 characters Interleaved
20 characters 18 characters 48 characters 2 of 5
12 characters 12 characters 30 characters
8 characters 8 characters 20 characters
6 characters 4 characters 14 characters
4 characters 4 characters 10 characters
2 characters 2 characters 8 characters
2 characters 2 characters 6 characters
14 characters 12 characters 31 characters
9 characters 8 characters 21 characters
6 characters 5 characters 14 characters
4 characters 4 characters 10 characters
2 characters 2 characters 6 characters
2 characters 2 characters 5 characters CODE39 CODABAR 5 characters *1 CODABAR shows the number of characters that includes Start/Stop Characters. (4) (5) This command does not cause printing to start. The defaults of these parameters are as follows: NIN2 = (UPC-A) N3N4 = (3/4 inch)
(Human readable character present) (6) When any of the following events takes place, the default bar code settings become effective: (a) When the Initialize command (ESC @) is received. (b) When the I-PRIME signal (Parallel model)/Reset signal is received. (c) When the printer is turned on. (d) When the Menu Set command (ESC DLE D) is received. 41049421PS Rev.3 115 /
3.2.9.2 Print Bar Code Data
ESC DLE B Pno Pm DATA Name: Print Bar Code Data HEX: 1BH 10H 42H Pno Pm DATA DEC: 27 16 66 Pno Pm DATA Code Functions: (1) (2) (3) (4) Prints bar code data. (a) The conditions that cause the printer to print bar code data: For horizontal direction print density, use 144DPI FULL. 1 / 144 inch line feed 2-pass print. (Vertical direction: 144DPI) Uni-direction printing takes place regardless of the Uni-direction Print command (ESC U) settings. Pno specifies the number of bytes following ESC DLE B Pno. (MSB: Invalid) Pm selects the CODE128 Modes A, B or C. Valid only when the CODE128 is selected, and when anything other than CODE128 is selected, the command sequence becomes ESC DLE B Pno DATA. 41H: CODE128(Set A) Start Code is START CODE A. (Starts in the CODE A Mode.) 42H: CODE128(Set B) Start Code is START CODE B. (Starts in the CODE B Mode.) 43H: CODE128(Set C) Start Code is START CODE C. (Starts in the CODE C Mode.) For any other value, the entire command is ignored. DATA indicates bar code data and MSB is invalid. Since Start/Stop Characters of CODABAR vary, however, they are included in the DATA. For the number of characters (number of data) that become effective by this command, refer to (11). For the range that can be actually printed, refer to the Bar Code Style Select and Size Set command (ESC DLE A). 41049421PS Rev.3 116 / (5) Block change conditions that trigger printing: (a) Condition proceeding valid print bar code that triggers printing DATA-1 Barcode-1 If a block of bar code data (barcode-1) follows a block of characters (including spaces) or bit image graphics (above DATA-1), the block change triggers the “data-1” to print. The only case this is not applicable is when the DATA-1 is SKIP. SKIP, too, however, triggers printing if the 144DPI calculation results in a fraction. (b) Block change condition that triggers valid print bar code to print Barcode-2 DATA-2 If a block of bar code data (barcode-2) proceeds a block of data (above DATA-2) that is a print start command, or characters (including spaces) or bit image graphics, the block change triggers the “barcode-2” data to print. (c) Block change condition that triggers printing when valid print bar codes continue Barcode-3 Barcode-4 If a different bar code mode is set after (or before) the above barcode-3 and then this command is received, the block change triggers the barcode-3 data to print. A different bar code mode here means a change(s) in the following settings:
- Whether human readable characters Present/Not-present (6) The vertical current position after bar code printing shall be the print end position. When the block change triggers printing according to the conditions described in (5), the baseline that becomes the reference for the current vertical position shifts by the line feed that accompanies the bar code printing. As a result, the print position will become as follows: DATA-1 Barcode-1 Barcode-2 DATA-2 (7) When bar code data exceeding the right margin is received, the entire command is ignored, and next print start position (horizontal current position) shall become the right margin position. When the Identical Data Print is cleared in Receipt+Journal mode, if the print start position exceeds Receipt’s right margin on the Receipt side or Journal’s right margin on Journal side, the entire command is ignored, and next print start position will become Journal’s right margin position, whether the print start position is on Receipt side or Journal side. (Since Block Change Check is performed before Right Margin Check, however, even when the right margin is exceeded, if the block change conditions that trigger printing are met, the block change triggers applicable data to print.) For how to calculate the bar code width, refer to the Bar Code Style Select and Size Set command (ESC DLE A). 41049421PS Rev.3 117 / Print example when bar code exceeding right margin is received after Identical Data Print is cleared in the Receipt+Journal mode: Data received
Journal Receipt Journal Bar code settings of Barcode-1 and Barcode-2 are identical. With the reception of Barcode-1, the block change triggers the character “A” to print. With the reception of the character “B” before LF, printing, then, carriage return and line feed take place. Note 1) The print result in the above figure is for the bar code height of 7/72 inch and no human readable character present. (8) When this command is received in the Validation mode, the entire command is ignored. (9) The bar code print line is Left Align, regardless of the setting of the Position Align command (ESC a). The same applies to the line that is printed triggered by the block change with the reception of this command. (10) In Slip mode and Sprocket mode, if the bar code exceeds the printable area in the vertical direction while it is being printed over multiple lines, it is printed overlapping. 41049421PS Rev.3 118 / (11) The number of characters that become valid in this command is as follows (Check Digit code is counted as 1 character): (a) EAN8 8 characters (fixed) (b) EAN13 13 characters (fixed) (c) UPC-A 12 characters (fixed) (d) UPC-E 6 characters (fixed) (e) CODE39 50 characters (maximum number of characters) (f) Interleaved 2 of 5 50 characters (maximum number of characters) (g) CODE128(Set A,B,C) 50 characters (maximum number of characters) (h) CODABAR 50 characters (maximum number of characters)
- For (a) through (d), the number of characters is fixed to the above. When the Pno value is not the fixed number of characters, the entire command is ignored.
- For (e) through (h), they are valid as long as they do not exceed the maximum number of characters. If the Pno value ((g): Pno - 1 value) exceeds the maximum number of characters, the entire command is ignored.
- In the Interleaved 2 of 5, if the number of characters is an odd number, add the character “0” in front of the data. (Ex. 123 → 0123)
- In the CODE128’s CODE C, if the number of characters excluding the Check Digit Character and 3AH~3CH is an odd number, add the character “0” in front of the data. (Ex. 123 → 0123)
- For CODABAR, Start/Stop Characters are included in the number of characters. (12) By sending the Check Digit Character at the end of DATA, the Check Digit can be automatically generated. This is not applicable to UPC-E or CODABAR, however. If the Check Digit Character is not at the end of DATA, it is handled as an invalid code, and for EAN8, EAN13 and UPC-A, the entire command is ignored. For CODE39, Interleaved 2 of 5 and CODE128, only the Check Digit Character is ignored. (13) Bar code types and valid characters (a) EAN8 0(30H) =<Valid characters =<9(39H) (b) EAN13 0(30H) =<Valid characters =<9(39H) (c) UPC-A 0(30H) =<Valid characters =<9(39H) (d) UPC-E 0(30H) =<Valid characters =<9(39H) (e) CODE39 43 characters SP(20H), $(24H), %(25H), +(2BH), -(2DH), .(2EH), / (2FH), 0(30H)~9(39H), A(41H)~Z(5AH), are valid. (f) Interleaved 2 of 5 0(30H) =<Valid characters =<9(39H) (g) CODE128(SetA) 00H =<Valid characters =<66H (h) CODE128(SetB) 19H =<Valid characters =<7FH (i) CODE128(SetC) 30H =<Valid characters =<3CH (j) CODABAR 20 characters $(24H), +(2BH), -(2DH), . (2EH), / (2FH), :(3AH), 0(30H)~9(39H), A(41H)~D(44H) are valid. When it receives a character other than the above (excluding Check Digit Character), for (a)~(d), the printer ignores the entire command, and for (e)~(j), ignores only that character, but count the number of bytes of Pno. (For (d) and (j), there is no Check Digit Character.) 41049421PS Rev.3 119 / (14) Bar code type and Check Digit Character (a) EAN8 “@”(40H) (b) EAN13 “@”(40H) (c) UPC-A “@”(40H) (d) UPC-E Cannot be specified. (Check Digit Auto Generation Enable, fixed.) (e) CODE39 “@”(40H) (f) Interleaved 2 of 5 “@”(40H) (g) CODE128(SetA) “@”(67H) (h) CODE128(SetB) 18H (i) CODE128(SetC) “@”(40H) (j) CODABAR Cannot be specified. (Check Digit Auto Generation Disabled, fixed.) UPC-E Check Digit prints only human readable characters, and does not print bar code(s). CODE128 Check Digit prints only bar codes, and does not print human readable characters. (15) The position to print a human readable character In this printer, human readable characters are added to underneath the bar codes. (Cannot be added above the bar codes.) (a) In vertical direction, the printer prints top dots (for ascender) of a human readable character at a position 2/72-inch away from the normal bar’s bottom line (last dot of 1st pass of the last line). (b) In horizontal direction, the printer prints them at the center of a bar equivalent to 1 character. (c) Flag Character (valid only for EAN13) is added with Human Readable Character Present designation. (Does not print Flag Character’s bar code, however.) Flag Character Normal bar’s bottom line 2/72-inch Start Bar 12/144 inch 12/144 inch
m1=m2 (Approximate values permitted) m3=m4 (Approximate values permitted) (d) When Human Readable Characters are added, Start, Center, End Bar and UPC-A’s Number System Character and Check Digit are printed up to four dots below the normal bar’s bottom line. (This bar that sticks out is printed in 1/144-inch line feed and 2-pass, too.) (e) Number Character of UPC-A and UPC-E is added in the same manner as the EAN13 Flag Character when the Human Readable Character Present is designated. (For UPC-E, Number System Character’s bar code is not printed.) (f) Human Readable Characters disable all the print modes, but enable the International Character Setting. 41049421PS Rev.3 120 / (16) Start, Center and End Bars are added only in the following types: (a) EAN8 (b) EAN13 (c) UPC-A (d) UPC-E (no Center Bar) (17) If it receives an invalid code in DATA, for EAN8, EAN13, UPC-A, and UPC-E, the printer ignores the entire command, but for CODE39, Interleaved 2 of 5, CODE128 and CODABAR, ignores only the invalid codes. (a) The following cases constitute invalid codes: Received an invalid character; Received Check Digit Character somewhere other than the end of DATA. (18) Check Digit auto generation is as follows: (Check Digit is a numerical value that is calculated to check if there is an error in bar code reading.) (a) If the last bar code data is the Check Digit Character, Check Digit is calculated, and the Check Digit replaces the Check Digit Character. UPC-E is fixed to Check Digit Auto Generation Enable, however, and as a result, Check Digit Character cannot be designated. CODABAR is fixed to Check Digit Auto Generation Disable, Check Digit Character cannot be designated. (b) Table 1 shows bar code type and Check Digit calculation method: Table 1 Bar code type and Check Digit calculation method No Bar code type Kind of Check Digit calculation method (auto generation)
Interleaved 2 of 5 Modulus10 / Weight3 If the number of data is an odd number, the character 0 is added atthe top of the data, then, the Check Digit is calculated.
CODE128 Modulus103 For CODE C, if the number of data is an odd number, the character 0 is added at the top of the data, then, the Check Digit is calculated.
CODABAR (No Auto Generation) As Check Digit calculation methods, the following are available: Modulus10/Weight3, Modulus16, Modulus11, Modulus10/Weight2, 7check DR, Weighted Modulus11, and Runes To be added by the host according to the need. 41049421PS Rev.3 Remarks 6 characters are expanded to 11 characters, then, Check Digit is calculated. 121 / Modulus10/Weight3 calculation method (EAN8, EAN13, UPC-A, UPC-E, Interleaved 2 of 5) (1) (2) (3) (4) Assign numbers from the right digit of the bar code data to left in order, excluding Start/Stop Characters and Check Digit Character. Multiply the odd-number digits by 3 and the even-number digits by 1, and obtain their sum. Divide the above sum by 10 and obtain the remainder. The value obtained by subtracting the above remainder from 10 is the Check Digit. When the value obtained in the above manner is 10, however, 0 becomes the Check Digit. (Ex.) EAN8 bar code data 1234567@ (@ becomes Check Digit) Number
=60 Note 1) In Interleaved 2 of 5, if the number of data is an odd number, 0 (zero) is added at the top of the data, then, the above Check Digit calculation is made. (Ex. 123 → 0123) Note 2) In UPC-E, the Check Digit is calculated after 6 characters are expanded to 11 characters, according to the following method: 6-character control method (depending on the 6th value, the expansion method varies.)
- M1 M2 M3 I4 I5 3 0 M1 M2 M3 0 0 0 0 0 I4 I5 I4 I5=00~99
- M1 M2 M3 M4 M5 I5 (I5=5~9) 0 M1 M2 M3 M4 M5 0 0 0 0 I5 I5=5~9 M: Maker Code I: Product Code (Ex.) Bar code data 123451 → Expand to 01210000345. 41049421PS Rev.3 122 / Modulus43 calculation method (CODE39) (1) (2) (3) (4) Convert bar code data into numerical values excluding Start/Stop Characters and Check Digit Character, according to the table below (Table 2): Obtain the sum of the above numerical values. Divide that sum by 43, and obtain the remainder. Return the value of the remainder back to the character according to the table below (Table 2). This becomes the Check Digit. Table 2 CODE39 Character/numerical value conversion table Character Value Character Value Character Value
Converted into numeral 10 + 11 + 12 +
Note 1) Unshaded areas: Valid characters. 41049421PS Rev.3 124 / Modulus103 calculation method (CODE128) (1) (2) (3) (4) Convert bar code data into numerical values excluding Stop Characters and Check Digit Character, according to the table on next page (Table 4): Multiply Start Code by 1, weight the data starting from next data, by multiplying by 1, 2, 3, 4... in order, and obtain their sum. Divide that sum by 103 and obtain the remainder. Return the value of that remainder back to the character according to the table on the next page (Table 4). This character becomes the Check Digit. (Ex.) Bar code data [Start Code A] 3 8 A 6 g (g becomes Check Digit) Data START
357 103 = 3 Character
Note 1) With the reception of an external code of CODE A, CODE B or CODE C, the mode switches. When the SHIFT code is received, only next one character is handled as the data of the next mode (CODE A → CODE B → CODE A). Note 2) Unshaded areas: Valid characters. Note 3) 00H~1FH and 60H~ 66H codes of the CODE A do not print human readable characters. Note 4) 19H~1FH and 7FH codes of the CODE B do not print human readable characters. Note 5) 3AH~3CH codes of the CODE C do not print human readable characters. Table 8 CODABAR External code table
Code table The character code tables follow.
USA 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, FFH) indicates a space code. 41049421PS Rev.3 129 /
Canada-French 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, FFH) indicates a space code. 41049421PS Rev.3 130 /
Multilingual 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, FFH) indicates a space code. 41049421PS Rev.3 131 /
Portugal 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, FFH) indicates a space code. 41049421PS Rev.3 132 /
Norway 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, FFH) indicates a space code. 41049421PS Rev.3 133 /
BRASCII 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, A0H) indicates a space code. 8xH and 9xH is ignored even if it is received. (Shaded areas) 41049421PS Rev.3 134 /
Abicomp 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, A0H) indicates a space code. 8xH, 9xH, ExH, and FxH are ignored even if they are received. (Shaded areas) 41049421PS Rev.3 135 /
Multilingual 858 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, FFH) indicates a space code. 41049421PS Rev.3 136 /
ISO 8859/15 0xH and 1xH are Control Code areas. If a code received is other than a control code in 0xH and 1xH, it is ignored. The above table assumes international character set is set to “American.” The blank space (20H, 7FH, A0H) indicates a space code. 8xH and 9xH are ignored even if they are received. (Shaded areas) 41049421PS Rev.3 137 /
CPS Roll/Slip (Character per second) 387CPS/329CPS 317CPS/269CPS
Print Area Upper: Roll/Lower: Slip CPL Roll/Slip (characters per line)
41049421PS Rev.3 Comments Vertical 72DPI 71.1mm (504 dots) 71.1mm (672 dots) ← 76.2mm-wide paper (64.4mm 456 dots) (64.4mm 608 dots) ← 69.5mm-wide paper 160.0mm (1134 dots) 160.0mm (1512 dots) 56(50)CPL/126CPL 45(41)CPL/103CPL 74(67)CPL/168CPL ← ( ) 61(55)CPL/137CPL 69.5mm-wide paper The character width in the table applies if Character Space = 0, and if it is other than 0, it is included in the character width. 139 /
Character development The following are font attributes. (1) Enlargement 1 Double width 6/72" 8/180" or 8/240" 6/72" 18/180" or 18/240"
- 240 DPI in Condensed Print. 2 Double height 13/72" 6/72" 8/180" or 8/240" 8/180" or 8/240"
- 240 DPI in Condensed Print. 41049421PS Rev.3 140 / (2) Modification 1 Italics 6/72" 6/72" 12/180" or 12/240" 8/180" or 8/240" 2 Emphasize 6/72" 6/72" 8/180" or 8/240" 10/180" or 10/240" 3 Double Strike Characters are printed over in two passes. 41049421PS Rev.3 141 /
Default Initialization to defaults takes place under the following conditions: at POW-ON, or reception of IPRIME signal (Parallel model)/Reset signal (Serial Model), software reset commands, or Menu Item set command, or end of Menu operation. (With this printer, end of local test will not prompt default initialization on any setting.) The following pages describe the statuses in detail. <<Cautionary notes at reception of I-PRIME signal (Parallel model)/Reset signal(Serial model)>> (1) If data still remains in the receive buffer or the print buffer at reception of I-PRIME signal (Parallel model)/Reset signal (Serial model), initialization starts after the printer completes printing all the passes of the line that it is printing, and clears the data that remains in the buffer. (This is the spec similar to hardware reset.) Presence of unprocessed data does prompt print start. (2) Reception of I-PRIME signal (Parallel model)/Reset signal (Serial model) in Dump Mode prompts printer initialization, but Dump Mode continues. (3) Initialization prompted by reception of I-PRIME signal (Parallel model)/Reset signal (Serial model) does not prompt local test or menu startup; in other words, the press of the switch is all disabled during initialization. (4) If Slip is already loaded, paper eject is performed according to the sensor monitoring, and initialization starts after removal of paper. (5) During recoverable alarm (including the state in which removal of paper is awaited), initialization is put on hold. After alarm has been cleared (or after removal of paper), initialization starts. While initialization is put on hold, the Parallel model is disabled to receive (because Busy signal is at High), but the Serial model reads data into receive buffer and executes only DLE EOT n, GS ENQ, DLE EOT BS n, ESC DLE r Pno n. (Data read into the receive buffer is cleared in the initialization process.) (6) If Validation is already loaded, initialization starts after removal of paper. (7) With the option tractor installed and the lever set to Tractor, when the status is Slip Sensor Paper End and Validation Sensor Paper present, even if Sprocket paper has been loaded, Media Mismatch alarm in Receipt+Journal Mode occurs. (8) If the data to be sent to the host PC still remains without being reverse-transferred, that data will be cleared. If the Software Reset command or the Menu Item Set command is received, however, ASB status and Check Paper Read result data (including Re-send Request) is cleared, but status data other than that is kept. (Note) With the hard reset (setting by Short Plug with Parallel I/F board and by DIP SW with Serial I/F board), the same operation as at POW-ON is performed. <<Cautionary notes at reception of Menu Item Set command>> (1) The receive buffer is not cleared. Print data in the print buffer is cleared, prompting initialization of each setting. If receiving lines of data has been completed prior to reception of this command and print start has been already initiated, that data cannot be cleared. (2) If the size of the receive buffer has been changed by the Menu Item Set command, it cannot be changed again until a power cycle takes place or I-PRIME signal (Parallel model)/Reset signal (Serial model) is received. 41049421PS Rev.3 142 / No. Items Settings 1 Print head position Centering position (At Power On: Homing, then centering) 2 Horizontal direction print position (Left margin position) The first dot position (Column 0) 3 Print position alighment set Left alignment 4 Line feed pitch 6LPI(all print sheets) 5 International character set American 6 Character code table USA 7 Print font By Menu settings 8 Character right-side space 0 dot 9 Underline designate Reset 10 Double height set Reset 11 Double width set Reset 12 Italic mode Reset 13 Emphasized designate Reset 14 Double strike print designate Reset 15 Print sheet Receipt+Journal (Sprocket paper if print sheet is present and the lever is set to Tractor when the option tractor is installed.) 16 Set sheet All sheets are valid. 17 Print stop sensor select Receipt End Sensor and Journal End Sensor are valid. (See
18 Cut-sheet wait time Insert wait time: unlimited Operation start time: one second 19 Uni-directional print Reset 20 Auto LF valid/invalid By Menu setting 21 Print speed and head current run time Receipt/Journal: Standard mode Slip paper: Low speed mode Validation paper: Standard mode Sprocket paper: Low speed mode 22 Receive Buffer size By the Menu setting 23 BUSY Process By the Menu setting 24 Sprocket paper page length By the Menu setting Note 1) 25 Sprocket paper vertical position The current print position is TOF position. 26 Perforation skip length 0(Reset) 27 Cut position Reception of I-PRIME signal (Parallel model)/Reset signanl (Serial model): Feeding to a print position Reception of Software Reset/Menu Item Set commands: Keepting the cut position POW ON: The current position becomes a print position. 28 Pass position POW ON: The current postion becomes a normal pass positon. Other than POW ON: The pass position prior to initialization remains as is. 41049421PS Rev.3 143 / No. Items Settings 29 Receipt+Journal Same Data Print Designate Reset 30 Condense Designate Reset 31 Basic pitch Horizontal: 1/180", vertical: 1/144" 32 Peripheral Device select Parallel model (Customer display unconnectable) Printer select Serial model (Cusomer display connectable) By the DIP SW 1-8 on the Serial I/F board 33 Paper Sensor select, enabling Paper End signal (valid with only Parallel I/F) By the menu setting 34 ASB (Automatic Status Back) If Menu Off-line Busy Control is set to: No → Only On-line/Off-line status is valid. Yes → All statuses are invalid. 35 Panel Switch Valid 36 Print stop by Cover Open By the menu setting 37 Roll Paper width By the menu setting Note 1) Size of the receive buffer is changed according to the Menu setting only at POW ON or when the I-PRIME signal (Parallel model)/Reset signal (Serial model) is received, and then initialization takes place. 41049421PS Rev.3 144 /
Conditions for Print Start This printer starts printing in the following cases. (1) Upon receiving the following function code strings, the printer partitions the data block at that point, starts printing, and performs the process designated after it finishes printing. : Performed Items
: Not performed → : Refer to comment Comment LF performed if Auto Line Feed is enabled.
ESC J n (n/144" paper feed) ESC d n (n-line paper feed) ESC % 5 n (n/144" paper feed) ESC DLE D (Menu setting) ESC $ n1 n2 (Absolute Position designate) Left of the present position ESC \ n1 n2 (Relative Position designate) Left of the present position (2) (3) (4) When the printer has received data for 16 characters or after 0.2 second timeout, in Hexadecimal Dump mode. Right margin over has occurred. (Right margin just is not included.) (Refer to 3.4.3 Right Margin Process.) When the number of print blocks within a line is 352 or more. 41049421PS Rev.3 145 /
- Printing does not start even though input data comes to the right margin just. (b) Right margin over Regular character Input W X Y Z Regular character Input W X Y Right margin Output W X Y
Right margin Output W X Y
- The data up to the right margin is printed, Auto CR/LF is performed, and the characters that go beyond the right margin are printed in the next line.
- In the case of Validation, data is ignored until print start is invoked.
- In the Receipt+Journal mode with Same Data Print cleared, if the receive start position is on the Receipt side, characters that go beyond the Receipt’s right margin are printed from the Journal’s left margin. Characters that go beyond the Journal’s right margin are printed in the next line (at the Receipt’s left margin.) (See (3).)
- Refer to below (c) regarding reception at the right margin just. 41049421PS Rev.3 146 / (2) Bit image graphics (a) Right margin just graphic Right margin
Even if input data comes to the right margin just, printing does not start. When new print data is input, the printer performs CR/LF and prints that data in the next line. With Validation, data is ignored until prompting of print start. In the Receipt+Journal mode with Same Data Print cleared, if the data his at Receipt’s right margin just and new print data is input, that data is printed from the Journal’s left margin. If the data is at Journal’s right margin just and new print data is input, that data is printed in the next line (at the Receipt’s left margin). (b) Right margin over Input
- When the input data exceeds the right margin, the data up to the right margin is retained while the data exceeding is ignored. Printing does not start. Neither CR nor LF is performed.
- When print data is input next, CR/LF is performed, then the data is printed in the next line.
- With Validation, the data is ignored until print start is invoked.
- In the Receipt+Journal mode with Same Data Print cleared, if the receive start position is on the Receipt side and the data goes beyond the Receipt’s right margin, that portion is printed from the Journal’s left margin. If the data goes beyond the Journal’s right margin, the data to the Journal’s right margin is retained awhile the data exceeding is ignored. Printing does not start. (See (3).) Input A B C graphic
graphic Output Right margin Right margin A B C Left margin (c) Receiving at the right margin just
- If image data is input when the current position is at the right margin just, CR/LF is performed, then that input data is printed from the position resulted from CR.
- If the input data exceeds the range from the CR position to the right margin, it is processed the same way as the right margin over. (above (b))
- If a character is input when the current position is at the right margin just, CR/LF is performed, then that input data is printed from the position resulted from CR.
- With Validation, the data is ignored until print start is invoked.
- In the Receipt+Journal mode with Same Data Print cleared, if image data is input when the position is at the Receipt’s right margin just, that data is printed from the Journal’s left margin. If image data is input when the position is at the Journal’s right margin just, that data is printed in the next line (Receipt’s left margin). Input Left margin graphic Right margin
Output graphic Left margin 41049421PS Rev.3 Right margin 147 / (3) Receipt+Journal Mode with Same Data Print cleared 1 With a character running into Receipt’ Right Margin Over Input W X Y Z Receipt’s Right Margin Output Journal’s Left Margin W X Y
- Even in the above case, print start is not invoked.
- If Journal’s Right Margin Over has occurred, the printer performs Auto CR/LF as said earlier, and prints those characters that go beyond the right margin in the next line (at the Receipt’s left margin position). 2 Data input as image has gone beyond the Receipt’s right margin Input Glaphic Receipt’s right margin Output Glaph Receipt’s right margin Journal’s left margin
- Even in the above case, print start is not invoked.
- If Journal’s Right Margin Over has occurred, the data that goes beyond is ignored as said earlier and printing does not start. 41049421PS Rev.3 148 /
Combination of print mode None of the received commands will be ignored as long as they are received properly. Even in the combinations of modes in which printing is not allowed, the command received properly will set or reset the status in the printer. A prohibited print mode becomes valid again when the condition(s) of the prohibited print mode is reset. (1) Combinations of print mode
Double Width No. : Combination setting (print) disabled 149 / (2) Combinations of print data and print mode
Double Width No. STD Chrs. Graphic Chrs. HSD STD Chrs. Graphic Chrs.
- In Validation mode, setting of the following print modes is valid but printing is the same as they are reset.
- Standard/graphics characters indicate the following. Code page Standard character code Graphics character code USA 20H ~ FFH except the code listed to the right B0H ~ DFH, F4H, F5H Canada-French 20H ~ FFH except the code listed to the right B0H ~ DFH, F4H, F5H Multilingual 20H ~ FFH except the code listed to the right B0H ~ B4H,B9H ~ BCH,BFH ~ C5H,C8H ~ CEH,D9H ~ DCH,DFH Portugal 20H ~ FFH except the code listed to the right B0H ~ DFH,F4H,F5H Norway 20H ~ FFH except the code listed to the right B0H ~ DFH,F4H,F5H BRASCII 20H ~ FFH (80H~9FH are ignored even if received.) None Abicomp 20H ~ FFH (80H~9FH are ignored even if received.) None Multilingal 858 20H ~ FFH except the code listed to the right B0H ~ B4H,B9H ~ BCH,BFH ~ C5H,C8H ~ CEH,D9H ~ DCH,DFH ISO 8859/15 20H ~ FFH (80H~9FH are ignored even if received.) 41049421PS Rev.3 None 150 /
Print Pass Position Control For the data that contains Double Height, the printer performs line feed to the specified print position at the start of printing lower pass after printing upper pass. As this happens, the baseline, on which the present vertical position is based, moves. 1/72" (1)
No Double High designation Double High designation Bold line : Base line that becomes reference to the vertical current position after CR printing. Bold dash line : Base line before receiving a Double High character. : Not used in ascender characters Figure 3.4.5 Print Pass Position 1 Normal Character
- Ascender characters (normal ANK) are printed with pins 1~7, while descender characters (certain ANK (“g, p”, etc) are printed with pins 3~9 and graphics characters and certain ANK (“j”, etc) with pins 1~9. 2 Double Height Character
- Ascender characters (normal ANK) are printed with the upper pass with pins 1~9 and the lower pass with pins 1~5 while decender characters (certain ANK (“g, p”, etc) are printed with the upper pass with pins 5~9 and the lower pass with pins pins 1~9. Graphics characters and certain ANK (“j”, etc) are printed with the upper pass with pins 1~9 and the lower pass with pins 1~9. 3 Underline 41049421PS Rev.3 151 /
IEEE1284 SPECIFICATIONS This Specification describes the specifications of the IEEE1284 bi-directional Centronics interface that is the interface between the host and the printer.
- RP sensor: Receipt Paper End sensor (Monitors paper-feed-starting position and bottom position of Roll paper)
- RN sensor: Receipt Near End sensor (Monitors Near End bottom position of Roll paper)
- JP sensor: Journal Paper End sensor (Monitors paper-feed-starting position and bottom position of Roll paper)
- JN sensor: Journal Near End sensor (Monitors Near End bottom position of Roll paper)
- S sensor: Slip sensor (Monitors paper-feed-starting, ejecting position of Slip, and bottom position of Slip/Tractor.)
- V sensor: Validation sensor (Installed in the 2 positions, left side and right side, controlled by the same board) (Monitors paper-feed-starting position of Slip/Tractor, inserting/removing position of Validation and removal-waiting status of Slip/Validation/Tractor) <Paper mode> Roll mode: Mode in which Roll paper is used (Receipt, journal, Receipt + Journal) <Others> ASB: Automatic Status Back Depending on the printer status change, a status is automatically notified to the host. There are two ASB status: 4 byte 1 set (GS a) and 5 byte 1 set (ESC DLE a) Description in this document is based on “4 byte 1 set (GS a).” 41049421PS Rev.3 152 /
The IEEE1284 defines the following signaling methods: (1) Compatible mode (Compatibility mode) (2) Nibble mode (3) Byte mode (4) ECP mode (5) EPP mode This printer supports IEEE1284 compliant bi-directional Centronics interfaces. Of these five modes, this printer supports “Compatible mode” and “Nibble mode”. (1) Compatible mode This mode is compatible with standard Centronics interface (36pin parallel I/F). Data goes from the host to the printer unidirectionary. This mode will be the default mode of the IEEE1284. (2) Nibble mode This mode makes the data transfer from the printer to the host possible when the host requests it. When the printer sends data to the host, it uses the status line from the printer to the host, and sends 1byte data to the host by transferring 4bit data per transfer, twice. Next several chapters describe details of the interface including each of the above modes. 41049421PS Rev.3 153 /
Compatible mode transfers data in parallel using the 8-bit data lines. As described earlier, this mode is the default mode in the IEEE1284 interface, and after the power to the printer is turned on and the printer is initialized by the nInit (I-PRIME) signal, the printer will always be in this mode. In the compatible mode, the host can select from the following operations: (1) Forward transfer (host → printer) by parallel interface in the compatible mode (2) Starting negotiation phase to shift to the mode that enables reverse transfer (printer → host), from the compatible mode. The following table shows the names and the functions of the signals used in this mode: Names Pin No. 2~9
To Host From Host To Host To Host To Host From Host Function Data strobe Data from host Data reception ends Cannot receive data No paper Online 1284 mode transition request Unused Signal ground Frame ground +5V Signal ground Initialization Error has occurred, offline Signal ground Drawer open/close status +5V 1284 mode transition request
- In the above table, the shaded areas are those not controlled in this mode. For details, refer to the circuit materials. 41049421PS Rev.3 154 /
Compatible Mode Handshake The handshake in the compatible mode has the following two phases: (1) Forward data transfer phase This phase is the forward transfer phase that begins when the host outputs nStrobe signal “Low” pulse. The host can begin this phase any time from the forward idle phase status. The forward data transfer takes place in the following manner:
(Host) (Host) (Printer) (Printer) (Printer)
Outputs data to transfer to the printer on the 8-bit parallel line(s). Indicates that that data is valid by setting nStrobe signal Low . Latches the data and sets the Busy signal High . Decodes the received data and prepares to receive next data. Sets Busy signal Low , returns nAck signal to the host and informs the host that it can receive next data. Shifts to the forward idle phase. Forward idle phase This phase indicates that data transfer is not taking place in the compatible mode, and the host can begin the forward data transfer phase or the negotiation phase to request the shift to other mode. In this phase, the printer can set Busy signal “High” at an arbitrary timing, and inhibit the forward data transfer phase. Compatible mode handshake timing chart
4.3.1.1.1 Data receive (forward data transfer phase)
1us (MIN) 500ns (MAX) 0 (MIN) Busy
Note) 1us ~ 7us The above timing chart shows the specifications of this printer, and slightly different from the timing chart defined in the IEEE1284. (In the IEEE1284, Busy is set low after nAck is set high.)
4.3.1.1.2 Initialization by POWER ON
- Refer to Chapter 4.9.1 (1)
4.3.1.1.3 Initialization by I-PRIME (nlnit) signal
- Refer to Chapter 4.9.1 (2) 41049421PS Rev.3 155 /
- When RP sensor is set to valid by print stop sensor select command (When “Off-line Busy Control = Yes” is set in MENU)
- When Menu is set to “Off-line Busy Control = No,” Busy signal does not change. PE Occur (RP sensor with paper → no paper)
PE signal selected RP=Valid
- When S sensor (Slip insert sensor) is set to Valid by print stop sensor select command S sensor With paper → No paper Select PError PE Occur (bottom over)
Recoverable alarm is occurring Select PError Recoverable alarm is canceled
- The above is the example when Menu is set to “Off-line Busy Control = Yes.” When Menu is set to “Off-line Busy Control = No,” Busy signal does not change. 41049421PS Rev.3 156 /
4.3.1.1.6 Fatal alarm
Fatal alarm is occurring Select PError
(1) When the SW is held down SW held down
- The above is the example when Menu is set to “Off-line Busy Control = Yes,” and when Menu is set to “Off-line Busy Control = No,” Busy signal does not change.
Negotiation phase start Next chapter (Chapter 4.4) describes how the negotiation phase can be started, its method and details. 41049421PS Rev.3 157 /
When it requests information such as the device ID from the printer, the host tries to switch the mode to the one which can transfer data in reverse (printer → host), from the compatible mode. Here, the phase to select the most appropriate mode out of the transfer modes supported by both the host and the printer and switch to that mode is called Negotiation Phase.
Details of Negotiation This section describes the details of the negotiation when the host requests to shift to other mode from the compatible mode. The table below shows the names and the functions of the signals used in the negotiation phase: Pin No. Names Direction Traditional Compatible mode
ACKNLG PtrClk To Host
BUSY PAPER END PtrBusy AckDataReq To Host To Host Function From Host Host sets “Low” when it sends an extensibility request value. From Host The extensibility request value from the host Sets “Low” in concert with 1284 Active. Sets “High” after setting Xflag to its appropriate value. Outputs the forward channel status. Sets “High” responding to the extensibility request value. Sets “Low” coincident with Xflag. SELECT XFlag To Host Sets “High” responding to the extensibility request value. Sets “Low” when the mode has been established. 14 AUTOFEED XT HostBusy From Host 1284 mode shift request from the host Not used
GND Grand Signal ground Frame Grand
- As with the compatible mode, in the above table, the shaded areas are not controlled by this mode. For details, refer to the circuit materials. 41049421PS Rev.3 158 /
(1) (2) (3) Negotiation and handshake 1284 mode switch request When it requests the reverse transfer from the printer, the host places the 1 byte extensibility request value on the data line as the request to switch to the reverse transfer possible mode from the compatible mode, sets the 1284 Active signal “High” at the same time setting HostBusy signal “Low”. Response status set For the 1284 mode switch request, if it supports the requested mode, the printer sets the response status that includes AckDataReq signal and nDataAvail signal “High” settings, to indicate that it is IEEE1284 compliant. When there is no response (the printer is not IEEE 1284 compliant), the host withdraws the 1284 mode switch request and returns to the compatible mode and forward idle phase. Switch Mode provision With the above response status returned, the host acknowledges the support of the IEEE1284 by the printer and shows the extensibility request value (shown below) to the printer by setting HostClk signal “Low”. Table 4-1 Extensibility request values Definition Extensibility Link Request EPP Mode Request ECP Mode Request (with Run Length Encode) ECP Mode Request (without Run Length Encode) Unused (reserved) Device ID Transfer Request ECP Mode (with Run Length Encode) ECP mode (without Run Length Encode) Byte Move Nibble Mode Unused (reserved) Byte Mode Reverse Channel Transfer Request Nibble Mode Reverse Channel Transfer Request Value (binary) Xflag affirmative Support/nonsupport (Xflag) response
High High High High High (Low) (Low) (Low) (Low) (Low)
High High High High High High Low (Low) (Low) (Low) (High) (Low) (Low) (Low) Note) In the above table, “Xflag affirmative response” denotes the level of the Xflag signal that the host expects to see, as an indication of a positive response, when it provides the specified Extensibility Request byte to the printer during the negotiation phase. (4) Mode switch end (negotiation ends) For the Extensibility Request Value, the printer sets nDataAvail signal “Low”, and denotes a positive response in Xflag signal if it can meet the request, and begins the reverse transfer. If it cannot meet the request, the printer sets Xflag signal to the opposite level of the positive response, waits for the 1284 signal to become “Low” and returns to Compatible Mode. (Affirmative response to “Nibble Mode Device ID Transfer Request” and “Nibble Mode Reverse Channel Transfer Request” only) 41049421PS Rev.3 159 /
(1) Negotiation timing chart Negotiation from Compatible Mode to Nibble Mode
Ptr nFault Sts to Host Data Status Ptr Select Sts
Compatibility Mode Negotiation Phase
Places Extensibility Request Value (Nibble Mode Reverse Channel Transfer) on the data bus.
Requests the switch to the 1284 Mode by setting 1284 Active “High” and HostBusy “Low”.
2. (Printer) Sets AckDataReq, Xflag and nDataAvail “High” and PtrClk“Low” and denotes that it
is IEEE1284 compliant.
Sets HostClk “Low” and provides the printer with the Extensibility Request Value.
Acknowledges that the printer is IEEE1284 compliant and sets HostClkand HostBusy “High”.
5. (Printer) Sets Xflag “Low” and indicates that it supports the transfer mode (Nibble Mode)
specified by the Extensibility Request Value. Maintains nDataAvail and AckDataReq “Low” if there is data to transfer, and “High” if there is no data to transfer.
6. (Printer) Sets PtrClk “High” to indicate that the transfer preparation is complete.
Sets HostBusy “Low” to indicate that receiving preparation is complete. TH : TL : TP : TI : 41049421PS Rev.3 Valid state (host can start termination phase) 0 ~ 1.0sec Host response time 0 ~ 35ms Printer response time 0.5us Minimum setup time or minimum signal pulse width 0 ~Infinite Maximun setup time 160 / (2) Negotiation for Device ID Transfer Request from Compatible Mode
Ptr nFault Sts to Host Data Avail Ptr Select Sts
Compatibility Mode Negotiation Phase
Places Extensibility Request Value (Device ID Request) on the data bus.
Sets 1284 Active “High” and HostBusy “Low” and requests the switch to 1284 mode.
2. (Printer) Sets AckDataReq, Xflag and nDataAvail “High” and PtrClk “Low” to indicate that it
is IEEE1284 compliant.
Sets HostClk “Low” and provides Extensibility Request Value to the printer.
Acknowledges that the printer is IEEE1284 compliant and sets HostClk and HostBusy “High”.
5. (Printer) Maintains Xflag “High” and indicates that it has data to transfer by setting nDataAvail
and AckDataReq “Low” that indicate that the printer can transfer device ID in the specified mode.
6. (Printer) Sets PtrClk “High” to indicate that the transfer preparation is complete.
(Xflag becomes “High” that indicates that ID return is possible.)
Printer to Host Data Status Printer Busy Status
Printer to Host Data Status Extensibility Request Value
Printer nFault Status Host Driven (Unknown)
(3) Unsuccessful negotiation (requested mode not supported) and re-negotiation (reference) <Explanations of events>
Places Extensibility Request Value on the data bus.
Sets 1284 Active “High” and HostBusy “Low”, and requests the switch to the IEEE 1284 mode.
2. (Printer) Sets AckDataReq, Xflag and nDataAvail “High” and PtrClk“Low” to indicate that it is
Sets HostClk “Low” and provides the printer with the Extensibility Request Value.
Acknowledge that the printer is IEEE1284 compliant and sets HostClk and HostBusy “High”.
5. (Printer) Sets Xflag “Low” to indicate that it does not support transfer mode (Byte Mode)
specified by Extensibility Request Value. (When there is data to transfer to the host, the printer sets nDataAvail and AckDataReq “Low”.)
6. (Printer) Sets PtrClk “High” to indicate that the transfer preparation is complete.
Sets 1284 Active “Low” to request the negotiation to terminate.
23. (Printer) Upon receiving 1284 Active “Low”, printer sets PtrBusy and nDataAvail “High” and
returns AckDataReq to Compatible Mode state.
24. (Printer) Following the above signal changes, printer sets Xflag “High” and PtrClk “Low”.
In response to PtrClk “Low”, host sets HostBusy “Low”.
26. (Printer) Returns nDataAvail and Xflag to the Compatible Mode state.
27. (Printer) Sets PtrClk “High” to indicate that each signal status setting has been completed.
Sets HostBusy “High” and terminates the negotiation.
Nibble Mode is the mode for the printer to transfer the information such as Device ID that the printer has to the host (reverse transfer), in response to the request from the host. This mode is started by the negotiation from the Compatible Mode, and after Power On and the initialization by nInit (I-PRIME) signal, the printer never starts in this mode. In the Nibble Mode, the host can select from the following operations: (1) Asynchronous reverse (printer R host) transfer in the Nibble Mode (2) Starting the termination phase to return to the Compatible Mode from the Nibble Mode The table below shows the names and the functions of the signals used in this mode: Pin No. Name Direction Function HostClk Data bit1~8 PtrClk From Host From Host To Host BUSY PtrBusy To Host
AUTOFEED XT HostBusy From Host
To Host From Host To Host
To Host To Host From Host “High”, fixed. Host can drive (unused) Sets “Low” to notify the host that Nibble data is valid, and returns this signal to “High” in response to the HostBusy “High”. Indicates bit3 or bit7 of Nibble data. Outputs Forward Channel status when in idle state. Indicates bit2 or bit6 of Nibble data. Outputs transfer data presence or not presence when in idle state. Indicates bit1 or bit5 of Nibble data. Outputs Xflag Affirmative Response level when in idle state. Indicates the host’s data receiving preparation state. Unused. Signal ground Frame ground +5V Signal ground Initialization Indicates bit0 or bit4 of Nibble data. Outputs transfer data presence or not presence when in idle state. Signal ground Drawer open/close status +5V 1284 mode termination request from the host. Traditional Nibble mode
- The signal names and pin assignments, etc., are the same as the Negotiation Phase (Section 4.4.1). In the above table, the shaded areas are not controlled by this mode. For details, refer to the circuit materials. 41049421PS Rev.3 164 /
Nibble Mode Handshake Handshake in the Nibble Mode has the following phases: (1) Host busy data available phase When the printer has data to send to the host after the negotiation to the Nibble Mode has ended or 1byte data was sent, the transition to this phase takes place. In this phase, the transition to the reverse data transfer phase takes place when HostBusy signal becomes “Low”. (2) Host busy data not available phase Shifts to this phase when there is no data to send from printer to host after the negotiation to the Nibble Mode ends or 1-byte data is sent If data to send becomes available in this phase, the phase shifts to Nibble mode host busy data available phase. (3) Reverse data transfer phase This phase performs asynchronous reverse data transfer that is activated when HostBusy signal becomes “Low”, from the host busy data available phase. Data transfer is done in the following manner:
(Printer) (Host) (Printer) (Host) (Printer) Sets PtrClk signal “Low” to indicate that data is valid. Latches data and sets HostBusy signal “High”. Acknowledges HostBusy signal “High” and sets PtrClk signal “High”. Sets HostBusy signal “Low” to indicate that it can accept high order nibble data. Places bit4 ~ bit7 of the transfer data on nDataAvail, Xflag, AckDataReq & PtrBusy signals.
(4) (5) (6) Nibble mode/host busy data available phase Sets HostBusy signal “Low” to indicate that it can accept low order nibble data. (Nibble Mode reverse data transfer begins.) Sets PtrClk signal “Low” to show host that data is valid. Latches data and sets HostBusy signal “High”. Acknowledges HostBusy signal “High” and sets PtrClk signal “High”. Shifts to host busy data available phase or host busy data not available phase. Reverse idle phase This phase means: No reverse data transfer is in progress, there is no reverse transfer data, either, and HostBusy signal is “Low” (host can start receiving reverse data). If transfer data becomes available in this phase, the phase shifts to host busy data available phase. Interrupt phase This is a phase that provides the mechanism for the printer to alert the host that it has data to transfer, in the reverse idle phase. Printer shows host that it has data to transfer by setting nDataAvail signal “Low” and outputting PtrClk signal “Low” pulse, and prompts host to get ready to receive the data. Phase shifts to host busy data available phase via this phase. Nibble mode termination phase Termination phase is a phase to return to Compatible Mode from the Nibble Mode by the host’s reverse transfer termination (Nibble Mode) request. This phase is activated when 1284 Active signal becomes “Low” and HostBusy signal becomes “High” from the valid state. 41049421PS Rev.3 165 / 41049421PS Rev.3 PtrClk (nAck) PtrBusy (Busy) AckDataReq (PError) XFlag (Select) nDataAvail (nFault) HostClk (nStrobe) HostBusy (nAutofd) Data 1 ~ 8
Supports Nibble Mode Host Driven = 0000 0000
1byte reverse transfer from negotiation 1284 Active (nSelectIn) (1)
Data bit 3 Data bit 2 Data bit 1 Data bit 0
Data bit 7 Data bit 6 Data bit 5 Data bit 4
Host Busy Data Not Avail Phase Host Driven (Unknown)
Nibble mode handshake timing charts 166 / <Explanation of events> 0 ~ 6. From negotiation to host busy data available phase. (Refer to Chapter 4.4.)
Sets HostBusy “Low” to indicate that it can accept low order nibble data.
8. (Printer) Places low order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy.
9. (Printer) Sets PtrClk signal “Low” to indicate that low order nibble data is valid.
Receives the low order nibble data and sets HostBusy “High”.
11. (Printer) Acknowledges HostBusy “High” and sets PtrClk signal “High”.
Sets HostBusy “Low” when it is ready to accept the high order nibble data. 8’. (Printer) Places the high order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy. 9’. (Printer) Sets PtrClk “Low” to indicate that high order nibble data is valid. 10’. (Host) Receives the high order nibble data and sets HostBusy “High”.
13. (Printer) Acknowledges HostBusy “High” and sets nDataAvail and AckDataReq
“High”(indicating there is no more data) and Xflag “Low”(the same level as affirmative response) and PtrBusy to indicate the forward channel status. 11’. (Printer) Sets PtrClk “High” to indicate that there is no more data. 7‘. (Host) Sets HostBusy “Low” to indicate that it is ready to accept next data.
18. (Printer) When valid data becomes available for the host, the printer sets PtrClk and
nDataAvail “Low” to indicate it. 41049421PS Rev.3 167 / 41049421PS Rev.3 168 / PtrClk (nAck) PtrBusy (Busy) AckDataReq (PError) XFlag (Select) nDataAvail (nFault) HostClk (nStrobe) HostBusy (nAutofd) Data 1 ~ 8
Data bit 3 Data bit 2 Data bit 1 Data bit 0
Data bit 7 Data bit 6 Data bit 5 Data bit 4
Printer Busy Status Data Avail Host Driven (Unknown)
Data bit 3 Data bit 2 Data bit 1 Data bit 0
Data bit 7 Data bit 6 Data bit 5 Data bit 4
Sets HostBusy “Low” to indicate that it is ready to accept low order nibble data.
8. (Printer) Places the low order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy.
9. (Printer) Sets PtrClk “Low” to indicate that the low order nibble data is valid.
Receives the low order nibble data and sets HostBusy “High”.
11. (Printer) Acknowledges HostBusy “High” and sets PtrClk “High”.
Sets HostBusy “Low” when it is ready to receive the high order nibble. 8’. (Printer) Places the high order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy. 9’. (Printer) Sets PtrClk “Low” to indicate that the high order nibble data is valid. 10’. (Host) Receives the high order nibble data and sets HostBusy “High”. 13’. (Printer) Acknowledges HostBusy “High” and sets nDataAvail and AckDataReq “Low”(indicating there is more data), Xflag “Low”(the same level as the affirmative response), and PtrBusy to indicate the forward channel status. 11’. (Printer) Sets PtrClk “High” to indicate that there is more data. 41049421PS Rev.3 169 / 41049421PS Rev.3 170 / (3) PtrClk (nAck) PtrBusy (Busy) AckDataReq (PError) XFlag (Select) nDataAvail (nFault) HostClk (nStrobe) HostBusy (nAutofd) Data 1 ~ 8 1284 Active (nSelectIn)
Supports Nibble Mode
Reverse transfer from the reverse idle phase
Data bit 3 Data bit 2 Data bit 1 Data bit 0
Data bit 7 Data bit 6 Data bit 5 Data bit 4
Host Driven (Unknown)
<Explanation of events>
18. (Printer) Because data to transfer to host becomes available, the printer sets nDataAvail and
PtrClk “Low” to alert the host.
19. (Printer) After waiting for the minimum pulse width, printer sets PtrClk “High”.
Sets HostBusy “High” from the PtrClk “Low” pulse, and gets ready to receive the data.
21. (Printer) Acknowledges HostBusy “High” and sets AckDataReq “Low”.
Sets HostBusy “Low” to indicate that it is ready to receive.
8. (Printer) Places low order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy.
9. (Printer) Sets PtrClk “Low” to indicate that the low order nibble data is valid.
Receives the low order nibble data and sets HostBusy “High”.
11. (Printer) Acknowledges HostBusy “High” and sets PtrClk “High”.
Sets HostBusy “Low” when it is ready to receive the high order nibble data. 8’. (Printer) Places the high order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy. 9’. (Printer) Sets PtrClk “Low” to indicate that the high order nibble data is valid. 10’. (Host) Receives the high order nibble data and sets HostBusy “High”.
13. (Printer) Acknowledges HostBusy “High” and sets nDataAvail and AckDataReq
“High”(indicating that there is no more data), and Xflag “Low”(same level as the affirmative response) and PtrBusy to indicate the forward channel status. 11’. (Printer) Sets PtrClk “High” to indicate that there is no more data.
Supports Nibble Mode Data Avail
Data bit 3 Data bit 2 Data bit 1 Data bit 0
Data bit 7 Data bit 6 Data bit 5 Data bit 4
Data Not Avail Host Driven (Unknown)
Termination from host busy data not available phase, after reverse transfer 1284 Active (nSelectIn) (4)
Supports Nibble Mode Data Avail
Data bit 3 Data bit 2 Data bit 1 Data bit 0
Data bit 7 Data bit 6 Data bit 5 Data bit 4
Printer Busy Status Data Avail Host Driven (Unknown)
Termination from host busy data available phase after reverse transfer (reference)
Reverse data transfer. Refer to (2).
13. (Printer) Sets information on data to transfer next.
When there is no more data to transfer: → (4) Acknowledges HostBusy “High” and sets nDataAvail and AckDataReq “High”(indicating that there is no data) and Xflag “Low”(same level as the affirmative response) and PtrBusy to the forward channel status. When there is more data: → (5) AcknowledgesHostBusy “High”, and sets nDataAvail and AckDataReq “Low”(indicating that there is more data)and Xflag “Low”(same level as the affirmative response), and PtrBusy to the forward channel status. 11’. (Printer) Sets PtrClk “High” to show host if there is more data or not.
Sets 1284 Active “Low” to request the termination of Nibble Mode.
23. (Printer) Sets PtrBusy and nDataAvail “High”.
24. (Printer) Sets Xflag to its opposite sense of the affirmative response (“Low” for the device ID
transfer request) and PtrClk “Low”.
Sets HostBusy “Low”.
26. (Printer) Acknowledges HostBusy “Low” and sets nDataAvail, Xflag and AckDataReq in the
forward channel status.
27. (Printer) After signals become stable, printer sets PtrClk “High” to indicate that each signal has
been returned to the Compatible Mode.
Ends the termination phase by setting HostBusy “High” and switches to the Compatible Mode/forward idle phase.
29. (Printer) Sets Busy “Low” when the preparation to receive forward data has been completed.
41049421PS Rev.3 174 / 41049421PS Rev.3 175 / (6) PtrClk (nAck) PtrBusy (Busy) AckDataReq (PError) XFlag (Select) nDataAvail (nFault) HostClk (nStrobe) HostBusy (nAutofd) Data 1 ~ 8 1284 Active (nSelectIn)
Printer Busy Status Supports Nibble Mode Reverse transfer and termination phase collision
Host Driven (Unknown)
<Explanation of events>
18. (Printer) Because data to transfer to the host becomes available, the printer sets nDataAvail
and PtrClk “Low” to alert the host.
19. (Printer) After waiting the minimum signal pulse width, printer sets PtrClk “High”.
Nibble mode termination request status, 1284 Active=“Low” and HostBusy=“High” are established.
23. (Printer) Sets PtrBusy and nDataAvail “High”.
24. (Printer) Sets Xflag to the opposite sense of the affirmative response and PtrClk “Low”.
Sets HostBusy “Low”.
26. (Printer) Acknowledges HostBusy “Low” and sets nDataAvail, Xflag and AckDataReq in the
forward channel status.
27. (Printer) After signals become stable, printer sets PtrClk “High” to indicate that each signal has
been returned to the Compatible Mode.
Ends the termination phase by setting HostBusy “High” and switches to the Compatible Mode/forward idle phase.
29. (Printer) Sets Busy “Low” when the preparation to receive forward data has been completed.
41049421PS Rev.3 176 /
Abnormal status, abnormal signal transition and timeout during the 1284 mode shall be handled as interface errors. When an interface error occurs, the current mode shall be aborted immediately and the system shall return to the Compatible Mode, without going through the termination phase. This is to protect the host and the printer. The following are examples of interface errors: 1 When 1284 Active signal becomes “Low” in states other than valid states. 2 When nInit signal becomes “Low” during 1284 mode. 3 When there has been a signal transition different from the Standard 4 When there is no response from the host (timeout occurred). When any of the above phenomena has occurred, the system shall terminate the 1284 mode and return to Compatible Mode, regardless of the current phase or status. 41049421PS Rev.3 177 /
Interface Error Timing Charts (1) Abnormal status detection during negotiation (Part 1)
Host Driven (Unknown) Host Driven (Unknown)
Host Driven (Unknown)
Places Extensibility Request Value (nibble mode reverse channel transfer) on data bus.
Sets 1284 Active “High” and HostBusy “Low” to request the switch to 1284 mode.
Shows printer Extensibility Request Value by settingHostClk “Low”. For some reason, 1284 Active indicates “Low”. i_1. (Host) (Abnormal status has occurred.) a_1.(Printer) Aborts 1284 mode and returns to Compatible Mode. 41049421PS Rev.3 178 / (2) Abnormal status detection during negotiation (Part 2)
a_1 Host Driven (Unknown)
HostBusy (nAutofd) i_2 Host Driven (Unknown) Host Driven (Unknown)
Host Driven (Unknown)
Places extensibility request value on data bus.
Request switch to IEEE1284 mode by setting 1284 Active “High” and HostBusy “Low”.
Sets AckDataReq, Xflag and nDataAvail “High” and PtrClk “Low” to indicate 1284 support.
Sets HostClk “Low” to show printer extensibility request value.
Acknowledges the support of 1284 by the printer and sets HostClk and HostBusy “High”. For some reason, nInit becomes “Low”. i_2. (Host) (Abnormal status has occurred.) a_1.(Printer) Aborts 1284 mode and returns to Compatible Mode. 41049421PS Rev.3 179 / (3) Abnormal status detection during reverse transfer (Part 1)
Host Driven (Unknown)
Host Driven (Unknown)
Data Avail Data bit 0 Printer nFault Status Supports Nibble Mode Data bit 1 Printer Select Status Data bit 2 Printer PError Status Data bit 3 Ptr Busy Sts
Indicates that it is ready to receive low order nibble data by setting HostBusy “Low” from host busy data available state.
1. (Printer) Places low order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy.
2. (Printer) Indicates that low order nibble data is valid by setting PtrClk “Low”.
Receives low order nibble data and sets HostBusy “High”.
4. (Printer) Acknowledges HostBusy “High” and sets PtrClk “High”.
i_1. (Host) For some reason, 1284 Active becomes “Low”. (Abnormal status has occurred.) a_1.(Printer) Aborts Nibble Mode and returns to Compatible Mode.
- According to the Standard, data that is being transferred when Nibble Mode is aborted shall be resent at next data transfer, but in this printer, data resend does not take place from data that was being transferred. (For details about resending, refer to Chapter
41049421PS Rev.3 180 / (4) Abnormal status detection during reverse transfer (Part 2)
Host Driven (Unknown)
Host Driven (Unknown)
Data Avail Data bit 0 Printer nFault Status Supports Nibble Mode Data bit 1 Printer Select Status Data bit 2 Printer PError Status Data bit 3 Ptr Busy Sts
Indicates that it is ready to accept low order nibble data by setting HostBusy “Low” from host busy data available status.
1. (Printer) Places low order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy.
2. (Printer) Indicates that low order nibble data is valid by setting PtrClk “Low”.
Receives low order nibble data and sets HostBusy “High”.
4. (Printer) Acknowledges HostBusy “High” and sets PtrClk “High”.
i_3. (Host) For some reason, HostClk becomes “Low”. (Abnormal status has occurred.) a_1.(Printer)Aborts Nibble Mode and returns to Compatible Mode.
- According to the Standard, data that is being transferred when Nibble Mode is aborted shall be resent at next data transfer, but in this printer, data resend does not take place from data that was being transferred. (For details about resending, refer to Chapter
Supports Nibble Mode Host Driven = 0000 0000
Host response timeout during reverse transfer 1284 Active (nSelectIn) (5)
Host Driven (Unknown) TH Over (Time out) Data Transfer Phase
Data bit 3 Data bit 2 Data bit 1 Data bit 0
Compatibility Mode Printer Busy Status Printer PError Status Printer Select Status Printer nFault Status Host Driven (Unknown) Host Driven (Unknown) Host Driven (Unknown) <Explanation of events>
From negotiation to host busy data available phase. (Refer to Chapter 4.5.)
Indicates that it is ready to accept low order nibble data by setting HostBusy “Low”.
8. (Printer) Places low order nibble data on nDataAvail, Xflag, AckDataReq and PtrBusy.
9. (Printer) Indicates that low order nibble data is valid by setting PtrClk “Low”.
Receives the low order nibble data and sets HostBusy “High”.
11. (Printer) Acknowledges HostBusy “High” and sets PtrClk “High”.
i_4. (Host) There is no response even after 1.0Sec or more have passed after PtrClk became “High”. a_1.(Printer) Aborts Nibble Mode and returns to Compatible Mode.
- According to the Standard, data that is being transferred when Nibble Mode is aborted shall be resent at next data transfer, but in this printer, data resend does not take place from data that was being transferred. (For details about resending, refer to Chapter
Host can request the device ID at an arbitrary timing from Compatible Mode/forward idle phase. This printer returns the device ID in Nibble Mode.
Device ID Format The device ID is composed of 2 bytes that indicate the data length of the ID data and key and value combination shown below. key:value{,value}; As seen above, one key takes more than one value. The minimum required keys are MANUFACTURER(MFG), COMMAND SET(CMD) and MODEL(MDL). You can set a key(s) other than these three. Keys and values are character strings and you can use characters other than a colon (:), a comma(,), semi colon (;). Space (20H), tab(08H), vertical tab (0BH), carriage return(0DH), line feed(0AH) and form feed(0CH) are included in the character length, but host ignores them (does not recognize). (1) Device ID byte length The first 2 bytes of the device ID indicate the length of the device ID string that includes these 2 bytes (Byte 1 is high order byte while Byte2 is low order byte). Host returns to the Compatible Mode regardless of whether additional data to transfer is available or not when it receives all the data of the device ID byte length shown here. If the host returns to Compatible Mode before it receives all the data, the printer discards the data that has not been sent, and sends from the Byte1 of the device ID if the data is to be resent. (2) MANUFACTURER Indicates the name of the manufacturer. (3) COMMAND SET Indicates command(s) that can be used. (4) MODEL Indicates the device model. (5) Others Indicates comments or emulation that is currently in use. ← In this printer, ROM revision and factory option are added as a comment. 41049421PS Rev.3 184 /
OKI DATA CORP OKIPOS 425S
OKI DATA CORP OKIPOS 425D
COMMENT 0100-11 *1 Comment’s values are as follows: ROM Rev.: Value’s byte1 ~ byte4 ← In the above example, it means ROM Rev. 01.00 Auto Cutter: Value’s byte6 (“1” means Auto Cutter present; “0” means Auto Cutter not present.) ← In the above example, Auto Cutter present MICR read unit: Value’s byte7 (“1” means MICR read unit present; “0” means MICR read unit not present. ← In the above example, MICR read unit present Error control during device ID data transfer If transfer is interrupted (aborted, terminated) due to an error during device ID data transfer, the beginning of the device ID (device ID byte number) starts to be transferred when the next device ID transfer request is made. In other words, no re-send control is performed. 41049421PS Rev.3 185 /
4.8 NIBBLE MODE REVERSE CHANNEL TRANSFER
Reverse channel transfer data In response to the aforementioned “Nibble mode reverse channel transfer request”, this printer notifies host of the following information:
- ASB : Automatic Status Back Depending on the printer’s status change, this function automatically notifies host of the status. There are two ASB status: 4 byte 1 set (GS a) and 5 byte 1 set (ESC DLE a) Description in this document is based on “4 byte 1 set (GS a).”
Transfer priority of reverse channel transfer data Reverse channel transfer data is given priority depending on its data type, and transferred. The following shows priorities of each transfer data. High ← Priority → Low MICR read data > ASB > Real time commands/non-real time commands
- Real time commands: Non-real time commands: Commands processed at receive (When stored in receive buffer)(DLE EOT etc.) Commands processed at decode (When receive buffer is read)(ESC v etc.) (Example) When a response by status request command and ASB data coexist as follows, (1) Status request command 1 (GS r and etc.) → Response is S1 (1 byte). (2) ASB applied status change 1 (S sensor change and etc.) → Response is ASB1-1 - 1-4 (4 bytes). (3) Status request command 2 (GS r and etc.) → Response is S2 (1 byte). If no reverse transfer is performed during (1) - (3), reverse transfer data will be as follows. (According to the above priorities) 41049421PS Rev.3 Byte 1 Byte2 Byte 3 Byte 4 Byte 5 Byte6 ASB 1-1 ASB 1-2 ASB 1-3 ASB 1-4
Error control while reverse channel transfer data is being transferred The following shows an error control depending on the transfer data type, while reverse channel transfer is being transferred.
Control when status other than ASB is being transferred When there are 3 sets (3 bytes) of status data as below, Byte 1 Byte 2 Byte 3
When transfer is interrupted (aborted, terminated) while Byte 1 is transferred. Byte 1
- Aborted or terminated (When reverse transfer is re-started) Byte 1 Byte 2
- Data that was interrupted during transfer is not re-sent. (If the data is aborted after the lower nibble is transferred (case in Chapter 4.6.1(3) - (5)), the data is not re-sent and discarded.)
Control when ASB is being transferred When there is a set of ASB data (4 byte) as below shows, Byte 1 Byte 2 Byte 3 Byte 4 ASB 1-1 ASB 1-2 ASB 1-3 ASB 1-4 (When transfer is interrupted (aborted, terminated) while Byte 2 is being transferred) Byte 1 Byte 2 ASB 1-1 ASB 1-2
- Aborted or terminated (When reverse transfer is re-started) Byte 1 Byte 2 Byte 3 Byte 4 ASB 1-1 ASB 1-2 ASB 1-3 ASB 1-4
- Re-sending starts at the Byte 1 of the ASB data string (4 bytes, 1 set) whose transfer was interrupted. 41049421PS Rev.3 187 /
Control while MICR read data is being transferred When there is 1 set (n byte) of MICR read data (transfer sequence) Byte 1 Byte 2 Byte 3 Byte 4
MICR-n (When transfer is interrupted (aborted, terminated) when Byte 2 is being transferred) Byte 1 Byte 2 MICR-1 MICR-2
- Re-sending starts at Byte 1 of the MICR read data (transfer sequence) whose transfer is interrupted. 41049421PS Rev.3 188 /
Control while ASB/non-ASB mixed data is being transferred When response by status request command (S1, S2) and ASB data coexist as the below shows, Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 ASB 1-1 ASB 1-2 ASB 1-3 ASB 1-4
If the following status change occurs after the transfer is interrupted while the above status is being transferred,
- ASB applied status change (S sensor change or etc.) → Response is ASB2-1 ~ 2-4 (4 bytes) the transfer data responding to the next reverse data transfer request will be as follows depending on the data type of the interrupted data. (a) When interrupted while ASB1-1 ~ ASB1-4 is being transferred, Byte 1 Byte 2 ASB 1-1 ASB 1-2
Interrupt Phase or Negotiation Phase *By Host Control
- When non-ASB data transfer is completed, no data status comes instead of continuous ASB data transfer. (b) When transfer is interrupted while S1 - S2 is being transferred, Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 ASB 1-1 ASB 1-2 ASB 1-3 ASB 1-4
This printer is initialized at Power On and when the nInit signal “Low” level is received. This chapter describes the interface initialization that accompanies the above initialization and the start of handshake that includes the negotiation after the initialization ends.
I/F Signals During Initialization The I/F signals’ statuses during this printer’s initialization operation and the timing chart for the 1284 mode negotiation to become valid are shown in the diagram below: (1) Initialization by Power On Status established Pow On Output stable Select PError 1284 negotiation valid
- The above diagram shows the timing chart at Power On in the normal state.
- The signal statuses and the timing chart may change depending on the circuit and the process.
- The time from Power On to the establishment of the status varies with the position of the head and the platen and other factors at the time of Power On. 41049421PS Rev.3 190 / (2) Initialization by nInit signal 1284 negotiation 1284 negotiation Status established invalid valid
- The above diagram shows the initialization timing chart by the nInit signal in the normal state.
- When nInit signal is hard- reset (setting by short plug), it is the same as initialization by Power ON.
- With this initialization, FAULT High, PE Low, BUSY High state continues until Wait-for Paper-Removal, Paper Jam, etc., are cleared when they occur.
- For initialization by ESC @, ESC DLE D, DLE ENQ 02H and DLE ENQ 03H, 1284 negotiation becomes invalid during initialization process is being executed. 41049421PS Rev.3 191 /
4.10 Status Transition Diagram
The following diagram shows negotiation from Compatible Mode, termination from Nibble Mode and transitions between individual phases. Forward data transfer phase There’s forward transfer data Forward idle phase Forward data transfer ends Reverse transfer start request Compatible mode Negotiation phase Negotiation failed Termination phase Nibble mode negotiation There’s reverse transfer data. 1284 mode termination request Host busy data available phase There’s more transfer data. No reverse transfer data There’s reverse transfer data. No more transfer data Host busy data not available phase HostBusy High Low HostBusy Low High HostBusy High ‡ Low Reverse data transfer end Reverse data transfer phase 1284 mode termination request Reverse idle phase 1284 mode termination request There is reverse transfer data Interrupt phase 1284 mode termination request Nibble Mode 41049421PS Rev.3 192 /
4.11 ASB performance
When a status according to the type selected by a setting command changes, this function automatically notifies the host of the status. (An example of normal behavior of Slip mode feed/eject) Operation Paper set Slip status Paper not fed Slip insert sensor (paper present → paper not present) Feeding FF Command send Paper fed (print available) Slip status (print not available → available) Slip eject sensor (paper not present → paper present) ASB ASB <Slip insert sensor: <Slip eject sensor: paper present> paper present> Send status
Ejecting Waiting paper removal Slip insert sensor (paper present → paper not present) Slip status (print available → not available) ASB <Slip state: print available> ASB <Slip state: print not available> ASB <Slip insert sensor: paper not present> The Slip insert sensor status may differ from the above depending on the situation of the media. Only send statuses that have status changes are described. One set of ASB data may include multiple status changes depending on the timing of status changes such as sensor change, or the host’s status read timing. 41049421PS Rev.3 193 / (An example of Receipt + Journal mode)
- When only JP sensor is valid by print stop sensor select RP sensor Paper empty occurring Status of receipt paper end Paper present Status of journal paper end Paper present JP sensor Paper empty occurring Paper not present Paper not present Receipt paper sensor (paper present → not present Journal paper sensor (paper present → not present On-line/Off-line status (On-line → Off-line) ASB ASB ASB Send status <Receipt paper sensor: <journal paper sensor: <on-line/off-line status: paper not present>
paper not present> off-line> Only send statuses that have status change are described. A set of ASB data may have multiple status changes depending on timing of status change such as sensor change or timing of host’s status read. (Example when a fatal alarm occurs)
- When a MICR unit error occurs (MICR unit is not installed, but Menu is set to valid, and check paper (MICR) read command is received) Operation Printer status Check paper (MICR) read command send Normal status Fatal alarm status Fatal error (No occurring → occurring) Send status
ASB <Fatal error: Occurring> Only send statuses that have status change are described. A set of ASB data may have multiple status changes depending on timing of status change such as sensor change or timing of host’s status read. 41049421PS Rev.3 194 /
This specification document describes the detailed specifications of RS-232C serial interface reception that is realized by the firmware.
Receive Buffer Size There are two sizes for the receive buffer that can be selected in the printer’s menu setting item “Receive Buffer Size”, as shown below: (1) 2Kbyte (2) 16Kbyte
Receive buffer structure In the receive buffer, “Receive Buffer Near Full Area” and “Receive Buffer Full Area” are set, and each area is 256byte. The Receive Buffer Near Full Area is the area that indicates that the number of data bytes that can be stored in the receive buffer is 256byte or more, but less than 512byte. And if data enters this Near Full Area, the control shifts to receive data for every 700ms. The Receive Full Areas is the area that indicates that the number of data bytes that can be stored in the receive buffer is down to less than 256byte. When data enters Buffer Full Area, the Receive Buffer Busy state is maintained, and sending data from the host machine is prohibited. For the details of the Receive Buffer Busy control that is executed when storing receive data, refer to Section 4.5, “Protocol”. Receive buffer Receive buffer Near-full area 256byte Full area 256byte 2Kbyte 16Kbyte < Receive buffer size = 2Kbyte > Near-full area 256byte Full area 256byte < Receive buffer size = 16Kbyte > Figure 5.1 Receive buffer structure 41049421PS Rev.3 195 /
5.2 Serial Interface
Explanation of Interface Signal and Pins Table 5-1 RS-232C interface signals and printer side pin numbers PIN No. Signal name Acronym
Transmitted Data Receive Data Request To Send TXD RXD RTS
INIT Direction Explnation Connects to the printer frame. (Frame ground) From Printer Serial data send signal from printer To Printer Serial data receive signal to printer From Printer Signal that notifies Receive Not Possible State in the printer and customer display in Ready / Busy protocol. To Printer Not used. To Printer Signal that notifes printer that data can be sent. Ground for signal To Printer Not used. Not used. From Printer Signals that notifies Receive Not Possible status in the printer in Ready/Busy protocol. Not used. To Printer Printer Initial requeset signal from the sending side
PIN NO. in the above table is the pin no. of the connector on the printer side. 196 /
Interface Cable Wiring Diagram The diagrams below show the basic wiring of the interface cable that connects this printer and the host.
Wiring diagram when the host side serial board connector is D-SUB 25-pin Host Printer TXD(2pin) TXD(2pin) RXD(3pin) RXD(3pin) CTS(5pin) RTS(4pin) DSR(6pin) DSR(6pin) DTR(20pin) DTR(20pin) FG (1pin) FG (1pin) SG (7pin) SG (7pin) INIT (25pin) INIT (25pin) Figure 5.3 Interface cable wiring diagram (D-SUB 25pin) As the serial interface cable that connects to this printer, a general-purpose cross cable can handle printing and Busy control without problem except support of reset function of #25pin. 41049421PS Rev.3 197 /
Overview The below shows the overview of RS-232C Interface specifications. Start bit : Data bit : Parity bit : Stop bit : Baud rate : Protocol : Busy Line : Minimum Busy on time : Parity error control : 1 bit 7 bit or 8 bit * Note1 Even number/odd number parity, or no parity * note 1 1 bit or more 1200,2400,4800,9600,19200 BPS * Note 1 Ready / Busy or X-ON / X-OFF * Note1 DTR , RTS * Note 2 200 ms When even number/odd number parity is selected, converts into 40H (“@”) code by receive parity error recognition, and prints. *Note 3 Framing error control : When stop bit of receive data was not recognized, converts into 3FH(“?”) code, and prints. * Note 3 Overrun error control : When overflow of receive FIFO occurs because received data could not be processed due to some problem, converts into 21H (“!”) code, and prints. *Note 3 A character just before and after an overrun error is not guaranteed. Printer initialization by DSR signal : Enable/Disable of printer initialization in DSR signal (6pin) status * Note1 A printer is initialized when you enter reset pulse into DSR signal. Printer initialization by INIT signal : Enable/Disable of printer initialization in INIT signal status (25pin) *Note 1 A printer is initialized when you enter reset pulse into INIT signal. *Note 1: You can select these settings by DIP switch. *Note 2: A printer’s Busy Line is DTR signal. RTS signal is used for checking Busy status of customer display. For details, refer to Chapter 4.8 Customer display. *Note 3: You can select receive error check by DIP switch. When receive error check is enabled by DIP switch, all the checks, parity error, framing error and FIFO overrun error become valid. 41049421PS Rev.3 198 /
Signal level The below shows signal level of RS-232C interface part. -15V ~ -3V : MARK = ON = “1” by logic +15V ~ +3V : SPACE = OFF = “0” by logic
Character structure on transmission circuit The below shows the character structure in this interface. (1) Start bit Start bit: Signal that keeps SPACE status (“0”) for 1 bit length (Unit time of 1 bit of Start bit varies depending on transmission speed.) (2) Transfer order of data bit Transfer order of data bit: LSB bit → MSB bit (3) Parity bit Parity bit is added to each character only when parity bit is selected by DIP switch 1-2. (4) Stop bit Stop bit: Signal that keeps MARK status (“1”) for 1 bit length or longer. (Unit time of Start bit varies depending on transmission speed.) (5) Character interval The interval between an end of character stop bit and a beginning of next character start bit is arbitrary. Polarity of signal in the character interval: Polarity of MARK status (“1”). Data A Data B Start bit Stop bit Start bit Stop
SPACE The interval is arbitrary. No interavl here is all right. The polarity is “MARK.” Parity bit (1bit) Data bit (7bit or 8bit) Figure 5.4 Character interval Stop bit MARK RXD signal
BUSY signal timing chart Stop bit MARK RXD signal SPACE Start bit Data bit Parity bit Max. 50ms BUSY DTR signal READY Figure 5.6 ON timing of Busy signal
Receiving Margin Receiving margin should be 37% or more. 41049421PS Rev.3 200 /
5.3 Selecting a Function
You can select various functions by DIP switch installed on the RS-232C interface board. When you change a setting by DIP switch, turn off the printer, change the setting and then turn on the printer again.
DIP switch structure You can set RS-232C serial interface related settings by DIP switches installed on the RS-232C interface board. The below describes the structure of DIP switches installed on the RS-232C serial interface board. Table 5-2 DIP switch allocation DIP SW DIP SW 1 DIP SW 2 41049421PS Rev.3 Function SW1 Selects data bit length SW2 SW3 Parity bit exist/not exist Parity SW4 SW5 SW6 Selects protocol Selects communication speed Selects communication speed SW7 SW8 SW1 Selects communication speed Selects customer display Selects reset signal of #6 pin SW2 SW3 SW4 Selects reset signal of #25 pin Selects receive error display Selects circuit test mode SW5 SW6 SW7 Selects hardware reset Selects software reset Reserved SW8 Reserved 201 /
Details of DIP switch functions Table 5-3 DIP switch details DIP SW DIP SW 1
SW1 Data bit length 7 bit SW2 Parity bit exist/not exist Select parity Exist Even party Protocol XON / OFF SW3 SW4 Communication speed
OFF 8 bit Not exist Odd party SW7 OFF OFF OFF OFF
Reserved Reserved Reserved Not connected Not used Not used Convert into receive error character.
*Note1: There are 3 kinds of receive errors: “Parity error,” “Framing error,” and “Overrun error.” *Note2: The switch to select the initial operation by the reset signal input of the #6pin and #25pin. Both the DIPSW2-5 and the DIPSW2-6 must not be set to ON (both selected) at the same time. Similarly, both switches must not be set to OFF (neither selected). These combinations are prohibited. *Note3: To execute the Circuit Test Mode, you must first set both #6 pin Reset signal (DIP SW 21) and #25 pin Reset signal (DIP SW 2-2) to OFF (not to be used). The combination of DIP SW 2-1 or DIP SW 2-2 ON and Circuit Test Mode (DIP SW 2-4) ON is prohibited. 41049421PS Rev.3 202 /
Switch setting Data bit length 8 bits No parity bit Odd parity Ready / Busy protocol ON Communication speed: 9600BPS
DIP SW 1 Function DIP SW 2 41049421PS Rev.3 SW7 SW8 SW1 SW2 SW3 OFF OFF OFF OFF SW4 SW5 SW6 SW7 SW8 OFF OFF OFF OFF Customer display not connected. #6 pin reset signal not used. #25 pin reset signal not used. An error display appears when a receive data error occurs. Circuit test mode not selected. Hardware reset not used. Software reset used. Reserved. Reserved. 203 /
Receive data error check The below three receive data errors are checked. Receive data error check is performed only when DIP switch 2-3 setting is set to “OFF.” When DIP 2-3 switch is set to “ON,” receive error is not checked. (Data is output as it is received.)
Parity check This is a function that calculates the total of “1” (MARK) of each bit of the received data (including Parity bit), and checks whether the status of even number/odd number agrees with the Parity mode selected by DIP switch 1-3. When DIP switch 1-2 is set to OFF, parity check is not performed. MARK DATA Data
SPACE STOP bit START bit The bit number of data bit and parity bit in 1 status should be an even number or an odd number. (Start bit and Stop bit are not included.) Figure 5.7 Parity check structure (1) Error display when a parity error is recognized When a parity error is recognized as a result of parity check, the received data is invalid and 40H (“@”) code is printed. MARK Data DATA
Writes 40H(“@”) into receive buffer. SPACE Printer Processed as 40H code (“@”). Figure 5.8 Parity error display 41049421PS Rev.3 204 /
Framing error check This function checks the status of Stop bit of the received data. Checks if the stop bit of the received data is in MARK status (“1”). MARK Data SPACE START bit DATA
STOP bit The Stop bit status of the received data should be in MARK status. ( 1 ). Figure 5.9 Framing error check structure (1) Error display when a framing error is recognized When a framing error is recognized as a result of framing error check, the received data is invalid and 3FH(“?”) code is printed. MARK DATA Data
SPACE Writes 3FH (“?”) into receive buffer. Printer Processed as 3FH code (“?”). Figure 5.10 Framing error display 41049421PS Rev.3 205 /
Overrun error check This function generates an overrun error when a character currently being received cannot be stored in receive FIFO because received data cannot be processed for some reason and the receive FIFO is full. Receive data cannot be processed in time.!! Read ReceiveFIFO (16byte) Store Store Shift register (1byte) Receive data Data process capacity < Data receive An overrun error occurs when received data in shift register cannot be stored any more in 16byte receive FIFO. Figure 5.11 Overrun error check structure (1) Error display when an overrun error is recognized When an overrun error occurs, 21H(“ ! “) code is printed. Over run error is occurring!! MARK Data DATA
Writes 21H(“ ! ”) into receive buffer. SPACE Printer Processed as 21H code (“ ! ”). Figure 5.12 Overrun error display 41049421PS Rev.3 206 /
DSR signal when data is being received Printer does not control receive data valid/invalid according to the status of DSR signal when receive data is received. It receives the sent data regardless of the status of DSR signal. Even though protocol is set either XON or XOFF, the received data is valid regardless of the status of DSR signal. SPACE DSR signal MARK MARK RXD signal Data A Data B Data C SPACE The received data sent by host is valid regardless the status of DSR signal. Figure 5.13 DSR signal and receive data
DSR signal when data is being sent When host machine returns a response to printer’s status read command, the status of DSR signal is monitored only in the case of the commands described in Chapter 5.3.4.3. When DSR signal is in MARK status (“1”), a printer does not send a response data to host machine. SPACE DSR signal MARK MARK RXD signal Status request A Status request B SPACE SPACE TXD signal MARK Sends response data to status request A command. Because DSR signal is in MARK status, response data to status request B command is not sent. Figure 5.14 DSR signal and printer status response data 41049421PS Rev.3 207 /
Printer status request command that monitors status of DSR signal As described above, the below commands check DSR signal when response data to printer status request command is being sent. If DSR signal is in MARK status when response data is being sent, response data is not sent. Table 5-5 Printer status request commands that monitor DSR signal No. Command
ESC u n ESC v GS l n GS r n Function Sends peripheral device status Sends paper detector status Sends printer ID Sends status Response data is sent regardless of DSR signal status when response data such as real time request command, ASB request command, MICR read command, and check paper read command is sent. Table 5-6 Printer status request commands that do not monitor DSR signal No. Command Function
GS a n GS ENQ DLE EOT n DLE EOT BS n FS a 0 n FS b ESC DLE a Pno n ESC DLE r Pno n Enable/Disable of auto status send Real time send of printer status Real time send of status Real time MICR status send Check paper read (when MICR mode is selected) Re-send request of check paper read result Enable/Disable of auto status send Real time send of status 41049421PS Rev.3 208 /
Printer status request command when DSR signal is in MARK status Printer status request command that could not be sent because DSR signal was in MARK status is not discarded. When DSR signal shifts to SPACE status, response data is sent to host machine. A printer status request command can store response data that can be stored in receive buffer at maximum. When printer status request command that cannot be stored in receive buffer is received, the printer status request command is received, but ignored. SPACE DSR signal MARK SPACE RXD signal Status request A Status request B MARK SPACE TXD signal MARK Response data to status request A,B command is not sent. Judges DSR signal status when response data is sent. Because DSR signal shifted to SPACE status, sends response data to status request A and B command. Figure 5.15 Printer status request command and status response when DSR signal is in MARK status 41049421PS Rev.3 209 /
Protocol You can select two types of protocols by switching DIP switch 1-4. Protocol Ready / Busy X-ON / X-OFF
Ready / Busy protocols Ready / Busy protocol notifies printer’s Busy/Ready status to host computer by DTR signal cable (20pin). (1) Busy control This control checks remaining receive buffer and makes sure that all the data is received by controlling data receive available/not available, using DTR signal cable. (2) Busy status display When remaining receive buffer becomes 512 byte or less, Busy control signal shows Busy status, and requests host to stop data sending. The timing when buffer remaining recovers to 512byte or more is within 200ms after Busy ON, Busy control signal becomes Ready status in 200ms. If it is not within 200ms, Busy control signal becomes Ready status when the buffer recovers to 512byte or more.
- The minimum Busy On time, 200ms is program’s fixed value. (3) Timing chart RXD signal DATA DATA MAX Receive buffer Remaining byte 512byte 256byte 0byte
Busy signal Off 200ms 200ms Figure 5.16 Busy control timing chart (Ready / Busy) 41049421PS Rev.3 210 /
X-ON / X-OFF protocol This protocol sends printer’s Busy / Ready status using the below function codes and notifies host computer. The following is the function codes that can notify Busy / Ready status. Command DC1 DC3 Hex
Function Sends when printer shifts Busy → Ready status. Sends when printer shifts Ready → Busy status. (1) Busy control This control checks remaining buffer, controls data receive available/not available using the above function codes, and receives data without ignoring it. (2) Busy status display When receive buffer remaining becomes 512byte or less, returns DC3 code, and notifies the sender that receiving is not possible. If receive buffer remaining recovers to 512byte or more within 200ms after DC3 code return, returns DCI code in 200 ms, and notifies the sender that receiving is possible. If receive buffer remaining recovers to 512 byte or more after 200ms of DC3 code return, returns DCI code when the buffer recovers to 512 byte or more. (3) DTR signal when X-ON/X-OFF protocol is selected DTR signal when X-ON/X-OFF protocol is selected always should keep Ready status (SPACE). However, a printer experiences an irrecoverable alarm for some reason, DTR signal should be in Busy status (MARK). (4) Timing chart RXD signal DATA DATA
200ms 200ms Figure 5.17 Busy control timing chart (X-ON / X-OFF) *Note: 41049421PS Rev.3 When data is received in Busy status, DC3 code is returned every time data is received. The minimum Busy On time is fixed to 200ms. 211 /
Busy On timeout receive control Due to Busy On timeout control, host computer may become send timeout when Busy status continues for a long time of period without being canceled. To avoid timeout, this function regularly (every 700ms) cancels Busy status and receives 1 byte data even though receive buffer is in near-full status.
Behavior This Busy On timeout receive is controlled by Busy ON timer (200ms) and 700ms timer. The following shows behaviors of each timer at the time of timeout. Busy timeout condition Receive buffer remaining Only 200ms timeout occurs 512Byte or more 511 ~ 256Byte 255Byte or less 200ms timeout and 700ms 512Byte or more time out occur 511 ~ 256Byte 255Byte or less Function Cancels Busy Keeps Busy status Keeps Busy status Cancels Busy 1Byte receive Keeps Busy status When receive buffer size that can store data becomes 511(256byte, cancels Busy status in every 700ms, and receives 1 byte data. When 1 byte data is received, immediately resumes Busy status, and requests data sending stop. When receive buffer size that can store data becomes less than 256byte, stops data receive in every 700ms. Resumes data receive, when buffer remaining becomes 256byte or more. 41049421PS Rev.3 212 /
BUSY ON timeout receive time chart (1) When protocol Ready / Busy is selected Receive buffer (1 ) (2 ) (3 ) (4 ) (5 ) Near Full Full
0.2sec 0.2sec 0.2sec 0.2sec 0.7sec 0.7sec 0.7sec 0.7sec 1Byte 1Byte 1Byte 1Byte BUSY ON timer 700ms timer DTR signal DATA receive (1) : BUSY ON start due to receive buffer near full (2) : Receive due to 700ms timeout and BUSY ON re-start due to receive buffer near full (3) : Timeout receive invalid due to receive buffer full (4) : 1 Byte receive due to receive buffer full cancel and BUSY ON re-start due to receive buffer near full (5) : Busy cancel due to receive buffer near full cancel Figure 5.18 Busy On control in Ready/Busy protocol setting 41049421PS Rev.3 213 / (2) When protocol X-ON/X-OFF is selected Receive buffer (2 ) (1 ) (3 ) (4 ) (5 ) Near Full Full
1Byte (1) : BUSY ON start due to receive buffer near full and outputs DC3 code. (2) : Due to 200ms and 700ms timeout, outputs DC1 code. Outputs DC 3 code due to BUSY ON re-start because of data receive and receive buffer near-full (3): Timeout receive invalid due to receive buffer full (4): Outputs DC1 code due to receive buffer cancel Outputs DC3 code due to BUSY ON re-start because of data 1 Byte receive and receive buffer near full (5): BUSY cancel due to receive buffer near full cancel, and outputs DC1 code. Figure 5.19 Busy On control when X-ON/X-OFF protocol is set 41049421PS Rev.3 214 /
Circuit test mode When you select “Circuit test mode” by DIP switch 2-4, this test mode checks interface driver, receiver circuit, and receive/send functions. The circuit test mode does not check receive buffer. (1) Test connector Using the test connector shown below, execute the circuit test mode. TXD RXD DTR DSR
Figure 5.20 Test connector wiring diagram (2) Printing of DIP switch setting The serial interface setting status by DIP switch read at POWER ON is printed. The DIP switch setting status are printed as below. DIP switch item Data bits Parity Protocol Baud rate Receive error Customer Display Note: 41049421PS Rev.3 Set value data to be printed Remark 7bits / 8bits None / Odd / Even Ready/Busy / XON/XOFF
1200BPS / 2400BPS / 4800BPS /
9600BPS / 19200BPS Checked / Not Checked Connected / Not Connected The DIP switch setting status for the reset signal select function by #6 pin and #25 pin that you specify with DIP switches 2-1 and 2-2 and the H/W reset/F/W reset selection that you specify with DIP switches 2-5 and 2-6 is not displayed. This is because DIP switch status cannot be read due to the H/W structure. 215 / (3) Interface signal cable check and PC-16550D chip check Check the behavior of receiver/transmitter of RS-232C interface board and PC-16550D chip, and print the result of the check. (a) Checking PC-16550D Using “loop back function “ that PC-16550D supports, check the behavior of the receiver/ transmitter of PC16550D. Set loop back function mode. Change DTR, RTS, OUT1, and OUT2 signals to SPACE status and MARK status, and check whether the changed signal cable status is input in each DSR, CTS, RI, and CD signal cable. Regarding send/receive behavior check, send check data and check whether the received data matches the sent data. If normal behaviors are not observed in these checks, “I/F=BAD(PC16550D)” display appears. (4) (b) Checking receiver/transmitter Check receiver/ transmitter as follows. Similarly as loop back function, change DTR signal to SPACE status and MARK status, and check whether the modification is input in the DSR signal cable. If normal behaviors are not observed in these checks, “I/F=BAD(DRIVER OR TEST CONNECTOR)” display appears. Loop test print pattern (when I/F check is normal) <LF> <LF> Serial Interface Data Bits : 7 bits Party : Even Protocol : Ready / Busy Baud rate : 9600BPS Receive error : Checked Customer Display : Not Connected <LF> <LF> Serial I/F LOOP TEST <LF>
!”#$%&’+,-./123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ... pqrstuvwxyz{|}~ Figure 5.21 Circuit test print pattern (in normal) 41049421PS Rev.3 216 / (5) Loop test printer pattern (When an error occurs in I/F check) <LF> <LF> Serial Interface Data Bits : 7 bits Party : Even Protocol : Ready / Busy Baud rate : 9600BPS Receive error : Checked Customer Display : Not Connected <LF> <LF> Serial I/F LOOP TEST <LF> I/F=BAD (PC16550D) Figure 5.22 Circuit test print pattern (in error) Remark 20H (7EH, which is a part of TEST message, is processed in the same way as r e g u lar ON-LINE by TXD’s and RXD’s loop sending/receiving of serial data. Print paper mode by circuit test mode is receipt mode. Print mode by circuit test mode follows the print mode that is currently set in printer menu. (6) (7) Ending circuit test mode Circuit test mode ends when the printer power is turned off. Restrictions for executing Circuit Test Mode To execute Circuit Test Mode, you must first set Reset function of both DIP switch #6 pin and #25 pin to OFF (DIP SW 2-1 = OFF, DIP SW 2-2 = OFF). 41049421PS Rev.3 217 /
Custmer display This printer is ready for connection of customer display. Customer display connection becomes available when DIP switch 1-8 is set to ON. RS-232C interface control enables host machine to sense Busy status of customer display. Thus, H/W executes output control of the status by using RTS signal cable.
Customer display connection and RTS signal RTS signal that a printer outputs OR status of the printer DTR signal and customer display DTR signal instead of outputting DTR status of customer display as it is. (See the below diagram.) When DIP switch 1–8 is set to OFF, printer’s DTR signal is output to RTS signal as is. Printer DTR signal (TTL) Line Driver (SN75188 equivalent) DTR signal To host RTS signal +5V
(Customer display connection set)
DTR signal (TTL) Line receiver (SN75189e quivalent DTR signal Customer display <RS-232C I/F board> Figure 5.23 Outline circuit of 4-17 RTS signal
Customer display connection/non-connection and RTS signal status The below table shows RTS signal status output by the circuit described above.
Printer reset signal This printer has reset signal so that host machine can initialize the printer even though RS-232C interface is in use. There are two lines of reset signals, DSR signal (6 pin) and INIT signal (25 pin). You can select valid/ invalid by DIP switch 2 -1 and 2-2. When the reset signal is set to valid by DIP switch 2-1 and 2-2, you can initialize the printer by inputting reset pulse over 100 µs from host. There are two printer initializations. (1) (2) H/W reset (Same as POWER ON) F/W reset You can select either by DIP switch. (Factory shipment setting is F/W reset.) When F/W reset is selected, H/W inputs reset pulse signal to I-PRIME signal of Centronics interface. Thus, the same initialization as the I-PRIME signal of Centronics interface is performed.
Printer Busy control when reset signal is received Printer becomes OFF-LINE when reset signal is input, and DTR signal and RTS signal shift to Busy status (MARK). Even though protocol is set to X-ON/X-OFF, DTR signal and RTS signal shift to Busy status by reset signal input. The printer does not start initialization until the reset signal is canceled. Reset signal canceled Power on and initialization end SPACE Reset signal MARK Reset pulse more than 100us SPACE RTS signal MARK SPACE DTR signal MARK Power on and Initialization start Approx. ?? Keeps watching until the reset signal is canceled. Currently not decided. Fill in when decided. Figure 5.24 Busy signal when reset signal is input 41049421PS Rev.3 219 /
Busy control in X-ON/X-OFF protocol If reset signal is input when protocol is set to X-ON/X-OFF, Busy control in H/W reset and Busy control in F/W reset are different.
In case of H/W reset, DC3 code is not output immediately even though reset signal is input as the below shows. Reset signal canceled Power on and initialization end OFF Reset signal 100us or more SPACE RTS signal MARK SPACE DTR signal MARK TXD signal
Outputs DC3 code at Power on and at initialization start Figure 5.25 X-ON/X-OFF control in H/W reset > DC3 code is output when reset signal is canceled and initialization starts. The time between reset signal ON and RTS/DTR signal shift to MARK status (Busy status) is not decided yet. When decided, will be clearly described. 41049421PS Rev.3 220 /
In case of F/W reset, the program recognizes reset signal input and executes reset. Busy control data (DC3) is output at the time when reset signal is input, which is different from the case of H/W reset. Reset signal canceled Power on and initialization end OFF Reset signal 100us or more SPACE RTS signal MARK SPACE DTR signal MARK TXD signal
Power on and Initialization start
DC3 code is output when reset signal input is recognized. Figure 5.25 X-ON/X-OFF control in F/W reset The time between reset signal ON and RTS/DTR signal shift to MARK status (Busy status) is not decided yet. When decided, will be clearly described. 41049421PS Rev.3 221 / 221
EasyManual