The text of a manual · part 3 of 15
PcOS Series 60 Multi-Station Slip Printers Programmer's Guide, pages 21 to 30
Pages 21 to 30 of 150
The original document is the PDF (1.6 MB). 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 PcOS Series 60
Page 21
Control Codes
Horizontal Motion
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Horizontal Motion Control There are two commands that can control the horizontal position of characters. Many applications use space control to positions fields, however, there is the ability to control character position with horizontal tab stops and using the horizontal tab [HT] to move to those tab stops. Function: Horizontal Tab ASCII: Hexadecimal: Decimal: IPCL:
[HT] 9H <9> NONE
Description:
Inserts spaces in the print buffer up to the next tab stop. The default tab locations are every 8 spaces.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Set Horizontal Tab Stops [ESC] D <n>1 <n>2 <n>3 ... <n>i 0 1BH 75H <n>1 <n>2 <n>3 ... <n>i 00H <27><117><n>1 <n>2 <n>3 ... <n>i <0> NONE
Description:
Set tab stops at the character columns specified by <n>. The end of the settings is specified by a <0>. All previously set tabs will be cleared by this command. There is no restore defaults procedure other than to re specify the tabs. Column sizes are in accordance with the current character pitch. Setting tabs that are beyond the station width is possible. A [CR] will be inserted if the tab is used. Printing will begin at the home position. The power up default is every 8 spaces, i.e. 9, 17, 25 and so on. Pitch CPI4 24 17.1 12 10
Slip 1≤n≤84 1≤n≤60 1≤n≤42 1≤n≤34
Print Station Receipt Journal 1≤n≤66 1≤n≤56 1≤n≤48 1≤n≤40 1≤n≤32 1≤n≤28 1≤n≤28 1≤n≤24 Valid tab stops
4CPI - Characters Per Inch
Page 20
Rev C 7/8/2008
Page 22
Programmer's Guide
PcOS Series 60
Control Codes
Ithaca Peripherals Incorporated
Character Pitch
Character Pitch There are a number of Character pitch and print mode operations that are possible and a few that are not. The following table lists the operations that are possible in matrix form.
Operation
10
12 cpi
17 cpi
24 cpi cpi
Line
Super
Graphic
/ Sub
Util
NLQ
HSD
Emph
Enha
Double
Under
Rotate
Rotate asize nced wide line
180
90° s
/270°
10 cpi 12 cpi 17 cpi 24 cpi Line Graphics Super / Sub Util NLQ HSD Emphasize Enhanced Double wide Underline Rotate 180° Rotate 90°/270°
NOTE:
Feature Available Feature NOT Available Switches to 10 CPI Emphasize. If 17 or 24 CPI was set previously to the emphasize command, the characters will be printed at 10 CPI with Emphasize. When Emphasize is terminated, the print will revert to 17 or 24 CPI. Prints half high full width utility script. In rotated 90° or 270° mode the print is done in APA Graphics. The print is in 12 CPI character cell size. The inter-character spacing can be adjusted with the normal line spacing commands.
Rev C 7/8/2008
Page 21
Page 23
Control Codes Character Pitch
PcOS Series 60
Ithaca Peripherals Incorporated
Function:
Begin 10 CPI character pitch
ASCII: Hexadecimal: Decimal: IPCL:
[DC2] 12H <18> &%F3
Description:
Set 10 character per inch print pitch.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Begin 12 CPI character pitch [ESC] : 1BH 3AH <27><58> &%F2
Description:
Set 12 character per inch print pitch
Function: Mode: ASCII: Hexadecimal: Decimal: IPCL:
Begin 17 CPI character pitch Global [SI] 0FH <15> &%F1
Description:
Set 17 character per inch print pitch
Function:
Begin 24 CPI character pitch
Mode: ASCII: Hexadecimal: Decimal: IPCL:
Global [ESC] [SI] 1BH 0FH <27><15> &%F4
Description:
Set 24 character per inch print pitch
Programmer's Guide
[DC2] This line is 10 CPI[CR][LF] [ESC]: This line is 12 CPI[CR][LF] [SI] This line is 17 CPI[CR][LF] [ESC][SI] This line is 24 CPI[CR][LF]
Resulting print
Data sent to the printer
Page 22
Rev C 7/8/2008
Page 24
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Function:
Begin one line double wide print
ASCII: Hexadecimal: Decimal: IPCL:
[SO] 0EH <14> &%MW
Description:
This command causes subsequent characters to be printed at twice the currently selected character width. For example 10 cpi becomes 5 cpi, 17 cpi becomes 8.5 cpi etc. This command remains in effect until :
Control Codes Character Pitch
Example of one line Double Wide[CR][LF] This is normal 12 CPI Print[CR][LF] [SO] Double Wide[CR][LF] This is back to normal[CR][LF]
Data Sent To Printer a. - a valid line terminator is received ( CR, LF, or Fine Line Feed) b. - The command is canceled Resulting Print
Function:
c. - The maximum number of characters per line is reached and the printer performs an auto print Cancel one line double wide print
ASCII: Hexadecimal: Decimal: IPCL:
[DC4] 14H <20> &%MN
Description:
Cancel one line double wide mode set by [SO] command. This command allows single and double wide characters to be printer on the same line.
Function:
Begin Multi line double wide print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] W <1> 1BH 57H 01H <27><87><1> &%FD
Description:
Begin Multi-line line double wide mode. This command is similar to the [SO] command except that the printer will remain in double wide mode until the Cancel Multi Line double wide command is received.
Function:
Cancel Multi-line line double wide print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] W <0> 1BH 57H 00H <27><87><0> &%FE
Description:
Cancel Multi-line line double wide mode set by [ESC] W <1> command
Rev C 7/8/2008
Page 23
Page 25
Control Codes
PcOS Series 60
Character Font
Ithaca Peripherals Incorporated
Programmer's Guide
Character Font Function:
Begin High Speed Draft Mode (HSD) (Power on Default)
ASCII: Hexadecimal: Decimal: IPCL: Description:
[ESC] # <0> 1BH 23H 00H <27><35><0> &%QT Begin Draft print mode (1 pass 7x7 font). Enhanced, Emphasized, Subscript, Superscript, and Underline character attributes are not available in this mode. To maintain optimum print speed the printer should be returned to High Speed Draft mode when enhanced print is not required.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Begin Utility Print [ESC] I <1> 1BH 49H 01H <27><73><1> &%QU
Description:
Begin Utility print mode (1 pass 9x7 font). Utility print mode enables Enhanced, Emphasized, Subscript, Superscript, and Underline character attributes. Print speed is reduced approximately 20% over the High speed Mode (HSD).
Function:
Begin Enhanced Print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] I <2> 1BH 49H 02H <27><73><2> &%QE
Description:
Begin Enhanced print mode (2 pass 9x7 font). Print speed is reduced approximately 40% over the High speed Mode (HSD). The effect is to darken the resulting print
Function:
Begin NLQ Print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] I <3> 1BH 49H 03H <27><73><3> (None)
Description:
Begin NLQ print mode ( 2 pass 9x7 font). This is generally regarded as a Near Letter Quality print node. The print speed is reduced and character features are added to the font to enhance the appearance.
[ESC]f[ESC]: {rpt:5}[LF] [ESC]v [ESC]#<0> This is High Speed Draft [CR][LF] Mode at 12 CPI.[CR][LF][LF] [ESC]I<1> This is Utility Print Mode.[CR][LF][LF] [ESC]I<2> This is Enhanced Print Mode.[CR][LF][LF] [ESC]I<3> This is Near Letter Quality[CR][LF] Print Mode (NLQ).[CR][LF][LF] [ESC]z
Data sent to the printer
Page 24
Rev C 7/8/2008
Resulting Print
Page 26
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Control Codes Character Font
Function:
Select Character Set 1 (Default Character set)
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] 7 1BH 37H <27><55> &%C1
Description:
Select character set 1. This character set consists of characters 32 through 127 and 160 through 255 in the character chart below. Characters 128 through 1595 are not implemented and should not be sent to the printer. NOTE: Characters 176 through 228 (Block Graphics) and 244 should not be used in journal mode as they are multiple pass fonts that will not print well on the journal.
5Because of limited code space the validity of characters between 128 and 159 are not checked in character set 1.
cases sending these values to the printer will have unexpected effects.
Rev C 7/8/2008
Page 25
In most
Page 27
Control Codes Character Font
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Function:
Select Character Set 2
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] 6 1BH 36H <27><54> &%C2
Description:
Select character set 2. This is a full character set. It includes characters between 32 and 255 from the chart below. NOTE: Characters 176 through 228 (Block Graphics) and 244 should not be used in journal mode as they are multiple pass fonts that will not print well on the journal.
Page 26
Rev C 7/8/2008
Page 28
Programmer's Guide
PcOS Series 60
Control Codes
Ithaca Peripherals Incorporated
Print Rotation
Print Rotation Commands To provide flexibility in printing on preprinted and various size forms, rotated print capability is provided in slip and receipt mode. This mode will rotate the print in any of three 90 degree orientations. In 90° and 270° rotated mode, the print data is first buffered by the printer, processed (rotated) and then printed. This causes the print process to be delayed slightly as it takes some time to process the data before it is printed. In 180° mode, the print is simply inverted. Because the rotated 90° and 270° print buffer is limited to 1024 characters, the amount of rotated print is limited. The technique used by the Series 60 printer is to receive all the print to be rotated and convert it into graphics. This requires buffer space for all possible characters in each print line. Each line has a fixed length buffer regardless of how much data is actually sent to the printer. The printer will space fill the buffer for each line to the maximum size. This means that a short line of two characters will take as much buffer space as a long line. To make the most efficient use of buffer space the line length is pre defined. The default line length is 48 characters which leaves room for 21 lines. To allow longer lines to be printed the line length can be changed, however no more than 25 lines are allowed and no more than 80 characters per line are allowed. For example if the line length is expanded to 80 there is buffer space for 1024/80 or 12 lines. The spacing between lines is controlled by a line spacing table. This table is defined by the rotated print line spacing ([ESC] u ... ) command. This command specifies the number of dots between each printed line. Each line has an entry in the table. There is room for 25 lines in the table. The default and minimum is one dot or 1/60 of an inch between lines or 6 2/3 lines per inch. The character cell is a 5x8 with one dot of white space min. If the spacing between lines is set to 1 the character cell will be 5x9. If the spacing is set to 2 dots the cell will be 5 x 10 and so on. The following table specifies lines per inch for various numbers of inserted dots. Number of dots added
1
2
3
4
5
6
7
Cell Size
5x9
5x10
5x11
5x12
5x13
5x14
5x15
Line spacing (inches)
0.15"
0.167
0.183
0.20
0.22
0.23
0.25
Number Lines/inch
6.667
6
5.45
5
4.62
4.29
4
In rotated 90° or 270° mode the print is done in APA6 Graphics. The print is in a modified 12 CPI character cell size. The inter-character spacing is adjusted with the normal line spacing commands. The [ESC]3<n> command is the most effective command for adjusting inter character spacing. Because the character is close to a 12 CPI cell, much less than 12 CPI will force the characters to overlap. (Spacing of 12 CPI is obtained with an [ESC] 3 <18>.) When rotate 90° or 270° is selected only normal text can be printed. Underline, Enhanced, Emphasized and other attributes will not function. See chart on page 21 for a list of available features. In rotated 180° mode the 10, 12, 17, and 24 CPI spacing commands are effective. This mode of operation simply inverts and mirrors the print operation. All line spacing and print features are available. It should be noted that the feed direction is not affected by any of the rotate commands.
6APA - All Points Addressable
Rev C 7/8/2008
Page 27
Page 29
Control Codes Print Rotation
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Function:
Begin 90 Degree Rotated Print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] r <1> 1BH 72H 01H <27><114><1> &%R1
Description:
Print data is entered in normal left to right, top to bottom format. When an End Rotated Print ([ESC] r <0>) command is received, the printer will format and print the data. The print will be rotated 90 degrees according to the current stored format parameters. In slip mode, the rotated pattern will be 180 degrees different than in receipt mode. However, the resulting print will be the same provided the feed direction is correct. NOTE: Do not use this command in journal mode. It will not function correctly.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Begin 270 Degree Rotated Print [ESC] r <3> 1BH 72H 03H <27><114><3> &%R3
Description:
Print data is entered in normal left to right, top to bottom format. When an End Rotated Print ([ESC] r <0>) command is received, the printer will format and print the data. The print will be rotated 270 degrees according to the current stored format parameters. NOTE: In receipt mode this rotation requires that the text be sent to the printer in reverse. The feed direction in receipt mode must always be from back to front. It is recommended that only rotate 90° be used on the receipt. NOTE: Do not use this command in journal mode. It will not function correctly.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Begin 180 Degree Rotated Print [ESC] r <2> 1BH 72H 02H <27><114><2> &%R2
Description:
All subsequent lines will be rotated 180 degrees and positioned at the opposite margin. This command is effective on all stations including the journal. This command will remain in effect until rotation is canceled with an End Rotated Print ([ESC] r <0>) command, or a station select command is issued. NOTE: The last line of print must be terminated with a line terminator before the END rotated command is issued. Any characters in the print buffer that have not been printed will not be printed. They will be printed un-rotated when a line terminator is received. NOTE: The definition of normal is rotated 180° on the slip station.
Page 28
Rev C 7/8/2008
Page 30
Programmer's Guide Function:
End Rotated Print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] r <0> 1BH 72H 00H <27><114><0> &%R0
Description:
PcOS Series 60
Control Codes
Ithaca Peripherals Incorporated
Print Rotation
Print contents of rotated print buffer ( if 90 or 270 degree mode) and return to normal print orientation. In 180 degree mode the printer will return to normal mode. Characters in the print buffer that have not been printed will NOT be printed. NOTE: The definition of normal is rotated 180 on the slip station.
Function:
Set Rotated Print Line Length
ASCII: Hexadecimal: Decimal: IPCL: Description:
[ESC] s <n> 1BH 73H <n> <27><115><n> &%RL <n> Sets the print line length to be used in Auto Format rotated print mode. The maximum number of characters is 80 per line. The power on default line length is 48 characters. The number of available print lines is found by dividing 1024 by the number of characters per line and rounding down to the nearest whole number. The minimum number is 40 characters. Any value less than 40 will not allow any additional print lines to be printed.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Set Rotated Print Line spacing [ESC] u <n>1 <m>1 <n>2 <m>2... <n>i <m>i 0 1BH 75H <n>1 <m>1 <n>2 <m>2 ... <n>i <m>i 00H <27><117><n>1 <m>1 <n>2 <m>2 ... <n>i <m>i <0> &%RP <n>1<m>1 <n>2 <m>2 ... <n>i <m>i 0
Description:
Adjust line spacing for each rotated print line. Where ni is the line number, mi is the spacing in dot columns (1/60") from the previous line. For the first print line the distance is calculated from the margin. An ni value of 0 is used to terminate the command. Any unspecified spacing will be set to 1. This allows data to be accurately positioned on an inserted form. These values will be used as a template for all subsequent rotated print. On power up, all spacings are preset to 1/60" (n=1, 6.667 Lines per inch) for all lines. This command is only effective in 90° and 270° degree rotation. It will remain in effect until a new table is received or until the printer is power cycled. An [ESC] u <0> will have the effect of setting all lines to 1. The value of m can be from 1 to 127, n can be from 1 to 25. NOTE: When this command is used ENQ processing must be disabled. This will prevent unwanted ENQ responses.
Number of dots added
1
2
3
4
5
6
7
Cell Size
5x9
5x10
5x11
5x12
5x13
5x14
5x15
Line spacing (inches)
0.15"
0.167
0.183
0.20
0.22
0.23
0.25
Number Lines/inch
6.667
6
5.45
5
4.62
4.29
4
The following chart illustrates the line spacing command.
Rev C 7/8/2008
Page 29