Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 8 of 16

PcOS Series 150 Receipt/Validation/Journal Printers Programmer's Guide, pages 71 to 80

Pages 71 to 80 of 151

The original document is the PDF (746 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Ithaca Model 151, Ithaca Model 153 and Ithaca Model 152

Page 71

Programmer's Guide

PcOS Series 150

Control Codes Printer Status Set/Inquire an [ENQ] were issued. In parallel mode, only one status should be requested. If more than one bit is active, the resulting status on the paper error (PE) signal will not be defined. The reply to dynamic responses is the same as for inquire commands. That is, if the cash drawer status is to be sensed, the PE or ACK/NAK will be the same as for inquire commands.

12/14/99

Rev G

Page 61

Page 72

Control Codes

PcOS Series 150

Programmer's Guide

Printer Status Set/Inquire

Inquire Commands Function ASCII Hexadecimal Decimal IPCL EPOS Description

Inquire printer status [ENQ] <n> 05H <n> <5> <n> none [GS] r or [DLE] [ENQ] or [DLE] [EOT] This command inquires as to the printer’s status and returns the result. The following inquires are defined. Note: If the printer is off-line, inquires may not be accepted.

Function ASCII Hexadecimal Decimal Function Response

Function ASCII Hexadecimal Decimal Function Response

Cash Drawer 1 status Serial/Parallel, IEEE 1284 Parallel, non-IEEE 1284 ACK <1> (06H 01H) PE low Cash Drawer 1 is closed. NAK <1> (15H 01H) PE high Cash Drawer 1 is open. The cash drawer status is defined as open circuit being drawer closed. Inquire Cash Drawer 2 status [ENQ] <2> 05H 02H <5> <2> Cash Drawer 2 status Serial/Parallel, IEEE 1284 Parallel, non-IEEE 1284 ACK <2> (06H 02H) PE low Cash Drawer 2 is closed. NAK <2> (15H 02H) PE high Cash Drawer 2 is open. The cash drawer status is defined as open circuit being drawer closed.

Function

Inquire receipt-paper out

ASCII Hexadecimal Decimal

[ENQ] <4> 05H 04H <5> <4>

Function Response

Page 62

Inquire Cash Drawer 1 status [ENQ] <1> 05H 01H <5> <1>

Receipt-paper out Serial/Parallel, IEEE 1284 ACK <4> (06H 04H) There is receipt paper. NAK <4> (15H 04H) The receipt paper is exhausted.

Rev G

Parallel, non-IEEE 1284 PE low PE high

12/14/99

Page 73

Programmer's Guide

PcOS Series 150

Control Codes Printer Status Set/Inquire

Function ASCII Hexadecimal Decimal Function Response

Is the form position sensor detecting a form? Serial/Parallel, IEEE 1284 Parallel, non-IEEE 1284 ACK <6> (06H 06H) PE low The position sensor is clear. (No form present.) NAK <6> (15H 06H) PE high The form position sensor is blocked. (There is a form.)

Function

Inquire form clamp status

ASCII Hexadecimal Decimal

[ENQ] <7> 05H 07H <5> <7>

Function Response

Function ASCII Hexadecimal Decimal Function

Response

12/14/99

Inquire form position sensor status [ENQ] <6> 05H 06H <5> <6>

Inquire whether the form clamp is closed Serial/Parallel, IEEE 1284 Parallel, non-IEEE 1284 ACK <7> (06H 07H) PE low The clamp is closed. NAK <7> (15H 07H) PE high The clamp is not closed. (It is open or in jam position.) Is the buffer empty? Clear IEEE 1284 buffer. [ENQ] <9> 05H 09H <5> <9> This command allows the host to know when the print buffer is empty. If IEEE 1284 is active, this command also clears the response buffer. Serial/Parallel, IEEE 1284 Parallel, non-IEEE 1284 ACK <9> (06H 09H) PE low The buffer is empty. NAK <9> (15H 09H) PE high The buffer is not empty.

Rev G

Page 63

Page 74

Control Codes

PcOS Series 150

Programmer's Guide

Printer Status Set/Inquire Function ASCII Hexadecimal Decimal Function Response

Description

Function ASCII Hexadecimal Decimal Function Response

Description

Page 64

Request printer reset [ENQ] <10> 05H 0AH <5> <10> Reset printer Serial ACK <10> (06H 0AH) The command was accepted. NAK <10> (15H 0AH) The command was rejected.

Parallel mode No response in parallel mode.

This command is similar to asking for a power-on reset except no internal diagnostics are run. The internal print buffer will be cleared. The printer will be ready to except new information when the acknowledged (ACK) response is sent. In parallel mode, the INIT signal should be used because this command will be rejected. (In serial/parallel mode, the command will also be rejected). Inquire power cycle status [ENQ] <11> 05H 0BH <5> <11> Has the printer been power cycled since the last request? Serial/Parallel, IEEE 1284 Parallel, non-IEEE 1284 ACK <11> (06H 0BH) PE low Printer power has been cycled since last [ENQ] <11>. NAK <5> (15H 0BH) PE high Printer has not power cycled since last [ENQ] <11>. The first time after a reset this command will return [ACK] <11>, after that the command will return [NAK] <11>. This command allows the application to determine if the printer has been power cycled and needs to be reinitialized. The [ENQ] <10> command and the INIT signal on the parallel port will both cause the printer to return power-up status.

Rev G

12/14/99

Page 75

Programmer's Guide

PcOS Series 150

Control Codes Printer Status Set/Inquire

Function ASCII Hexadecimal Decimal Function Response Where

12/14/99

Inquire printer state [ENQ] <15> 05H 0FH <5> <15> Returns current printer state Serial/Parallel, IEEE1284

Parallel, non-IEEE 1284

[ACK] <15> <n> <r1> <r2>… Not supported via PE <15> is the echo of the command ID. n = number of return bytes + 40 (to prevent confusion with XON/XOFF). <r1>: Bit 0 = Form clamp closed Bit 1 = Undefined Bit 2 = Receipt paper out Bit 3 = Undefined Bit 4 = In error state (Waiting for error to be cleared) Bit 5 = Undefined Bit 6 = 1 always Bit 7 = 0 always <r2>: Forms processing state 040H No forms processing 044H Waiting to enter validation mode or for the paper path to be cleared to enter validation mode 045H Waiting for an internal delay time-out (auto clear) Other states may be active but will automatically be cleared.

Rev G

Page 65

Page 76

Control Codes

PcOS Series 150

Programmer's Guide

Printer Status Set/Inquire Function ASCII Hexadecimal Decimal Function Response Where

Page 66

Inquire all printer status [ENQ] <20> 05H 14H <5> <20> Returns all status flags Serial/Parallel, IEEE1284

Parallel, non-IEEE 1284

[ACK] <20> <n> <r1> <r2>… Not supported via PE <20> is the echo of the command ID. n = number of return bytes + 40 (to prevent confusion with XON/XOFF). <r1>: Bit 0 = Cash Drawer 1 open Bit 1 = Cash Drawer 2 open Bit 2 = Receipt paper out Bit 3 = Undefined Bit 4 = Undefined Bit 5 = Form sensor detects paper Bit 6 = 1 always Bit 7 = 0 always <r2>: Bit 0 = Form clamp closed Bit 1 = Undefined Bit 2 = Buffer empty Bit 3 = Printer power cycled (does not affect state of power cycled flag) Use [ENQ] <11> to reset. Bit 4 = Printer waiting in error mode Bit 5 = Undefined Bit 6 = 1 always Bit 7 = 0 always <r3>: Bit 0 = Receipt station selected Bit 1 = Top validation station selected Bit 2 = Undefined Bit 3 = Waiting for form Bit 4 = Undefined Bit 5 = Printer blocking print (Out of paper) Bit 6 = 1 always Bit 7 = 0 always <r4>: Bit 0 = Printer supports receipt Bit 1 = Printer supports inserted forms Bit 2 = Undefined Bit 3 = Printer supports cutter

Rev G

12/14/99

Page 77

Programmer's Guide

PcOS Series 150

Control Codes Printer Status Set/Inquire

Function ASCII Hexadecimal Decimal

Inquire printer ID [ENQ] <21> 05H 15H <5> <21>

Function

Returns printer IEEE 1284 ID string Serial/Parallel, IEEE1284 Parallel, non-IEEE 1284

Response Where

[ACK] <21> <n> {ID string} Not supported via PE <21> is the echo of the command ID. <n> = number of return bytes in the ID string {ID string} is the IEEE 1284 ID return string, which is as follows: MFG:Ithaca-Periph.; CMD:M150CL,IPCL; CLS:PRINTER; MDL:S150 PcOS; DES:Ithaca-Peripherals Series 150; REV:01.00; OPTS:$51xy Where x is a bit field defined as follows: Bit 0 = Alternate print zone Bit 1 = 0 not defined Bit 2 = 0 not defined Bit 3 = Always 0 Bit 4 = Always 1 Bit 5 = Always 1 Bit 6 = Always 0 Bit 7 = Always 0 and y is a bit field defined as follows: Bit 0 = Slip capability Bit 1 = Knife installed Bit 2 = MICR installed Bit 3 = Always 0 Bit 4 = Always 1 Bit 5 = Always 1 Bit 6 = Always 0 Bit 7 = Always 0

12/14/99

Rev G

Page 67

Page 78

Control Codes

PcOS Series 150

Programmer's Guide

Extended Diagnostics

Extended Diagnostic Commands Function

Extended diagnostics

ASCII Hexadecimal Decimal IPCL EPOS Where n =

[ESC] ~ <n> 1BH 7EH <27> <126> none [ESC] ~ <n> 0 Prints model, configuration, and serial number 1 <n> Sets vertical alignment (<n> is the alignment value.) Note: <n> will be written to the EEPROM if the EEPROM save sequence is processed. 2 Decreases vertical alignment adjustment 3 Increases vertical alignment adjustment 4 Prints a vertical adjustment alignment chart [ACK] Returns a configuration synchronization code C <a> <d> Changes EEPROM data at <a> to <d> (pass code locked) D Returns menu to default (pass code locked) I Returns ROM ID P Forces IEEE 1284 mode (This does not alter menu RAM.) R Reads and returns the menu RAM S Forces serial mode (This does not alter menu RAM.) T Clears the totals (pass code locked) W Writes menu RAM back to EEPROM (pass code locked) Z Halts the software [CAN] Forces the printer to power cycle

Description

These commands are designed to be used by the factory to help adjust and test the printer. There is no guarantee that these commands are valid and/or stable. They are not intended for use by the end user. To prevent accidental use of these commands, they must be enabled by an [ESC] y <8> command. In some cases, a pass code sequence is also required.

Write EEPROM

This command allows specific Menu RAM locations to be written. The definition of the locations is not defined here. This command is intended for use by the factory and is only active if a pass code is sent to the printer.

Page 68

Rev G

12/14/99

Page 79

Programmer's Guide

PcOS Series 150

Control Codes EPOS Codes

EPOS Codes This section lists the EPOS codes that are supported by the Series 150 Printer. Ithaca Peripherals has no control over how Epson extends or changes these control codes. Ithaca Peripherals makes no guarantees as to the operation of its printer when it replaces an Epson printer. The EPOS emulation is intended to make it as easy as possible to replace an Epson printer with an Ithaca Series 150 Printer. The following section lists the EPOS commands that are processed. They are as close as possible to Epson printers. The user must remember that the Series 150 Printer is not designed as a drop-in replacement for an Epson printer. The Series 150 Printer is designed to bring new and unique features and functionalities to a POS receipt/validation printer.

Real-time Status The Series 150 Printer is available in serial and parallel versions. When Epson supports parallel operation, the company redefines some of the standard IEEE 1284 interface signals to be special status lines. The Series 150 Printer does not alter the IEEE 1284 standard. If an application requires real-time status from the printer, the IEEE 1284 bidirectional protocol must be used. The Series 150 Printer supports real-time status. The EPOS real-time status commands [DLE] [ENQ] and [DLE] [EOT] are processed by the printer. The printer, however, does not support all the response bit fields. See the descriptions below.

EPOS Command Summary Please refer to the Epson ESC/POS Information Manual for field definitions. The following is a list of the EPOS commands that are supported. Command [BEL] [VT] [LF] [FF] [HT] [BS] [CR] [CAN] [ESC] [BEL] [ESC] SI [ESC] [SP] <n> [ESC] ! <n> [ESC] $ <nL> <nH> [ESC] % <n> [ESC] & ... [ESC] * <m> <n>1 <n>2 [ESC] - <n> [ESC] 0 [ESC] 1 [ESC] 2 [ESC] 3 <n> [ESC] 4 [ESC] 5

12/14/99

Comment Extension Extension

Description Activate sound buzzer. Set vertical tabs. Set line feed. Eject form. Set horizontal tabs.

Extension Extension Not the same Extension Extension

Not implemented Not implemented Extension

Extension Extension

Rev G

Set carriage returns. Cancel print. Activate sound buzzer. Set 24 cpi. Set right-side character spacing. Select print modes. Set absolute print position. Select or cancel the user-defined character set. Define user-defined characters. Select single-density bit image mode. Turn underline mode ON/OFF. Set eight lines per inch spacing. Set 7/72-inch spacing. Set 6 lines per inch spacing. Set line spacing. Set italic mode set. Set italic mode reset.

Page 69

Page 80

Control Codes

PcOS Series 150

Programmer's Guide

EPOS Codes [ESC] < [ESC] = [ESC] ? [ESC] @ [ESC] B <n>1 <n>2 <n>3 ... <n>i 0 [ESC] C <n> [ESC] D <n>1 <n>2 <n>3 ... <n>i 0 [ESC] E <n> [ESC] G <n> [ESC] J <n> [ESC] K <n> [ESC] M <n> [ESC] Q <n> [ESC] R <n> [ESC] U <n> [ESC] V <n> [ESC] [ <m> <n> [ESC] \ <nL> <nH> [ESC] ^ ... [ESC] a <n> [ESC] b <n> [ESC] c <n> [ESC] d <n> [ESC] e <n> [ESC] f <t1> <t2> [ESC] I [ESC] l <n> [ESC] m [ESC] p <m> <t1> <t2> [ESC] q [ESC] t <n>

Extension

Return home (not necessary with the Series 150 printer). Select peripheral device (Pass through). Cancel user-defined characters. Initialize printer. Set vertical tab stops.

Similar Extension

Set form length. Set horizontal tab stops.

Not the same Ignored

Not implemented

Similar

Similar Not implemented Similar

Similar

[ESC] u <n> [ESC] v [ESC] x <n> [ESC] { <n> [ESC] ~ <n> [GS] ! [GS] I <n> [GS] L ... [GS] W ... [GS] h <n> [GS] k <m> ... <0>

Page 70

Extension Extension Extension

Extension Extension

Rev G

Turn emphasize mode ON/OFF. Turn double-strike mode ON/OFF. Print and feed. Print and reverse feed. Select character font. Set right margin in characters. Select International Character Set. Turn unidirectional mode ON/OFF. Turn 90° clockwise mode ON/OFF. Select code page/print features (same as normal mode). Set relative print position. Set Epson 9-pin bit image. Set left, center, or right justify. Print bar code (same as normal mode). Select station. See description below. Feed <n> lines. Print and reverse feed. Set wait time. See description below. Set full cut. Set left margin in characters. Set partial cut. Generate pulse. See description below. Release form. Select Character Code Table (may vary from Epson Select Code). Return status of cash drawer (Serial and IEEE 1284 only). Return null byte to host. Set print font (same as Normal [ESC] I <n>). Turn upside down print ON/OFF. Test mode diagnostic commands. Select character size. Transmit specified ID (different than Epson). Set left margin in 1/160 inch. Select printable area in 1/160 inch. Set bar code height. Print bar code.

12/14/99