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 7 of 16

PcOS Series 150 Receipt/Validation/Journal Printers Programmer's Guide, pages 61 to 70

Pages 61 to 70 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 61

Programmer's Guide

PcOS Series 150

Control Codes Receipt Paper Out Sensor

Receipt Paper Out Sensor The paper out sensor in the Series 150 Printer, senses when the paper is exhausted. When the printer generates a paper out fault, the printer stops printing and goes off-line. If the printer is off-line, inquires may not be accepted. To prevent the printer from going off-line when paper out is sensed, you can send an [ESC] 8.

12/14/99

Function ASCII Hexadecimal Decimal IPCL EPOS

Disable paper out sensor [ESC] 8 1BH 38H <27> <56> &%PF none

Description

This command disables paper out sensing and is intended to temporally disable the paper out sensor. The printer will not stop printing or go off-line when paper out is sensed. The [ENQ] commands will still return paper out status.

Function ASCII Hexadecimal Decimal IPCL EPOS Description

Enable paper out sensor [ESC] 9 1BH 39H <27> <57> &%PO none This command enables paper sensing and is intended to reverse the effect of the disabled paper out sensor command. If the printer is out of paper when this command is issued, it will go off-line.

Rev G

Page 51

Page 62

Control Codes

PcOS Series 150

Programmer's Guide

Validation Operation

Validation Operation The form is inserted from the top and extends out the left side and/or top of the printer. It rests on a fixed stop. A maximum of 16 lines at 40 characters can be printed on a form. In this manual, top insertion will be termed validation mode.

Page 52

Function ASCII Hexadecimal Decimal IPCL EPOS

Open for validation [ESC] [DC1] 1BH 11H <27> <17> &%VO [ESC] c 0 <n>

Description

This command opens the form compensation assembly for validation. No automatic validation form sensing is performed. The application must poll the printer for validation forms present and then issue a close compensation command.

Function ASCII Hexadecimal Decimal IPCL EPOS

Close for validation [ESC] [DC3] 1BH 13H <27> <19> &%VC [ESC] c 0 <n>

Description

This command closes the form compensation assembly for validation. No automatic validation form sensing is performed.

Function ASCII Hexadecimal Decimal IPCL EPOS

Close for validation when form is sensed [ESC] [DC4] 1BH 14H <27> <20> &%VS [ESC] c 0 <n>

Description

This command closes the form compensation assembly for automatic validation form sensing by the printer.

Rev G

12/14/99

Page 63

Programmer's Guide

PcOS Series 150

Control Codes Validation Operation

Validation Operation Control The Series 150 Printer has several features that can be altered during operation. For example, the time delay between when a form is sensed and when the form clamp is activated can be changed. This allows the operation of the printer to be tailored to the application and the form being used. All feature control commands are extensions of the [ESC] [EM] sequence. They are defined as follows. Function ASCII Hexadecimal Decimal IPCL EPOS

Validation clamp delay [ESC] [EM] C <n> 1BH 19H 43H <n> <27> <25> <67> <n> &%ZC <m1> <m2> [ESC] f

Description

This command sets the clamp delay which is the time between when the form is sensed and when it is clamped. (Only the least four bits are used.) The default is configurable. 0 = 0 ms 1 = 50 ms 2 = 150 ms, and so on until 15 = 750 ms

Where <n>

Note: Once issued, the value will be used until the printer is power cycled or the command is reissued.

12/14/99

Function ASCII Hexadecimal Decimal IPCL EPOS

Set validation time-out [ESC] [EM] V <n> 1BH 19H 56H <n> <27> <25> <86> <n> &%ZV <m1> <m2> [ESC] f

Description

This command sets the time-out after a top validation command with autosense is issued and the printer returns to receipt mode. Where <n> is the delay in one minute increments; minimum is one minute; maximum is 15 minutes. If <n> = 0, the delay is set to no time-out (waits forever). The default is configurable.

Rev G

Page 53

Page 64

Control Codes

PcOS Series 150

Programmer's Guide

Validation Operation Function ASCII Hexadecimal Decimal IPCL EPOS

Set left/right print margin [ESC] X <n1> <n2> 1BH 58H <n1> <n2> <27> <88> <n1> <n2> none [ESC] l or [ESC] Q

Description Where

Set left and right print margin in characters from the home position. n1 = Left margin n2 = Right margin The absolute position depends on the current print pitch. 8 cpi

10 cpi

12 cpi

15 cpi

17.1 cpi

20 cpi

24 cpi

Maximum Columns

18

23

28

35

40

46

56

<n1>

1 to 18

1 to 23

1 to 28

1 to 35

1 to 40

1 to 46

1 to 56

<n2>

<n1>+2 to 18

<n1>+2 to 23

<n1>+3 to 28

<n1>+3 to 35

<n1>+4 to 40

<n1>+4 to 46

<n1>+4 to 56

If the left and right margins are set to the right of the current horizontal position, the new left and right margins become valid in the same line. If the left margin is set to the left of the current horizontal position and the right margin to the right of the current horizontal position, the right margin becomes valid in the same line, but the left margin setting becomes valid in the next line. When the left and right margins are set to the left of the current horizontal position, both left and right margin settings appear to become valid in the next line. This is because an AUTO CR is performed by the following data.

Page 54

Rev G

12/14/99

Page 65

Programmer's Guide

PcOS Series 150

Control Codes Miscellaneous Control

Miscellaneous Control Function

Clear print buffer

ASCII Hexadecimal Decimal IPCL EPOS

[CAN] 18H <24> &%RP [CAN]

Description

This command clears any unprinted information in the printer received before the [CAN]. If the input buffer is not being processed because the printer is out of paper or the form is not inserted, the [CAN] command will not be processed until after the error is cleared. The [CAN] command does not restore default conditions. It only clears the print buffers.

Function ASCII Hexadecimal Decimal IPCL IPCL EPOS

Open cash drawer [ESC] x <n> 1BH 78H <n> <27> <120> <n> &%D1 for Cash Drawer 1 &%D2 for Cash Drawer 2 [ESC] p

Description

This command energizes cash drawer n for 150 ms. Where <n> = <1> (01H) or 1 (31H) for Cash Drawer 1 and <n> = <2> (02H) or 2 (32H) for Cash Drawer 2. The time period the drawer is activated can be changed in the configuration menu. The activation time can be set from 25 to 250 ms. Note: The open cash drawer commands are processed as part of print data. They are not processed until they are found in the input buffer by the print processor. They are not immediate commands. Note: Cash Drawer 2 is factory configurable in one of two modes. Either Pin 1 or 5 is active depending on an internal jumper setting. The factory default is Pin 1. Cash Drawer 1 is always on Pin 5. The cash drawer status is defined as an open circuit for drawer closed.

12/14/99

Rev G

Page 55

Page 66

Control Codes

PcOS Series 150

Programmer's Guide

Miscellaneous Control Function ASCII Hexadecimal Decimal IPCL EPOS Function

Query marker [ESC] q <n> 1BH 71H <n> <27> <113> none none Return status to host Serial/IEEE1284

Parallel, non-IEEE 1284

Response

[SOH] <n>…

Not supported via PE

Description

This command can be placed in the print data and, when processed by the printer, will return a progress status marker. The value of <n> can be any 8-bit value. It is returned to the host unaltered. The intent is for it to be a sequence number. This command can be used to track the print progress of the printer or verify that the data has been printed. Note: This command is a line terminator that causes the printer to print all previous data. If a normal line terminator (like a [CR]) is not supplied, right justify and autocenter will not function correctly. All data will be left justified. [ESC] q does not perform a [CR] or [LF] function.

Page 56

Rev G

12/14/99

Page 67

Programmer's Guide

PcOS Series 150

Control Codes Miscellaneous Control

Function ASCII Hexadecimal Decimal IPCL EPOS

Print suppress and data pass through [ESC] < <n> 1BH 3CH <n> <27> <60> <n> &%PT <n> [ESC] = <n>

Description Where

This command provides print suppress and data pass through features. Bit 0 Printer select Bit 1 Pass through On Bits 2-7 Undefined If Bit 0 is clear, the printer will stop processing data. If Bit 1 is set, the data will be passed through the printer and sent out on the serial port. Notes: The pass through command is processed as part of print data. The pass through command is not processed until it is found in the input buffer by the print processor. It is not an immediate command. The printer must be on-line and ready to activate the command. The operation of the command can be altered by the print suppress configuration.

Function ASCII Hexadecimal Decimal IPCL EPOS Where n

Control feature commands [ESC] y <n> 1BH 79H <n> <27> <121> <n> &%Y0 through 8 [ESC] y <n> 0 Disables quiet mode operation 1 Enables quiet mode operation 2 Reinitializes the printer and forces IBM mode 3 Reinitializes the printer and forces EPOS mode 4 Disables IPCL commands 5 Enables IPCL commands Note: Once disabled, this command will not be a valid IPCL code. 8 Enables extended diagnostics

Description

This command enables and disables command set features. It is possible that the IPCL commands will interfere with print data. If this is the case, they can be disabled with an [ESC] y <4>. Notes: Quiet mode operation prints by making two passes for every pass in normal mode. It generates less noise because only half the print wires are activated in each pass. This mode is very slow and should only be used if quiet operation is needed. ESC y <2> and <3> allow the printer to switch between Normal and EPOS modes. When the switch takes place, the current print buffer is printed and the printer reinitializes. These commands do not permanently change the configuration. A power on reset will restore the mode that was configured in menu mode. A reset by command or from the INIT pin will not restore the mode. EPOS Note: This command is active in EPOS mode; however, Mode 5 is disabled.

12/14/99

Rev G

Page 57

Page 68

Control Codes

PcOS Series 150

Programmer's Guide

Miscellaneous Control Function ASCII Hexadecimal Decimal IPCL EPOS Where n

Enable Dynamic Response [ESC] w <n> 1BH 77H <n> <27> <119> <n> none [GS] a <n> defines the features that cause dynamic responses. Bit 0 Cash Drawer 0 ACK/NAK <1> Bit 1 Cash Drawer 1 ACK/NAK <2> Bit 2 Paper out status ACK/NAK <4> Bit 3 Form in sensor ACK/NAK <5> Bit 6 Form clamp status ACK/NAK <7> Dynamic status can be used to allow the host to sense status changes without sending repeated inquire ([ENQ]) commands. The operation of the dynamic response varies depending on the configuration of the printer. If the printer is configured for Serial or IEEE 1284 operation, more than one status can be sensed as the printer will respond to status changes as if 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. Note: Power up default is paper out on PE signal.

Function ASCII Hexadecimal Decimal IPCL EPOS

Activate cutter [ESC] v 1BH 76H <27> <118> &%FC Cut [ESC] m or [ESC] I

Description

This command cuts the receipt tape above the current print line. Note: This command is only effective on printers with a knife.

Page 58

Rev G

12/14/99

Page 69

Programmer's Guide

PcOS Series 150

Control Codes Printer Status Set/Inquire

Printer Status Set/Inquire The Series 150 Printer is designed to be used as part of an automated system where the host computer makes every attempt to correct problems with the printer. In addition, the host application requires that it be able to obtain more information from the printer than is typical of normal computer printers. A normal computer printer does not have to deal with cash drawers or validation. As a result, the standard printer protocol must be extended to address the additional features of a POS printer. The Series 150 Printer has defined a set of status inquiry commands that will allow a host to obtain information about the printer and devices connected to it. The method chosen to interact with the computer is designed to allow a reasonable approach to the host application. It will not always be possible for an existing application to use the inquire commands unless the communication drivers are available to the programmer. All inquire commands require a response from the printer. For this reason, the parallel, non-IEEE 1284; IEEE 1284; and serial operation of inquire commands are different. In serial and parallel, IEEE 1284 modes, all inquire commands are responded to by an acknowledged (ACK) or not acknowledged (NAK) and then the command ID. In parallel non-IEEE 1284 operation, the paper error (PE) signal is driven as a response to an inquire.

Parallel, Non-IEEE 1284 Mode Inquire There are several status inquiry commands and inquire control commands. The inquire character is treated differently from all other characters received by the printer. Under normal operating conditions, all information that is sent to the printer is received and placed in a holding buffer. The information stays in the holding buffer until the printer prints or interprets it. The inquire command in non-IEEE 1284 mode presents a few problems for the printer to decode. In parallel mode, the inquire character is intercepted before it is placed in the print buffer. The next character is looked at to determine if it is a valid inquire command. If it is valid or a graphic, further input is then blocked by not removing the busy status. The buffer is then emptied by the printer during normal operation. If the inquire was false, the command decoder processes a command. If an inquire is found in the data stream at this time, input is unblocked and normal operation is resumed. The printer is unaffected by this unintended operation except that the buffer efficiency is reduced. If the inquire was real, the inquire is processed. This ensures that the response to the inquire is synchronized with the inquire request and that no false inquires are processed. In parallel, non-IEEE 1284 operation, there is no easy way to return complex information to the host. For this reason, the paper error (PE) signal is used for inquire responses. The fault signal will not be asserted by inquire requests. If a true PE is being signaled, the fault line will also be driven. It is, therefore, possible to distinguish between a paper error and an inquire response. In parallel mode, the printer will respond to the inquire before the parallel sequence is complete. In other words, when the parallel port acknowledges the ID part of the inquire sequence, the PE signal is valid. The host must, however, remember what status was requested as the printer has no way of signaling that information. In addition, the host must not interpret the PE signal as an error but as a response to an inquire. There are two ways in which inquire responses can be signaled. The PE can be static or dynamic. When a dynamic PE occurs, the inquiry is sent once, and the PE signal follows the requested status. If the PE remains static, the status will not change.

12/14/99

Rev G

Page 59

Page 70

Control Codes

PcOS Series 150

Programmer's Guide

Printer Status Set/Inquire Receipt paper status is always dynamic. If the PE signal is to be returned to the valid paper error state, an [ENQ] <4> should be issued when all other inquires are completed.

PE DATA

Valid ID

Next

STROBE BUSY ACK

Figure 13 Paper-error to inquire-request timing

Serial Mode Inquire In serial mode, inquires are not handled any differently than other commands. All inquire commands require a response from the printer and are responded to by an acknowledged (ACK) or not acknowledged (NAK) and then the command ID. The serial ACK or NAK responses are always uniform and followed with a command ID. This makes the design of the host application easier because the response can be identified and the same format is always followed. The printer always accepts serial data. When the printer is off-line, serial data is still accepted. It is possible to send inquire commands to the printer even if it is off-line. Because inquire commands are processed before they go in the buffer, the printer will respond even when it is busy printing. In serial mode, it is desirable that the response to an inquire be received by the host before another inquire command is issued to the printer. When the printer receives an inquire, it must generate a response. If inquires are sent to the printer too fast, the printer could overrun its output buffer.

Parallel, IEEE 1284 Mode Inquire In parallel, IEEE 1284 mode, there is a way to return status information to the host. After the host makes an inquire request, the host can activate parallel, IEEE 1284 Mode 0 reverse channel and wait for a response from the printer. The response to the inquire is identical to serial mode. The printer will always accept IEEE 1284 reverse channel requests but will not accept inquire commands when off-line. It is possible to obtain status when off-line by placing the printer in dynamic response mode before the printer goes off-line. The IEEE 1284 reverse channel will then respond to status changes even if the printer is off-line.

Dynamic Response Mode Dynamic status, [ESC] w <n>, can be used to allow the host to sense status changes without sending repeated inquiry commands. The operation of the dynamic response varies depending on the configuration of the printer. If the printer is configured for serial or parallel, IEEE 1284 operation, more than one status can be sensed as the printer will respond to status changes as if

Page 60

Rev G

12/14/99