Programmer's Guide PRINTER INFORMATION

39
Programmer's Guide 1 Programmer's Guide for the Series 70 Printer PRINTER INFORMATION Features Dimensions Reliability Power Requirements Environmental Requirements Startup Fault Conditions Printhead or Cutter Blade Jam Paper Low COMMUNICATIONS Centronics Parallel Interface Pin Assignments Protocol Communications Sequence Timing Diagram RS-232 Interface Features Pin Assignments Switch Settings SW 1 SW 2 Protocol READY/BUSY Flow Chart XON/XOFF Flow Chart Diagnostic Tests Running the Circuit Test Running the Monitor Mode Test Command Set IPCL Commands Command Reference Chart Command Descriptions (Organized by Function) Carriage and Line Spacing Commands Print Characteristics Commands Knife Commands Buffer Commands Miscellaneous Commands Graphics Commands CHARACTERS Character Sets IBM Character Set I IBM Character Set II Character Modes Normal Mode Double-Wide Mode Character Generation

Transcript of Programmer's Guide PRINTER INFORMATION

Page 1: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

1

Programmer's Guide for the Series 70 Printer

PRINTER INFORMATIONFeaturesDimensionsReliabilityPower RequirementsEnvironmental RequirementsStartupFault Conditions

Printhead or Cutter Blade JamPaper Low

COMMUNICATIONSCentronics Parallel Interface

Pin AssignmentsProtocol

Communications SequenceTiming Diagram

RS-232 InterfaceFeaturesPin AssignmentsSwitch Settings

SW 1SW 2

ProtocolREADY/BUSY Flow ChartXON/XOFF Flow Chart

Diagnostic TestsRunning the Circuit TestRunning the Monitor Mode Test

Command SetIPCL CommandsCommand Reference Chart

Command Descriptions (Organized by Function)Carriage and Line Spacing CommandsPrint Characteristics CommandsKnife CommandsBuffer CommandsMiscellaneous CommandsGraphics Commands

CHARACTERSCharacter Sets

IBM Character Set IIBM Character Set II

Character ModesNormal ModeDouble-Wide Mode

Character Generation

Page 2: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

2

Programmer's Guide for the Series 70 Printer

The purpose of this guide is to help programmers and systemengineers program the IPI Series 70 Printer and integrate it intoa system.

PRINTER INFORMATION

The IPI Series 70 Printer is a nine-pin impact printer designedfor use in video lottery systems. It supports multiple-columnprinting in two character sets and graphics.

The information in this section describes the features and generalcharacteristics of the printer.

Features

Print Speed200 characters per second in normal mode100 characters per second in double wide mode

InterfaceCentronics ParallelRS-232

Character SetsIBM Character Set IIBM Character Set II

Character ModesNormal ModeDouble-Wide Mode

Line SpacingEight lines per inch

Automatic Knife Cutter.002 to .007 inch ply thicknessFull cut only

2-Ply Receipt-Journal Printing

Low Paper Sensor

MountingVerticalHorizontal

Page 3: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

3

GraphicsBlock graphics (characters from character set)Dot addressable graphics

Dimensions

Depth10.75 in.273 mm

Width6.062 in.154 mm

Height6.75 in.171.5 mm

Paper Exit4.72 in. from front of printer +/- .020 in.from left to right 120 mm

Reliability

Mean Time Between Failures (MTBF)25,000 hours

Mean Time To Repair (MTTR)15 minutes

Printhead life200 million characters Mean Cycles BetweenFailure (MCBF)

Ribbon Cassette3 million characters

Knife1 million cuts (life)100,000 cuts Mean Time Between Failure (MTBF)

Page 4: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

4

Power Requirements

Voltage120 +/- 10% Vac

Amperage (draw).4 amps (maximum)

Frequency60 +/- 2% Hz

Power (wattage)37 W

Environmental Requirements

Operating Temperature40 Degrees Fahrenheit to 105 Degrees Fahrenheit5 Degrees Celsius to 40 Degrees Celsius

Operating Humidity20% to 90% relative humidity (non-condensing)

Storage Temperature40 Degrees Fahrenheit to 140 Degrees Fahrenheit5 Degrees Celsius to 60 Degrees Celsius

Storage Humidity5% to 95% relative humidity

Startup

When the printer receives power, the following sequence occurs:

Carriage moves slightly leftCarriage moves slightly rightCarriage homes to left sideCutter blade cycles onceInterface sets to ready state

If there is a fault condition on startup, the LED on the boardwill flash, the interface will be set to not ready, and theprinter will not come up.

Page 5: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

5

Fault Conditions

The following fault conditions may occur:

Printhead or Cutter Blade JamPaper Low

When one of these occurs, the printer sends various signals to thehost system to indicate what the fault condition is.

Printhead or Cutter Blade Jam

If the printhead or cutter blade is jammed, usually due to apaper jam, the following signals are sent from the printer tothe host system:

Busy signal goes high/Fault signal goes lowSelect signal goes lowPrinter is offline

Paper Low

When the paper low sensor is activated, the following signalsare sent from the printer to the host system:

Select signal goes lowPaper End signal goes highBusy signal goes high/Fault signal goes low

The printer continues printing until it receives the ActivateCutter command or until it prints 21 inches of paper(allowing transactions to finish, especially longer ones suchas an End-of-Day report).

Page 6: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

6

COMMUNICATIONS

The IPI Series 70 Printer can be programmed using either theCentronics parallel interface or the RS-232 Interface. Thissection describes both interfaces as well as the commandssupported by the printer.

Centronics Parallel Interface

This section describes the implementation of the CentronicsParallel Interface for the IPI Series 70 printer.

The following sections show the pin assignments, thecommunications sequence, and the timing diagram.

Pin Assignments

Data bit 8 is optional. It is connected to pin 16 through ajumper. The /ACK signal is also optional. It is coupled topin 23 through a jumper.

Pin # Signal Direction Description1 /STROBE To Printer STROBE pulse of read data in.

Pulse width must be more than0.5 microseconds at receivingterminal. The signal level isnormally high; read-in of datais performed at the LOW levelof this signal.

2 DATA 1 To Printer Least Significant BitHigh=Logical 1; Low=logical 0

3 DATA 2 To Printer High=Logical 1; Low=Logical 04 DATA 3 To Printer High=Logical 1; Low=Logical 05 DATA 4 To Printer High=Logical 1; Low=Logical 06 DATA 5 To Printer High=Logical 1; Low=Logical 07 DATA 6 To Printer High=Logical 1; Low=Logical 08 DATA 7 To Printer High=Logical 1; Low=Logical 09 DATA 8 To Printer High=Logical 1; Low=Logical 010 /ACKNOWLEDGE From Printer Approximately 5 Microseconds

LOW Pulse. LOW = DataReceived, Printer Ready

11 BUSY From Printer Low = Printer Ready to Receive DataHigh = Printer NOT Ready to Receive Data

Page 7: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

7

Pin # Signal Direction Description12 PAPER END From Printer High = Printer Paper Low13 SELECT From Printer High = Printer Online14 PULLED HIGH15 VACANT16 0V Logic Ground17 CHASSIS GROUND Chassis Ground is Isolated

from Logic Ground18 +5V From Printer 50mA Maximum

19-30 0V Ground Twisted Pair Return SignalGround Level

31 /I-PRIME To Printer Clear/Reset/Initialize.Low Pulse

32 /FAULT From Printer Low = Paper Low Offline Error

33 0V Logic Ground34 VACANT35 VACANT36 Pulled High

Protocol

Communications Sequence (see chart on page 8)

Timing Diagram (see chart on page 9)

Page 8: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

8

Page 9: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

9

Page 10: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

10

RS-232 Interface

This section describes the implementation of the RS-232 Interfacefor the IPI Series 70 printer.

The following sections provide information for these topics:

o Features o Pin Assignments o Switch Settings o Protocol o Diagnostic Tests

Features o Up to 19.2K Baud o 2K Buffer o READY/BUSY or XON/XOFF Protocol o Communications Diagnostic Mode o Optional Firmware to Send Data From Printer

Page 11: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

11

Pin Assignments

Pin # Signal Symbol DirectionDescription1 PROTECTIVE

GROUNDPG Connected to the Printer Frame

2 TRANSMITDATA

TD FromPrinter

Transmits Serial Data in XON/OFFProtocol

3 RECEIVEDATA

RD ToPrinter

Serial Data Received by Printer

4 REQUEST TOSEND

RTS FromPrinter

Printer is NOT Ready to ReceiveData in READY/BUSY Protocol

5 VACANT6 DATA SET

READYDSR To

PrinterHost is Ready to Send Data.Printer Receives Data AfterConfirming This Signal as High.

7 SIGNALGROUND

SG Ground

8-10 VACANT11 SUPERVISORY

SEND DATASSD From

PrinterPrinter is NOT Ready to ReceiveData in READY/BUSY Protocol

12 VACANT13 SIGNAL

GROUNDSG Ground

14-19 VACANT20 DATA

TERMINALREADY

DTR FromPrinter

Printer is NOT Ready to ReceiveData in READY/BUSY Protocol

21-25 VACANT

Switch Settings

Factory Settings o 9600 Baud o 8 Data Bits o No Parity o READY/BUSY Protocol o DTR (Pin 20)

Page 12: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

12

SW 1

Switch Function On Off

1 Parity Type Odd Even

2 Parity * NoParity

Parity

3 Data Bits * 8 7

4 Protocol *READY/BUSY

XON/XOFF

5 Test Select Circuit Monitor

6 Mode Printing Testing

Switch Function Selection Switch 7 Switch 87, 8 Busy Line* DTR - (Pin 20) On On

RTS - (Pin 4) On Off SSD - (Pin 11) Off On SSD + (Pin 11) Off Off

Page 13: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

13

SW 2

Switch Function Selection

1, 2, 3 BaudRate

Rate(bps)

Switch 1 Switch 2 Switch 3

19,200 On On On

* 9,600 Off On On

4,800 Off Off On

2,400 Off Off On

1,200 On On Off

600 Off On Off

300 On Off Off

110 Off Off Off

* Factory Settings

Switch Function Selection

On Off

4 DSR Active Inactive

5 BufferThreshold

* 32 Bytes 256 Bytes

6 Busy SignalTiming

* 200 ms 1 second

7 Not Used

8 Not Used

* Factory Settings

Protocol

READY/BUSY Flowchart (see chart on page 14)

XON/XOFF Flowchart (see chart on page 15)

Page 14: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

14

Page 15: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

15

Page 16: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

16

Diagnostic Tests

Run the circuit test and the monitor mode test to checkthat the serial cable is sending and receiving thecorrect signals.

Running the Circuit Test

Before running the circuit test, you may want topurchase or make a turnaround cable with the pinassignments shown in the illustration on page 17.

Be sure to shut off power to the printer whendisconnecting the serial cable and connecting theturnaround cable.

The circuit test checks the serial interface toensure that the proper signals are sent across theactive lines. The printer will print a messageindicating whether the test was successful or not.

Follow the instructions in the flow chart on page18 to run the circuit test.

Running the Monitor Mode Test

The monitor mode test verifies that the data sentto the printer is set at the proper baud rade,parity, and number of data bits. This test is afeature of the high speed interface board.

Follow the instructions in the flow chart on page19 to run the monitor mode test.

Page 17: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

17

Page 18: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

18

Page 19: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

19

Page 20: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

20

Command Set

The IPI Series 70 printer supports commands in the followingformats:

ASCIIDecimalHexadecimalIPCL

IPCL Commands

IPCL is an alternate command set consisting ofprintable character strings which perform all of theprinter's functions. Because some systems are unable tosend certain sequences, such as escape sequences or HEXcodes lower than 20, IPCL allows these systems tocommunicate with the printer.

IPCL commands consist of a string of four characters inthis format: &%XX.

The first two characters, &%, are fixed and identifythe command as an IPCL string.

The last two characters, XX, are alphanumeric anddefine the function to be performed. If the last twocharacters are undefined or incorrect, the string willbe treated as printable data.

Command Reference Chart

The chart on the following page lists the various codes foreach command, the default value (where applicable), and thepage number where a detailed description of the command canbe found.

Page 21: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

21

Command ASCII Decimal Hex IPCL PageNumber

Carriage and Line SpacingCommandsCarriage Return CR 13 0D &%CRSet Fine Line Spacing n/216"n = 1 to 255

ESC 3 n 27 51 n 1B 33n

&%SV n

Set Line Spacing at 8 Linesper Inch

ESC 0 27 48 1B 30 &%ST

Set Line Spacing at 21/216" ESC 1 27 49 1B 31 &%SGLine Feed, Default = 8 Linesper Inch

LF 10 0A &%LF

Perform Fine Line Feedn = 1 to 255

ESC J n 27 74 n 1B 4An

&%LV n

Print CharacteristicsCommandsBegin 17 CPI Print Mode(Default Print Mode)

SI 15 0F &%F1

Begin 12 CPI Print Mode ESC : 27 58 1B 3A &%F2Begin 10 CPI Print Mode DC2 18 12 &%F3Begin One Line Double Wide SO 14 0E &%MWEnd One Line Double Wide DC4 20 14 &%MNBegin Multi Line Double Wide ESC W 1 27 87 1 1B 57

01&%FW1

End Multi Line Double Wide ESC W 0 27 87 0 1B 570

&%FW0

Select IBM Character Set I ESC 7 27 55 1B 37 &%C1Select IBM Character Set II(Default Character Set)

ESC 6 27 54 1B 36 &%C2

Knife CommandsAdvance to Cut Position VT 11 0B &%VTActivate Cutter EM 25 19 &%FCBuffer CommandsClear Print Buffer, RestoreDefaults

CAN 24 18 &%RP

Interface Busy Until BufferEmpty

EOT 4 04 None

Miscellaneous CommandsPrint Interleaved 2 of 5 BarCode

None None None &%25

Initiate Self Test None None None &%IT

Page 22: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

22

Graphics CommandsSingle Density Graphics:60 DPI

ESC Kn1 n2

27 75n1 n2

1B 4Bn1 n2

&%GSn1 n2

Full Speed Double DensityGraphics: 120 DPI

ESC Yn1 n2

27 89n1 n2

1B 59n1 n2

&%GFn1 n2

Half Speed Double DensityGraphics: 120 DPI

ESC Ln1 n2

27 76n1 n2

1B 4Cn1 n2

&%GDn1 n2

Quadruple Density Graphics:240 DPI

ESC Zn1 n2

27 90n1 n2

1B 5An1 n2

&%GOn1 n2

Page 23: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

23

Command Descriptions (Organized by Function)

This section describes each command (organized by function)and lists the codes in ASCII, Decimal, Hexadecimal, and IPCL.

Carriage and Line Spacing Commands

The default for the line spacing is 8 lines per inch.

Carriage Return

Prints the contents of the print buffer. This is alogical carriage return. The carriage remains inplace until the next line to be printed is sent.The printer will then decide which is the mostefficient direction to print the next line: fromleft to right (forward), or from right to left(backward).

If switch 3 on the main board is set to ON, theprinter advances the paper one line following thecarriage return. The spacing of the line feed isdetermined by the default (8 lines per inch) orthe current value of the Line Spacing commands.

ASCII: CRDecimal: 13Hexadecimal: 0DIPCL: &%CR

Set Fine Line Spacing n/216"

Changes the current value for line spacing(n/216") used by the Line Feed comand. Thiscommand does not advance the paper.

n = 1 to 255

ASCII: ESC 3 nDecimal: 27 51 nHexadecimal: 1B 33 nIPCL: &%SV n

Page 24: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

24

Set Line Spacing at 8 Lines per Inch

Changes the current value for line spacing(n/216") used by the Line Feed command to 27/216".This is equal to 8 lines per inch which is thedefault value for line spacing.

ASCII: ESC 0Decimal: 27 48Hexadecimal: 1B 30IPCL: &%ST

Set Line Spacing at 21/216"

Changes the current value for line spacing(n/216") used by the Line Feed command to 21/216"(approximately 10 lines per inch). This settingeliminates the space between consecutive lines ofprint. It is normally used in the Block graphicsmode to make two blocks solid.

ASCII: ESC 1Decimal: 27 49Hexadecimal: 1B 31IPCL: &%SG

Line Feed

Advances the paper one line. The default value is8 lines per inch. The spacing of the line feed isdetermined by the default or the current value ofthe Line Spacing commands (in n/216" increments).

ASCII: LFDecimal: 10Hexadecimal: 0AIPCL: &%LF

Page 25: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

25

Perform Fine Line Feed

Advances the paper in n/216" increments. Thiscommand does not affect the default spacing or thecurrent value of the Line Spacing commands.

n = 1 to 255

ASCII: ESC J nDecimal: 27 74 nHexadecimal: 1B 4A nIPCL: &%LV n

Print Characteristics Commands

The default for the print mode is 17 characters perinch. The default for the character width is normalmode (single-wide). The default for the character setis IBM character set II.

Begin 17 CPI Print Mode

Prints 17 characters per inch in normal mode (102dots per inch). The maximum number of charactersis 40 per line. If double-wide mode is turned on,20 characters are printed per line. This mode maybe mixed with 12 and 10 CPI on the same line. Thisis the default print mode.

ASCII: SIDecimal: 15Hexadecimal: 0FIPCL: &%F1

Begin 12 CPI Print Mode

Prints 12 characters per inch (72 dots per inch).The maximum number of characters is 28 per line.If double-wide mode is turned on, 14 charactersare printed per line. This mode may be mixed with17 and 10 CPI on the same line.

ASCII: ESC :Decimal: 27 58Hexadecimal: 1B 3AIPCL: &%F2

Page 26: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

26

Begin 10 CPI Print Mode

Prints 10 characters per inch (60 dots per inch).The maximum number of characters is 24 per line.If double-wide mode is turned on, 12 charactersare printed per line. This mode may be mixed with17 and 12 CPI on the same line.

ASCII: DC2Decimal: 18Hexadecimal: 12IPCL: &%F3

Begin One Line Double Wide

Prints one full line of the currently selectedprint mode (17, 12, or 10 CPI) in double widthcharacters. The number of characters per inch ishalf of the selected print mode. For example, 12CPI becomes 6 CPI. After the line is printed, theprinter automatically reverts to the currentlyselected print mode unless a new print mode isselected.

ASCII: SODecimal: 14Hexadecimal: 0EIPCL: &%MW

End One Line Double Wide

Ends the Double Wide print command before the endof the line to be printed. The printer reverts tothe currently selected print mode unless a newprint mode is selected.

ASCII: DC4Decimal: 20Hexadecimal: 14IPCL: &%MN

Page 27: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

27

Begin Multi Line Double Wide

Prints multiple lines of the currently selectedprint mode (17, 12, or 10 CPI) in double widthcharacters. The number of characters per inch ishalf of the selected print mode. For example, 12CPI becomes 6 CPI. This command remains in effectuntil cancelled by the command, End Multi LineDouble Wide.

ASCII: ESC W 1Decimal: 27 87 1Hexadecimal: 1B 57 01IPCL: &%FW1

End Multi Line Double Wide

Ends the Multi Line Double Wide print mode. Theprinter reverts to the currently selected printmode unless a new print mode is selected.

ASCII: ESC W 0Decimal: 27 87 0Hexadecimal: 1B 57 00IPCL: &%FW0

Select IBM Character Set I

Selects the IBM Character Set I including allspecial characters. See the section, CharacterSets under the heading Print Capabilities, for alist of the characters.

ASCII: ESC 7Decimal: 27 55Hexadecimal: 1B 37IPCL: &%C1

Page 28: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

28

Select IBM Character Set II

Selects the IBM Character Set II including allspecial characters. See the section, CharacterSets under the heading Print Capabilities, for alist of the characters. This is the defaultcharacter set.

ASCII: ESC 6Decimal: 27 54Hexadecimal: 1B 36IPCL: &%C2

Page 29: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

29

Knife Commands

Advance to Cut Position

Positions the last print line beyond the knifebefore the paper is to be cut. This command doesnot cut the paper.

ASCII: VTDecimal: 11Hexadecimal: 0BIPCL: &%VT

Activate Cutter

Cycles the cutter blade one time.

ASCII: EMDecimal: 25Hexadecimal: 19IPCL: &%FC

Buffer Commands

Clear Print Buffer, Restore Defaults

Clears the print buffer of all data and loads thecommand default values.

ASCII: CANDecimal: 24Hexadecimal: 18IPCL: &%RP

Interface Busy Until Buffer Empty

Sets the interface status lines to Busy. Theprinter will remain busy until it has processedall data in the communications buffer. If thiscommand is sent to the printer at the end of atransaction, the host can monitor the Busy signalto determine when the printer has completed thetransaction.

ASCII: EOTDecimal: 4

Page 30: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

30

Hexadecimal: 04IPCL: None

Miscellaneous Commands

Print Interleaved 2 of 5 Bar Code

This command is followed by the numeric data to beprinted (up to 14 characters). The bar code isprinted when either a carriage return is detectedor more than 14 characters are entered. If thetotal number of digits is odd, the printer willadd a leading 0 to conform to the I 2 of 5 barcode standard.

ASCII: NoneDecimal: NoneHexadecimal: NoneIPCL: &%25

Initiate Self Test

Runs internal diagnostics. Upon successfulcompletion of the diagnostics, the printer printsa test pattern of a sample ticket, feeds thepaper, and cycles the cutter blade (cutting thepaper).

If the diagnostics fail, the LED on the boardflashes

ASCII: NoneDecimal: NoneHexadecimal: NoneIPCL: &%IT

Page 31: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

31

Graphics Commands

All graphics modes conform to IBM PC graphicsstandards.

Graphics are printed one column at a time, consistingof either full dots or half dots. Just as charactersare generated in a cell of full and half dot columns,graphics are also created using columns of full andhalf dots, depending on the graphic mode selected. Seethe discussion on "Character Generation" in thesection, "Characters" for more information.

The values n1 and n2 in each of the graphics commandstell the printer how many columns are to be printed.Each byte following the command sequence corresponds toa column to be printed. Each column of data consists ofeight bits with each bit corresponding to a pin on theprinthead.

The most significant bit is at the top and the leastsignificant bit is at the bottom. A 1 in any bitposition corresponds to a dot, and a zero in any bitposition corresponds to a space.

When the number of graphics bytes received by theprinter equals the value (n1 x 256 + n2), the printerwill print the line of graphics from left to right andexit graphics mode. Any of the line spacing commandsmay be used to advance the paper.

The number of graphics columns available is determinedby the graphics mode selected:

Single density--144 columnsDouble density--288 columnsQuadruple density--576 columns

There are four graphics modes based on the density ofthe dots. All modes print full dot columns and mostallow both full and half dots.

Single Density Graphics--60 dpiHalf Speed Double Density Graphics--120 dpiFull Speed Double Density Graphics--120 dpiQuadruple Density Graphics--240 dpi

Page 32: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

32

Single Density Graphics--60 dpi

Prints full dot columns only.

ASCII: ESC K n1 n2Decimal: 27 75 n1 n2Hexadecimal: 1B 4B n1 n2IPCL: &%GS n1 n2

Full Speed Double Density Graphics--120 dpi

Prints both full and half dot columns. Does notallow a half dot column to be printed after a fulldot column.

ASCII: ESC Y n1 n2Decimal: 27 89 n1 n2Hexadecimal: 1B 59 n1 n2IPCL: &%GF n1 n2

Half Speed Double Density Graphics--120 dpi

Prints both full and half dot columns. Allows bothcolumns to be printed adjacent.

ASCII: ESC L n1 n2Decimal: 27 76 n1 n2Hexadecimal: 1B 4C n1 n2IPCL: &%GD n1 n2

Quadruple Density Graphics--240 dpi

Prints both full and half dot columns. Allows bothcolumns to be printed adjacent.

ASCII: ESC Z n1 n2Decimal: 27 90 n1 n2Hexadecimal: 1B 5A n1 n2IPCL: &%GQ n1 n2

Page 33: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

33

CHARACTERS

The IPI Series 70 Printer prints two character sets, each set intwo modes (normal and double-wide). Additional character widthsallow for a variety of print styles. The following sectionsdiscuss and show examples of these characteristics.

Character Sets

The following character sets are supported: IBM Character Set Iand IBM Character Set II. IBM Character Set II allows for blockgraphics. It is also the default character set.

The following lists show representations of the two charactersets. They are not reproduced here in their true dot pattern.

IBM Character Set 1 (see the chart on page 34)

IBM Character Set 2 (see the chart on page 35)

Page 34: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

34

Page 35: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

35

Page 36: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

36

Character Modes

Two character modes are supported: normal (or single-wide) anddouble-wide, with three variations of character width in eachmode.

Normal Mode

Characters in normal mode are available in three widths,depending on which print mode is selected (see the "PrintCharacteristics Commands" in the "Command Descriptions"section). The three widths are listed below with their widthsprovided in characters per inch (CPI), characters per line,and dots per inch.

17 characters per inch (default)40 characters per line102 dots per inch

12 characters per inch28 characters per line72 dots per inch

10 characters per inch24 characters per line60 dots per inch

These three modes are based on the same character cell (dotpattern). The dot-to-dot spacing is reduced for the smallercharacter width.

Double-Wide Mode

The double-wide mode doubles the width of the characters inthe currently selected normal mode (see the "PrintCharacteristics Commands" in the "Command Descriptions"section).

The number of characters per inch or line in the double-widemode is half that of the normal mode. 17 characters per inchbecomes 8 1/2 characters per inch; 12 characters per inchbecomes 6 characters per inch; 10 characters per inch becomes5 characters per inch. However, the number of dots per inchremains the same in both modes.

The three double-wide modes are based on the same charactercell (dot pattern). The dot-to-dot spacing is reduced for the

Page 37: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

37

smaller character width.

Character Generation

All the character sets and modes are based on the same charactercell, except the double-wide mode, which is twice the width of thenormal mode. This section describes the character cell of thenormal mode and shows examples of the dot patterns that make upthe characters.

The character cell consists of five full dots and five half dotshorizontally by nine full dots vertically as shown in the exampleon page 38 (double-wide mode is 10 full dots horizontally; halfdots are not used).

The examples show the full dots as adjacent to each other in thecharacter cell. This is a true representation for the 12 CPI printmode. In the 17 CPI print mode, the full dots overlap. In the 10CPI print mode, the full dots are separated by a small amount ofspace.

Each character is justified to the left of the cell and uses thefirst four columns of full dots and the first three columns ofhalf dots. The last column of full dots and the last two columnsof half dots are used for character spacing. The code actuallytreats each horizontal full and half dot as a column. Thecharacter cell is thus ten columns wide (five full dots and fivehalf dots).

NOTE: Full and half dots cannot be printed adjacent to each other(that is, on the same row). Some of the graphics modes allow this.See "Graphics Commands" in the "Command Descriptions" section.

Characters use the full nine rows of vertical dots in the cell.The eighth and ninth rows are used for character descenders. Theninth vertical dot row is also used for underlining (the last fulldot is printed). See the examples on page 39.

Page 38: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

38

Page 39: Programmer's Guide PRINTER INFORMATION

Programmer's Guide

39