The text of a manual · part 12 of 16
PcOS Series 150 Receipt/Validation/Journal Printers Programmer's Guide, pages 111 to 120
Pages 111 to 120 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 111
Programmer's Guide
PcOS Series 150
Configuration Mode
5 – Swedish I 6 – Italian 7 – Spanish I General
Zero Character
Interface Parallel Mode
Parallel Link Options
Parity
Bit Data
Protocol
12/14/99
Recommendation 8 – Japanese 9 – Norwegian 10 – Danish II 11 – Spanish II 12 – Latin American 13 – French Canadian 14 – Dutch 15 – Swedish II 16 – Swedish III 17 – Swedish IV 18 – Turkish 19 – Swiss I 20 – Swiss II 64 – Publisher The zero character can be configured to be unslashed or slashed in all character sets except IBM 64 and 65 which override this setting. Unslashed Slashed The Series 150 Printer supports either a serial or parallel communication link. This setting should not be changed except from parallel to IEEE 1284. Parallel IEEE 1284 The parallel option features define how the strobe, busy, and acknowledge signals operate. In normal mode, the printer follows the standard (Centronics) parallel port conventions. With Options 1 and 3, the acknowledge and busy signals change at the same time. This is sometimes referred to as Ack-after-Busy. Options 2 and 3 force busy high on the rising edge of strobe. This is sometimes referred to as Busy-whileStrobe timing. In all cases, the data is latched on the rising edge of the strobe. In most cases, the normal timing mode will give the best and most universal results. Normal Ack-while-Busy Option 1 Ack-after-Busy Option 2 Ack-while-Busy Option 3 Ack-after-Busy The serial mode parity can be set to none, odd, or even. None Odd Even The serial bit format can be set to 8 or 7. 8 7 The flow control protocol/serial link can be set to Ready/Busy or XON/XOFF. If XON/XOFF is selected, Ready/Busy also functions. Ready/Busy XON/XOFF
Rev G
Page 101
Page 112
Configuration Mode
General Baud Rate
SSD Signal
DTR/RTS Signal
CTS Signal
DSR Signal
Off-line
Microsoft Windows Plug and Play
Multidrop
Page 102
PcOS Series 150
Programmer's Guide
Recommendation The bit rate of the printer can be set to 19200, 9600, 4800, 2400, 1200, 600, or 300 bits per second. The same bit rate is for send and receive. 19200 bits per second 9600 bits per second 4800 bits per second 2400 bits per second 1200 bits per second 600 bits per second 300 bits per second The serial port SSD signal can be configured to provide flow control. If SSD is active, it will toggle to false when the buffer is full. Note: SSD flow control is only available on the optional 25-pin serial interface. Not used Active The serial port DTR and/or RTS signal can be configured to provide flow control. If DTR is configured as the flow control signal, it will toggle to false when the buffer is full, RTS will not. Not used DTR flow RTS flow RTS and DTR flow If active, a false CTS will prevent the printer from sending any data to the host. Not used Active If active, a false DSR signal will prevent the printer from accepting any data. Not used Active The printer can be set to active (normal operation) or buffer full only mode. In active mode, the printer goes off-line when it runs out of paper. In buffer full only mode, the printer only goes off-line if a fault is detected, and the buffer full operates normally. Active Buffer full only This option allows Windows to query the printer as to its identity. The printer supports this in parallel and serial mode. This option presets several of the link modes. Serial mode RTS flow control Parallel mode IEEE 1284 Off On If set to an address, the multidrop feature will be activated at power up. Off A device B device
Rev G
12/14/99
Page 113
Programmer's Guide
PcOS Series 150
Configuration Mode
C device Options Knife
Validation
General Journal
Save Changes
This specifies that the knife is attached. Not present Enabled This specifies that the unit has validation. Not present Enabled Recommendation This specifies that the unit has journal take-up. Not present Enabled This is set only in self-configuration mode to force the printer to save changes. If this is not set to yes, any changes made to the configuration will not be saved. No Yes
General Control The Series 150 Printer supports several printer emulation modes, Normal (IBM), EPOS (Epson), MICROLINE (OKIDATA), Star (Star), NCR2567 (NCR), and Telpar. The default print mode for graphics can be set to bidirectional for fastest print or unidirectional for the best print quality. The input receive buffer can be configured to various sizes. The optimal size is dependent on the application. The options are from 256 to 6144 bytes. To provide tight control of the printer, a one-line mode is also available where the printer goes busy after each [CR] and stays busy until the buffer is empty. The line to line print registration of the printer is adjustable. This registration is important in graphics and rotated print and is set at the factory. However, if the printer has been serviced this value may need to be adjusted. The adjustment can range from zero to nine. To aid in setting this adjustment, the printer will print an alignment chart. To allow the printer to print better on multipart forms, the impact energy supplied to the print head can be increased. In high impact mode, the print speed is decreased by about 15 percent. High impact is only effective in validation mode. The amount of time the printer waits after a form is sensed and before action is taken is adjustable. This is the form sense wait time. It can be adjusted from zero to 750 milliseconds. The default is 250 milliseconds. The printer can be configured to return to receipt mode after a validation command is issued. The time-out is adjustable from off (waits forever) to 15 minutes. The amount of time the cash drawer is energized is adjustable from 25 to 250 milliseconds. This value will be dependent on the cash drawer being used; however, 150 milliseconds works with most drawers. The reset command (EPOS mode only) can be prevented from being acted on. If reset inhibit is set to on, the command will have no affect. (This does not affect the parallel port INIT signal).
12/14/99
Rev G
Page 103
Page 114
Configuration Mode
PcOS Series 150
Programmer's Guide
The print suppress feature can be off, on, or pass (pass through). This will determine the operation of the print suppress command. If print suppress is set to off, the command will be ignored. If on, the command will be active. If pass is selected, the command and data pass through will be active.
Page 104
Rev G
12/14/99
Page 115
Programmer's Guide
PcOS Series 150
Configuration Mode
Vertical Control The line spacing can be defaulted to six or eight lines per inch (lpi). An auto line feed feature can be set as a default where all [CR]’s will have a [LF] added. If auto line feed is set to on, this feature is activated. An auto line feed feature can be set as a default where all [LF]’s will have a [CR] added. If auto CR is set to on, this feature is activated. The default form length can be set from 3 to 17 inches. This configuration affects how the [FF] command operates.
Character The default print mode can be set to Draft, Utility, NLQ Courier, or NLQ Sans Serif. In most cases, Draft or Utility mode will be the default selections. The default print pitch can be set to 8, 10, 12, 15, 17.1, 20, or 24 characters per inch.
Interface The Series 150 Printer has either a serial or parallel communications link. In the parallel configuration, you can enable it as IEEE 1284, which allows a bidirectional mode. The parallel option features define how the strobe, busy, and acknowledge signals operate. In normal mode, the printer follows the standard (Centronics) parallel port conventions. With Options 1 and 3, the acknowledge and busy signals change simultaneously. This is sometimes referred to as Ack-after-Busy. Options 2 and 3 force busy high on the rising edge of strobe. This is sometimes referred to Busy-while-Strobe timing. In all cases, the data is latched on the rising edge of strobe. In most cases, the normal timing mode will give the best and most universal results.
Data
Data
DATA Pin 2-9
STROBE
Pin 1
Normal
BUSY
Pin 11
Normal
ACK
Pin 10
Options 1 and 3
Options 2 and 3
Figure 14 Parallel link options The serial mode parity can be set to none, odd, or even. The serial bit format can be set to eight or seven. The flow control protocol/serial link can be set to Ready/Busy or XON/XOFF. If XON/XOFF is selected, Ready/Busy also functions. The bit rate of the printer can be set to 19200, 9600, 4800, 2400, 1200, 600, or 300 bits per second. The same bit rate is for both send and receive.
12/14/99
Rev G
Page 105
Page 116
Configuration Mode
PcOS Series 150
Programmer's Guide
The serial port DTR and/or RTS signal can be configured to provide flow control. If DTR is configured as the flow control signal, it will toggle to false when the buffer is full, RTS will not.
Options The knife is an optional feature on the Series 150 Printer. If the hardware is installed, the corresponding feature should be activated.
Save Changes In self-configuration, the save changes must be set to “Yes” for any configuration changes to be accepted. The next group selection will then save the changes and start normal operation.
Page 106
Rev G
12/14/99
Page 117
Programmer's Guide
PcOS Series 150
Communications Overview
Chapter 10: Communications Protocol and Print Buffers Overview The following figure illustrates the communication flow from the host computer to the printer and from the printer to the cash drawer.
Host to printer link
Host computer
Printer
Host to keypad
Printer to cash drawer
Cash drawer
Keypad
Figure 15 Typical POS system For the host to printer communication link, the Series 150 Printer supports serial or parallel communications. The serial and parallel port both follow standards developed for the personal computer environment.
Data to printer
Host Computer
Printer
Status and flow control back Figure 16 Host to printer link
12/14/99
Rev G
Page 107
Page 118
Communications
PcOS Series 150
Programmer's Guide
Overview In most cases, the host computer is capable of sending information to the printer much faster than the printer can print it. To prevent information from being lost, a flow control mechanism is provided. This mechanism is called the flow control protocol. The goal of the flow control protocol is to exchange as much information as possible as fast as possible without losing any data. The Series 150 Printer supports three flow control protocols, two in serial mode and one in parallel. From the printer’s viewpoint, four basic functions are required of communications. All four are common to all three flow control protocols. There must be a communication driver, status inquire procedure, storage buffer, and print control mechanism that is using the data. 1. 2. 3.
4.
The communication port is either the serial port hardware or the parallel port hardware and the associated communication software driver. A means for the host to bypass the buffer for status information is also required because the buffer offsets the printer in time from the host. (The printer is generally behind the host). The storage print buffer is a software implemented, first-in/first-out (FIFO) circular buffer. It stores information in an asynchronous fashion where information can be placed in it at any rate and retrieved from it at any rate. However, the information order is not altered. Any buffer has a finite size, and if information is put in faster than it is removed, it will overflow. To avoid overflow, a flow control mechanism is required. The print control mechanism is the remainder of the printer hardware and control software. It interprets control codes and operates the control panel, print head, and cash drawer interface.
The following figure illustrates the four basic parts of printer flow control. Printer
Communicatio n port Seria l o r paralle l connectio n
ENQ processor
Data
Data
Data
Print control
Print buffer Data
Print head
Status Status Filling up/ emptying
Figure 17 Printer communications buffer flow The communication port is either serial or parallel and is controlled by a software communication driver. This driver receives data and returns requested status. As information is received from the host, data is taken from the communication port hardware by the driver, preprocessed to look for status inquire commands, and placed in the buffer. When the buffer input function finds that the buffer is filling up, it notifies the communication driver to implement flow control. Flow control will attempt to stop further information from being sent by the host.
Page 108
Rev G
12/14/99
Page 119
Programmer's Guide
PcOS Series 150
Communications Overview
The print control software takes information from the buffer (as it needs it and can use it). When the buffer output function finds that the buffer is getting low, it notifies the communication driver that the information flow can be resumed (if it was stopped) and allows more information to be placed in the buffer. The Series 150 Printer has a configurable input buffer. The printer can be configured to allow from 256 to 6144 bytes of input buffer. This means that up to 6144 characters (or control codes) can be sent to the printer before they are interpreted and printed. In effect, the host computer can get 6144 characters ahead of the printer. In all cases, the buffer will resume communications when it is half empty. For example, if the buffer is configured to be 2K, the printer will signal stop when 2048 bytes are in the buffer. Resume will be signaled when 1024 bytes remain. Inquire (ENQ) commands are preprocessed, which means they are found in the input data stream and acted upon immediately as they are received. Therefore, the status returned is valid as of the time the command is received. This is termed real-time status even though inquire commands are preprocessed and still placed in the buffer. Real-time status assures that data is not lost when the inquire sequence is part of another command. However, this also means that the buffer may be filled by inquire commands, if the printer is waiting for some activity.
12/14/99
Rev G
Page 109
Page 120
Communications
PcOS Series 150
Programmer's Guide
Parallel Port
Parallel Port Parallel Port Protocol The Series 150 parallel port behaves just like any printer connected to a personal computer. The parallel interface accepts eight bits of data from the host. The strobe signal from the host is used to indicate that data is available. When the printer sees the strobe and accepts the data, it asserts a busy signal. The busy signal indicates to the host that the printer has accepted the data and is busy working. When the printer has been able to absorb the data and is ready to accept another byte, the printer asserts an acknowledge signal, negates busy, and finally negates acknowledge. The following parallel port specifications and timing should be met by the host computer. In standard personal computers, the strobe signal is generated by software writes to the parallel port control port. This is typically done in the BIOS or in some parallel port driver. As personal computers become faster, it is up to the software to assure that the strobe signal does not get too narrow. One microsecond is about the minimum pulse width that should be sent down a cable. Shorter pulse widths (500 nanoseconds) will be accepted by the printer; however, the cable can introduce significant signal degeneration and skew. It is important that the data be valid before the strobe signal is asserted and remain valid until after the strobe is removed. A 500 nanosecond setup and hold time is required by the printer. The following chart illustrates this sequence:
INIT
< ---- Rdly Data
Pin 16
Data
DATA Pin 2-9
Dstu--->
<-- Dhld
< >
Sdly ----->
<
STROBE Pin 1
>
<--Tstb
Bhld--->
<
BUSY Pin 11
<-------------Tcycle------------>
ACK Pin 10
Ahld ---->
Rdly approximately 2 s Dstu 500 ns (min) Dhld 500 ns (min) Tstb 1 us (min)
<
Bhld approximately 5 us Ahld approximately 5 us Sdly 3 us (min) Tcycle 200 - 280 us (typ)
Figure 18 Parallel port data timing To implement flow control, the busy signal is asserted by the printer outside the normal data transfer sequence. The busy signal has several uses, but it always indicates that the printer cannot accept information. The busy signal may happen at any time and may not adhere to the above timing chart in all cases. It is up to the host's parallel port driver to handle all possible busy states. It is important that the host driver does not hang-up if it takes time for an acknowledge response to a strobe signal. The standard personal computer parallel port hardware implements an interrupton-acknowledge signal to make this task easier.
Page 110
Rev G
12/14/99