The text of a manual · part 6 of 15
PcOS Series 60 Multi-Station Slip Printers Programmer's Guide, pages 51 to 60
Pages 51 to 60 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 51
Control Codes
PcOS Series 60
Codes
Ithaca Peripherals Incorporated
[ESC]
| <n>
NONE
[ESC]
^ <n>
NONE
Page 50
Programmer's Guide
Set vertical alignment. (enabled by [ESC]y<8> Alignment may be set from 0 to 15 Diagnostics Commands (enabled by [ESC]y<8> Where: ..n = '0' Print Sensor readings and model number n = '1' Set Alignment to default value. n = '2' Decrease Alignment value. n = '3' Increase Alignment value. n = '4' Print an internal alignment test. n = '5' Print the units model and serial no. n = '6' Read, Print, Adjust, Read and Print sensors info. n = '7' Cycle the receipt cutter (No Checks) n = '8' Adjust sensor thresholds (No Reports) n = '9' Force Journal exhaust to Magnetic. n = 'A' Force Journal exhaust to Optical. n = 'Z' Places the printer in configuration mode. n = 'C' Closes the slip clamp. n = 'O' Opens the slip clamp. n = 'R' Moves print head to right home. n = 'H' Moves head Home (Last selected home) n = 'L' Moves print head to left home.
Rev C 7/8/2008
47 47
Page 52
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Control Codes Codes
Control Codes Summary (by Function) Normal ASCII <32> ... <255> [LF] [ESC]
Second ASCII field
3 <n> J <n>
[ESC] [ESC] [ESC]
2 n o
[DC2] [ESC] [SI] [ESC] [ESC] [ESC] [ESC] [ESC]
Description
Page
Printable Characters
[ESC] [CR] [ESC] [ESC] [ESC] [ESC] [ESC] [ESC] [ESC]
[SP] [HT] [ESC]
IPCL Equivalent code e k d m 0 1 A <n>
&%LF &%SV <n> &%LV <n> &%CR &%LC &%LK NONE &%LE &%ST &%SG
&%LR &%LB
D <n>1<n>2 <n>3...<n>k <0>
: [SI] 6 7 #0 I <n>
[SO] [DC4] [ESC]
W <n>
[ESC]
- <n>
[ESC]
S <n>
[ESC] [ESC] [ESC] [ESC] [ESC]
T E F G H
&%F3 &%F2 &%F1 &%F4 &%C2 &%C1 &%QT &%QU{n=1} &%QE{n=2} &%QL{n=3} &%MW &%MN &%FD{n=1} &%FE{n=2} &%CU{n=0} &%MU{n=1} &%SB{n=1} &%SP{n=0} &%SE &%MM &%CM &%ME &%CE
Line Control Line Feed Set Fine Line Space n/216" (n=1..255) Defines feed done by [LF] Do a Fine Line Feed n/216" (n=0 no Line Feed; n=1..255) Carriage Return Continuous Feed 2" Feed Receipt 2.0" or to mark Continuous Feed 7" Feed to end of slip (7" Max). Set 1/8" Line Space Set 7/72" Line Space Set Variable Line Spacing n/72 (n=1..85) (Enabled by [ESC] 2) Begin Variable Line Spacing (Enable [ESC] A n) Set Feed Direction Back to Front Set Feed Direction Front to Back Horizontal Motion Control Space Character Horizontal tab Horizontal tab set ( Sets tabs at columns n1 n2 ... nk 0) The maximum value of n depends on the station selected.
xv xvii xv xv xvi xvi xvi xvi xvii xviii xviii xviii xix xix 20 20
Character Control Set 10 CPI Set 12 CPI Set 17 CPI Set 24 CPI Select IBM Character Set 2 Select IBM Character Set 1 Set Normal Print Mode (HSD is Normal) Select Print Mode (n=1 Feat Util; n=2 Enhanced; n=3 NLQ)
22 22 22 22 26 25 24 24
One Line Double Wide Cancel One Line Double Wide Multi-line Double-Wide Sequence (n=0 End, n=1 Begin)
23 23 23
Underline (n=0 End, n=1 Begin )
31
Select Superscript / Subscript (n=0 Super, n=1 Sub)
31
End Superscript / Subscript Begin Emphasized Print (Half Speed) End Emphasized Print Begin Enhanced Print (Double Pass) End Enhanced Print Graphics
Rev C 7/8/2008
32 31 32 31 31
Page 51
Page 53
Control Codes
PcOS Series 60
Codes
Ithaca Peripherals Incorporated
[ESC]
Y <n>1 <n>2
[ESC]
K <n>1 <n>2
[ESC]
U <n>
[ESC] r <n>
[ESC] [ESC] s <n> u <n>1 <m>1 <n>2 <m>2 ...<n>k
[ESC] [ESC] [ESC] [ESC] [ESC] [ESC] [ESC] f v g h N i M
&%SR &%FC &%SJ &%SL &%SQ &%SF &%SM
[ESC] [ESC] b B
&%SW &%SX
[ESC] [ESC] [ESC] j p <n> l <n>
[ESC] z
&%SN &%LM <n> &%SD {n = 1} &%SS {n = 0} &%SO
[ESC] x <n>
[CAN] [ESC] [ESC] q Q
[ENQ]12
<n>
&%GF <n>1 <n>2 &%GS <n>1 <n>2 &%GU{n=1} &%GB{n=0} &%R0{n=0} &%R1{n=1} &%R2{n=2} &%R3{n=3} &%RL <n> &%RP <n>1 <m>1 <n>2 <m>2 ... <n>k
&%D1{n=1} &%D2{n=2} &%RD NONE NONE
Programmer's Guide
DD Full-Speed Graphics (n1=0..255,n2=0..3,Len=n1 +256 * n2) Single Density Graphics (n1=0..255, n2=0..3, len=n1 +256*n2) Select Bi-directional / Unidirectional (n=0 Bi, n=1 Uni) Rotated Print Control Rotated Print (n: 0-End, 1-Rot B 90, 2 Rot-L 180, 3-Rot B 270) Set Rotated Print Line Length (n = 1..80) Default 48 Set Rotated Print Line Spacing (nk=0 End) Where n = line and m = Dots from last line. NOTE: All lines not specified are set to 1 dot. Station Control Receipt Load Cycle Receipt Cutter Select Journal Load Slip and Position to Slip Sensor Load Slip and Position to Slip Sensor (Ck Front Sensor only) Load Slip and Position to First Print Line Load Slip and Position to First Print Line(Ck Front Sensor only) Load Slip and Position to First Print Line in 180° mode. Load Slip and Position to First Print Line in 180° mode.(Ck Front Sensor only) Load Slip (no auto position and no sensors checked) Set Slip Left Margin (n dot col at 60 dots per inch) Dual station operation. ( n = 1 Dual station, n = 0 single station) (Enable journal feed in Slip or Receipt mode) Open Slip Clamp Cash Drawer Control Open Cash Drawer n (n=1 or 2) Printer Status and Control Clear Print Buffer Wait for operation complete; Wait in input Que. until previous commands are complete and then return a response. (CFG60 will automatically wait for this command Inquire Status (n=1 Cash Dwr 1, n=2 Cash Dwr 2, n=3 Buffer Empty, n=4 Journal Paper, n=5 Front Slip Sensor, n=6 Rear Slip Sensor, n=7 Printer Ready, n=8 Ignore all input, n=9 Enable Input.13,n=10 Reset Printer,n=11 Power Cycle Status
12ENQ Returns ACK n or NAK n. ENQ's Are preprocessed and return immediate responses. 13ENQ 7, 8, 9,and 10 are not valid in parallel mode.
Page 52
Rev C 7/8/2008
33 33 33 28
29 29
34 34 34 36 36 35 36 37 37 35 37 37 35 40 47 47 39 42
Page 54
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
[ESC] y <n>
&%Y0 - 8
[ESC]
| <n>
NONE
[ESC]
^ <n>
NONE
Control Codes Codes
Control ENQ's, Control IPCL, Disable Clamp Checks. Where: n=0 Disable, n=1 Enable, n=2 Strip ENQs, n=3 Disable ENQ 8 - 10 (n=1 Will enable all ENQ's), n=4 Disable IPCL translation, n=5 Enable IPCL translation, n=6 Disable Slip Clamp Checks, n=7 Enable Slip Clamp Checks n=8 Enable Extended Diagnostics Extended Diagnostics Set vertical alignment. (enabled by [ESC]y<8> Alignment may be set from 0 to 15 Diagnostics Commands (enabled by [ESC]y<8> Where: n = '0' Print Sensor readings and model number n = '1' Set Alignment to default value. n = '2' Decrease Alignment value. n = '3' Increase Alignment value. n = '4' Print an internal alignment test. n = '5' Print the units model and serial no. n = '6' Read, Print, Adjust, Read and Print sensors info. n = '7' Cycle the receipt cutter (No Checks) n = '8' Adjust sensor thresholds (No Reports) n = '9' Force Journal exhaust to Magnetic. n = 'A' Force Journal exhaust to Optical. n = 'Z' Places the printer in configuration mode. n = 'C' Closes the slip clamp. n = 'O' Opens the slip clamp. n = 'R' Moves print head to right home. n = 'H' Moves head Home (Last selected home) n = 'L' Moves print head to left home.
How to use the Series 60 Features Rev C 7/8/2008
Page 53
47
47 47
Page 55
Series 60 Features Slip Staton
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
How to use the Slip Station Printing on forms. One of the most common Slip printing operations is printing on a pre-printed form. The Series 60 printer is well suited for this operation. It has enough forms sensing features to find the top and bottom of the form as well as the ability of printing in any of 4 directions. When printing on preprinted forms, the text and line spacing setup must be consistent at the start of the operation.. In addition the printer should be returned to a consistent setup at the end of all printing operations. If a consistent starting place is not defined the second slip may not be printed the same as the first. When setting up the printer to a defined state, there are a number of features that must be considered.. Print Font: What Character set and what print pitch. For example character set 1 and 17 CPI are the power on defaults. Print Features: What print mode is active. This includes sub-script, super-script, underline and Double wide. At power up the printer has no features active. Line Spacing: What is the current line spacing and what is the variable spacing set to. At power up the spacing is set to 1/8 Inch (8 lines per inch). When the Slip station is selected, the print head is moved to the left and the printer prepares itself to print from left to right. The slip will be printed from the top down, and from left to right as the slip is fed into the printer (front to back feed). The rotated print processor is configured such that this mode is the unrotated format. Selecting the slip station does not define the print font, print features, or line spacing. To demonstrate printing on a pre-printed form, the form shown on the previous page will be filled out. To increase printer performance the initial settings should be sent to the printer before the slip station is selected. The following sequence might be used to define an initial setting. [ESC]#0 Set High Speed Print Mode. [ESC]: Set 12 CPI. [ESC]6 Set Character Set II. [ESC]0 Set 1/8 Inch Line Spacing. [ESC]A<18> Set Variable Line Spacing to 1/4 Inch. [ESC]p<0> Set Slip Left margin to 0. After this is sent to the printer ask the operator to insert the slip. The ENQ <5> and ENQ <6> commands are used to find out if the operator has inserted the slip correctly. The printer will check the sensors if [ESC] h or [ESC] I is issued. If [ESC] j is used no sensor checking is done by the printer.
Example of preprinted forms printing on the Slip Station
When the Slip has been positioned by the operator, disable the ENQ commands and issue the slip station select command. The ENQ preprocess should be disabled as soon as possible after the sensor checks are performed. The disable command must be processed by the printer before the rotated print format is sent to the printer. Then position the slip to the initial print location (in this case the date field).
Page liv
Rev C 7/8/2008
Page 56
Programmer's Guide [ESC]y<0> [ESC]h [ESC]J<2>
PcOS Series 60
Ithaca Peripherals Incorporated
Series 60 Features Slip Station
Turn off ENQ operations as early as possible. Clamp on the slip and move to 1.75 inch from the top of the slip. Fine position the slip to the first field. Note: if the first position is above 1.75 inch use the [ESC] i command.
Now fill in the print fields using positioning commands and spaces to make the print align with the form. 01/28/93 Nancy 25 4[CR][LF] Fill in first line, use spaces for alignment. [ESC]J<44> Position to second line. [ESC]2 Enable the variable line spacing specified above. [ESC]p<90> Set the left margin. Item 1 5.95[CR][LF] Print the items. Item 2 6.95[CR][LF] Item 3 and so on[CR][LF] {rpt:13}[LF] Line feed over unused lines14. 127.50[CR][LF] Print total. [ESC]J<61> Position the form to the next field. 127.50[CR][LF] Print the subtotal field. Tax 8% 10.20[CR][LF] Print the tax field. 137.70[CR][LF] Print the total field. At this point the form is complete. However to make this example more interesting we will get a little fancy. There is a date field that is too small for most printers, we will fill it in with 24 CPI print. [ESC]0 Set line spacing to 1/8 inch. [ESC]p<0> Set left margin to 0. [ESC][SI] Select 24 CPI. [ESC]J<70> Position to the form field. 01/28/93[CR][LF] Fill in the date. To illustrate rotated print, lets print some credit card information on the blank area on the right side of the form. This is probably not a real operation for this form but will demonstrate the positioning of rotated print on a pre printed form. [ESC]n Reverse the feed direction to front to back. {rpt:19}[LF] Position the form to the blank field.15 [ESC]p<127> Set the left margin in as far as possible. [ESC]s<50> Set the max. line length to 50 characters. [ESC]u<1><80><2><2><3><2><4><8><5><8><0> Set the line position spacing. [ESC]3<18> Set the inter character spacing. [ESC]r<3> Start the rotated print field and rotate 270 Degrees. Name: John R. Doe[CR] Load the Print the information. Card # 1234 5678 9012 3456[CR] (Notice that the [LF] is not required.) Exp: 3/98 MC 1234[CR] Amount: 137.70 Auth: 1234[CR] Date: 01/28/1993 10:47 PM[CR] [ESC]r<0> End the rotated field and print. Now lets print a title on the top of the form. This will be done on the way out of the printer. This means that we will print from the bottom up. [ESC]n Set the feed direction. {rpt:18}[LF] Position to the bottom of the print field. [ESC]p<0> Set the left margin to 0. [ESC]: Set printer to 12 CPI.
14{rpt:13} is a CFG60 Demo processor command and is NOT sent to the printer.
In this case 13 line feeds are sent to the
15{rpt:19} is a CFG60 Demo processor command and is NOT sent to the printer.
In this case 19 line feeds are sent to the printer printer.
Rev C 7/8/2008
Page lv
Page 57
Series 60 Features Slip Staton
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
[ESC]0 Set line spacing to 1/8 inch. [ESC]I<3> Set NLQ print mode. (607) 257 8901[CR][LF] Print heading from Ithaca, New York 14850[CR][LF] the bottom up. 20 Bomax Drive[CR][LF] [SI] Set 17 CPI [SO] Set double wide Ithaca Peripherals Inc. Print top line [ESC]n Specify feed direction to eject slip. [ESC]e Feed slip 2 inches and out from under the slip clamp. [ESC]z Open the slip clamp. This completes the form, however the defaults should be restored to the printer.. This will make the next transaction more reliable. The reactivating of the ENQ preprocessing is very important [ESC]u<0> Reset rotated print line spacing. [ESC]y<1> Reactivate the ENQ processing. [ESC]#0 Set high speed print mode. [ESC]: Set 12 CPI. [ESC]6 Set character set 2. [ESC]0 Set 1/8 inch line spacing. [ESC]A<9> Set variable line spacing to 1/8 inch. [ESC]p<0> Set left margin to 0. The following is the complete CFG60 demo script for the above slip example. {rem} Initial Setup [ESC]p<127> [ESC]#0 [ESC]s<50> [ESC]: [ESC]u<1><80><2><2><3><2><4><8><5><8>< [ESC]6 0> [ESC]0 [ESC]3<18> [ESC]A<18> [ESC]r<3> [ESC]p<0> Name: John R. Doe[CR] {rem} Ask for Slip to be inserted Card # 1234 5678 9012 3456[CR] {Sensor}Guest Check Exp: 3/98 MC 1234[CR] [ESC]y<0> Amount: 137.70 Auth: 1234[CR] [ESC]h Date: 01/28/1993 10:47 PM[CR] [ESC]J<2> [ESC]r<0> 01/28/93 Nancy 25 {rem} Print title on the way out 4[CR][LF] [ESC]n [ESC]J<44> {rpt:18}[LF] [ESC]2 [ESC]p<0> [ESC]p<90> [ESC]: Item 1 5.95[CR][LF] [ESC]0 Item 2 6.95[CR][LF] [ESC]I<3> Item 3 and so on[CR][LF] {rpt:13}[LF] (607) 257 8901[CR][LF] 127.50[CR][LF] Ithaca, New York 14850[CR][LF] [ESC]J<61> 20 Bomax Drive[CR][LF] [SI] 127.50[CR][LF] [SO] Tax 8% 10.20[CR][LF] Ithaca Peripherals Inc. 137.70[CR][LF] [ESC]0 [ESC]n [ESC]p<0> [ESC]e [ESC][SI] [ESC]z [ESC]J<70> {rem} Restore a default mode 01/28/93[CR][LF] [ESC]u<0> {rem} Print Credit Card Info Rotated [ESC]y<1> [ESC]n [ESC]#0 {rpt:19}[LF] [ESC]:
Page lvi
Rev C 7/8/2008
Page 58
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
[ESC]6 [ESC]0
Series 60 Features Slip Station
[ESC]A<18> [ESC]p<0>
Preprinted CFG60 Demo control script
Rev C 7/8/2008
Page 57
Page 59
Series 60 Features Slip Staton
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
How to use rotated print on the Slip Station One of the most unique and powerful features of the Series 60 printer is the ability to rotate the print. The print can be rotated to any 90 degree orientation. The series 60 printer treats rotated print in one of two ways. The first is to simply invert and mirror the print data. The second is to translate the print data into graphics. In normal operation, the print on the slip and receipt stations are rotated 180° from one another. The receipt (and journal) station print as the paper moves from the back to the front of the printer. The slip prints on the way into the printer or from front to back. This is accomplished by inverting and mirroring the print image. This operation is easily done by the print controller. When rotating print 90° or 270° the print controller must convert the print data to graphics. Because the printer always prints the first character of each line first, the paper feed direction must be set correctly to print in the proper orientation. The normal line spacing commands will adjust the character pitch. In addition, all print information must be received before the print can start. As the characters are printed as graphics, the white space between lines is controlled by the graphics generator. The graphics generator must be configured with all line spacing before the print starts. Because 180 degree rotation is very easy and does not require graphics, it is full featured. Features like underline that are available in normal print are also available in 180° print. Rotate 180° is also printed on a line by line basis. Because 90° and 270° are generated in graphics the feature set is limited. In addition 90° and 270° are always printed in the 12 CPI font. To illustrate how to use the rotated print feature, the following print example will be generated. (The pre-printed form example above is also helpful to illustrate rotated print.) This print example will start with printing the rotated pattern on the right side. This is rotated 90°. {sensor} Insert the slip Ask the Example of Rotated Print on the Slip Station operator to insert a slip. [ESC]h Select the slip station and load the form to the rear sensor. [ESC]<48> Pre-set rotated print defaults. 48 characters per line maximum. [ESC]p<0> Set 0 for left margin. [ESC]u<0> Set rotated line spacing to default values. (2 dots) [ESC]0 Set 1/8 inch spacing. [LF][LF][LF] Position the form to allow room for the final print pattern. [ESC]3<18> Set the inter-character spacing to 12 CPI. [ESC]r<1> Select rotate 90°. Ithaca Peripherals Incorporated[CR] Send the text to be rotated. 20 Bomax Drive [CR] Ithaca, New York, 14850 [CR] Note that the [LF] for line feed is not required. Series 60 Slip Printer [CR] If a [LF] is added it will be ignored but will take 90 Degree Rotated Print Mode [CR] buffer space. [ESC]r<0> Select Rotate 0°. This will tell the printer to print the buffer. Now print the bottom text which is rotated 180°. This will print as the form moves from back to front of the printer.
Page 58
Rev C 7/8/2008
Page 60
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Series 60 Features Slip Station
[ESC]0 Adjust the line spacing for 1/8 inch. [LF][LF][LF][LF] Move the form further into the printer to make room for the 108°print. [LF] Move one too far to allow backlash removal. [ESC]n Reverse the feed direction. [LF] Move back one line to remove any backlash. [ESC]: Set 12 CPI print. [ESC]r<2> Request that the following print be rotated 180°. Ithaca Peripherals Incorporated[CR][LF] Send the text to the printer. 20 Bomax Drive [CR][LF] Note: This text is not buffered. It is printed as Ithaca, New York, 14850 [CR][LF] soon as the [CR] is received. Also note that unlike Series 60 Slip Printer [CR][LF] 90° and 270° print, the [LF] is required. 180 Degree Rotated Print Mode [CR][LF] [ESC]r<0> Request that print be returned to normal. Note: This command is not required with this demo because we are going to give the printer another rotate command. However it is a good idea to be consistent. Next, print the 270° portion. This will also be printed as the paper moves from back to front. Because the last operation has already specified the direction, it is not necessary to specify the direction again. [ESC]3<18> Set the inter-character space to 12 CPI. [ESC]p<90> Move the left margin in 90 dots or 1.5 inches. [ESC]r<3> Request print be rotated 270°. Ithaca Peripherals Incorporated[CR][LF] Send the print to the printer. 20 Bomax Drive [CR][LF] This will be buffered by the printer until the Ithaca, New York, 14850 [CR][LF] End Rotate Print is received. Series 60 Slip Printer [CR][LF] Note This time we have left the [LF] on, although it is 270 Degree Rotated Print Mode [CR][LF] not necessary. [ESC]r<0> End the rotate mode. The printer will now print it's buffer. Next print a normal section of print. However, instead of printing in the normal feed direction we will print in the reverse direction (from back to front). This requires that the information be sent to the printer from the bottom up. [ESC]: Set the character pitch to 12 CPI. [ESC]0 Set the line spacing back to 1/8 inch. [ESC]p<90> Set the left margin in 90 dots or 1.5 inches. [LF] Position the form. Normal Orientation Print Mode [CR][LF]Send the data to the printer from the bottom up. Series 60 Slip Printer [CR][LF] Ithaca, New York 14850 [CR][LF] 20 Bomax Drive [CR][LF] Ithaca Peripherals Incorporated[CR][LF] [ESC]p<0> Reset the left margin. [ESC]z Open the slip clamp. Now reset defaults. [ESC]u<0> Reset Rotated print line spacing. [ESC]y<1> Reactivate the ENQ processing. [ESC]#0 Set High speed print mode. [ESC]: Set 12 CPI. [ESC]6 Set character set II. [ESC]0 Set 1/8 inch line spacing. [ESC]A<9> Set variable line spacing to 1/8 inch. [ESC]p<0> Set left margin to 0. The following is the complete CFG60 Control Script for the rotated print example. {sensor} [ESC]0 [ESC]h [LF] [ESC]<48> [LF] [ESC]p<0> [LF] [ESC]u<0> [LF]
Rev C 7/8/2008
Page 59