Top Banner
Printer PR 4 SL Epson Emulation PROGRAMMER'S MANUAL Code 475369 P-00
100
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: PR4SL_EmulazioneEpson

Printer

PR 4 SL Epson Emulation

PROGRAMMER'S MANUAL

Code 475369 P-00

Page 2: PR4SL_EmulazioneEpson

TABLE OF CONTENTS III

TABLE OF CONTENTS

1. Printer features .................................................................................................1-1

Applications ................................................................................................................... .............. 1-1Options........................................................................................................................ ................ 1-1Modules ............................................................................................................................... ........ 1-2

Printing module ........................................................................................................................ 1-2Document and cheque module.................................................................................................. 1-3Documents inserted from bottom, aligned on right .................................................................... 1-4Cheques inserted from bottom, aligned on right ........................................................................ 1-5Documents inserted from top, aligned on right .......................................................................... 1-6Cheques inserted from top, aligned on right .............................................................................. 1-7Printable area (documents) ....................................................................................................... 1-8

Right-aligned documents.............................................................................................................. 1-8Cheque reading ........................................................................................................................ 1-9

Devices and consumables.......................................................................................................... 1-10Sensors ........................................................................................................................ .......... 1-10Printhead...................................................................................................................... .......... 1-11MICR reader ........................................................................................................................... 1-11Ribbon cartridge ..................................................................................................................... 1-11

Printing specifications ........................................................................................................ ........ 1-12Slip........................................................................................................................... .............. 1-12Throughput ............................................................................................................................. 1-13

Physical and electrical characteristics ........................................................................................ 1-14Physical characteristics....................................................................................................... .... 1-14Electrical characteristics ..................................................................................................... .... 1-14Internal power supply.............................................................................................................. 1-14Display and drawer driver ....................................................................................................... 1-15Display output connector......................................................................................................... 1-16Display setting-up ............................................................................................................. ...... 1-17Display command set ............................................................................................................. 1-18Drawer driver .................................................................................................................. ........ 1-19

2. The operator console......................................................................................2-1

Keys ........................................................................................................................... ................. 2-1LED Indicators ............................................................................................................................. 2-1Console Diagnostics .................................................................................................................... 2-2Operator Test.................................................................................................................. ............. 2-3Font Test ...................................................................................................................... ............... 2-3Graphic Test ............................................................................................................................... . 2-3SETUP mode..................................................................................................................... .......... 2-3

3. SETUP from the Operator Console ................................................................3-1

Introduction............................................................................................................................... ... 3-1How to Access the Setup.............................................................................................................. 3-1The Key Functions .............................................................................................................. ......... 3-2Parameters .................................................................................................................................. 3-3Notes and Meaning of the Parameters.......................................................................................... 3-5How to select the parameters ....................................................................................................... 3-6

Page 3: PR4SL_EmulazioneEpson

IV TABLE OF CONTENTS

4. Epson TM-U590 Emulation .............................................................................4-1

Epson TM-U590 Command Index (by function) ............................................................................ 4-1Standard commands................................................................................................................. 4-2Print Margins .................................................................................................................. .......... 4-2Line Feed...................................................................................................................... ............ 4-2Print Pitches .................................................................................................................. ........... 4-2Positioning.................................................................................................................... ............ 4-2Printer control ........................................................................................................................... 4-2Controlling optional devices ...................................................................................................... 4-2Magnetic reading ...................................................................................................................... 4-3Graphics and user-defined characters....................................................................................... 4-3Print Attributes............................................................................................................... ........... 4-3Character Sets.......................................................................................................................... 4-3Various........................................................................................................................ ............. 4-3

Epson TM-U950 Command Index (by code) ................................................................................. 4-4

5. Epson TM 295 Emulation ................................................................................5-1

Epson TM 295 Command Index (by function) ............................................................................... 5-1Standard commands................................................................................................................. 5-2Print Margins .................................................................................................................. .......... 5-2Line Feed...................................................................................................................... ............ 5-2Print Pitches .................................................................................................................. ........... 5-2Printer control ........................................................................................................................... 5-2Controlling optional devices ...................................................................................................... 5-2Graphics and user-defined characters....................................................................................... 5-2Print Attributes............................................................................................................... ........... 5-2Character Sets.......................................................................................................................... 5-2Various........................................................................................................................ ............. 5-2

Epson TM-950 Command Index (by code).................................................................................... 5-3

6. Command Interpreter and Character Sets.....................................................6-1

Emulations..................................................................................................................... .............. 6-1Character Sets ............................................................................................................................. 6-1Printable character sets................................................................................................................ 6-2Printable character set tables ....................................................................................................... 6-3

Code Page 437 (International) .................................................................................................. 6-3Code Page 850 (Latin 1) ........................................................................................................... 6-4Code Page 852 (Latin 2) ........................................................................................................... 6-5Code Page 858 (Multilingual-Euro)............................................................................................ 6-6Code Page 860 (Portuguese) .................................................................................................... 6-7Code Page 863 (Canadian-French) ........................................................................................... 6-8Code Page 864 (Arabic)............................................................................................................ 6-9Code Page 865 (Nordic).......................................................................................................... 6-10Code Page 866 (Cyrillic) ......................................................................................................... 6-11Code Page 254 (Space Page), TMU 950 emulation................................................................. 6-12Code Page 255 (Space Page), TMU 950 emulation................................................................. 6-13Code Page 254/255 (Space Page), TM 950 emulation............................................................. 6-14National variants..................................................................................................................... 6-15

Readable MICR character set tables........................................................................................... 6-16E13B ........................................................................................................................... ........... 6-16CMC7........................................................................................................................... .......... 6-16

Page 4: PR4SL_EmulazioneEpson

Printer features 1-1

1. Printer features

ApplicationsThe Olivetti PR4 SL is a compact impact printer. It may be used at points of sale, inhospitals, 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. Internal power supply

b. Drawer driver

c. Additional document insertion plate

d. MICR reader

Page 5: PR4SL_EmulazioneEpson

1-2 Printer features

ModulesThe 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 headalong 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 tothe paper thickness by means of a spring mechanism.

Page 6: PR4SL_EmulazioneEpson

Printer features 1-3

Document and cheque module

The figure below is a front view illustrating handling of documents and cheques, insertedfrom bottom.

Page 7: PR4SL_EmulazioneEpson

1-4 Printer features

Documents inserted from bottom, aligned on right

Alignment Right hand side with automatic lifting roller or manually alignmentfor crumpled documents.

Paper present Photosensor + acoustic beep

Max. feed speed 10 cm/sec

Document width Min 85 mmMax 210 mm

Document length Min 70 mmMax 300

Paper weight: Single copy

Multicopy 1+1original

copyMulticopy 1+2

originalcopy

last copyMulticopy 1+3

originalcopies

last copyMulticopy 1+4

originalcopies

last copy

60-160 g/m2

Chemical40-8040-80

40-8040-6040-80

40-8040-6040-70

40-6040-6040-70

Carbon40-8040-80 (carbon 20-30)

40-8035-60 (carbon 20-30)40-80

40-6035-60 (carbon 20-30)40-70

40-6035-45 (carbon 20-30)40-60

Paper thickness Max. 0.35 mm

Upper margin Min. 8.5 mm (from edge to base line of first line)

Lower margin Min. 18 mm (from edge to base line of last line)

Left and right margins See Printable area

Vertical positioning Guaranteed by appropriate photosensor

Vertical position error Max. +/- 1.5 mm

Glued side of multicopyforms

Top OKOn left Feed with careOn right Feed with careBottom NO

Skew Max 2 mm

Page 8: PR4SL_EmulazioneEpson

Printer features 1-5

Cheques inserted from bottom, aligned on right

Note : For reading of the cheque code line.

Alignment Right hand side with automatic lifting roller or manually alignmentfor crumpled documents.

Paper present Photosensor + acoustic beep

Document width Min. 70 mmMax. 105 mm

Document length Min. 180 mmMax. 220

Paper weight: Single copy 60-160 g/m2

Paper thickness Max. 0.2 mm

Vertical positioning Open loop

Vertical position error Max. +/- 1.5 mm

Skew Max. 1.5 mm

Page 9: PR4SL_EmulazioneEpson

1-6 Printer features

Documents inserted from top, aligned on right

Alignment Right hand side, manual alignment

Paper present Photosensor + acoustic beep

Max. feed speed 10 cm/sec

Document width Min 85 mmMax 210 mm

Document length Min 70 mmMax 300

Paper weight: Single copy

Multicopy 1+1original

copyMulticopy 1+2

originalcopy

last copy

60-160 g/m2

Chemical40-8040-80

40-8040-6040-80

Paper thickness Max. 0.25 mm

Upper margin Min. 8.5 mm (from edge to base line of first line)

Lower margin Min. 18 mm (from edge to base line of last line)

Left and right margins See Printable area

Vertical positioning Guaranteed by appropriate photosensor

Vertical position error Max. +/- 1.5 mm

Glued side of multicopyforms

Top NOOn left NOOn right Feed with careBottom OK

Skew Max 2 mm on A4

Page 10: PR4SL_EmulazioneEpson

Printer features 1-7

Cheques inserted from top, aligned on right

Alignment Right hand side with manual alignment.

Paper present Photosensor + acoustic beep

Document height Min. 70 mmMax. 105 mm

Document width Min. 180 mmMax. 220

Paper weight: Single copy

Multicopy 1+1original

copy

90-160 g/m2

Chemical90-11060-80

Paper thickness Max. 0.2 mm

Vertical positioning Open loop

Vertical position error Max. +/- 1.5 mm

Skew Max. 1.5 mm on cheque width = 220 mm.

Page 11: PR4SL_EmulazioneEpson

1-8 Printer features

Printable area (documents)

The tables that follow the drawing give the values in mm of the right printing margins (D) andlength of the line of print (L) in numbers of characters, for right-aligned documents insertedfrom the bottom and those inserted from the top.All the values are given with reference to the selected print pitch (cpi ).

Right-aligned documents

cpi 12.5 16.66

L (crt) 66 88

D (mm) 7.09 7.09

NOTE: The D parameter can vary of: 0 mm / + 2 mm.

Page 12: PR4SL_EmulazioneEpson

Printer features 1-9

Cheque reading

This printer can read the code line of ISO 2033-1983 STD cheques. The characteristics ofthese cheques are shown in the figure below.

Read speed 25 cm/sec

Recognition speed CMC7: 20 crt/secE13B: TBD

Characters not recognized CMC7: 1/10,000E13B: 1/5,000

Characters replaced CMC7: 1/200,000E13B: 1/200,000

Page 13: PR4SL_EmulazioneEpson

1-10 Printer features

Devices and consumablesStandard devices for this printer are:

- the sensors

- the printhead

The PR4 SL printer can be fitted in the factory with the cheque code line magnetic readoption, the MICR reader.

The ribbon cartridge is the main consumable.

Sensors

The PR4 SL printer usually has the following electronic sensors on board:

1. front cover open sensor 2. paper alignment sensor (slip) 3. module start sensor (cheque) 4. module start sensors (slip).

Page 14: PR4SL_EmulazioneEpson

Printer features 1-11

Printhead

Technology: impact (balistic)

Needles: 9

Needle diameter: 0.3 mm

Matrix geometry: not aligned

Maximum frequency: 1566 Hz, when printing on rolls;1381 Hz, when printing on a document

Needle energizing time 210-260 µsec according to the currentvoltage and printhead temperature

Printhead life: > 600 million dots/needle

MICR reader

With the MICR reader option installed, the printer can read the CMC7 or E13B magneticcharacters of cheque code lines.

Legible cheques must be conforming to ISO recommendations 2033-1983.

Ribbon cartridge

Ink type: 1056

Ribbon type: black fabric

Ribbon length: 13 metres

Cartridge life: - Black ribbon: 4 million characters- Purple ribbon: 7 million characters

Replacement: with printer on or with manual positioning with the printer off

Page 15: PR4SL_EmulazioneEpson

1-12 Printer features

Printing specifications

Slip

Pitch 12,5 16,67

Print head frequency (Hz) 1381 1381

Carriage resolution (N. step/") 75 75

Character matrix 5+4 4+3

Epson character dimension (VxH mm) 3.1x1.6 3.1x1.3

Theoretical No.of columns (Crt+space) 12 9

Effective No.of columns (Crt+space) sequence 12 9

Basic grid (N/") 150 150

Carriage speed ("/sec) 18,416 18,416

Character/sec 230,2 306,93

Page 16: PR4SL_EmulazioneEpson

Printer features 1-13

Throughput

Line/sec when printing on slip

CPI 12,5 16,6

20 CRT line 7,19 9,34

30 CRT line 5,48 7,59

40 CRT line 4,42 6,4

66 CRT line 2,95 4,53

Page 17: PR4SL_EmulazioneEpson

1-14 Printer features

Physical and electrical characteristics

Physical characteristics

Width: 250 mm

Depth: 181 mm

Height: 150 mm

Weight: 3.2 Kg

Electrical characteristics

Power supply voltage 24 DCV +20% -10%

Minimum current (I min) 0.05 A

Maximum current (I max) 1.8 A

Peak current (I pk) 3.5 A (max. 10 sec)

Internal power supply

The internal power supply is an AC/DC switching adapter of the following characteristics:

Adapter components Electronic board with current socket, fuse, main filterand current rectifierOutput cable and connectorResin box

Versions and codes 115-230 V (universal, no selector)

Weight 220 g

Dimensions 119 mm x 60 mm x 34 mm

Cable length 350 mm

Page 18: PR4SL_EmulazioneEpson

Printer features 1-15

Display and drawer driver

The printer may on request be provided with an additional electronic board for controlling theEpson customer display (model DM D203-011) and opening of the drawers directly from theprinter.

Fitted on this board are a connector for the display and a connector for the drawers.

For the display specifications see the next sections:

Output connector

Setting-up

Command set

For the drawer opening driver specifications see Drawer driver.

Note: The display works if first the parameters "EMULATION: TMU-490" and then "DISPLAY: ENABLED"are selected via setup from the operator console.

Page 19: PR4SL_EmulazioneEpson

1-16 Printer features

Display output connector

1 Safety ground2 Transmit data to print3 Receive data from printer4 Indicates whether the printer can receive data or not5 Indicates whether the display can receive data or not6 Signal ground7 Power supply terminal8 Power supply retrace line

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.

Page 20: PR4SL_EmulazioneEpson

Printer features 1-17

Display setting-up

Interface type EIA/TIA RS 232 serial, with fixed parameters, selectable by DIP-switchas follows:- Baud rate: 9600- Bits/char: 8- Parity: Even

Interface type TTL (0/5 V) serial, asynchronous with fixedparameters:- Baud rate: 9600- Bits/char: 8- Parity: Even- Start bits: 1- Stop bits: 1

Page 21: PR4SL_EmulazioneEpson

1-18 Printer features

Display command set

The following commands control the display operation:

ASCII Hex Function

BS 08 Move cursor left

HT 09 Move cursor right

LF 10 Move cursor down

US LF 1F 0A Move cursor up

HOM 0B Move cursor to home position

CR 0D Move cursor to left-most position

US CR 1F 0D Move cursor to right-most position

US B 1F 42 Move cursor to bottom position

US $ n m 1F 24 n m Move cursor to specified position

CLR 0C Clear display screen

CAN 18 Clears the line containing the cursor

ESC = n iB 3D n Select peripheral device

ESC @ 1B 40 Initialise display

ESC & .. 1B 26 .. Define user-defined characters

ESC ? n 1B 3F n Cancel user-defined characters

ESC R n 1B 52 n Select an international character set

ESC t n 1B 74 n Select character code table

ESC W .. 1B 57 .. Select/cancel window range

US MD1 1F 01 Select overwrite mode

US MD2 1F 02 Select vertical scroll mode

US MD3 1F 03 Select horizontal scroll mode

US E n 1F 45 n Set display screen blink interval

US T .. 1F 54 .. Set and display time counter

US U 1F 55 Display time counter

US X n 1F 58 n Brightness adjustment

US r n 1F 72 n Select/cancel reverse characters

ESC v n 1F 76 n Status confirmation by DTR signal

US . n 1F 2E n Display period

US , n 1F 2C n Display comma

US ; n 1F 3B n Display semicolon (period and comma)

US # .. 1F 23 .. Turn annunciator on/off

US @ 1F 40 Execute self-test

US : 1F 3A Start/end macro definition

US ^ .. 1F 5E .. Execute and quit macro

Page 22: PR4SL_EmulazioneEpson

Printer features 1-19

Drawer driver

Output connector:

1 Frame ground2 Drawer kick-out drive signal3 Drawer open/close signal4...+ 24 V5 Drawer kick-out drive signal6 Signal ground

The optional driver for the drawers controls two solenoids and a drawer open/closed sensor,with the following characteristics:

Resistance of solenoids 24 ohm min

Output voltage 24 volts

Current 1 amp max.

Printer side connector Molex 52065-6615

The timing to open drawers 1 and 2 may be controlled from the line through command ESC pm n1 n2.

The two transistors of the driver cannot be energized together or continuously.

Page 23: PR4SL_EmulazioneEpson

Operator console 2-1

2. The operator consoleThe printer’s operator console consists of five LEDs and two keys.

Function of the keys depends on printer status (or set-up).

KeysThere are two keys on the console: key 1, on the left and key 2, on the right. Their functionsare 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 OperatorConsole)

LED IndicatorsThere are five LED indicators on the console, indicating respectively:

LED 1 - ON Lit, indicates printer powered electrically.

LED 2 -error

Lit, indicates printer locked.Flashing, indicates a mechanical error or paper jam.(*)

LED 3 Lit, indicates a document was inserted from the top.Flashing, indicates that the top feeder is active.

LED 4 Lit, indicates a document was inserted from the front.Flashing, indicates that the bottom feeder is active.

LED 5 Flashing, indicates a document ejected from the print area.

(*) See also the section Console Diagnostics , which illustrates the error or failuresignals provided by the LEDs and proposes suitable remedial action.

Led 1 Key 1 Key 2ON

Error 3355 � 6/� 6/

Page 24: PR4SL_EmulazioneEpson

Operator console 2-2

Console DiagnosticsVarious 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 Type of problem

1 a) Paper jamb) Carriage blockedc) Cutter blockedd) Print head overheating

2 Printer covers open

3 SETUP values in Eeprom read incorrectly

4 Photosensor setting parameters in Eeprom read incorrectly

5 Carriage position setting value in Eeprom read incorrectly

6 MICR reader setting value in Eeprom read incorrectly

Problems 1 and 2 can be eliminated by the operator (see the multilingual manual Usermanual PR4 SL).

To solve problem 3 regarding the setup, press key 2 to restore default settingparameters.

Problems 4-6 may be resolved by the Technical Support Service.

Page 25: PR4SL_EmulazioneEpson

Operator console 2-3

Operator TestThe 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 paperroll: printer firmware release, the list of configuration parameters and the relativevalues and the character set chosen.

To exit from the ‘Operator Test’ mode, it is necessary to turn the printer off.

Font TestThe 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 TestThe 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, inorder to check the graphical print quality.

[Graphic Test ]??

To exit from the ‘Font Test’ mode, it is necessary to turn the printer off.

SETUP modeSee the chapter SETUP from the operator console.

Page 26: PR4SL_EmulazioneEpson

SETUP from the Operator Console 3-1

3. SETUP from the Operator Console

IntroductionThe printer’s setup is used to access the factory configuration parameter settings. Theseparameters are already scheduled according to some predefined values (or those already setat factory level) and are used to provide special applications on the machine or the optionwhich has already been installed. The parameters used in the printer setup may be altered inorder to print according to user needs.

In order to avoid printer malfunction, when you prepare to change the parameters using thesetup, make sure that you are fully aware of all consequences of the changes you intend tomake. Call the technical support service only if absolutely necessary.

How to Access the Setup

Simply, you can access the setup mode tur ning on theprinter with the Key 2 pressed.

The printer is now in setup mode and therefore prints, on the slip paper, some data includingthe list of the setup parameters and the values which were previously set (not necessarily theinitial ones), the description of keys 1 and 2, and the first of the four menus available (if theprinter communication port is the serial port).

EMULATION: EPSON TM-U590 |BIT: 8 |BAUD: 9600 |STOP: 1 |PARITY: NONE |HANDSHAKE: XON/XOFF |RX ERROR: PRINT? |NATION: CP437 |CPI: 16.6 | Setup parameters and relative valuesCHEQUE PRINT: REAR |DISPLAY: DISABLE |AUTOLF: NO |RECEIVE BUFFER: 2048 |BUSY OFF-LINE: YES |HW-RES PIN 6: NO |HW-RES PIN 25: NO |TOP LOW: 1 |

CONSOLE KEY FUNCTIONS: |KEY 1 NEXT ITEM | Description of key functionsKEY 2 SELECTS THE ITEM |

EMULATION TMU 590 | First menu

Now, you can start programming the printer in dot matrix mode and modifying the setupparameters according to your needs (see later sections)

See also the sections:

• Parameters

• How to Select the Parameters.

Page 27: PR4SL_EmulazioneEpson

3-2 SETUP from the Operator Console

The Key FunctionsThe console key functions in setup mode are as follows:

KEY 1 prints the next parameter of the item selected or the next item of the menu

KEY 2 confirms selection of the last item or parameter printed; prints the firstparameter of the item selected or the next item of the menu

See also the sections:

• Parameters

• How to Select the Parameters.

Page 28: PR4SL_EmulazioneEpson

SETUP from the Operator Console 3-3

ParametersThe parameters that can be selected using the setup are grouped in the way illustratedbelow, which is also how they are printed by the machine:

-------------------------------------------------------------------

EMULATIONEMULATION: 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 PRINTI/O: EXIT

(*) The I/O menu is only printed if the printer is equipped with a serial port.

If the TMU 590 emulat ion is selected, then...

USERUSER: NATION - CPI - OTHER - EXITUSER: NATION NATION: CP 437 – CP 850 - CP 852 - CP 858 -…..CP 860 – CP 863 – CP 864 – CP 865 – CP 866USER: CPI CPI: 12.5 - 16.6USER: OTHER OTHER: DISPLAY DISPLAY: DISABLE - ENABLE.........OTHER: CHEQUE PRINT CHEQUE PRINT: REAR - FRONT OTHER: BUFFER BUFFER: 2 KB – 35 B OTHER: AUTO LF AUTO LF: NO - YES OTHER: BUSY OFFLINE BUSY OFFLINE: YES - NO OTHER: RS PIN 25 RS PIN 25: DISABLE - ENABLE OTHER: RS PIN 6 RS PIN 6: DISABLE – ENABLE OTHER: FEEDER FEEDER: FRONT - TOP OTHER: TOP LOW TOP LOW: 1 – 2 – 4 – 6 - FULLUSER: EXIT

SAVESAVE: PRINT - SAVE - DEFAULT - RESTART

-------------------------------------------------------------------

Page 29: PR4SL_EmulazioneEpson

3-4 SETUP from the Operator Console

..............................................................................................

If the TM 295 emulat ion is selected instead, then...

USERUSER: NATION - CPI - OTHER - EXITUSER: NATION NATION: CP 437 - CP 858USER: CPI CPI: 13.5 - 16.2USER: OTHER OTHER: BUFFER BUFFER: 2 KB – 69 B OTHER: AUTO LF AUTO LF: NO - YES OTHER: BUSY OFFLINE BUSY OFFLINE: YES - NO OTHER: RS PIN 25 RS PIN 25: DISABLE - ENABLE OTHER: RS PIN 6 RS PIN 6: DISABLE – ENABLEULLUSER: EXIT

SAVESAVE: PRINT - SAVE - DEFAULT - RESTART

-------------------------------------------------------------------

See also the section:

• Notes and Meaning of the P arameters

Page 30: PR4SL_EmulazioneEpson

SETUP from the Operator Console 3-5

Notes and Meaning of the ParametersThe setup parameters that follow are in alphabetical order to simplify consultation.

The values in bold are the factory default values.

EMULATION: TMU 590 - TM 295 Emulation type.

I/O Interface menu (Input/Output)

SERIAL Serial interface parameters menu selection.

BIT: 7 - 8 Data format, 7 or 8 bits.

BAUD: 9600 - 4800 - 2400 - 1200 Data transmission/reception rate.

STOP: 1 - 2 Number of stop bits.

PARITY: NONE - ODD - EVEN Parity control type.

HANDSHAKE: DTR - XON/XOFF Data handshaking protocol

RX ERROR: PRINT ? - IGNORED Data receive error: print a "?" or ignore.

NATION: CP 437 - CP 850 ... Character set national variants

CPI: 12 - 15 - 17.1 Print pitch selection, expressed as a number ofcharacters per inch.

CHEQUE PRINT: REAR - FRONT Print on cheque rear to validate (REAR) or oncheque front. See also the command FS a 1.

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 Auto line feed: (NO:disable - YES:enable)

BUSY OFFLINE: YES - NO The printer is BUSY if it is:- off-line or in receive buffer full (YES);- only in receive buffer full (NO).

RS PIN6: DISABLE - ENABLE ENABLE=pin 6 of the interface connector is used forthe reset signal;DISABLE= pin 6 of the interface connector is NOTused 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 usedfor the reset signal;DISABLE= pin 25 of the interface connector is NOTused for the reset signal.

Note: If RS PIN25= ENABLE, the printer is reset at SPACE on the RS-232C level or atHIGH on the TTL level.

FEEDER: FRONT - TOP Enables document feed from either the front(FRONT) or from the top (TOP).

TOP LOW: 1 - 2 - 4 - 6 - FULL Feed slip paper 1, 2, .. 6 lines or to the top of form(FULL).

PRINT Print the current setup parameters.

SAVE Stores the pre-settings selected in the current SET-UP section.

DEFAULT Restore the setup parameter values set in the factory

Page 31: PR4SL_EmulazioneEpson

3-6 SETUP from the Operator Console

RESTART Reinitialize the setup procedure, without storing thepre-settings set before.

How to select the parametersAfter access to the setup - see the section How to Access the Setup, the machine prints thefirst main menu "EMULATION".

At this point there are two alternatives:

1. If you press key 2 (you select the menu), the machine prints the first parameter of thismenu "EMULATION: TMU 590".

2. If you press key 1 (you do not select the menu), the machine prints the second mainmenu "I/O".

Assuming your selection was 1, there are again two alternatives:

a If you press key 2 (you select the parameter EMULATION: TMU 590), the machineprints the second main menu "I/O".

b If you press key 1 (you do not select the parameter EMULATION: TMU 590), themachine 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.

Page 32: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-1

4. Epson TM-U590 Emulation

Epson TM-U590 Command Index (by function)When you select the parameter EMULATION: TM-U590 from the setup, the machine recognizes all thecommands below, grouped according to their functions:

• Standard commands

• Print Margins

• Line Feed

• Print Pitches

• Positioning

• Printer Control

• Controlling optional devices

• Magnetic reading

• Graphics and user-defined characters

• Print Attributes

• Character Sets

• Various

Page 33: PR4SL_EmulazioneEpson

4-2 Epson TM-U950 Commands

Standard commandsHT 09 9 Horizontal tab 4-6LF 0A 10 Print and line feed 4-6FF 0C 12 Print and eject slip paper 4-6CR 0D 13 Carriage return 4-6CAN 18 24 Cancel print data in page mode 4-6

Print MarginsESC C n 1B 43 n 27 67 n Set slip paper eject length 4-15ESC a n 1B 61 n 27 97 n Select justification 4-19GS L .. 1D 4C .. 29 76 .. Set left margin 4-26GS ! .. 1D 21 .. 29 33 .. Selects character size 4-24GS W .. 1D 57 .. 29 87 .. Set printing area width 4-27

Line FeedESC J n 1B 4A n 27 74 n Print and feed paper 4-16ESC K n 1B 4B n 27 75 n Print and reverse feed 4-17ESC 2 1B 32 27 50 Select 1/6-inch line spacing 4-14ESC 3 n 1B 33 n 27 51 n Set line spacing 4-14GS P .. 1D 50 .. 29 80 .. Set horizontal and vertical motion units 4-26ESC d n 1B 64 n 27 100 n Print and feed n lines 4-22ESC e n 1B 65 n 27 101 n Print and reverse feed n lines 4-22ESC q 1B 71 Paper eject 4-23ESC F 1B 46 27 70 Set/cancel reverse eject (not operative) 4-16

Print PitchesESC SP n 1B 20 n 27 32 n Set right-side character spacing 4-10GS P .. 1D 50 .. 29 80 .. Set horizontal and vertical motion units 4-26

PositioningESC < 1B 3C 27 60 Return home 4-14ESC D .. 1B 44 .. 27 68 .. Set horizontal tab positions 4-15ESC W .. 1B 57 .. 27 87 .. Set printing area in page mode 4-18ESC \ .. 1B 5C .. 27 97 .. Set relative print position 4-19ESC $ nL nH 1B 24 .. 27 36 .. Set absolute print position 4-11GS \ .. 1D 5C .. 29 92 .. Set relative vertical print position in page mode 4-27

Printer controlDLE EOT n 10 04 n 16 4 n Real-time status transmission 4-7DLE ENQ n 10 05 n 16 5 n Real-time request to printer 4-10ESC @ 1B 40 27 64 Initialize printer 4-15GS I n 1D 49 n 29 73 n Transmit printer ID 4-25GS a n 1D 61 n 29 97 n Enable/Disable Automatic Status Back 4-27GS r n 1D 72 n 29 114 n Transmit status 4-30

Controlling optional devicesESC = n 1B 3D n 27 61 n Select peripheral device 4-14ESC p .. 1B 70 .. 27 112 .. Generate pulse 4-22DLE EOT BS n 10 04 08 n 17 04 08 n Transmit real-time MICR status 4-31FS b 1C 62 28 98 Request retransmission of chek paper reading

results4-33

FS c 1C 63 28 99 MICR mechanism cleaning 4-33

Page 34: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-3

Magnetic readingFS a 0 n 1C 61 30 n 28 97 48 n Read check paper 4-32FS a 1 1C 61 31 28 97 49 Load/check paper to print starting position 4-33FS a 2 1C 61 32 28 97 50 Eject check paper 4-33

Graphics and user-defined charactersESC * .. 1B 2A .. 27 42 .. Select bit-image mode 4-13GS * .. 1D 2A .. 29 42 .. Define down-loaded bit image 4-25GS / m 1D 2F m 29 47 m Print down-loaded bit image 4-25ESC ? n 1B 3F n 27 63 n Cancel user-defined characters 4-15ESC % n 1B 25 n 27 37 n Select/cancel user-defined character set 4-11ESC & .. 1B 26 .. 27 38 .. Define user-defined characters 4-12

Print AttributesESC - n 1B 2D n 27 45 n Turn underline mode on/off 4-13ESC ! n 1B 21 n 27 33 n Select print mode(s) 4-11ESC E n 1B 45 n 27 69 n Turn emphasized mode on/off 4-16ESC G n 1B 47 n 27 71 n Turn on/off double-strike mode 4-16

Character SetsESC R n 1B 52 n 27 82 n Select an international character set 4-17ESC t n 1B 74 n 27 116 n Select character code table 4-23

VariousESC FF 1B 0C 27 Print data in page mode 4-10ESC L 1B 4C 27 76 Selects page mode 4-17ESC T .. 1B 54 27 84 Selects print direction in page mode 4-18ESC { n 1B 7B n 27 123 n Turns on/off upside-down printing mode 4-24ESC U n 1B 55 n 27 85 n Turn on/off unidirectional printing mode 4-18ESC f .. 1B 66 .. 27 102 .. Set slip paper waiting time 4-22ESC c 0 n 1B 63 30 n 27 99 48 n Select paper feeder 4-20ESC c 3 n 1B 63 33 n 27 99 51 n Enable/disable paper end signal 4-20ESC c 4 n 1B 63 34 n 27 99 52 n Select paper sensor(s) to stop printing 4-21ESC c 5 n 1B 63 35 n 27 99 53 n Enable/disable panel buttons 4-21

Page 35: PR4SL_EmulazioneEpson

4-4 Epson TM-U950 Commands

Epson TM-U950 Command Index (by code)When you select the parameter EMULATION: TMU 590 from the Set-up, the machine recognizes allthe commands listed below, sorted according to their codes. The second part of the table groups theMICR reader commands (optional).

ASCII Hex Decimal Description Pag.HT Horizontal tabulation 4-6LF 0A 10 Print and line feed 4-6FF 0C 12 Print and eject slip paper 4-6CR 0D 13 Carriage return 4-6CAN 18 24 Cancel print data in page mode 4-6DLE EOT n 10 04 n 16 4 n Real-time status transmission 4-7DLE EOT BS n 10 04 08 n 17 04 08 n Transmit real-time MICR status 4-31DLE ENQ n 10 05 n 16 5 n Real-time request to printer 4-10ESC FF 1B 0C 27 Print data in page mode 4-10ESC SP n 1B 20 n 27 32 n Set right-side character spacing 4-10ESC ! n 1B 21 n 27 33 n Select print mode(s) 4-11ESC $ nL nH 1B 24 .. 27 36 .. Set absolute print position 4-11ESC % n 1B 25 n 27 37 n Select/cancel user-defined character set 4-11ESC & .. 1B 26 .. 27 38 .. Define user-defined characters 4-12ESC * .. 1B 2A .. 27 42 .. Select bit-image mode 4-13ESC - n 1B 2D n 27 45 n Turn underline mode on/off 4-13ESC 2 1B 32 27 50 Select 1/6-inch line spacing 4-13ESC 3 n 1B 33 n 27 51 n Set line spacing 4-14ESC < 1B 3C 27 60 Return home 4-14ESC = n 1B 3D n 27 61 n Select peripheral device 4-14ESC ? n 1B 3F n 27 63 n Cancel user-defined characters 4-15ESC @ 1B 40 27 64 Initialize printer 4-15ESC C n 1B 43 n 27 67 n Set slip paper eject length 4-15ESC D .. 1B 44 .. 27 68 .. Set horizontal tab positions 4-15ESC E n 1B 45 n 27 69 n Turn emphasized mode on/off 4-16ESC F 1B 46 27 70 Set/cancel reverse eject (not operative) 4-16ESC G n 1B 47 n 27 71 n Turn on/off double-strike mode 4-16ESC J n 1B 4A n 27 74 n Print and feed paper 4-16ESC K n 1B 4B n 27 75 n Print and reverse feed 4-17ESC L 1B 4C 27 76 Selects page mode 4-17ESC R n 1B 52 n 27 82 n Select an international character set 4-17ESC T .. 1B 54 27 84 Selects print direction in page mode 4-18ESC U n 1B 55 n 27 85 n Turn on/off unidirectional printing mode 4-18ESC W .. 1B 57 .. 27 87 .. Set printing area in page mode 4-18ESC \ .. 1B 5C .. 27 97 .. Set relative print position 4-19ESC a n 1B 61 n 27 97 n Select justification 4-19ESC c 0 n 1B 63 30 n 27 99 48 n Select paper feeder 4-20ESC c 3 n 1B 63 33 n 27 99 51 n Enable/disable paper end signal 4-20ESC c 4 n 1B 63 34 n 27 99 52 n Select paper sensor(s) to stop printing 4-21ESC c 5 n 1B 63 35 n 27 99 53 n Enable/disable panel buttons 4-21ESC d n 1B 64 n 27 100 n Print and feed n lines 4-22ESC e n 1B 65 n 27 101 n Print and reverse feed n lines 4-22ESC f .. 1B 66 .. 27 102 .. Set slip paper waiting time 4-22ESC p .. 1B 70 .. 27 112 .. Generate pulse 4-22ESC q 1B 71 Paper eject 4-23ESC t n 1B 74 n 27 116 n Select character code table 4-23

Page 36: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-5

ESC { n 1B 7B n 27 123 n Turns on/off upside-down printing mode 4-24GS ! .. 1D 21 .. 29 33 .. Selects character size 4-24GS * .. 1D 2A .. 29 42 .. Define down-loaded bit image 4-25GS / m 1D 2F m 29 47 m Print down-loaded bit image 4-25GS I n 1D 49 n 29 73 n Transmit printer ID 4-25GS L .. 1D 4C .. 29 76 .. Set left margin 4-26GS P .. 1D 50 .. 29 80 .. Set horizontal and vertical motion units 4-34GS W .. 1D 57 .. 29 87 .. Set printing area width 4-27GS \ .. 1D 5C .. 29 92 .. Set relative vertical print position in page mode 4-27GS a n 1D 61 n 29 97 n Enable/Disable Automatic Status Back 4-27GS r n 1D 72 n 29 114 n Transmit status 4-30

Comandi per il lettore MICR opzionale:

DLE EOT .. 10 04 .. 17 04 .. Transmit real-time MICR status 4-39FS a 0 n 1C 61 30 n 28 97 48 n Read check paper 4-32FS a 1 1C 61 31 28 97 49 Load/check paper to print starting position 4-33FS a 2 1C 61 32 28 97 50 Eject check paper 4-33FS b 1C 62 28 98 Request retransmission of chek paper reading

results4-33

FS c 1C 63 28 99 MICR mechanism cleaning 4-33

Page 37: PR4SL_EmulazioneEpson

4-6 Epson TM-U950 Commands

HT Horizontal tab

Hexadecimal code: 09

Moves the print position to the next horizontal tab position. This command is ignored unless the nexthorizontal 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 ejectionlength has been set by ESC C, the specified length is ejected, regardless of the slipejection 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.

Page 38: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-7

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 Transmit printer statusn=2 Transmit off-line statusn=3 Transmit error statusn=5 Transmit slip paper status

This command is ignored during a process of transmitting the check paper reading result (only with theMICR reader).

With a serial interface model, this command is executed even when the printer is off-line, the receivebuffer is full, or an error occurs.

With a parallel interface model, this command is not executed in the following status, because theprinter 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 Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 Off 00 0 Drawer kick out signal is LOW (connector pin 3)

On 04 4 Drawer kick out signal is HIGH (connector pin 3)

3 Off 00 0 On-line.

On 08 8 Off-line.

4 On 10 16 Not used. Fixed to On.

5,6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Page 39: PR4SL_EmulazioneEpson

4-8 Epson TM-U950 Commands

n=2: Off-line status

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 Off 00 0 Cover is closed.

On 04 4 Cover is open.

3 Off 00 0 Paper is not being fed by the paper feed button.

On 08 8 Paper is being fed by the paper feed button.

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 No paper end stop.

On 20 32 Printing stops due to the paper end.

6 Off 00 0 No error.

On 40 64 Error occurs.

7 Off 00 0 Not used. Fixed to Off.

Bit 5 The printer is not off-line when printing stops due to a paper end.

n=3: Error status

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 Off 00 0 No mechanical error.

On 04 4 Mechanical error occurred.

3 - - - Undefined.

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 No unrecoverable error.

On 20 32 Unrecoverable error occurred.

6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Page 40: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-9

n=5: Slip paper status

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 Off 00 0 Slip paper selected.

On 04 4 Slip paper not selected.

3 Off 00 0 Slip insertion waiting off.

On 08 8 Slip insertion waiting on.

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 TOF sensor: paper present.

On 20 32 TOF sensor: no paper.

6 Off 00 0 BOF sensor: paper present.

On 40 64 BOF sensor: no paper.

7 Off 00 0 Not used. Fixed to Off.

Page 41: PR4SL_EmulazioneEpson

4-10 Epson TM-U950 Commands

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 orcleaning sheet insertion waiting status.

The check paper or cleaning sheet insertion waiting status can be confirmed by the DLE EOT BScommand.

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 anerror without turning off the power.

With a serial interface model, this command is executed even when the printer is off-line, the receivebuffer 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 Request

1 Restarts printing from the beginning of the line wherean error occurred, after recovering from the error.

2 Recovers from an error after clearing the receive andprint buffers.

3 Recovers from an error after clearing the receive andprint buffers, cancels the check paper or cleaningsheet 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.

Page 42: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-11

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 Off/On Hex Decimal Function

0 Off 00 0 Character font 9 x 9 selected.

On 01 1 Character font 7 x 9 selected.

1, 2 - - - Undefined.

3 Off 00 0 Emphasized mode not selected.

On 08 8 Emphasized mode selected

4 Off 00 0 Double-height mode not selected

On 10 16 Double-height mode selected

5 Off 00 0 Double-width mode not selected

On 20 32 Double-width mode selected

6 - - - Undefined.

7 Off 00 0 Underline mode not selected

On 80 128 Underline mode selected

The default setting is n=0.

ESC $ nL nH Set absolute print position

Hexadecimal code: 1B 24 ..

Range: nL = 0-255nH = 0-255

Sets the distance from the beginning of the line to the position at wich subsequent characters are to beprinted.

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

References: ESC &

Page 43: PR4SL_EmulazioneEpson

4-12 Epson TM-U950 Commands

ESC & y c1 c2 [x1 d1...d(y × x1)]…[xk d1 … d(y × xk)] Define user-defined characters

Hexadecimal code: 1B 26 ..

Range: y=1c1-c2=32-126x=0-12 (for the font A)x=0-9 (for the font B)d1...d(y × xk) =0-255k = c2-c1+1

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 horizontaldirection.

Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can bedefined 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=1PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC";x=7: PRINT #1, CHR$(x);FOR i=1 TO y*xREAD d: PRINT #1, CHR$(d);NEXT ix=9: PRINT #1, CHR$(x);FOR i=1 TO y*xREAD d: PRINT #1, CHR$(d);NEXT ix=9: PRINT #1, CHR$(x);FOR i=1 TO y*xREAD d: PRINT #1, CHR$(d);NEXT iPRINT #1, CHR$(&H1B);"%";CHR$(0); ← Select the internal character setPRINT #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,&H00DATA &H18,&H24,&H42,&H81,&H42,&H24,&H18,&H00,&H00DATA &H18,&H28,&H4F,&H80,&H4F,&H28,&H18,&H00,&H00Defines theuser-definedcharacters as"A", "B", and "C"Select the user-definedcharacter set

Print Sample

A B C D E ← Characters from internal character set♦ ◊ ↑ D E ← Characters from user-defined character set

Page 44: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-13

ESC * m nL nH d1 … dk Select bit-image mode

Hexadecimal code: 1B 2A ..

Range: m = 0, 1nL = 0-255nH = 0-3d = 0-255k = 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 Horizontal Direction

m Mode Number of DotsSet adjacentdots

MaximumNumber of Dots

0 8-dot single-density

8 Permitted 400

1 8-dot double-density

8 Prohibited 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 onunderline mode.

Notes: - 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.

Default: 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.

Page 45: PR4SL_EmulazioneEpson

4-14 Epson TM-U950 Commands

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 positionmay 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 Peripheral Device Status

1 Only printer selected. (customer display is disabled)

2 Only customer display selected. (printer is disabled)

3 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 andDLE ENQ 2 commands.

If ASB is enabled when the printer is disabled by the ESC = command, the printer transmits a 4-bytestatus 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 DIPswitch 2-2 is on.

Page 46: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-15

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 theuser-defined character is cancelled, the corresponding pattern for the internal character isprinted.

- If a user-defined character has not been defined for the specified character code, theprinter ignores this command.

- If n is out of the range, this command is ignored.

References: ESC &, ESC %

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.72inches), it is a slip ejection error (recoverable error).

ESC D n1 ... nk NUL Set horizontal tab position

Hexadecimal code: 1B 44 n1 ... nk 00

Sets a horizontal tab to the left margin or n columns from the beginning of a line, with k indicating thetotal number of horizontal tab positions to be set.

A maximum of 32 tab positions can be set.

This command cancels any previous horizontal tab settings.

The default tab positions are every eight characters for the font A (9x9).

Page 47: PR4SL_EmulazioneEpson

4-16 Epson TM-U950 Commands

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, emphasizedmode 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-strikemode 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 byother 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.

Page 48: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-17

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 byother 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 ch aracter set

Hexadecimal code: 1B 52 n

Range: n = 0-10

Selects an international character set n from the following table:

n Character set0 U.S.A.1 France2 Germany3 U. K.4 Denmark I5 Sweden6 Italy7 Spain8 Japan9 Norway10 Denmark IINotes: - If n is out of the specified range, this command is ignored.

Default: n = 0

Page 49: PR4SL_EmulazioneEpson

4-18 Epson TM-U950 Commands

ESC T n Select print direct ion in page mode

Hexadecimal code: 1B 54 n

Range: n = 0÷3n= 48÷51

Selects the print direction and starting position in page mode.

n specifies the print direction and starting position as follows:

n Print direction Starting position

0, 48 Left to right Upper left

1, 49 Bottom to top Lower left

2, 50 Right to left Lower right

3, 51 Top to bottom Upper right

ESC U n Turn on/off unidi rect ional 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 imageto ensure that the top and bottom of the characters are aligned.

The default setting is n=0.

ESC W xL zH yL yH dxL dxH dyL dyH Set printing area in page mode

Hexadecimal code: 1B 57 xL zH yL yH dxL dxH dyL dyH

Range: xL zH yL yH dxL dxH dyL dyH = 0-255(except dxL=dxH=0 or dyL=dyH=0)

The horizontal starting position, vertical starting position, printing area width, and printing area heightare 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)]

Page 50: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-19

ESC \ nL nH Set relative print position

Hexadecimal code: 1B 5C ..

Range: nL = 0-255nH = 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 Justification

0, 48 Left justification

1, 49 Centering

2, 50 Right justification

This command is enabled only when processed at the beginning of a line.

Default: n = 0

Example:

Page 51: PR4SL_EmulazioneEpson

4-20 Epson TM-U950 Commands

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:

Bit Off/On Hex Decimal Function 0 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 printerwaits for the slip paper to be loaded.

- If the value of n is out of the specified range, the printer ignores this command.

Default: n = 3

ESC c 3 n Select paper sensor(s) to output paper end signal

Hexadecimal code: 1B 63 33 n

Range: n = 0÷255

Selects the paper sensor(s) whether to output paper-end signals or not to a parallele interface.

Bit Off/On Hex Decimal Function 0-3 - - - Undefined 4 Off 00 0 TOF sensor disabled. On 10 16 TOF sensor enabled. 5 Off 00 0 BOF sensor disabled. On 20 32 BOF sensor enabled. 6-7 - - - Undefined.

Notes: - 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 apaper-end, the paper-end signal is output.

- If both of these sensors are disabled, the paper-end signal is not output (alwayspaper present status).

- This command is enabled only with a parallel interface and is ignored with a serialinterface.

Default: n = 0

Page 52: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-21

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 thepaper 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 notstop 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 Off/On Hex Decimal Function

0-3 - - - Undefined

4 Off 00 0 TOF sensor disabled.

On 10 16 TOF sensor enabled.

5 Off 00 0 BOF sensor disabled.

On 20 32 BOF sensor enabled.

6-7 - - - 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 areenabled.

The default is n=0.

To prevent problems caused by accidentally pressing the buttons, use this command to disable thebuttons.

When the panel buttons are enabled by this command, if the cover is open, paper cannot be fed orreleased.

Page 53: PR4SL_EmulazioneEpson

4-22 Epson TM-U950 Commands

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-15t2 = 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 beinserted.

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, 49t1 = 0-255t2 = 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 issent to drawer kick-out connector pin 5.

Page 54: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-23

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 Page

0 0 PC 437 (USA, Standard Europe)

1 1 Katakana

2 2 PC 858 (Multilingual + Euro)

3 3 PC 860 (Portugal)

4 4 PC 863 (Canadian-French)

5 5 PC 865 (Nordic)

255 255 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.

Page 55: PR4SL_EmulazioneEpson

4-24 Epson TM-U950 Commands

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 Character size Height Width

0 Normal Normal Normal

1 Double-height Double Normal

16 Double-width Normal Double

17 Quadruple Double Double

Page 56: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-25

GS * x y d1 ... d(x × y × 8) Define downloaded bit image

Hexadecimal code: 1D 2A ..

Range: x = 1-255y = 1-255x x y = 1-404d = 0-255

Defines a downloaded bit image using x × 8 dots in the horizontal direction and y × 8 dots in the verticaldirection.

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 Mode Set Adjacent Dots inHorizontal

Maximum Number ofHorizontal Dots

0, 48 Normal Prohibited 800

1, 49 Double-width Permitted 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 Printer ID Specification ID (hexadecimal)

1, 49 Printer model ID TM-U590/U590P 21H

2, 50 Type ID See table below

3, 51 ROM version ID Version x.xx ESC/POS Refer to currentROM version

Page 57: PR4SL_EmulazioneEpson

4-26 Epson TM-U950 Commands

n = 2, Type ID:

Bit Off/On Hex Decimal Function

0 Off 00 0 Two-byte character code. Fixed to Off

1 On 02 2 No Auto-cutter equipped

*2 Off 00 0 DISPLAY: DISABLE (via setup)

On 04 4 DISPLAY: ENABLE (via setup)

3 Off 00 0 MICR function disabled

On 08 8 MICR function enabled

4 Off 00 0 Not used. Fixed to Off.

5-6 - - - Undefined.

8 Off 00 0 Not used. Fixed to Off.

* With a parallel interface model, bit 2 is fixed to Off.

GS L nL nH Set left margin

Hexadecimal code: 1D 4C nL nH

Range: nL = 0÷255nH = 0÷255

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 mot ion units

Hexadecimal code: 1D 50 ..

Range: x = 0-255y = 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 ofrelated 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.

Page 58: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-27

GS W nL nH Set printing area width

Hexadecimal code: 1D 57 nL nH

Range: nL = 0÷255nH = 0÷255

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 is1/150 inch.

Reference: GS L

GS \ nL nH Set relative vertical print posit ion in page mode

Hexadecimal code: 1D 5C nL nH

Range: nL = 0÷255nH = 0÷255

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 motionunit)] 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-bytestatus 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.

References: DLE EOT, GS r

Page 59: PR4SL_EmulazioneEpson

4-28 Epson TM-U950 Commands

The status items are selected using n as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Drawer kick-out connect pin 3 disabled.

On 01 1 Drawer kick-out connect pin 3 enabled.

1 Off 00 0 On-line/Off-line disabled.

On 02 2 On-line/Off-line enabled.

2 Off 00 0 Error status disabled.

On 04 4 Error status enabled.

3-4 - - - Undefined.

5 Off 00 0 Slip paper sensor and status disabled.

On 20 32 Slip paper sensor and status enabled.

6-7 - - - Undefined.

First byte (printer information)

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 Off 00 0 Not used. Fixed to Off.

2 Off 00 0 Drawer kick-out connector pin 3 is LOW

On 04 4 Drawer kick-out connector pin 3 is HIGH.

3 Off 00 0 On-line.

On 08 8 Off-line.

4 Off 00 0 Not used. Fixed to Off.

5 Off 00 0 Cover closed.

On 20 32 Cover open.

6 Off 00 0 Paper is not being fed by the paper feed button.

On 40 64 Paper is being fed by the paper feed button.

7 Off 00 0 Not used. Fixed to Off.

Second byte (error information)

Bit Off/On Hex Decimal Function

0, 1 - - - Undefined.

2 Off 00 0 No mechanical error.

On 04 4 Mechanical error has occurred.

3 - - - Undefined

4 Off 00 0 Not used. Fixed to Off.

5 Off 00 0 No unrecoverable error.

On 20 32 Unrecoverable error.

6 - - - Undefined

7 Off 00 0 Not used. Fixed to Off.

Page 60: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-29

Third byte (paper sensor information)

Bit Off/On Hex Decimal Function

0-3 - - - Undefined.

4 Off 00 0 Not used. Fixed to Off.

5 Off 00 0 TOF sensor: paper present.

On 20 32 TOF sensor: no paper present.

6 Off 00 0 BOF sensor: paper present.

On 40 64 BOF sensor: no paper present.

7 Off 00 0 Not used. Fixed to Off.

Fourth byte (paper sensor information)

Bit Off/On Hex Decimal Function

0 Off 00 0 Slip selection: selected.

On 01 1 Slip selection: not selected.

1 Off 00 0 Slip status: possible to print.

On 02 2 Slip status: not possible to print.

2,3 - - - Undefined.

4 Off 00 0 Not used. Fixed to Off.

5, 6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Page 61: PR4SL_EmulazioneEpson

4-30 Epson TM-U950 Commands

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 Function

1, 49 Transmits paper sensor status

2, 50 Transmits drawer kick-out connector status

3, 51 Transmits slip paper status

Paper sensor status (n = 1):

Bit Off/On Hex Decimal Function

0-3 - - - Undefined.

4 On 10 16 Not used. Fixed to Off.

5 Off 00 0 TOF sensor: paper present.

On 20 32 TOF sensor: paper not present.

6 Off 00 0 BOF sensor: paper present.

On 40 64 BOF sensor: paper not present.

7 Off 00 0 Not used. Fixed to Off.

Drawer kick-out connector status (n = 2):

Bit Off/On Hex Decimal Function

0 Off 00 0 Level of pin 3 is LOW.

On 01 1 Level of pin 3 is HIGH.

1-3 On 02 2 Undefined

4 Off 00 0 Not used. Fixed to On.

5,6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

n = 3: Slip status:

This command transmits the remaining printing area (times the number of dots for the internalcharacters 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 Hex Decimal0 to 8 00 0

9 to 17 01 1

18 to 26 02 2

27 to 35 03 3

36 to 44 04 4

45 to 53 05 5

54 or more 06 6

References: DLE EOT, GS a

Page 62: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-31

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 receivebuffer is full, or an error occurs.

With a parallel interface model, this command is not executed in the following status, because theprinter 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 Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 On 04 4 MICR function selected

Off 00 0 MICR function not selected

3 Off 00 0 Check paper or cleaning sheet insertion: not waiting

On 08 8 Check paper or cleaning sheet insertion: waiting

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 TOF sensor: paper present.

On 20 32 TOF sensor: no paper.

6 Off 00 0 BOF sensor: paper present.

On 40 64 BOF sensor: no paper.

7 Off 00 0 Not used. Fixed to Off.

References: DLE ENQ n, FS a 0 n, FS a 1, FS a 2, FS b, FS c.

Page 63: PR4SL_EmulazioneEpson

4-32 Epson TM-U950 Commands

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=1specifies a readable font as CMC7.

After ending MICR reading normally, the printer transmits “ header + reading status + identifiedcharacter 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 Off/On Hex Decimal Function

0 Off 00 0

On 01 1 Readable fonts. See Table below.

1 Off 00 0

On 02 2

2-3 - - - Undefined.

4 On 10 16 Re-reading not possible. Fixed to On.

5 Off 00 00 Reading normal.

On 20 32 Reading not normal.

6 On 40 64 Not used. Fixed to On.

7 Off 00 00 Not used. Fixed to Off.

Readable fonts:

Bit 1 Bit 0 Font

Off Off E13B

Off On CMC7

On Off Undefined

On On Undefined

References: DLE EOT BS, DLE ENQ, ESC c 0, ESC f, FS a 1, FS a 2.

Page 64: PR4SL_EmulazioneEpson

Epson TM-U950 Commands 4-33

FS a 1 Load check paper to print start ing 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 slippaper 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 slippaper 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 ch eck paper rea ding 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 clea ning

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.

Page 65: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-1

5. Epson TM 295 Emulation

Epson TM 295 Command Index (by function)When you select the parameter EMULATION: TM 295 from the setup, the machine recognizes all thecommands below, grouped according to their functions:

• Standard commands

• Print Margins

• Line Feed

• Print Pitches

• Printer Control

• Controlling optional devices

• Graphics and user-defined characters

• Print Attributes

• Character Sets

• Various

Page 66: PR4SL_EmulazioneEpson

5-2 Epson TM-950 Commands

Standard commandsLF 0A 10 Print and line feed 5-4FF 0C 12 Print and eject slip paper 5-4CR 0D 13 Carriage return 5-4CAN 18 24 Cancel print data in page mode 5-4

Print MarginsESC C n 1B 43 n 27 67 n Set slip paper eject length 5-10

Line FeedESC J n 1B 4A n 27 74 n Print and feed paper 5-10ESC K n 1B 4B n 27 75 n Print and reverse feed 5-11ESC 2 1B 32 27 50 Select 1/6-inch line spacing 5-9ESC 3 n 1B 33 n 27 51 n Set line spacing 5-9ESC d n 1B 64 n 27 100 n Print and feed n lines 5-14ESC e n 1B 65 n 27 101 n Print and reverse feed n lines 5-14ESC F 1B 46 27 70 Set/cancel reverse eject (not operative) 5-10ESC q 1B 71 Paper eject 5-15

Print PitchesESC SP n 1B 20 n 27 32 n Set right-side character spacing 5-6

Printer controlDLE EOT n 10 04 n 16 4 n Real-time status transmission 5-5ESC @ 1B 40 27 64 Initialize printer 5-10GS I n 1D 49 n 29 73 n Transmit printer ID 5-17GS a n 1D 61 n 29 97 n Enable/Disable Automatic Status Back 5-18GS r n 1D 72 n 29 114 n Transmit status 5-20ESC u n 1B 75 n 27 117 n Transmit peripheral device status 5-16ESC v 1B 76 27 118 Transmit paper sensor status 5-16

Controlling optional devicesESC = n 1B 3D n 27 61 n Select peripheral device 5-9ESC p .. 1B 70 .. 27 112 .. Generate pulse 5-15DLE EOT BS n 10 04 08 n 17 04 08 n Transmit real-time MICR status 5-39

Graphics and user-defined charactersESC * .. 1B 2A .. 27 42 .. Select bit-image mode 5-9ESC % n 1B 25 n 27 37 n Select/cancel user-defined character set 5-7ESC & .. 1B 26 .. 27 38 .. Define user-defined characters 5-8

Print AttributesESC ! n 1B 21 n 27 33 n Select print mode(s) 5-7

Character SetsESC R n 1B 52 n 27 82 n Select an international character set 5-11ESC t n 1B 74 n 27 116 n Select character code table 5-15

VariousESC D .. 1B 44 .. 27 68 .. Set horizontal tab positions 5-10ESC { n 1B 7B n 27 123 n Turns on/off upside-down printing mode 5-17ESC f .. 1B 66 .. 27 102 .. Set slip paper waiting time 5-14ESC c 3 n 1B 63 33 n 27 99 51 n Enable/disable paper end signal 5-13ESC c 4 n 1B 63 34 n 27 99 52 n Select paper sensor(s) to stop printing 5-13ESC c 5 n 1B 63 35 n 27 99 53 n Enable/disable panel buttons 5-14

Page 67: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-3

Epson TM-950 Command Index (by code)When you select the parameter EMULATION: TM 295 from the Set-up, the machine recognizes all thecommands listed below, sorted according to their codes.

ASCII Hex Decimal Description

LF 0A 10 Print and line feed 5-4FF 0C 12 Print and eject slip paper 5-4CR 0D 13 Carriage return 5-4CAN 18 24 Cancel print data in page mode 5-4DLE EOT n 10 04 n 16 4 n Real-time status transmission 5-5ESC SP n 1B 20 n 27 32 n Set right-side character spacing 5-6ESC ! n 1B 21 n 27 33 n Select print mode(s) 5-7ESC % n 1B 25 n 27 37 n Select/cancel user-defined character set 5-7ESC & .. 1B 26 .. 27 38 .. Define user-defined characters 5-8ESC * .. 1B 2A .. 27 42 .. Select bit-image mode 5-9ESC 2 1B 32 27 50 Select 1/4-inch line spacing 5-9ESC 3 n 1B 33 n 27 51 n Set line spacing 5-9ESC = n 1B 3D n 27 61 n Select peripheral device 5-9ESC @ 1B 40 27 64 Initialize printer 5-10ESC C n 1B 43 n 27 67 n Set slip paper eject length 5-10ESC D .. 1B 44 .. 27 68 .. Set horizontal tab positions 5-10ESC F 1B 46 27 70 Set/cancel reverse eject (not operative) 5-10ESC J n 1B 4A n 27 74 n Print and feed paper 5-10ESC K n 1B 4B n 27 75 n Print and reverse feed 5-11ESC R n 1B 52 n 27 82 n Select an international character set 5-11ESC c 3 n 1B 63 33 n 27 99 51 n Enable/disable paper end signal 5-13ESC c 4 n 1B 63 34 n 27 99 52 n Select paper sensor(s) to stop printing 5-13ESC c 5 n 1B 63 35 n 27 99 53 n Enable/disable panel buttons 5-14ESC d n 1B 64 n 27 100 n Print and feed n lines 5-14ESC e n 1B 65 n 27 101 n Print and reverse feed n lines 5-14ESC f .. 1B 66 .. 27 102 .. Set slip paper waiting time 5-14ESC p .. 1B 70 .. 27 112 .. Generate pulse 5-15ESC q 1B 71 Paper eject 5-15ESC t n 1B 74 n 27 116 n Select character code table 5-15ESC u n 1B 75 n 27 117 n Transmit peripheral device status 5-16ESC v 1B 76 27 118 Transmit paper sensor status 5-16ESC { n 1B 7B n 27 123 n Turns on/off upside-down printing mode 5-17GS I n 1D 49 n 29 73 n Transmit printer ID 5-17GS a n 1D 61 n 29 97 n Enable/Disable Automatic Status Back 5-18GS r n 1D 72 n 29 114 n Transmit status 5-20

Page 68: PR4SL_EmulazioneEpson

5-4 Epson TM-950 Commands

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: This command sets the print position to the beginning of the line.

Reference: 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 lengthhas been set by ESC C, the printer ejects the slip paper based on the current eject length regardless ofthe 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. Thebuffer data is deleted after being printed, but the slip paper is not ejected. The print position is set to thebeginning 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 aparallel 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 pagemode.

Page 69: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-5

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 executedeven if the printer is off-line or the receive buffer is full. However, with the parallel interface model, thiscommand cannot be executed if the printer is off-line or the receive buffer is full, since the printer isbusy and unable to receive data. n indicates the status function as follows:

n=1 Transmit printer statusn=2 Transmit off-line statusn=3 Transmit error statusn=5 Transmit slip paper status

n=1: Printer status

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 Off 00 0 Drawer kick out signal is LOW (connector pin 3)

On 04 4 Drawer kick out signal is HIGH (connector pin 3)

3 Off 00 0 On-line.

On 08 8 Off-line.

4 On 10 16 Not used. Fixed to On.

5,6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

n=2: Off-line status

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 - - - Undefined

3 Off 00 0 Paper is not being fed by the paper feed buttons.

On 08 8 Paper is being fed by the paper feed buttons.

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 No paper end stop.

On 20 32 Printing stops due to the paper end.

6 Off 00 0 No error.

On 40 64 Error occurs.

7 Off 00 0 Not used. Fixed to Off.

Bit 5 On (printing stop due to paper end) when printing stops due to paper-end detected by the paper end sensor or thepaper near-end sensor enabled by using the ESC c 4.

Page 70: PR4SL_EmulazioneEpson

5-6 Epson TM-950 Commands

n=3: Error status

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2-3 - - - Undefined

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 No unrecoverable error.

On 20 32 Unrecoverable error occurred.

6 - - - Undefined

7 Off 00 0 Not used. Fixed to Off.

n=5: Slip paper status

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 On 02 2 Not used. Fixed to On.

2 Off 00 0 Slip paper selected.

On 04 4 Does not wait for slip paper insertion.

3 Off 00 0 Slip insertion waiting off.

On 08 8 Slip insertion waiting on.

4 On 10 16 Not used. Fixed to On.

5 Off 00 0 Slip insertion sensor: paper present.

On 20 32 Slip insertion sensor: no paper.

6 Off 00 0 Slip ejection sensor: paper present.

On 40 64 Slip ejection sensor: no paper.

7 Off 00 0 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 betweencharacters. 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, theactual 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

Page 71: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-7

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 × 7font or underlined printing is selected or canceled in page mode, an internal flag is activated and thiscommand is enabled when the printer returns to standard mode.

Bit Off/On Hex Decimal Function

0 Off 00 0 Character font 5 x 7 selected.

On 01 1 Character font 7 x 7 selected.

1, 3 - - - Undefined.

4 Off 00 0 Double-height mode not selected

On 10 16 Double-height mode selected

5 Off 00 0 Double-width mode not selected

On 20 32 Double-width mode selected

6 - - - Undefined.

7 Off 00 0 Underline mode not selected

On 80 128 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: - The user-defined character and the downloaded bit image cannot be definedsimultaneously.

Default: n = 0

References: ESC &

Page 72: PR4SL_EmulazioneEpson

5-8 Epson TM-950 Commands

ESC & y c1 c2 [x1 d1...d(y × x1)]…[xk d1 … d(y × xk)] Define user-defined characters

Hexadecimal code: 1B 26 ..

Range: y=1c1-c2=32-126x=0-6 (5x7 font)x=0-10 (7x7 font)d1...d(y × xk) =0-255

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 horizontaldirection.

Character codes from the alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) can bedefined by c1 and c2.

Data (d) specifies a bit printed to 1 and not printed to 0. As the default, user-defined characters are notdefined and the internal character set is printed.

Once the user-defined characters have been defined, they are available until ESC @ is executed; theuser-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=1PRINT #1, CHR$(&H1B);"&";CHR$(y);"AC";x=7: PRINT #1, CHR$(x);FOR i=1 TO y*xREAD d: PRINT #1, CHR$(d);NEXT ix=9: PRINT #1, CHR$(x);FOR i=1 TO y*xREAD d: PRINT #1, CHR$(d);NEXT ix=9: PRINT #1, CHR$(x);FOR i=1 TO y*xREAD d: PRINT #1, CHR$(d);NEXT iPRINT #1, CHR$(&H1B);"%";CHR$(0); ← Select the internal character setPRINT #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,&H00DATA &H18,&H24,&H42,&H81,&H42,&H24,&H18,&H00,&H00DATA &H18,&H28,&H4F,&H80,&H4F,&H28,&H18,&H00,&H00Defines theuser-definedcharacters as"A", "B", and "C"Select the user-definedcharacter set

Print Sample

A B C D E ← Characters from internal character set♦ ◊ ↑ D E ← Characters from user-defined character set

Page 73: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-9

ESC * m nL nH d1 … dk Select bit-image mode

Hexadecimal code: 1B 2A ..

Range: m = 0, 1nL = 0-255nH = 0-3d = 0-255k = nL + nH x 255

Selects a bit-image mode using m for the number of dots specified by (nL + nH × 256). This commandis used to print a predefined picture or logo.

The modes selectable by m are as follows:

Vertical Direction Horizontal Direction

m ModeNumberof Dots

Dot Density(DPI)

Dot Density(DPI)

MaximumNumber of Dots

0 8-dot single-density

8 60 80 210

1 8-dot double-density

8 60 160 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 Off/On Hex Decimal Function

0 Off 00 0 Printer disabled.

On 01 1 Printer enabled.

1-7 - - - 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.

Page 74: PR4SL_EmulazioneEpson

5-10 Epson TM-950 Commands

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 whenthe 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 D n1 ... nk NUL Set horizontal tab position

Hexadecimal code: 1B 44 n1 ... nk 00

Sets a horizontal tab to the left margin or n columns from the beginning of a line, with k indicating thetotal number of horizontal tab positions to be set.

A maximum of 32 tab positions can be set.

This command cancels any previous horizontal tab settings.

The default tab positions are every eight characters for the 5 × 7 font.

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.

Page 75: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-11

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) inthe 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 effectin page mode.

Standard mode is selected as the default. When FF is entered in page mode, the printer returns tostandard mode.

ESC R n Select an international ch aracter set

Hexadecimal code: 1B 52 n

Range: n = 0-10

Selects an international character set n from the following table:

n Character set0 U.S.A.1 France2 Germany3 U. K.4 Denmark I5 Sweden6 Italy7 Spain8 Japan9 Norway10 Denmark IINotes: - If n is out of the specified range, this command is ignored.

Default: n = 0

Page 76: PR4SL_EmulazioneEpson

5-12 Epson TM-950 Commands

ESC T n Select print direct ion in page mode

Hexadecimal code: 1B 54 n

Range: n = 0÷3n= 48÷51

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 enabledwhen the printer selects page mode.

n Print direction Starting position

0, 48 Left to right Upper left

1, 49 Bottom to top Lower left

2, 50 Right to left Lower right

3, 51 Top to bottom Upper right

ESC W xL xH yL yH dxL dxH dyL dyH Set printing area in page mode

Hexadecimal code: 1B 57 xL zH yL yH dxL dxH dyL dyH

Range: xL zH yL yH dxL dxH dyL dyH = 1-255(except dxL=dxH=0 or dyL=dyH=0)

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

The default settings are as follows:

xL = xH = yL = yH = 0dxL = 210, dxH = 0, dyL = 224, dyH = 1

This command is enabled only in page mode. If this command is entered in standard mode, an internalflag is activated and the command is enabled when the printer selects page mode.

One dot equals 1/80 inch in the horizontal direction and 1/60 inch in the vertical direction.

Page 77: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-13

ESC c 3 n Select paper sensor(s) to output paper end signal

Hexadecimal code: 1B 63 33 n

Range: n = 0÷255

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, thepaper-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 Off/On Hex Decimal Function 0-3 - - - Undefined 4 Off 00 0 TOF sensor disabled. On 10 16 TOF sensor enabled. 5 Off 00 0 BOF sensor disabled. On 20 32 BOF sensor enabled. 6-7 - - - 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, printingstops.

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 forthe next sheet.

The paper sensor(s) used to stop printing are selected by using n as follows:

Bit Off/On Hex Decimal Function

0-3 - - - Undefined

4 Off 00 0 TOF sensor disabled.

On 10 16 TOF sensor enabled.

5 Off 00 0 BOF sensor disabled.

On 20 32 BOF sensor enabled.

6-7 - - - Undefined.

Page 78: PR4SL_EmulazioneEpson

5-14 Epson TM-950 Commands

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 todisable 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 = 0t2 = 0-64

Sets the time that the printer waits for slip paper to be inserted and the time from detection of the slip tothe start of printing.

Since t1=0, the slip paper waiting time is unlimited and the printer continues waiting for a slip to beinserted.

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).

Page 79: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-15

ESC p m t1 t2 Generate pulse

Hexadecimal code: 1B 70 ..

Range: m = 0, 1, 48, 49t1 = 0-255t2 = 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 issent 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 Page

0 0 PC 437 (USA, Standard Europe)

1 1 Katakana

2 2 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.

Page 80: PR4SL_EmulazioneEpson

5-16 Epson TM-950 Commands

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 forchecking the status because ESC u is not a recommended command.

Peripheral device status

Bit Off/On Hex Decimal Function0 Off 00 0 Drawer kick-out connector pin 3 is LOW.

On 10 16 Drawer kick-out connector pin 3 is HIGH.

1-3 - - - Undefined

4 Off 00 0 Not used. Fixed to Off.

5,6 - - - Undefined

7 Off 00 0 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 Off/On Hex Decimal Function0 Off 00 0 Slip paper detected by BOF sensor.

On 10 16 Slip paper not detected by BOF sensor.

1 Off 00 0 Slip paper detected by TOF sensor.

On 10 16 Slip paper not detected by TOF sensor.

2-3 - - - Undefined.

4 Off 00 0 Not used. Fixed to Off.

5,6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Page 81: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-17

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 toleft 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 printerreturns to standard mode.

Default: n = 0

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 Printer ID Specification ID (hexadecimal)

1, 49 Printer model ID TM-295/295P 02H

2, 50 Type ID See table below 00H

3, 51 ROM version ID Version x.xx ESC/POS Refer to current ROM version

n = 2, Type ID:

Bit Off/On Hex Decimal Function

0 Off 00 0 Two-byte character code not supported

1 Off 00 0 No Auto-cutter equipped.

2,3 - - - Undefined.

4 Off 00 0 Not used. Fixed to Off.

5-6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Page 82: PR4SL_EmulazioneEpson

5-18 Epson TM-950 Commands

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, theprinter transmits a 4-byte status message whenever the status changes.

The status items are selected using n as follows:

Bit Off/On Hex Decimal Function

0 Off 00 0 Drawer kick-out connect pin 3 disabled.

On 01 1 Drawer kick-out connect pin 3 enabled.

1 Off 00 0 On-line/Off-line disabled.

On 02 2 On-line/Off-line enabled.

2 Off 00 0 Error status disabled.

On 04 4 Error status enabled.

3, 4 - - - Undefined.

5 Off 00 0 Slip paper sensor status disabled.

On 20 32 Slip paper sensor status enabled.

6-7 - - - Undefined.

Page 83: PR4SL_EmulazioneEpson

Epson TM-950 Commands 5-19

First byte (printer informat ion)

Bit Off/On Hex Decimal Function

0 Off 00 0 Not used. Fixed to Off.

1 Off 00 0 Not used. Fixed to Off.

2 Off 00 0 Drawer kick-out connector pin 3 is LOW

On 04 4 Drawer kick-out connector pin 3 is HIGH.

3 Off 00 0 On-line.

On 08 8 Off-line.

4 Off 00 0 Not used. Fixed to Off.

5 - - - Undefined

6 Off 00 0 Paper is not being fed by the paper feed buttons.

On 40 64 Paper is being fed by the paper feed buttons.

7 Off 00 0 Not used. Fixed to Off.

Second byte ( error informat ion)

Bit Off/On Hex Decimal Function

0, 3 - - - Undefined.

4 Off 00 0 Not used. Fixed to Off.

5 Off 00 0 No unrecoverable error.

On 20 32 Unrecoverable error.

6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Third byte (paper sensor informat ion)

Bit Off/On Hex Decimal Function

0, 3 - - - Undefined.

4 Off 00 0 Not used. Fixed to Off.

5 Off 00 0 Slip paper detected by BOF sensor.

On 20 32 Slip paper not detected by BOF sensor.

6 Off 00 0 Slip paper detected by TOF sensor.

On 40 64 Slip paper not detected by TOF sensor.

7 Off 00 0 Not used. Fixed to Off.

Fourth byte (paper sensor info rmat ion)

Bit Off/On Hex Decimal Function

0 Off 00 0 Slip selection: selected.

1 Off 00 0 Slip status: possible to print.

On 02 2 Slip status: not possible to print.

2,3 - - - Not used.

4 Off 00 0 Not used. Fixed to Off.

5, 6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Page 84: PR4SL_EmulazioneEpson

5-20 Epson TM-950 Commands

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 Function

1, 49 Transmits paper sensor status

2, 50 Transmits drawer kick-out connector status

Paper sensor status (n = 1, 49):

Bit Off/On Hex Decimal Function

0 Off 00 0 Slip paper detected by BOF sensor.

On 01 1 Slip paper not detected by BOF sensor.

1 Off 00 0 Slip paper detected by TOF sensor.

On 02 2 Slip paper not detected by TOF sensor.

2 - - - Undefined

4 On 10 16 Not used. Fixed to Off.

5, 6 - - - Undefined

7 Off 00 0 Not used. Fixed to Off.

Drawer kick-out c onnector status (n = 2):

Bit Off/On Hex Decimal Function

0 Off 00 0 Level of pin 3 is LOW.

On 01 1 Level of pin 3 is HIGH.

1-3 On 02 2 Undefined

4 Off 00 0 Not used. Fixed to On.

5,6 - - - Undefined.

7 Off 00 0 Not used. Fixed to Off.

Page 85: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-1

6. Command Interpreter and Character Sets

EmulationsPrinters interpret the data they receive from the line in the form of special code sequences. If any ofthese sequences are sent, the printer performs the function that it represents. There is no commonmethod of controlling data. The leading printer manufacturers have created their own control"standards" according to the printing technology, applications to be used, etc. Other manufacturershave adapted to these standards, by making printers that behave exactly like ("emulate") the originalprinters; hence the concept of emulation.

To be compatible with various standards, a printer must be flexible and versatile. Your printer isparticularly so, as it can operate in several different emulations.

This printer operates with a set of codes divided into separate areas:

• Epson TMU 590 emulation environment

• Epson TM 295 emulation environment

The Epson TMU 590 command set is the most complete and comprises all the commands of theprinter in its full configuration.

The Epson TMU 295 emulation ensure continuity with the past, for users replacing their old EpsonTM 295 with the new TM 295.

Character SetsIn the character set, the firmware assigns a specific printable character to each byte of data. Acharacter set may contain up to 255 different characters. The first 128 characters (from code 0 to127) are standardized and represent the USA ASCII character set, which excludes all the Europeannational characters and semigraphic symbols as well.

The assignment of codes 128 to 255 varies from one country to another, from one type of hardwareto another, from one operating system to another and often according to the application programused. Before selecting a character set, read the documentation provided with your operating systemand application carefully.

The section "Printable character set tables" indicates the codes that correspond to the characters inthe resident character sets.

Page 86: PR4SL_EmulazioneEpson

6-2 Command Interpreter and Character Sets

Printable character setsThe printer recognizes and can print the following character sets, selected as follows:

Character sets Selection

Code Page 437 (International) via setup (NATION: CP 437)or via software (see ESC t n)

(*) Code Page 850 (Latin 1) via setup (NATION: CP 850)or via software (see ESC t n)

(*) Code Page 852 (Latin 2) via setup (NATION: CP 852)

Code Page 858 (Multilingual-Euro) via setup (NATION: CP 858)

(*) Code Page 860 (Portuguese) via setup (NATION: CP 860)or via software (see ESC t n)

(*) Code Page 863 (Canadian-French) via setup (NATION: CP 863)or via software (see ESC t n)

(*) Code Page 864 (Arabic) via setup (NATION: CP 864)

(*) Code Page 865 (Nordic) via setup (NATION: CP 865)or via software (see ESC t n)

(*) Code Page 866 (Cyrillic) via setup (NATION: CP 866)

(*) Code Page 254 (Space Page) only via software (see ESC t n).

(*) Code Page 255 (Space Page) only via software (see ESC t n).

(*) Code Page 254/255 (Space Page) only via software (see ESC t n).

National variants only via software (see ESC R n).

(*) TMU-590 emulation only

See also the sect ions:

Printable character set tables

Readable MICR character set tables

Page 87: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-3

Printable character set tables

Code Page 437 (International)

Page 88: PR4SL_EmulazioneEpson

6-4 Command Interpreter and Character Sets

Code Page 850 (Latin 1)

Page 89: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-5

Code Page 852 (Latin 2)

Page 90: PR4SL_EmulazioneEpson

6-6 Command Interpreter and Character Sets

Code Page 858 (Mult ilingual-Euro)

Page 91: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-7

Code Page 860 (Port uguese)

Page 92: PR4SL_EmulazioneEpson

6-8 Command Interpreter and Character Sets

Code Page 863 (Canadian-French)

Page 93: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-9

Code Page 864 (Arabic)

Page 94: PR4SL_EmulazioneEpson

6-10 Command Interpreter and Character Sets

Code Page 865 (Nordic)

Page 95: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-11

Code Page 866 (Cyr illic)

Page 96: PR4SL_EmulazioneEpson

6-12 Command Interpreter and Character Sets

Code Page 254 (Space Page), TMU 950 emulation

Space Page 254 at 16.6 cpi.At 12.5 cpi, character codes 80H to FFH are all spaces.

Page 97: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-13

Code Page 255 (Space Page), TMU 950 emulation

Space Page 255 at 16.6 cpi.At 12.5 cpi, character codes 80H to FFH are all spaces.

Page 98: PR4SL_EmulazioneEpson

6-14 Command Interpreter and Character Sets

Code Page 254/255 (Space Page), TM 950 emulation

Space Page 254/255 at 16.6 cpi.Character codes 80H to FFH are always all spaces, also when the 12.5 cpi character pitch isselected.

Page 99: PR4SL_EmulazioneEpson

Command Interpreter and Character Sets 6-15

National variants

Hexadecimal codes

COUNTRY 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E

0 U.S.A. # $ @ [ \ ] ^ ` { | } ~

1 France # $ à ° ç § ^ ` é ù è ¨

2 Germany # $ § Ä Ö Ü ^ ` ä ö ü ß

3 U. K. £ $ @ [ \ ] ^ ` { | } ~

4 Denmark I # $ @ Æ Ø Å ^ ` æ ø å ~

5 Sweden # ¤ É Ä Ö Å Ü é ä ö å ü

6 Italy # $ @ ° \ é ^ ù à ò è ì

7 Spain Pt $ @ ¡ Ñ ¿ ^ ` ¨ ñ } ~

8 Japan # $ @ [ ¥ ] ^ ` { ¦ } ~

9 Norway # ¤ É Æ Ø Å Ü é æ ø å ü

10 Denmark II # $ É Æ Ø Å Ü é æ ø å ü

Page 100: PR4SL_EmulazioneEpson

6-16 Command Interpreter and Character Sets

Readable MICR character set tables

E13B

CMC7