Escolar Documentos
Profissional Documentos
Cultura Documentos
PR 4 SL Epson Emulation
PROGRAMMER'S MANUAL
Code 475369 P-00
TABLE OF CONTENTS
1. Printer features .................................................................................................1-1
Applications ................................................................................................................................. 1-1 Options ........................................................................................................................................ 1-1 Modules ....................................................................................................................................... 1-2 Printing module ........................................................................................................................ 1-2 Document and cheque module.................................................................................................. 1-3 Documents inserted from bottom, aligned on right .................................................................... 1-4 Cheques inserted from bottom, aligned on right ........................................................................ 1-5 Documents inserted from top, aligned on right .......................................................................... 1-6 Cheques inserted from top, aligned on right .............................................................................. 1-7 Printable area (documents) ....................................................................................................... 1-8 Right-aligned documents.............................................................................................................. 1-8 Cheque reading ........................................................................................................................ 1-9 Devices and consumables.......................................................................................................... 1-10 Sensors .................................................................................................................................. 1-10 Printhead ................................................................................................................................ 1-11 MICR reader ........................................................................................................................... 1-11 Ribbon cartridge ..................................................................................................................... 1-11 Printing specifications ................................................................................................................ 1-12 Slip......................................................................................................................................... 1-12 Throughput ............................................................................................................................. 1-13 Physical and electrical characteristics ........................................................................................ 1-14 Physical characteristics........................................................................................................... 1-14 Electrical characteristics ......................................................................................................... 1-14 Internal power supply.............................................................................................................. 1-14 Display and drawer driver ....................................................................................................... 1-15 Display output connector......................................................................................................... 1-16 Display setting-up ................................................................................................................... 1-17 Display command set ............................................................................................................. 1-18 Drawer driver .......................................................................................................................... 1-19
TABLE OF CONTENTS
III
IV
TABLE OF CONTENTS
1. Printer features
Applications
The Olivetti PR4 SL is a compact impact printer. It may be used at points of sale, in hospitals, restaurants, post offices, financial offices, banks and others to: - issue delivery/reception notes - issue invoices - print reports, validations, tickets, payment vouchers - MICR reading/fill in cheques It can print at various character pitches ranging from 12.5 to 16.6 cpi. The slip of paper is inserted from the bottom and fed automatically from this point. A cheque code line can be read by the printer equipped with the MICR reader option. Cheques can also be drawn up with a 90 degree rotation of printing. The cash drawer may be controlled directly by the printer firmware. Software compatibility: TM-U590/590P and TM-295/295P Epson emulation.
Options
The printer may be provided with the following options: a. b. c. d. Internal power supply Drawer driver Additional document insertion plate MICR reader
Printer features
1-1
Modules
The printer is made up by the following main modules: - printing module - documents and cheques module
Printing module
The PR4 SL prints using a dot matrix, impact printhead. A step motor advances the head along the printing line with a resolution of 1/75". Printing is bidirectional, with print path optimization. The distance between the printhead and the print contrast plate is automatically adapted to the paper thickness by means of a spring mechanism.
1-2
Printer features
Printer features
1-3
Carbon 40-80 40-80 (carbon 20-30) 40-80 35-60 (carbon 20-30) 40-80 40-60 35-60 (carbon 20-30) 40-70 40-60 35-45 (carbon 20-30) 40-60
Skew
1-4
Printer features
Printer features
1-5
Skew
Max 2 mm on A4
1-6
Printer features
Printer features
1-7
Right-aligned documents
cpi L (crt) D (mm) NOTE: 12.5 66 7.09 16.66 88 7.09
1-8
Printer features
Cheque reading
This printer can read the code line of ISO 2033-1983 STD cheques. The characteristics of these cheques are shown in the figure below.
25 cm/sec CMC7: 20 crt/sec E13B: TBD CMC7: 1/10,000 E13B: 1/5,000 CMC7: 1/200,000 E13B: 1/200,000
Printer features
1-9
Sensors
The PR4 SL printer usually has the following electronic sensors on board: 1. 2. 3. 4. front cover open sensor paper alignment sensor (slip) module start sensor (cheque) module start sensors (slip).
1-10
Printer features
Printhead
Technology: Needles: Needle diameter: Matrix geometry: Maximum frequency: Needle energizing time Printhead life: impact (balistic) 9 0.3 mm not aligned 1566 Hz, when printing on rolls; 1381 Hz, when printing on a document 210-260 sec according to the current voltage and printhead temperature > 600 million dots/needle
MICR reader
With the MICR reader option installed, the printer can read the CMC7 or E13B magnetic characters of cheque code lines. Legible cheques must be conforming to ISO recommendations 2033-1983.
Ribbon cartridge
Ink type: Ribbon type: Ribbon length: Cartridge life: Replacement: 1056 black fabric 13 metres - Black ribbon: 4 million characters - Purple ribbon: 7 million characters with printer on or with manual positioning with the printer off
Printer features
1-11
Printing specifications
Slip
Pitch Print head frequency (Hz) Carriage resolution (N. step/") Character matrix Epson character dimension (VxH mm) Theoretical No.of columns (Crt+space) Effective No.of columns (Crt+space) sequence Basic grid (N/") Carriage speed ("/sec) Character/sec 12,5 1381 75 5+4 3.1x1.6 12 12 150 18,416 230,2 16,67 1381 75 4+3 3.1x1.3 9 9 150 18,416 306,93
1-12
Printer features
Throughput
Line/sec when printing on slip
Printer features
1-13
Electrical characteristics
Power supply voltage Minimum current (I min) Maximum current (I max) Peak current (I pk) 24 DCV +20% -10% 0.05 A 1.8 A 3.5 A (max. 10 sec)
1-14
Printer features
Printer features
1-15
Note:
The signal Transmitted Data (pin 2) is not connected; the signal Data Set Ready (pin 4) is always in ON state, by means of a pull-up resistor. For this reason, both signals are not included in the printer display data exchange.
1-16
Printer features
Display setting-up
Interface type EIA/TIA RS 232 serial, with fixed parameters, selectable by DIP-switch as follows: - Baud rate: 9600 - Bits/char: 8 - Parity: Even TTL (0/5 V) serial, asynchronous with fixed parameters: - Baud rate: 9600 - Bits/char: 8 - Parity: Even - Start bits: 1 - Stop bits: 1
Interface type
Printer features
1-17
1-18
Printer features
Drawer driver
Output connector: 1 Frame ground 2 Drawer kick-out drive signal 3 Drawer open/close signal 4...+ 24 V 5 Drawer kick-out drive signal 6 Signal ground
The optional driver for the drawers controls two solenoids and a drawer open/closed sensor, with the following characteristics: Resistance of solenoids Output voltage Current Printer side connector 24 ohm min 24 volts 1 amp max. Molex 52065-6615
The timing to open drawers 1 and 2 may be controlled from the line through command ESC p m n1 n2. The two transistors of the driver cannot be energized together or continuously.
Printer features
1-19
Key 1
Key 2
!#
6/
Keys
There are two keys on the console: key 1, on the left and key 2, on the right. Their functions are as follows: KEY 1 Forces a document insertion from the top. With the document inserted, advances the document by one line feed. KEY 2 Forces a document insertion from the front. With the document inserted, advances the document by one line feed. Holding this key down for a few seconds expels the form that is present.
Keys 1 and 2 also have other functions (see chapter on SETUP from the Operator Console)
LED Indicators
There are five LED indicators on the console, indicating respectively: LED 1 - ON LED 2 error LED 3 LED 4 LED 5
Lit, indicates printer powered electrically. Lit, indicates printer locked. Flashing, indicates a mechanical error or paper jam. (*) Lit, indicates a document was inserted from the top. Flashing, indicates that the top feeder is active. Lit, indicates a document was inserted from the front. Flashing, indicates that the bottom feeder is active. Flashing, indicates a document ejected from the print area.
(*)
See also the section Console Diagnostics, which illustrates the error or failure signals provided by the LEDs and proposes suitable remedial action.
Operator console
2-1
Console Diagnostics
Various errors or failures are signalled by the console in the following ways: - Error LED (LED 2) blinking - Error LED (LED 2) blinking + other LEDs lit - Error LED (LED 2) lit steady. The table below reports all the LED signals given: LED indication 1 Type of problem a) Paper jam b) Carriage blocked c) Cutter blocked d) Print head overheating Printer covers open
Problems 1 and 2 can be eliminated by the operator (see the multilingual manual User manual PR4 SL). To solve problem 3 regarding the setup, press key 2 to restore default setting parameters. Problems 4-6 may be resolved by the Technical Support Service.
Operator console
2-2
Operator Test
The Operator test may be carried out once the front cover of the printer is closed. You can access the operator test turning on the printer with the Key 1 pressed. With the Operator test, it is possible to print the following information on the paper roll: printer firmware release, the list of configuration parameters and the relative values and the character set chosen. To exit from the Operator Test mode, it is necessary to turn the printer off.
Font Test
The Font test may be carried out once the front cover of the printer is open. You can access the Font test turning on the printer with the Key 1 pressed. With the Font test, it is possible to print the current character set on the thermal roll, at 15 cpi and 20cpi.
[Font test] ??
To exit from the Font Test mode, it is necessary to turn the printer off.
Graphic Test
The Graphic test may be carried out once the front cover of the printer is open. You can access the Graphic test turning on the printer with the Key 2 pressed. With the Graphic test, it is possible to print a bitmap image on the thermal roll, in order to check the graphical print quality.
To exit from the Font Test mode, it is necessary to turn the printer off.
SETUP mode
See the chapter SETUP from the operator console.
Operator console
2-3
Now, you can start programming the printer in dot matrix mode and modifying the setup parameters according to your needs (see later sections) See also the sections: Parameters How to Select the Parameters.
3-1
KEY 1 KEY 2
prints the next parameter of the item selected or the next item of the menu confirms selection of the last item or parameter printed; prints the first parameter of the item selected or the next item of the menu
3-2
Parameters
The parameters that can be selected using the setup are grouped in the way illustrated below, which is also how they are printed by the machine: ------------------------------------------------------------------EMULATION EMULATION: TMU 590 - TM 295 I/O (*) I/O: SERIAL - EXIT SERIAL: BIT BIT: 8 - 7 SERIAL: BAUD BAUD: 9600 - 4800 - 2400 - 1200 SERIAL: STOP STOP: 1 - 2 SERIAL: PARITY PARITY: NONE - ODD - EVEN SERIAL: HANDSHAKE HANDSHAKE: DTR - XON/XOF ........SERIAL: RX ERROR RX ERROR: PRINT "?" - NO PRINT I/O: EXIT (*) The I/O menu is only printed if the printer is equipped with a serial port.
3-3
3-4
Note: Operative only in EMULATION: TMU 590 with the MICR reader installed. DISPLAY: DISABLE - ENABLE Display module: recognized (ENABLE) or not (DISABLE).
Note: Operative only in EMULATION: TMU 590. AUTO LF: NO - YES BUSY OFFLINE: YES - NO Auto line feed: (NO:disable - YES:enable) The printer is BUSY if it is: - off-line or in receive buffer full (YES); - only in receive buffer full (NO). ENABLE=pin 6 of the interface connector is used for the reset signal; DISABLE= pin 6 of the interface connector is NOT used for the reset signal.
Note: If RS PIN6= ENABLE, the printer is reset at MARK on the RS-232C level. RS PIN25: DISABLE - ENABLE ENABLE=pin 25 of the interface connector is used for the reset signal; DISABLE= pin 25 of the interface connector is NOT used for the reset signal.
Note: If RS PIN25= ENABLE, the printer is reset at SPACE on the RS-232C level or at HIGH on the TTL level. FEEDER: FRONT - TOP TOP LOW: 1 - 2 - 4 - 6 - FULL PRINT SAVE DEFAULT Enables document feed from either the front (FRONT) or from the top (TOP). Feed slip paper 1, 2, .. 6 lines or to the top of form (FULL). Print the current setup parameters. Stores the pre-settings selected in the current SETUP section. Restore the setup parameter values set in the factory
3-5
RESTART
Reinitialize the setup procedure, without storing the pre-settings set before.
Assuming your selection was 1, there are again two alternatives: a b If you press key 2 (you select the parameter EMULATION: TMU 590), the machine prints the second main menu "I/O". If you press key 1 (you do not select the parameter EMULATION: TMU 590), the machine prints the EMULATION: alternative "TM 295". ...... and so on.
To summarize: 1. In setup mode, the machine prints and proposes one item or one parameter at a time. 2. The item or parameter can be accepted and selected with key 2 or refused with key 1.
3-6
4-1
Standard commands
HT LF FF CR CAN 09 0A 0C 0D 18 9 10 12 13 24 Horizontal tab Print and line feed Print and eject slip paper Carriage return Cancel print data in page mode 4-6 4-6 4-6 4-6 4-6
Print Margins
ESC C n ESC a n GS L .. GS ! .. GS W .. 1B 43 n 1B 61 n 1D 4C .. 1D 21 .. 1D 57 .. 27 67 n 27 97 n 29 76 .. 29 33 .. 29 87 .. Set slip paper eject length Select justification Set left margin Selects character size Set printing area width 4-15 4-19 4-26 4-24 4-27
Line Feed
ESC J n ESC K n ESC 2 ESC 3 n GS P .. ESC d n ESC e n ESC q ESC F 1B 4A n 1B 4B n 1B 32 1B 33 n 1D 50 .. 1B 64 n 1B 65 n 1B 1B 46 27 74 n 27 75 n 27 50 27 51 n 29 80 .. 27 100 n 27 101 n 71 27 70 Print and feed paper Print and reverse feed Select 1/6-inch line spacing Set line spacing Set horizontal and vertical motion units Print and feed n lines Print and reverse feed n lines Paper eject Set/cancel reverse eject (not operative) 4-16 4-17 4-14 4-14 4-26 4-22 4-22 4-23 4-16
Print Pitches
ESC SP n GS P .. 1B 20 n 1D 50 .. 27 32 n 29 80 .. Set right-side character spacing Set horizontal and vertical motion units 4-10 4-26
Positioning
ESC < ESC D .. ESC W .. ESC \ .. ESC $ nL nH GS \ .. 1B 3C 1B 44 .. 1B 57 .. 1B 5C .. 1B 24 .. 1D 5C .. 27 60 27 68 .. 27 87 .. 27 97 .. 27 36 .. 29 92 .. Return home Set horizontal tab positions Set printing area in page mode Set relative print position Set absolute print position Set relative vertical print position in page mode 4-14 4-15 4-18 4-19 4-11 4-27
Printer control
DLE EOT n DLE ENQ n ESC @ GS I n GS a n GS r n 10 04 n 10 05 n 1B 40 1D 49 n 1D 61 n 1D 72 n 16 4 n 16 5 n 27 64 29 73 n 29 97 n 29 114 n Real-time status transmission Real-time request to printer Initialize printer Transmit printer ID Enable/Disable Automatic Status Back Transmit status 4-7 4-10 4-15 4-25 4-27 4-30
FS b FS c
1B 3D n 1B 70 .. 10 04 08 n 1C 62 1C 63
27 61 n 27 112 .. 17 04 08 n 28 98 28 99
Select peripheral device Generate pulse Transmit real-time MICR status Request retransmission of chek paper reading results MICR mechanism cleaning
4-2
Magnetic reading
FS a 0 n FS a 1 FS a 2 1C 61 30 n 1C 61 31 1C 61 32 28 97 48 n 28 97 49 28 97 50 Read check paper Load/check paper to print starting position Eject check paper 4-32 4-33 4-33
Print Attributes
ESC - n ESC ! n ESC E n ESC G n 1B 2D n 1B 21 n 1B 45 n 1B 47 n 27 45 n 27 33 n 27 69 n 27 71 n Turn underline mode on/off Select print mode(s) Turn emphasized mode on/off Turn on/off double-strike mode 4-13 4-11 4-16 4-16
Character Sets
ESC R n ESC t n 1B 52 n 1B 74 n 27 82 n 27 116 n Select an international character set Select character code table 4-17 4-23
Various
ESC FF ESC L ESC T .. ESC { n ESC U n ESC f .. ESC c 0 n ESC c 3 n ESC c 4 n ESC c 5 n 1B 0C 1B 4C 1B 54 1B 7B n 1B 55 n 1B 66 .. 1B 63 30 n 1B 63 33 n 1B 63 34 n 1B 63 35 n 27 27 76 27 84 27 123 n 27 85 n 27 102 .. 27 99 48 n 27 99 51 n 27 99 52 n 27 99 53 n Print data in page mode Selects page mode Selects print direction in page mode Turns on/off upside-down printing mode Turn on/off unidirectional printing mode Set slip paper waiting time Select paper feeder Enable/disable paper end signal Select paper sensor(s) to stop printing Enable/disable panel buttons 4-10 4-17 4-18 4-24 4-18 4-22 4-20 4-20 4-21 4-21
4-3
Hex 0A 0C 0D 18 10 04 n 10 04 08 n 10 05 n 1B 0C 1B 20 n 1B 21 n 1B 24 .. 1B 25 n 1B 26 .. 1B 2A .. 1B 2D n 1B 32 1B 33 n 1B 3C 1B 3D n 1B 3F n 1B 40 1B 43 n 1B 44 .. 1B 45 n 1B 46 1B 47 n 1B 4A n 1B 4B n 1B 4C 1B 52 n 1B 54 1B 55 n 1B 57 .. 1B 5C .. 1B 61 n 1B 63 30 n 1B 63 33 n 1B 63 34 n 1B 63 35 n 1B 64 n 1B 65 n 1B 66 .. 1B 70 .. 1B 1B 74 n
DLE ENQ n ESC FF ESC SP n ESC ! n ESC $ nL nH ESC % n ESC & .. ESC * .. ESC - n ESC 2 ESC 3 n ESC < ESC = n ESC ? n ESC @ ESC C n ESC D .. ESC E n ESC F ESC G n ESC J n ESC K n ESC L ESC R n ESC T .. ESC U n ESC W .. ESC \ .. ESC a n ESC c 0 n ESC c 3 n ESC c 4 n ESC c 5 n ESC d n ESC e n ESC f .. ESC p .. ESC q ESC t n 4-4
Description Horizontal tabulation Print and line feed Print and eject slip paper Carriage return Cancel print data in page mode Real-time status transmission Transmit real-time MICR status Real-time request to printer Print data in page mode Set right-side character spacing Select print mode(s) Set absolute print position Select/cancel user-defined character set Define user-defined characters Select bit-image mode Turn underline mode on/off Select 1/6-inch line spacing Set line spacing Return home Select peripheral device Cancel user-defined characters Initialize printer Set slip paper eject length Set horizontal tab positions Turn emphasized mode on/off Set/cancel reverse eject (not operative) Turn on/off double-strike mode Print and feed paper Print and reverse feed Selects page mode Select an international character set Selects print direction in page mode Turn on/off unidirectional printing mode Set printing area in page mode Set relative print position Select justification Select paper feeder Enable/disable paper end signal Select paper sensor(s) to stop printing Enable/disable panel buttons Print and feed n lines Print and reverse feed n lines Set slip paper waiting time Generate pulse Paper eject Select character code table
Pag. 4-6 4-6 4-6 4-6 4-6 4-7 4-31 4-10 4-10 4-10 4-11 4-11 4-11 4-12 4-13 4-13 4-13 4-14 4-14 4-14 4-15 4-15 4-15 4-15 4-16 4-16 4-16 4-16 4-17 4-17 4-17 4-18 4-18 4-18 4-19 4-19 4-20 4-20 4-21 4-21 4-22 4-22 4-22 4-22 4-23 4-23
ESC { n GS ! .. GS * .. GS / m GS I n GS L .. GS P .. GS W .. GS \ .. GS a n GS r n
1B 7B n 1D 21 .. 1D 2A .. 1D 2F m 1D 49 n 1D 4C .. 1D 50 .. 1D 57 .. 1D 5C .. 1D 61 n 1D 72 n
27 123 n 29 33 .. 29 42 .. 29 47 m 29 73 n 29 76 .. 29 80 .. 29 87 .. 29 92 .. 29 97 n 29 114 n
Turns on/off upside-down printing mode Selects character size Define down-loaded bit image Print down-loaded bit image Transmit printer ID Set left margin Set horizontal and vertical motion units Set printing area width Set relative vertical print position in page mode Enable/Disable Automatic Status Back Transmit status
4-24 4-24 4-25 4-25 4-25 4-26 4-34 4-27 4-27 4-27 4-30
Comandi per il lettore MICR opzionale: DLE EOT .. FS a 0 n FS a 1 FS a 2 FS b FS c 10 04 .. 1C 61 30 n 1C 61 31 1C 61 32 1C 62 1C 63 17 04 .. 28 97 48 n 28 97 49 28 97 50 28 98 28 99 Transmit real-time MICR status Read check paper Load/check paper to print starting position Eject check paper Request retransmission of chek paper reading results MICR mechanism cleaning 4-39 4-32 4-33 4-33 4-33 4-33
4-5
HT
Horizontal tab Hexadecimal code: 09 Moves the print position to the next horizontal tab position. This command is ignored unless the next horizontal tab position has been set.
LF
Print and line feed Hexadecimal code: 0A Prints the data in the print buffer and feeds one line. The amount of paper fed per line is based on the value set using the line spacing command. The default setting is 1/6 inch.
FF
Print and eject slip paper Hexadecimal code: 0C Prints the data in the print buffer and ejects the slip paper. Notes: The command is enabled only when slip paper is selected for printing. Paper ejection continues until the paper is completely ejected. When the slip ejection length has been set by ESC C, the specified length is ejected, regardless of the slip ejection sensor. After the slip is ejected, the printer selects the default paper type for ESC c 0 . The slip is ejected in the direction specified by ESC F.
CR
Carriage return Hexadecimal code: 0D When auto line feed is enabled, CR functions in the same way as LF. When auto line feed is disabled, CR prints the data in the print buffer and does not feed the paper. With a serial interface, auto line feed is disabled. With a parallel interface, whether enabling or disabling the auto line feed can be selected by the SETUP
CAN
Cancels print data in page mode Hexadecimal code: 18 In page mode, deletes all the print data in the current printable area.
4-6
DLE EOT n
Real-time status transmission Hexadecimal code: 10 04 n Range: n =1, 2, 3, 5 Transmits the selected printer status specified by n in real time, according to the following parameters: n=1 n=2 n=3 n=5 Transmit printer status Transmit off-line status Transmit error status Transmit slip paper status
This command is ignored during a process of transmitting the check paper reading result (only with the MICR reader). With a serial interface model, this command is executed even when the printer is off-line, the receive buffer is full, or an error occurs. With a parallel interface model, this command is not executed in the following status, because the printer is busy and unable to receive data from the host computer: Receive buffer is full when DIP switch 2-1 is set to ON. Printer is off-line, an error occurs, or receive buffer is full when DIP switch 2-1 is set to OFF.
n=1: Printer status Bit 0 1 2 Off/On Off On Off On 3 Off On 4 5,6 7 On Off Hex 00 02 00 04 00 08 10 00 Decimal 0 2 0 4 0 8 16 0 Function Not used. Fixed to Off. Not used. Fixed to On. Drawer kick out signal is LOW (connector pin 3) Drawer kick out signal is HIGH (connector pin 3) On-line. Off-line. Not used. Fixed to On. Undefined. Not used. Fixed to Off.
4-7
n=2: Off-line status Bit 0 1 2 Off/On Off On Off On 3 Off On 4 5 On Off On 6 Off On 7
Bit 5
Hex 00 02 00 04 00 08 10 00 20 00 40 00
Decimal 0 2 0 4 0 8 16 0 32 0 64 0
Function Not used. Fixed to Off. Not used. Fixed to On. Cover is closed. Cover is open. Paper is not being fed by the paper feed button. Paper is being fed by the paper feed button. Not used. Fixed to On. No paper end stop. Printing stops due to the paper end. No error. Error occurs. Not used. Fixed to Off.
Off
The printer is not off-line when printing stops due to a paper end.
n=3: Error status Bit 0 1 2 Off/On Off On Off On 3 4 5 On Off On 6 7 Off Hex 00 02 00 04 10 00 20 00 Decimal 0 2 0 4 16 0 32 0 Function Not used. Fixed to Off. Not used. Fixed to On. No mechanical error. Mechanical error occurred. Undefined. Not used. Fixed to On. No unrecoverable error. Unrecoverable error occurred. Undefined. Not used. Fixed to Off.
4-8
n=5: Slip paper status Bit 0 1 2 Off/On Off On Off On 3 Off On 4 5 On Off On 6 Off On 7 Off Hex 00 02 00 04 00 08 10 00 20 00 40 00 Decimal 0 2 0 4 0 8 16 0 32 0 64 0 Function Not used. Fixed to Off. Not used. Fixed to On. Slip paper selected. Slip paper not selected. Slip insertion waiting off. Slip insertion waiting on. Not used. Fixed to On. TOF sensor: paper present. TOF sensor: no paper. BOF sensor: paper present. BOF sensor: no paper. Not used. Fixed to Off.
4-9
DLE ENQ n
Real-time request to printer Hexadecimal code: 10 05 n Range: n =1-3 Responds to a request in real time from the host computer, specified by n as shown below. n can be set to 1 or 2 only when a recoverable error occurs. This command is also executed to recover from a recoverable error when the printer is disabled by ESC =. For the printer with the MICR reader, n can be set to 3 only when the printer is in the check paper or cleaning sheet insertion waiting status. The check paper or cleaning sheet insertion waiting status can be confirmed by the DLE EOT BS command. During transmitting check paper reading result, this command is ignored. When a recoverable error occurs, after removing a cause of an error, the printer can recover from an error without turning off the power. With a serial interface model, this command is executed even when the printer is off-line, the receive buffer is full, or an error occurs. With a parallel interface model, this command is not executed in the following status because the printer is busy and unable to receive data from the host computer: n 1 2 3 Receive buffer is full when DIP switch 2-1 is set to On. Printer is off-line, an error occurs, or receive buffer is full when DIP switch 2-1 is set to Off. Request Restarts printing from the beginning of the line where an error occurred, after recovering from the error. Recovers from an error after clearing the receive and print buffers. Recovers from an error after clearing the receive and print buffers, cancels the check paper or cleaning sheet waiting status.
ESC FF
Print data in page mode Hexadecimal code: 1B 0C In page mode, prints all buffered data in the print area collectively.
ESC SP n
Set right-side character spacing Hexadecimal code: 1B 20 n Range: n = 0-255 Sets the right-side character spacing to n horizontal motion unit. It is used to change the spacing between characters. The default setting is n=0. The horizontal motion unit set by GS P is used. The default setting of the horizontal motion unit is 1/150 inch. 4-10 Epson TM-U950 Commands
ESC ! n
Select print mode(s) Hexadecimal code: 1B 21 n Range: n = 0-255
Selects or cancels print modes collectively using n as follows. Bit 0 1, 2 3 4 5 6 7 Off/On Off On Off On Off On Off On Off On Hex 00 01 00 08 00 10 00 20 00 80 Decimal 0 1 0 8 0 16 0 32 0 128 Function Character font 9 x 9 selected. Character font 7 x 9 selected. Undefined. Emphasized mode not selected. Emphasized mode selected Double-height mode not selected Double-height mode selected Double-width mode not selected Double-width mode selected Undefined. Underline mode not selected Underline mode selected
ESC $ nL nH
Set absolute print position Hexadecimal code: 1B 24 .. Range: nL = 0-255 nH = 0-255
Sets the distance from the beginning of the line to the position at wich subsequent characters are to be printed. Notes: The distance from the beginning of the line to the print position is [(nL + nH x 256) x (horizontal motion unit)] inches. Settings outside the specified printable area are disabled.
ESC % n
Select/cancel user-defined character set Hexadecimal code: 1B 25 n Range: n = 0-255
Selects or cancels the user-defined character set. When the Least Significant Bit (LSB) is 0, the internal character set is selected. When the LSB is 1, the user-defined character set is selected. Default: n=0
4-11
Defines user-defined characters from character code c1 to c2. y and x are the configuration of a user-defined character. y specifies the number of bytes in the vertical direction. x specifies the number of dots in the horizontal direction. Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined by c1 and c2. Data (d) specifies a bit printed to 1 and not printed to 0. As the default, user-defined characters are not defined and the internal character set is printed. Once the user-defined characters have been defined, they are available until ESC ?, or GS *, or ESC @ is executed; the user-defined characters are redefined; the power is turned off; or the printer is reset. When this command is executed, the user-defined bit image is canceled.
Program Example
y=1 PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC"; x=7: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i PRINT #1, CHR$(&H1B);"%";CHR$(0); Select the internal character set PRINT #1, "A B C D E"; CHR$(&HA); PRINT #1, CHR$(&H1B);"%";CHR$(1); PRINT #1, "A B C D E"; CHR$(&HA); DATA &H30,&H78,&HFC,&H78,&H30,&H00,&H00 DATA &H18,&H24,&H42,&H81,&H42,&H24,&H18,&H00,&H00 DATA &H18,&H28,&H4F,&H80,&H4F,&H28,&H18,&H00,&H00 Defines the user-defined characters as "A", "B", and "C" Select the user-defined character set
Print Sample
A B C D E Characters from internal character set o D E Characters from user-defined character set
4-12
ESC * m nL nH d1 dk
Select bit-image mode Hexadecimal code: 1B 2A .. Range: m = 0, 1 nL = 0-255 nH = 0-3 d = 0-255 k = nL + nH x 255
Selects a bit-image mode using m for the number of dots specified by (nL + nH 256). d indicates the bit image data. Set a bit to 1 to print a dot, or set a bit to 0 to not print a dot. When 8-dot double-density bit image is selected, setting adjacent dots in horizontal is prohibited. This command is used to print a predefined picture or logo. The modes selectable by m are as follows:
Vertical Direction m 0 1 Mode 8-dot singledensity 8-dot doubledensity Number of Dots 8 8 Horizontal Direction Set adjacent dots Permitted Prohibited Maximum Number of Dots 400 800
ESC - n
Journal tab Hexadecimal code: 1B 2D n Range: n = 0, 1, 48, 49
Turns underline mode on or off. If n = 0 or 48, turns off underline mode. If n = 1 or 49, turns on underline mode. Notes: Default: This command and ESC ! turn underline mode on or off in the same way. If the value of n is out of the specified range, the printer ignores this command. n=0
References: ESC !
ESC 2
Select 1/6-inch line spacing Hexadecimal code: 1B 32 Selects 1/6-inch line spacing. This is equivalent to 12 dots.
4-13
ESC 3 n
Set line spacing Hexadecimal code: 1B 33 n Range: n = 0-255
Sets the line spacing to [n x vertical motion unit] inches. The maximum line spacing amount is 40 inches. The vertical motion unit set by GS P is used. The default setting of the vertical motion unit is 1/144 inch. Default: n = 24 (1/6 inch)
References: GS P
ESC <
Return home Hexadecimal code: 1B 3C Moves the printhead to the leftmost position, then moves it rightmost position. Notes: The leftmost hand is detected by the home position sensor. Since the home position is detected when this command is executed, the printing position may shift after this command is executed.
ESC = n
Select peripheral device Hexadecimal code: 1B 3D n Range: n = 1-3
Selects the device to which the host computer sends data, based on the value of n as follows:
n 1 2 3 Peripheral Device Status Only printer selected. (customer display is disabled) Only customer display selected. (printer is disabled) Both printer and customer display selected.
When the printer is disabled (n=2), it ignores all received data with the exception of the DLE ENQ 1 and DLE ENQ 2 commands. If ASB is enabled when the printer is disabled by the ESC = command, the printer transmits a 4-byte status message whenever the status changes. With a serial interface model, the default setting is n=1 when DIP switch 2-2 is off and n=2 when DIP switch 2-2 is on.
4-14
ESC ? n
Cancel user-defined characters Hexadecimal code: 1B 3F n Range: n = 32-126
Cancels the user-defined characters defined for the character code n. After the user-defined characters are canceled, the internal character set is printed. Notes: This command cancels the pattern defined for the character code specified by n. After the user-defined character is cancelled, the corresponding pattern for the internal character is printed. If a user-defined character has not been defined for the specified character code, the printer ignores this command. If n is out of the range, this command is ignored.
ESC @
Initialize printer Hexadecimal code: 1B 40 Initializes the printer. All settings, including character font and line spacing settings, are canceled.
ESC C n
Set slip paper eject length Hexadecimal code: 1B 43 n Range: n = 0-255 Sets the eject length for slip paper to n line spacing. The maximum eject length is 17.72 inches. The default setting of the eject length is n = 0. No eject length is set if n=0. When n=0, the paper is fed until it can be ejected. If the printer cannot detect the edge of the sheet after feeding the sheet for maximum value (17.72 inches), it is a slip ejection error (recoverable error).
4-15
ESC E n
Turn emphasized mode on/off Hexadecimal code: 1B 45 n Range: n = 0-255
Turns emphasized mode on or off. When the LSB (least significant bit) of n is 1, emphasized mode is turned on; when it is 0, emphasized mode is turned off. The default setting is n=0.
ESC F
Set/cancel reverse eject Hexadecimal code: 1B 46 This command is not operative.
ESC G n
Turn double-strike mode on/off Hexadecimal code: 1B 46 n Range: n = 0-255
Turns double-strike mode on or off. When the LSB (least significant bit) of n is 1, double-strike mode is turned on; when it is 0, double-strike mode is turned off. The default setting is n=0.
ESC J n
Print and feed paper Hexadecimal code: 1B 4A n Range: n = 0-255 Prints the data in the print buffer and feeds the paper n vertical motion unit. This command is used to temporarily feed a specific length without changing the line spacing set by other commands. The maximum paper feed amount is 40 inches. The vertical motion unit set by GS P is used. The default value of the vertical motion unit is 1/144 inch.
4-16
ESC K n
Print and reverse feed Hexadecimal code: 1B 4B n Range: n = 0-255 Prints the data in the print buffer and feeds the paper n vertical motion unit in the reverse direction. This command is used to temporarily feed a specific length without changing the line spacing set by other commands. In the reverse direction, the maximum paper feed amount is 40 inches. The vertical motion unit set by GS P is used. The default value of the vertical motion unit is 1/144 inch.
ESC L
Select page mode Hexadecimal code: 1B 4C Switches from standard mode to page mode.
ESC R n
Select an international character set Hexadecimal code: 1B 52 n Range: n = 0-10
Selects an international character set n from the following table: n Character set 0 U.S.A. 1 France 2 Germany 3 U. K. 4 Denmark I 5 Sweden 6 Italy 7 Spain 8 Japan 9 Norway 10 Denmark II If n is out of the specified range, this command is ignored. Notes: Default: n=0
4-17
ESC T n
Select print direction in page mode Hexadecimal code: 1B 54 n Range: n = 03 n= 4851
Selects the print direction and starting position in page mode. n specifies the print direction and starting position as follows: n 0, 48 1, 49 2, 50 3, 51 Print direction Left to right Bottom to top Right to left Top to bottom Starting position Upper left Lower left Lower right Upper right
ESC U n
Turn on/off unidirectional printing mode Hexadecimal code: 1B 55 n Range: n = 0-255
Turns unidirectional printing mode on or off. When the LSB (least significant bit) of n is 1, unidirectional printing is turned on; when it is 0, unidirectional printing is turned off and bidirectional printing mode is turned on. Unidirectional printing can be turned on when printing double-height characters or downloaded bit image to ensure that the top and bottom of the characters are aligned. The default setting is n=0.
The horizontal starting position, vertical starting position, printing area width, and printing area height are defined as x0, y0, dX, dY, respectively. Each setting for the printing area is calculated as follows: x0 = [(xL + xH (256) x (horizontal motion unit)] y0 = [(yL + yH (256) x (vertical motion unit)] dX = [dxL + dxH (256) x (horizontal motion unit)] dY = [dyL + dyH (256) x (vertical motion unit)]
4-18
ESC \ nL nH
Set relative print position Hexadecimal code: 1B 5C .. Range: nL = 0-255 nH = 0-255
Moves the print starting position to (nL + nH 256) horizontal motion unit from the current position. Use the complement of N for setting N pitch movement to the left: (nL + nH 256) = 65536-N. The horizontal motion unit set by GS P is used. The default setting of the horizontal motion unit is 1/150 inch.
ESC a n
Select justification Hexadecimal code: 1B 61 n Range: n = 0-2; 48-50
Aligns all the data in one line to specified position. n selects the type of justification as follows: n 0, 48 1, 49 2, 50 Justification Left justification Centering Right justification
This command is enabled only when processed at the beginning of a line. Default: Example: n=0
4-19
ESC c 0 n
Select paper feeder Hexadecimal code: 1B 63 30 n Range: n = 1-4
Selects the type of paper for printing, using n as follows: Off/On Hex Decimal Function Off 00 0 Journal paper roll disabled. On 01 1 Journal paper roll enabled. 1 Off 00 0 Receipt paper roll disabled. On 02 2 Receipt paper roll enabled. 2 Off 00 0 Slip paper disabled. On 04 4 Slip paper enabled. 3-7 Undefined. Notes: - The command is available only when input at the beginning of a line. Slip paper and paper roll cannot be selected simultaneously. When this command is input, the printer executes the following: . If either paper roll is selected, previously selected slip paper is cancelled and ejected. . If slip paper was previously selected and is selected again, no operation is executed. . If either paper roll was previously selected and slip paper is then selected, the printer waits for the slip paper to be loaded. If the value of n is out of the specified range, the printer ignores this command. n=3 Bit 0
Default:
ESC c 3 n
Select paper sensor(s) to output paper end signal Hexadecimal code: 1B 63 33 n Range: n = 0255
Selects the paper sensor(s) whether to output paper-end signals or not to a parallele interface. Bit 0-3 4 5 6-7 Off/On Off On Off On Hex 00 10 00 20 Decimal 0 16 0 32 Function Undefined TOF sensor disabled. TOF sensor enabled. BOF sensor disabled. BOF sensor enabled. Undefined.
Notes:
Default:
When the TOF sensor or the BOF sensor is enabled and a paper-end is deleted, the paper end signal is output. - When both of these sensors are selected to output signals and either one detects a paper-end, the paper-end signal is output. - If both of these sensors are disabled, the paper-end signal is not output (always paper present status). - This command is enabled only with a parallel interface and is ignored with a serial interface. n=0
4-20
ESC c 4 n
Select paper sensor(s) to stop printing Hexadecimal code: 1B 63 34 n Range: n = 0-255
Selects whether to stop printing or not when the paper runs out. The default setting is n=0. When the TOF sensor or the BOF sensor is enabled and a paper-end is detected, the printer ejects the paper after printing as much as possible and enters the paper waiting state. The printer is not off-line when printing stops due to a paper-end. When the TOF sensor or the BOF sensor is disabled and a paper-end is detected, the printer does not stop printing and eject the paper. It is possible to select multiple sensors to stop printing. Then when any sensor detects a paper-end, printing stops. The paper sensor(s) used to stop printing are selected by using n as follows: Bit 0-3 4 5 6-7 Off/On Off On Off On Hex 00 10 00 20 Decimal 0 16 0 32 Function Undefined TOF sensor disabled. TOF sensor enabled. BOF sensor disabled. BOF sensor enabled. Undefined.
ESC c 5 n
Enable/disable panel buttons Hexadecimal code: 1B 63 35 n Range: n = 0-255
Enables or disables the panel buttons. When the LSB (least significant bit) of n is 1, all buttons are disabled; when it is 0, all buttons are enabled. The default is n=0. To prevent problems caused by accidentally pressing the buttons, use this command to disable the buttons. When the panel buttons are enabled by this command, if the cover is open, paper cannot be fed or released.
4-21
ESC d n
Print and feed n lines Hexadecimal code: 1B 64 n Range: n = 0-255 Prints the data in the print buffer and feeds n line spacing. The amount of paper fed per line is based on the value set using ESC 2 or ESC 3. The maximum paper feed amount is 40 inches. The default setting of the paper feed amount is 1/6 inch.
ESC e n
Print and reverse feed n lines Hexadecimal code: 1B 65 n Range: n = 0-255 Prints the data in the print buffer and feeds n line spacing in the reverse direction. The amount of paper fed per line is based on the value set using ESC 2 or ESC 3. The maximum reverse paper feed amount is 40 inches. The default setting of the paper feed amount is 1/6 inch.
ESC f t1 t2
Set slip paper waiting time Hexadecimal code: 1B 66 .. Range: t1 = 0-15 t2 = 0-64
Sets the time from detection of the slip to the start of printing to t2 0.1 seconds. t1 is always set to 0 second. When t1=0, the printer continues waiting for a slip to be inserted. The defaults are t1=0, t2=5. This setting alone, however, does not cause the printer to immediately start waiting for a slip to be inserted. The setting becomes effective when slip, check paper (only with the MICR reader), or cleaning sheet (only with the MICR reader) is used. DLE ENQ is used to cancel the check paper or cleaning sheet waiting state.
ESC p m t1 t2
Generate pulse Hexadecimal code: 1B 70 .. Range: m = 0, 1, 48, 49 t1 = 0-255 t2 = 0-255
Sends a pulse (on time= t1 2 msec / off time= t2 2 msec) to the specified connector pin. When m=0 or 48, the pulse is sent to drawer kick-out connector pin 2; when m=1 or 49, the pulse is sent to drawer kick-out connector pin 5.
4-22
ESC q
Paper release Hexadecimal code: 1B 71 Releases the paper. The printer waits for the paper to be removed after executing a release.
ESC t n
Select character code table Hexadecimal code: 1B 74 n Range: n = 0-5; 254; 255
Selects a page n from the character code table as follows. n 0 1 2 3 4 5 255 Page 0 1 2 3 4 5 255 PC 437 (USA, Standard Europe) Katakana PC 858 (Multilingual + Euro) PC 860 (Portugal) PC 863 (Canadian-French) PC 865 (Nordic) Font A: space Font B: special characters
The alphanumeric characters (20H (decimal 32) to 7FH (decimal 127)) are the same for each page. The extended characters (80H (decimal 128) to FFH (decimal 255)) are different for each page. The default setting is page 0 (n=0). For page 255, font A and font B support different characters.
4-23
ESC { n
Turn on/off upside-down printing mode Hexadecimal code: 1B 7B n Range: n = 0-255
Turns upside-down printing mode on or off. When the LSB (least significant bit) of n is 1, upside-down printing mode is turned on; when it is 0, upside-down printing mode is turned off. The default setting is n=0. This command is enabled only when processed at the beginning of the line. When upside-down mode is turned on, the printer prints 180-rotated characters from right to left. The line printing order is not reversed; therefore be careful of the order of the data transmitted. Example:
GS ! n
Select character size Hexadecimal code: 1D 21 n Range: n = 0, 1, 16, 17
Selects the character height (vertical number of times normal font size) and the character width (horizontal number of times normal font size), using n as follows. The default setting is n=0. n 0 1 16 17 Character size Normal Double-height Double-width Quadruple Height Normal Double Normal Double Width Normal Normal Double Double
4-24
GS * x y d1 ... d(x y 8)
Define downloaded bit image Hexadecimal code: 1D 2A .. Range: x = 1-255 y = 1-255 x x y = 1-404 d = 0-255
Defines a downloaded bit image using x 8 dots in the horizontal direction and y 8 dots in the vertical direction. d indicates the bit image data. Set a bit to 1 to print a dot, or set a bit to 0 to not print a dot. Once a downloaded bit image has been defined, it is available until another definition is made; ESC & or ESC @ is executed; the printer is reset; or the power is turned off. When this command is executed, the user-defined characters are cleared. The default setting is no downloaded bit image defined.
GS / m
Print downloaded bit-image Hexadecimal code: 1D 2F m Range: m = 0, 1, 48, 49
Prints a downloaded bit image using the mode specified by m, as follows. m 0, 48 1, 49 Mode Normal Double-width Set Adjacent Dots in Horizontal Prohibited Permitted Maximum Number of Horizontal Dots 800 400
This command is available only when there is no data in the print buffer. When normal mode is selected, setting adjacent dots in horizontal direction is prohibited.
GS I n
Transmit printer ID Hexadecimal code: 1D 49 n Range: n = 1-3; 49-51
Transmits the printer ID specified by n as follows. Each printer ID consists of 1 byte of data. n 1, 49 2, 50 3, 51 Printer ID Printer model ID Type ID ROM version ID Specification TM-U590/U590P See table below Version x.xx ESC/POS Refer to current ROM version ID (hexadecimal) 21H
4-25
n = 2, Type ID: Bit 0 1 *2 Off/On Off On Off On 3 Off On 4 5-6 8 Off Off Hex 00 02 00 04 00 08 00 00 Decimal 0 2 0 4 0 8 0 0 Function Two-byte character code. Fixed to Off No Auto-cutter equipped DISPLAY: DISABLE (via setup) DISPLAY: ENABLE (via setup) MICR function disabled MICR function enabled Not used. Fixed to Off. Undefined. Not used. Fixed to Off.
GS L nL nH
Set left margin Hexadecimal code: 1D 4C nL nH Range: nL = 0255 nH = 0255
Sets the left margin to (nL + nH 256) horizontal motion unit from the beginning of a line. The default setting is nL=0, nH=0. The command is enabled only when processed at the beginning of a line. The horizontal motion units set by GS P is used. The default setting of the horizontal motion unit is 1/150 inch.
Reference: GS W
GS P x y
Set horizontal and vertical motion units Hexadecimal code: 1D 50 .. Range: x = 0-255 y = 0-255
Sets the horizontal (perpendicular to the paper feed direction) and vertical (the paper feed direction) motion units to 1/x and 1/y inches, respectively. The horizontal and vertical motion units indicate the minimum pitch used for calculating the values of related commands (shown below). The default values are x=150 and y=144. These value equal a half dot pitch in horizontal and 1/2 dot pitch in vertical. When x and y are set to 0, the default setting of each value is used. Commands used with the horizontal motion unit (1/x) : ESC SP, ESC $, ESC \, GS L, and GS W. Commands used with the vertical motion unit (1/y) : ESC 3, ESC J, and ESC K.
4-26
GS W nL nH
Set printing area width Hexadecimal code: 1D 57 nL nH Range: nL = 0255 nH = 0255
Sets the printing area width to (nL + nH 256) horizontal motion unit. The default settings are nL=32, nH=3 (printable area). The command is enabled only when processed at the beginning of a line. If the command sets the printing area width to less than the width of a left margin or one character, the printing area width is extended to accommodate one character for the line. The horizontal motion units set by GS P is used. The default setting of the horizontal motion unit is 1/150 inch.
Reference: GS L
GS \ nL nH
Set relative vertical print position in page mode Hexadecimal code: 1D 5C nL nH Range: nL = 0255 nH = 0255
Sets the relative vertical print starting position from the current position inpage mode: This command sets the distance from the current position to [(nL + nH x 256) x (vertical motion unit)] inches.
GS a n
Enable/Disable Automatic Status Back Hexadecimal code: 1D 61 n Range: n = 0-255
Selects a status for ASB transmission. ASB is enabled if any status item is selected. The printer automatically transmits a 4-byte status message whenever the status changes. Multiple status items can be selected. When n=0, ASB is disabled. If ASB is enabled when the printer is disabled by the ESC = command, the printer transmits a 4-byte status message whenever the status changes. Default: n = 0, when BUSY OFFLINE: YES is selected via setup, n = 2, when BUSY OFFLINE: NO is selected via setup.
4-27
The status items are selected using n as follows: Bit 0 Off/On Off On 1 Off On 2 Off On 3-4 5 Off On 6-7 Hex 00 01 00 02 00 04 00 20 Decimal 0 1 0 2 0 4 0 32 Function Drawer kick-out connect pin 3 disabled. Drawer kick-out connect pin 3 enabled. On-line/Off-line disabled. On-line/Off-line enabled. Error status disabled. Error status enabled. Undefined. Slip paper sensor and status disabled. Slip paper sensor and status enabled. Undefined.
First byte (printer information) Bit 0 1 2 3 4 5 6 7 Off/On Off Off Off On Off On Off Off On Off On Off Hex 00 00 00 04 00 08 00 00 20 00 40 00 Decimal 0 0 0 4 0 8 0 0 32 0 64 0 Function Not used. Fixed to Off. Not used. Fixed to Off. Drawer kick-out connector pin 3 is LOW Drawer kick-out connector pin 3 is HIGH. On-line. Off-line. Not used. Fixed to Off. Cover closed. Cover open. Paper is not being fed by the paper feed button. Paper is being fed by the paper feed button. Not used. Fixed to Off.
Second byte (error information) Bit 0, 1 2 3 4 5 6 7 Off/On Off On Off Off On Off Hex 00 04 00 00 20 00 Decimal 0 4 0 0 32 0 Function Undefined. No mechanical error. Mechanical error has occurred. Undefined Not used. Fixed to Off. No unrecoverable error. Unrecoverable error. Undefined Not used. Fixed to Off.
4-28
Third byte (paper sensor information) Bit 0-3 4 5 6 7 Off/On Off Off On Off On Off Hex 00 00 20 00 40 00 Decimal 0 0 32 0 64 0 Function Undefined. Not used. Fixed to Off. TOF sensor: paper present. TOF sensor: no paper present. BOF sensor: paper present. BOF sensor: no paper present. Not used. Fixed to Off.
Fourth byte (paper sensor information) Bit 0 1 2,3 4 5, 6 7 Off/On Off On Off On Off Off Hex 00 01 00 02 00 00 Decimal 0 1 0 2 0 0 Function Slip selection: selected. Slip selection: not selected. Slip status: possible to print. Slip status: not possible to print. Undefined. Not used. Fixed to Off. Undefined. Not used. Fixed to Off.
4-29
GS r n
Transmit status Hexadecimal code: 1D 72 n Range: n = 1-3; 49-51
Transmits the status specified by n as follows: n 1, 49 2, 50 3, 51 Function Transmits paper sensor status Transmits drawer kick-out connector status Transmits slip paper status
Paper sensor status (n = 1): Bit 0-3 4 5 Off/On On Off On 6 Off On 7 Off Hex 10 00 20 00 40 00 Decimal 16 0 32 0 64 0 Function Undefined. Not used. Fixed to Off. TOF sensor: paper present. TOF sensor: paper not present. BOF sensor: paper present. BOF sensor: paper not present. Not used. Fixed to Off.
Drawer kick-out connector status (n = 2): Bit 0 Off/On Off On 1-3 4 5,6 7 On Off Off Hex 00 01 02 00 00 Decimal 0 1 2 0 0 Function Level of pin 3 is LOW. Level of pin 3 is HIGH. Undefined Not used. Fixed to On. Undefined. Not used. Fixed to Off.
n = 3: Slip status: This command transmits the remaining printing area (times the number of dots for the internal characters in vertical (9 dots)) by using the values from 00H to 06H. With the MICR reader model, the status is 00H when the slip paper is not selected.
The Number of Remaining Dots 0 to 8 9 to 17 18 to 26 27 to 35 36 to 44 45 to 53 54 or more Hex 00 01 02 03 04 05 06 Decimal 0 1 2 3 4 5 6
DLE EOT BS n
Transmit real time MICR status Hexadecimal code: 10 04 08 n Range: n=1
Transmits MICR status in real time when n=1. This command supports the printer with the MICR option. This command is ignored during a process of transmitting the check paper reading result. With a serial interface model, this command is executed even when the printer is off-line, the receive buffer is full, or an error occurs. With a parallel interface model, this command is not executed in the following status, because the printer is busy and unable to receive data from the host computer: Receive buffer is full when DIP switch 2-1 is set to ON. Printer is off-line, an error occurs, or receive buffer is full when DIP switch 2-1 is set to OFF. The status information to be transmitted is shown in the table below. n = 1: MICR status Bit 0 1 2 Off/On Off On On Off 3 Off On 4 5 On Off On 6 Off On 7 Off Hex 00 02 04 00 00 08 10 00 20 00 40 00 Decimal 0 2 4 0 0 8 16 0 32 0 64 0 Function Not used. Fixed to Off. Not used. Fixed to On. MICR function selected MICR function not selected Check paper or cleaning sheet insertion: not waiting Check paper or cleaning sheet insertion: waiting Not used. Fixed to On. TOF sensor: paper present. TOF sensor: no paper. BOF sensor: paper present. BOF sensor: no paper. Not used. Fixed to Off.
4-31
FS a 0 n
Read check paper Hexadecimal code: 1C 61 30 n Range: n = 1-255
Selects the MICR function and reads the check paper. When changing readable waveforms to character data, n=0 specifies a readable font as E13B and n=1 specifies a readable font as CMC7. After ending MICR reading normally, the printer transmits header + reading status + identified character strings + NULL to the host computer. In other cases, the printer transmits header + reading status + NULL to the host computer. This command is enabled only when processed at the beginning of a line.
Header : 5FH (decimal 95) NULL : 00H (decimal 0) Reading status; each bit of n is used as follows:
Bit 0 Off/On Off On 1 Off On 2-3 4 5 On Off On 6 7 On Off Hex 00 01 00 02 10 00 20 40 00 Decimal 0 1 0 2 16 00 32 64 00 Undefined. Re-reading not possible. Fixed to On. Reading normal. Reading not normal. Not used. Fixed to On. Not used. Fixed to Off. Readable fonts. See Table below. Function
Readable fonts: Bit 1 Off Off On On Bit 0 Off On Off On Font E13B CMC7 Undefined Undefined
4-32
FS a 1
Load check paper to print starting position Hexadecimal code: 1C 61 31
Loads check paper to the print starting position. After loading the check paper, the printer cancels the MICR function and automatically selects slip paper as the print sheet. This command is ignored unless the MICR function is selected.
References: FS a 0.
FS a 2
Eject check paper Hexadecimal code: 1C 61 32
Ejects the check paper. After ejecting the check, the printer cancels the MICR function and automatically selects the slip paper as the print sheet. This command is ignored unless the MICR function is selected.
References: ESC c 0, FS a 0.
FS b
Request retransmission of check paper reading result Hexadecimal code: 1C 62
Retransmits the previous check paper reading results. The transmitted information is the same as that previously sent by FS a 0. If FS a 0 is not executed before FS b, the printer transmits the reading status as not normal .
References: DLE EOT BS, DLE EOT, FS a 0.
FS c
MICR mechanism cleaning Hexadecimal code: 1C 63 Cleans the MICR mechanism. When this command is executed, the printer enters cleaning sheet wait status. Insert the cleaning sheet into the check paper entrance. After cleaning, the printer ejects the cleaning sheet. This command is enabled only when processed at the beginning of a line. References: ESC c 0, ESC f.
4-33
5-1
Standard commands
LF FF CR CAN 0A 0C 0D 18 10 12 13 24 Print and line feed Print and eject slip paper Carriage return Cancel print data in page mode 5-4 5-4 5-4 5-4
Print Margins
ESC C n 1B 43 n 27 67 n Set slip paper eject length 5-10
Line Feed
ESC J n ESC K n ESC 2 ESC 3 n ESC d n ESC e n ESC F ESC q 1B 4A n 1B 4B n 1B 32 1B 33 n 1B 64 n 1B 65 n 1B 46 1B 27 74 n 27 75 n 27 50 27 51 n 27 100 n 27 101 n 27 70 71 Print and feed paper Print and reverse feed Select 1/6-inch line spacing Set line spacing Print and feed n lines Print and reverse feed n lines Set/cancel reverse eject (not operative) Paper eject 5-10 5-11 5-9 5-9 5-14 5-14 5-10 5-15
Print Pitches
ESC SP n 1B 20 n 27 32 n Set right-side character spacing 5-6
Printer control
DLE EOT n ESC @ GS I n GS a n GS r n ESC u n ESC v 10 04 n 1B 40 1D 49 n 1D 61 n 1D 72 n 1B 75 n 1B 76 16 4 n 27 64 29 73 n 29 97 n 29 114 n 27 117 n 27 118 Real-time status transmission Initialize printer Transmit printer ID Enable/Disable Automatic Status Back Transmit status Transmit peripheral device status Transmit paper sensor status 5-5 5-10 5-17 5-18 5-20 5-16 5-16
1B 3D n 1B 70 .. 10 04 08 n
27 61 n Select peripheral device 27 112 .. Generate pulse 17 04 08 n Transmit real-time MICR status
Print Attributes
ESC ! n 1B 21 n 27 33 n Select print mode(s) 5-7
Character Sets
ESC R n ESC t n 1B 52 n 1B 74 n 27 82 n 27 116 n Select an international character set Select character code table 5-11 5-15
Various
ESC D .. ESC { n ESC f .. ESC c 3 n ESC c 4 n ESC c 5 n 5-2 1B 44 .. 1B 7B n 1B 66 .. 1B 63 33 n 1B 63 34 n 1B 63 35 n 27 68 .. 27 123 n 27 102 .. 27 99 51 n 27 99 52 n 27 99 53 n Set horizontal tab positions Turns on/off upside-down printing mode Set slip paper waiting time Enable/disable paper end signal Select paper sensor(s) to stop printing Enable/disable panel buttons 5-10 5-17 5-14 5-13 5-13 5-14
5-3
LF
Print and line feed Hexadecimal code: 0A Prints the data in the print buffer and feeds one line based on the current line spacing. Note: Reference: This command sets the print position to the beginning of the line. ESC 2, ESC 3
FF
Print and eject slip paper Hexadecimal code: 0C In standard mode, FF prints the data in the print buffer and ejects the slip paper. When the eject length has been set by ESC C, the printer ejects the slip paper based on the current eject length regardless of the slip paper sensor state. Otherwise, the printer ejects the slip paper completely. The ejecting direction is specified by ESC F. In page mode, FF prints the data in the print buffer collectively and returns to standard mode. The buffer data is deleted after being printed, but the slip paper is not ejected. The print position is set to the beginning of the line.
CR
Carriage return Hexadecimal code: 0D CR functions in the same way as LF when auto line feed is enabled. When auto line feed is disabled, this command is ignored. This command sets the print position to the beginning of the line. This command is available only with a parallel interface and is ignored with a serial interface.
CAN
Cancels print data in page mode Hexadecimal code: 18 Deletes all the print data for the current print job in page mode. This command is enabled only in page mode.
5-4
DLE EOT n
Real-time status transmission Hexadecimal code: 10 04 n Range: n =1-5 Transmits the specified status in real time. With the serial interface model, this command is executed even if the printer is off-line or the receive buffer is full. However, with the parallel interface model, this command cannot be executed if the printer is off-line or the receive buffer is full, since the printer is busy and unable to receive data. n indicates the status function as follows: n=1 n=2 n=3 n=5 Transmit printer status Transmit off-line status Transmit error status Transmit slip paper status
n=1: Printer status Bit 0 1 2 Off/On Off On Off On 3 Off On 4 5,6 7 On Off Hex 00 02 00 04 00 08 10 00 Decimal 0 2 0 4 0 8 16 0 Function Not used. Fixed to Off. Not used. Fixed to On. Drawer kick out signal is LOW (connector pin 3) Drawer kick out signal is HIGH (connector pin 3) On-line. Off-line. Not used. Fixed to On. Undefined. Not used. Fixed to Off.
Hex 00 02 00 08 10 00 20 00 40 00
Decimal 0 2 0 8 16 0 32 0 64 0
Function Not used. Fixed to Off. Not used. Fixed to On. Undefined Paper is not being fed by the paper feed buttons. Paper is being fed by the paper feed buttons. Not used. Fixed to On. No paper end stop. Printing stops due to the paper end. No error. Error occurs. Not used. Fixed to Off.
Off
On (printing stop due to paper end) when printing stops due to paper-end detected by the paper end sensor or the paper near-end sensor enabled by using the ESC c 4.
5-5
n=3: Error status Bit 0 1 2-3 4 5 Off/On Off On On Off On 6 7 Off Hex 00 02 10 00 20 00 Decimal 0 2 16 0 32 0 Function Not used. Fixed to Off. Not used. Fixed to On. Undefined Not used. Fixed to On. No unrecoverable error. Unrecoverable error occurred. Undefined Not used. Fixed to Off.
n=5: Slip paper status Bit 0 1 2 Off/On Off On Off On 3 Off On 4 5 On Off On 6 Off On 7 Off Hex 00 02 00 04 00 08 10 00 20 00 40 00 Decimal 0 2 0 4 0 8 16 0 32 0 64 0 Function Not used. Fixed to Off. Not used. Fixed to On. Slip paper selected. Does not wait for slip paper insertion. Slip insertion waiting off. Slip insertion waiting on. Not used. Fixed to On. Slip insertion sensor: paper present. Slip insertion sensor: no paper. Slip ejection sensor: paper present. Slip ejection sensor: no paper. Not used. Fixed to Off.
ESC SP n
Set right-side character spacing Hexadecimal code: 1B 20 n Range: n = 0-32
Sets the right-side character spacing in half-dot increments. it is used to change the spacing between characters. One dot equals 1/80 inch in the horizontal direction and 1/60 inch in the vertical direction. The default setting is n=0. The right-side character spacing for double-width mode is twice the normal value. In page mode, the actual dot positions shift by a half dot. The right-side character spacing can be set independently in standard mode and in page mode. Default: n=0
5-6
ESC ! n
Select print mode(s) Hexadecimal code: 1B 21 n Range: n = 0-255
Selects print modes using n as follows. The default setting is n=0. This command cannot be used with the 7 x 7 font or for underlined printing in page mode. If the 7 7 font or underlined printing is selected or canceled in page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode. Bit 0 1, 3 4 5 6 7 Off/On Off On Off On Off On Off On Hex 00 01 00 10 00 20 00 80 Decimal 0 1 0 16 0 32 0 128 Function Character font 5 x 7 selected. Character font 7 x 7 selected. Undefined. Double-height mode not selected Double-height mode selected Double-width mode not selected Double-width mode selected Undefined. Underline mode not selected Underline mode selected
ESC % n
Select/cancel user-defined character set Hexadecimal code: 1B 25 n Range: n = 0-255
Selects or cancels the user-defined character set. When the Least Significant Bit (LSB) is 0, the internal character set is selected. When the LSB is 1, the user-defined character set is selected. Notes: Default: The user-defined character and the downloaded bit image cannot be defined simultaneously. n=0
5-7
Defines user-defined characters from character code c1 to c2. y and x are the configuration of a user-defined character. y specifies the number of bytes in the vertical direction. x specifies the number of dots in the horizontal direction. Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can be defined by c1 and c2. Data (d) specifies a bit printed to 1 and not printed to 0. As the default, user-defined characters are not defined and the internal character set is printed. Once the user-defined characters have been defined, they are available until ESC @ is executed; the user-defined characters are redefined; the power is turned off; or the printer is reset. When this command is executed, the user-defined bit image is canceled.
Program Example
y=1 PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC"; x=7: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i x=9: PRINT #1, CHR$(x); FOR i=1 TO y*x READ d: PRINT #1, CHR$(d); NEXT i PRINT #1, CHR$(&H1B);"%";CHR$(0); Select the internal character set PRINT #1, "A B C D E"; CHR$(&HA); PRINT #1, CHR$(&H1B);"%";CHR$(1); PRINT #1, "A B C D E"; CHR$(&HA); DATA &H30,&H78,&HFC,&H78,&H30,&H00,&H00 DATA &H18,&H24,&H42,&H81,&H42,&H24,&H18,&H00,&H00 DATA &H18,&H28,&H4F,&H80,&H4F,&H28,&H18,&H00,&H00 Defines the user-defined characters as "A", "B", and "C" Select the user-defined character set
Print Sample
A B C D E Characters from internal character set o D E Characters from user-defined character set
5-8
ESC * m nL nH d1 dk
Select bit-image mode Hexadecimal code: 1B 2A .. Range: m = 0, 1 nL = 0-255 nH = 0-3 d = 0-255 k = nL + nH x 255
Selects a bit-image mode using m for the number of dots specified by (nL + nH 256). This command is used to print a predefined picture or logo. The modes selectable by m are as follows:
Vertical Direction m 0 1 Mode 8-dot singledensity 8-dot doubledensity Number of Dots 8 8 Dot Density (DPI) 60 60 Horizontal Direction Dot Density (DPI) 80 160 Maximum Number of Dots 210 420
ESC 2
Select 1/6-inch line spacing Hexadecimal code: 1B 32 Selects 1/6-inch line spacing.
ESC 3 n
Set line spacing Hexadecimal code: 1B 33 n Range: n = 0-255 Sets the line spacing to n /60 inches (n approximately 0.423 mm). The default setting of the paper feed amount is 1/6 inch (n=10). The line spacing can be set independently in standard mode and in page mode.
ESC = n
Select peripheral device Hexadecimal code: 1B 3D n Range: n = 0-3
Selects device to wich host computer sends data, using n as follows: Bit 0 Off/On Off On 1-7 Hex 00 01 Decimal 0 1 Function Printer disabled. Printer enabled. Undefined.
When the LSB (least significant bit) of n is 1, the printer is enabled; when it is 0, the printer is disabled. The default setting is n=1.
5-9
ESC @
Initialize printer Hexadecimal code: 1B 40 Initializes the printer. All settings, including character font and line spacing settings, are canceled. The data in the print buffer is cleared and the printer mode is reset to the mode that was in effect when the power was turned on. The setup settings are not checked again, and the data in the receive buffer is not cleared.
ESC C n
Set slip paper eject length Hexadecimal code: 1B 43 n Range: n = 0-127
Sets the eject length for slip paper to n lines. The default setting for the eject length is n=0. This length is calculated by [n line spacing setting]. No eject length is set if n=0. The eject length set by this command is used by the FF command. The previously specified eject length does not change, even if the line spacing changes.
ESC F
Set/cancel reverse eject Hexadecimal code: 1B 46 This command is not operative.
ESC J n
Print and feed paper Hexadecimal code: 1B 4A n Range: n = 0-255 Prints the data in the print buffer and feeds the paper by n/60 inches (n approximately 0.423 mm). This command sets the print position to the beginning of the line.
5-10
ESC K n
Print and reverse feed Hexadecimal code: 1B 4B n Range: n = 0-255 Prints the data in the print buffer and feeds the paper by n/60 inches (n approximately 0.423 mm) in the reverse direction. This command is enabled only in standard mode. The setting values are not held. This command sets the print position to the beginning of the line.
ESC L
Select page mode Hexadecimal code: 1B 4C Switches from standard mode to page mode. This command is enabled only when input at the beginning of a line in standard mode; it has no effect in page mode. Standard mode is selected as the default. When FF is entered in page mode, the printer returns to standard mode.
ESC R n
Select an international character set Hexadecimal code: 1B 52 n Range: n = 0-10
Selects an international character set n from the following table: n Character set 0 U.S.A. 1 France 2 Germany 3 U. K. 4 Denmark I 5 Sweden 6 Italy 7 Spain 8 Japan 9 Norway 10 Denmark II If n is out of the specified range, this command is ignored. Notes: Default: n=0
5-11
ESC T n
Select print direction in page mode Hexadecimal code: 1B 54 n Range: n = 03 n= 4851
Selects the print direction and starting position in page mode specified by n as shown below. The default setting is n=0. This command is enabled only in page mode. If this command is entered in standard mode, an internal flag is activated and the command is enabled when the printer selects page mode. n 0, 48 1, 49 2, 50 3, 51 Print direction Left to right Bottom to top Right to left Top to bottom Starting position Upper left Lower left Lower right Upper right
Sets the size and position of the printing area in page mode as follows: Horizontal starting position = (xL + xH 256) Vertical starting position = (yL + yH 256) Printing area width = (dxL + dxH 256) dots Printing area height = (dyL + dyH 256) dots
5-12
ESC c 3 n
Select paper sensor(s) to output paper end signal Hexadecimal code: 1B 63 33 n Range: n = 0255
Selects paper sensor(s) to output paper-end signals to a parallel interface. The default setting is n=0 (both sensors disabled). When both of these sensors are selected to output signals and either one detects a paper-end, the paper-end signal is output. This command is enabled only with a parallel interface and is ignored with a serial interface. The paper sensor(s) used to output paper-end signals are selected by using n as follows: Bit 0-3 4 5 6-7 Off/On Off On Off On Hex 00 10 00 20 Decimal 0 16 0 32 Function Undefined TOF sensor disabled. TOF sensor enabled. BOF sensor disabled. BOF sensor enabled. Undefined.
ESC c 4 n
Select paper sensor(s) to stop printing Hexadecimal code: 1B 63 34 n Range: n = 0-255
Selects the paper sensor that stops printing when the paper runs out. The default setting is n=0 (both sensors disabled). When both of these sensors are selected to stop printing and either one detects a paper-end, printing stops. When a paper-end is detected, printing stops after printing the current line and feeding the paper. If the panel buttons are disabled at this time, the printer releases the paper and automatically waits for the next sheet. The paper sensor(s) used to stop printing are selected by using n as follows: Bit 0-3 4 5 6-7 Off/On Off On Off On Hex 00 10 00 20 Decimal 0 16 0 32 Function Undefined TOF sensor disabled. TOF sensor enabled. BOF sensor disabled. BOF sensor enabled. Undefined.
5-13
ESC c 5 n
Enable/disable panel buttons Hexadecimal code: 1B 63 35 n Range: n = 0-255
Enables or disables the panel buttons. Notes: When the LSB of n is 0, the panel buttons are enabled. When the LSB of n is 1, the panel buttons are disabled. To prevent problems caused by accidentally pressing these buttons, use this command to disable them.
ESC d n
Print and feed n lines Hexadecimal code: 1B 64 n Range: n = 0-255
Prints the data in the print buffer and feeds n lines. The amount of paper fed per line is based on the value set using the line spacing command. The default setting of the paper feed amount is 1/6 inch (approximately 4.23 mm). This command sets the print starting position to the beginning of the line.
ESC e n
Print and reverse feed n lines Hexadecimal code: 1B 65 n Range: n = 0-255
Prints the data in the print buffer and feeds n lines in the reverse direction. This command is available only in standard mode. The amount of paper fed per line is based on the value set using the line spacing command. The maximum reverse paper feed amount is 1/6 inch. The default setting of the paper feed amount is 1/6 inch (approximately 4.23 mm). The setting values are not held. This command sets the print position to the beginning of the line.
ESC f t1 t2
Set slip paper waiting time Hexadecimal code: 1B 66 .. Range: t1 = 0 t2 = 0-64
Sets the time that the printer waits for slip paper to be inserted and the time from detection of the slip to the start of printing. Since t1=0, the slip paper waiting time is unlimited and the printer continues waiting for a slip to be inserted. The printer starts operation t2 0.1 seconds after the detection of the slip paper. The default for the start operation time is 1 second (t1=0, t2=10). 5-14 Epson TM-950 Commands
ESC p m t1 t2
Generate pulse Hexadecimal code: 1B 70 .. Range: m = 0, 1, 48, 49 t1 = 0-255 t2 = 0-255
Sends a pulse (on time= t1 2 msec / off time= t2 2 msec) to the specified connector pin. When m=0 or 48, the pulse is sent to drawer kick-out connector pin 2; when m=1 or 49, the pulse is sent to drawer kick-out connector pin 5.
ESC q
Paper release Hexadecimal code: 1B 71 Releases the paper. This command is available only in standard mode.
ESC t n
Select character code table Hexadecimal code: 1B 74 n Range: n = 0-2
Selects a page n from the character code table as follows. n 0 1 2 Page 0 1 2 PC 437 (USA, Standard Europe) Katakana PC 850 (Multilingual)
The alphanumeric characters (20H (decimal 32) to 7FH (decimal 127)) are the same for each page. The graphic characters (80H (decimal 128) to FFH (decimal 255)) are different for each page. The default setting is page 0.
5-15
ESC u n
Transmit peripheral device status Hexadecimal code: 1B 75 n Range: n = 0, 48
Transmits the status of drawer kick-out connector pin 3 as 1 byte of data when n=0 or 48. This command allows the host to determine the status of a peripheral device. GS r is preferred for checking the status because ESC u is not a recommended command. Peripheral device status Bit 0 Off/On Off On 1-3 4 5,6 7 Off Off Hex 00 10 00 00 Decimal 0 16 0 0 Function Drawer kick-out connector pin 3 is LOW. Drawer kick-out connector pin 3 is HIGH. Undefined Not used. Fixed to Off. Undefined Not used. Fixed to Off.
ESC v
Transmit paper sensor status Hexadecimal code: 1B 76 Transmits the status of a paper sensor as 1 byte of data. GS r is preferred for checking the status because ESC v is not a recommended command. The status to be transmitted is shown in the table below. Paper sensor status Bit 0 Off/On Off On 1 Off On 2-3 4 5,6 7 Off Off Hex 00 10 00 10 00 00 Decimal 0 16 0 16 0 0 Function Slip paper detected by BOF sensor. Slip paper not detected by BOF sensor. Slip paper detected by TOF sensor. Slip paper not detected by TOF sensor. Undefined. Not used. Fixed to Off. Undefined. Not used. Fixed to Off.
5-16
ESC { n
Turn on/off upside-down printing mode Hexadecimal code: 1B 7B n Range: n = 0-255
Turns upside-down printing mode on or off. Notes: When the LSB of n is 0, upside-down printing mode is turned off. When the LSB of n is 1, upside-down printing mode is turned on. In upside-down printing mode, the printer rotates the line to be printed by 180 from right to left and then prints it. In standard mode, this command is enabled only when input at the beginning of a line. In page mode, an internal flag is activated and this command is enabled when the printer returns to standard mode. n=0
Default: Example:
GS I n
Transmit printer ID Hexadecimal code: 1D 49 n Range: n = 1-3; 49-51
Transmits the printer ID specified by n as follows. Each printer ID consists of 1 byte of data. n 1, 49 2, 50 3, 51 Printer ID Printer model ID Type ID ROM version ID Specification TM-295/295P See table below Version x.xx ESC/POS ID (hexadecimal) 02H 00H Refer to current ROM version
n = 2, Type ID: Bit 0 1 2,3 4 5-6 7 Off/On Off Off Off Off Hex 00 00 00 00 Decimal 0 0 0 0 Function Two-byte character code not supported No Auto-cutter equipped. Undefined. Not used. Fixed to Off. Undefined. Not used. Fixed to Off.
5-17
GS a n
Enable/Disable Automatic Status Back Hexadecimal code: 1D 61 n Range: n = 0-255
Selects a status for ASB transmission. ASB is enabled if any status item is selected. The printer automatically transmits a 4-byte status message whenever the status changes. Multiple status items can be selected. When n=0, ASB is disabled. The default setting is n=0. If ASB is enabled when the printer is disabled by the ESC = command, the printer transmits a 4-byte status message whenever the status changes. The status items are selected using n as follows: Bit 0 Off/On Off On 1 Off On 2 Off On 3, 4 5 Off On 6-7 Hex 00 01 00 02 00 04 00 20 Decimal 0 1 0 2 0 4 0 32 Function Drawer kick-out connect pin 3 disabled. Drawer kick-out connect pin 3 enabled. On-line/Off-line disabled. On-line/Off-line enabled. Error status disabled. Error status enabled. Undefined. Slip paper sensor status disabled. Slip paper sensor status enabled. Undefined.
5-18
First byte (printer information) Bit 0 1 2 3 4 5 6 7 Off/On Off Off Off On Off On Off Off On Off Hex 00 00 00 04 00 08 00 00 40 00 Decimal 0 0 0 4 0 8 0 0 64 0 Function Not used. Fixed to Off. Not used. Fixed to Off. Drawer kick-out connector pin 3 is LOW Drawer kick-out connector pin 3 is HIGH. On-line. Off-line. Not used. Fixed to Off. Undefined Paper is not being fed by the paper feed buttons. Paper is being fed by the paper feed buttons. Not used. Fixed to Off.
Second byte (error information) Bit 0, 3 4 5 6 7 Off/On Off Off On Off Hex 00 00 20 00 Decimal 0 0 32 0 Function Undefined. Not used. Fixed to Off. No unrecoverable error. Unrecoverable error. Undefined. Not used. Fixed to Off.
Third byte (paper sensor information) Bit 0, 3 4 5 6 7 Off/On Off Off On Off On Off Hex 00 00 20 00 40 00 Decimal 0 0 32 0 64 0 Function Undefined. Not used. Fixed to Off. Slip paper detected by BOF sensor. Slip paper not detected by BOF sensor. Slip paper detected by TOF sensor. Slip paper not detected by TOF sensor. Not used. Fixed to Off.
Fourth byte (paper sensor information) Bit 0 1 2,3 4 5, 6 7 Off/On Off Off On Off Off Hex 00 00 02 00 00 Decimal 0 0 2 0 0 Function Slip selection: selected. Slip status: possible to print. Slip status: not possible to print. Not used. Not used. Fixed to Off. Undefined. Not used. Fixed to Off.
5-19
GS r n
Transmit status Hexadecimal code: 1D 72 n Range: n = 1-2; 49-50
Transmits the status specified by n as follows: n 1, 49 2, 50 Function Transmits paper sensor status Transmits drawer kick-out connector status
Paper sensor status (n = 1, 49): Bit 0 Off/On Off On 1 Off On 2 4 5, 6 7 On Off Hex 00 01 00 02 10 00 Decimal 0 1 0 2 16 0 Function Slip paper detected by BOF sensor. Slip paper not detected by BOF sensor. Slip paper detected by TOF sensor. Slip paper not detected by TOF sensor. Undefined Not used. Fixed to Off. Undefined Not used. Fixed to Off.
Drawer kick-out connector status (n = 2): Bit 0 Off/On Off On 1-3 4 5,6 7 On Off Off Hex 00 01 02 00 00 Decimal 0 1 2 0 0 Function Level of pin 3 is LOW. Level of pin 3 is HIGH. Undefined Not used. Fixed to On. Undefined. Not used. Fixed to Off.
5-20
Character Sets
In the character set, the firmware assigns a specific printable character to each byte of data. A character set may contain up to 255 different characters. The first 128 characters (from code 0 to 127) are standardized and represent the USA ASCII character set, which excludes all the European national characters and semigraphic symbols as well. The assignment of codes 128 to 255 varies from one country to another, from one type of hardware to another, from one operating system to another and often according to the application program used. Before selecting a character set, read the documentation provided with your operating system and application carefully. The section "Printable character set tables" indicates the codes that correspond to the characters in the resident character sets.
6-1
Character sets Code Page 437 (International) (*) Code Page 850 (Latin 1) (*) Code Page 852 (Latin 2) Code Page 858 (Multilingual-Euro) (*) Code Page 860 (Portuguese) (*) Code Page 863 (Canadian-French) (*) Code Page 864 (Arabic) (*) Code Page 865 (Nordic) (*) Code Page 866 (Cyrillic) (*) Code Page 254 (Space Page) (*) Code Page 255 (Space Page) (*) Code Page 254/255 (Space Page) National variants (*) TMU-590 emulation only See also the sections: Printable character set tables Readable MICR character set tables
Selection via setup (NATION: CP 437) or via software (see ESC t n) via setup (NATION: CP 850) or via software (see ESC t n) via setup (NATION: CP 852) via setup (NATION: CP 858) via setup (NATION: CP 860) or via software (see ESC t n) via setup (NATION: CP 863) or via software (see ESC t n) via setup (NATION: CP 864) via setup (NATION: CP 865) or via software (see ESC t n) via setup (NATION: CP 866) only via software (see ESC t n). only via software (see ESC t n). only via software (see ESC t n). only via software (see ESC R n).
6-2
6-3
6-4
6-5
6-6
6-7
6-8
6-9
6-10
6-11
6-12
6-13
6-14
National variants
Hexadecimal codes COUNTRY 0 U.S.A. 1 France 2 Germany 3 U. K. 4 Denmark I 5 Sweden 6 Italy 7 Spain 8 Japan 9 Norway 10 Denmark II 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E # $ @ [ \ ] ^ ` { | } ~ # $ ^ ` # $ ^ ` $ @ [ \ ] ^ ` { | } ~ # $ @ ^ ` ~ # # $ @ \ ^ Pt $ @ ^ ` } ~ # $ @ [ ] ^ ` { } ~ # # $
6-15
CMC7
6-16