The text of a manual · part 4 of 15
PcOS Series 60 Multi-Station Slip Printers Programmer's Guide, pages 31 to 40
Pages 31 to 40 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 31
Control Codes Print Rotation
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Edge of form Left Margin
First line n=1, m
Second Line n=2, m Third Line
The print example on the right is an example of rotated print. It was obtained with the following print codes:
[ESC]h [ESC]m[ESC]m[ESC]n[ESC]e[ESC]h [ESC]1 [ESC]r<1> Ithaca Peripherals Incorporated 20 Bomax Drive Ithaca, New York, 14850
[CR][LF] [CR][LF] [CR][LF] [CR][LF]
{date:0} {time:1}[CR][LF] Series 60 Slip Printer Rotated Print Mode
[CR][LF] [CR][LF] [CR][LF] *************************************[CR][LF] * INNOVATIVE *[CR][LF] * SOLUTIONS *[CR][LF] * FOR *[CR][LF] * RETAIL *[CR][LF] * AND *[CR][LF] * FINANCIAL *[CR][LF] * APPLICATIONS *[CR][LF] *************************************[CR][LF] [ESC]r<0>[ESC]0[ESC]n {rpt:32}[LF] [ESC]z
Data Sent to the printer
Resulting Print
Page 30
Rev C 7/8/2008
Page 32
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Control Codes
Character Attributes
Character Attribute Commands Function:
Begin Underline
ASCII: Hexadecimal: Decimal: IPCL: Description:
[ESC] - <1> 1BH 2DH 01H <27><45><1> &%MU Begin Underline print mode. All subsequent text and leading spaces will be underlined. Trailing spaces are also underlined. NOTE: Underline is not available in Enhanced Print Modes. See page 21 for available modes.
Function: ASCII: Hexadecimal: Decimal: IPCL:
End Underline [ESC] - <0> 1BH 2DH 00H <27><45><0> &%CU
Description:
Ends Underline print mode.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Begin Enhanced Print [ESC] G 1BH 47H <27><71> &%ME
Description:
All subsequent text will be printed in enhanced print mode (2 pass w/ vertical offset). Enhanced printing provides a deeper resolution of each character and may enhance multiple part form printing. NOTE: This mode is not available on the journal.
Function:
End Enhanced Print Mode
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] H 1BH 48H <27><72> &%CE
Description:
Cancel Enhanced print mode and return to currently selected font.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Begin Emphasized Print [ESC] E 1BH 45H <27><69> &%MM
Description:
Begin Emphasized print mode (1 pass w/ horizontal offset). This print is bolder than normal print.
Function:
End Emphasized Print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] F 1BH 46H <27><70> &%CM
Description:
Cancel Emphasized print mode
Function: ASCII: Hexadecimal: Decimal: IPCL:
Select Superscript [ESC] S <0> 1BH 53H 00H <27><83><0> &%SP
Rev C 7/8/2008
Page 31
Page 33
Control Codes
Character Attributes Description:
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Selects Superscript. All following characters will be printed half size on the upper side of the print line. NOTE: This feature is not available in all print modes. See page 21 for available modes.
Function:
Select Subscript
ASCII: Hexadecimal: Decimal: IPCL: Description:
[ESC] S <1> 1BH 53H 01H <27><83><1> &%SB Selects Subscript. All following characters will be printed half size on the bottom side of the print line. NOTE: This feature is not available in all print modes. See page 21 for available modes.
Function: ASCII: Hexadecimal: Decimal: IPCL:
End Superscript or Subscript [ESC] T 1BH 53H <27><84> &%SE
Description:
Ends Superscript or Subscript.
[ESC]f [ESC]: [ESC]I<1> [ESC]v {RPT:5}[LF] This is an example of [ESC]-<1>Underline[ESC]<0>.[CR][LF][LF] [ESC]G This is Enhanced Mode[CR][LF][LF] [ESC]H [ESC]E This is Emphasized Mode[CR][LF][LF] [ESC]F This is [ESC]S<0>Superscript[ESC]T[CR][LF][LF] This is [ESC]S<1>Subscript[ESC]T[CR][LF][LF] [ESC]z
Data Sent to the printer
Page 32
Rev C 7/8/2008
Resulting Print
Page 34
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Control Codes Graphics
Graphics Mode NOTE: Be sure to disable ENQ commands before sending graphics data. NOTE: The journal feeds only from back to front. Function:
Begin Unidirectional Print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] U <1> 1BH 55H 01H <27><85><1> &%GU
Description:
Print all data in unidirectional print mode to improve line to line registration for graphics data. NOTE: This command should be canceled before normal text is printed. It will slow print if it is not canceled.
Function:
Begin Bi-directional Print
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] U <0> 1BH 55H 00H <27><85><0> &%GB
Description:
Print all data in bi-directional, logic seeking print mode.
Function:
Print Single Density Graphics ( 60 72dpi)
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] K <n>1 <n>2 1BH 4BH <n>1 <n>2 <27><75><n>1 <n>2 &%GS <n>1 <n>2
Description:
Print n1 + 256*n2 bytes of single density graphics (60 dpi).
Function:
Print Double Density Graphics ( 120 x 72dpi)
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] L <n>1 <n>2 1BH 4CH <n>1 <n>2 <27><76><n>1 <n>2 &%GD <n>1 <n>2
Description:
Print n1 + 256*n2 bytes of double density graphics (120 dpi)
Function: ASCII: Hexadecimal: Decimal: IPCL:
Print Double Density Graphics ( 120 x 72 dpi) [ESC] Y <n>1 <n>2 1BH 59H <n>1 <n>2 <27><89><n>1 <n>2 &%GF <n>1 <n>2
Description:
Print n1 + 256*n2 bytes of double density graphics (120 dpi) full speed, no consecutive dots.
Rev C 7/8/2008
Page 33
Page 35
Control Codes Station Control
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Station Control The Series 60 printer differs from a normal computer type printer in that it is meant for retail point of sale applications. This requires that the printer have control sequences that are not normally found in data processing and general purpose printers. These commands fall into two categories; Station Control and Miscellaneous control. Function: Load Receipt Paper ASCII: Hexadecimal: Decimal: IPCL:
[ESC] f 1BH 66H <27><102> &%SR
Description:
Enter receipt mode. This command reset margins, homes the print head and positions receipt tape under print head. The paper feed direction is set from back to front. All subsequent data will be printed on the receipt. While the receipt tape in still in the receipt paper path, the feed direction should not be reversed.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Activate Receipt Cutter [ESC] v 1BH 76H <27><118> &%FC
Description:.
Cut receipt tape. This command is only active in receipt mode when both sensors are covered. It will cut the receipt tape 3.0" from the current print line. Printing can continue to 0.5" from the end of the receipt.
Function:
Select Journal Station
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] g 1BH 67H <27><103> &%SJ
Description:
Enter journal mode. Reset margins and home the print head. All subsequent data will be printed on the journal tape. Under normal operation, if the journal is selected while there is a slip or receipt in the printer an alarm will be displayed. To optimize the printing of journal entries after slip and receipt operations, there is a way to issue a journal select command and have the printer wait for the slip or receipt to be removed. If the slip clamp is closed and only the front sensor is covered the printer will accept a "select journal" command and wait for the front sensor to be cleared. The printer will then start automatically start the journal operation. To leave the slip clamp closed after a slip or receipt operation, feed the receipt or slip from back to front until it is out from under the feed rollers. Leave the slip clamp closed and start the journal operation. When the slip or receipt is removed the journal print will start after a short delay.
Page 34
Rev C 7/8/2008
Page 36
Programmer's Guide
PcOS Series 60
Control Codes
Ithaca Peripherals Incorporated
Station Control
Function:
Open Slip Clamp
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] z 1BH 7AH <27><122> &%SO
Description:
Open Forms Compensation Assembly for insertion/removal of slip. This command can also be used to release the receipt.
Function:
Clamp on Slip
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] j 1BH 6AH <27><106> &%SN
Description:
Enter slip mode. This command resets the margins, homes the print head and clamps on the inserted form. If there is no form present or it is not fully inserted the command will NOT generate an error. If the application program in the host computer is to control the slip insertion before the command is issued the ENQ 5 and 6 status request codes can be sent to the printer to query the sensor status.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Load Slip , Position to first print line [ESC] i 1BH 69H <27><105> &%SF
Description:
Enter slip mode and position slip to first print line. This command resets the margins, homes the print head and clamps on the inserted form. It then positions the form to the first available print line. The first line is 0.75 inches from the top of form7.
Form Requirements for [ESC] i and [ESC] h 3.5" Min.
Top View
4.0" Min.
4.0" Min Note: Model 61 and 62 printers will accept forms less than 4.0".
If there is no form present or it is not fully inserted, the command will generate an error. The error can be cleared by pressing the Select key, inserting the form correctly and reselecting the printer. If the application program in the host computer is to control the slip insertion, the ENQ 5 and 6 status request commands can be sent to the printer to query the sensor status before the Load Slip command is issued.
7
It is possible to print closer than 0.75 inches of the top of the form. Byusing the [ESC] b or [ESC]B commands. However, you will not be able to print within 0.75 Inches of the bottom of the form.
Rev C 7/8/2008
Page 35
Page 37
Control Codes Station Control
PcOS Series 60
Ithaca Peripherals Incorporated
Function:
Load Slip , Position to first print line
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] M 1BH 4DH <27><77> &%SF
Description:
Enter slip mode and position slip to first print line. This command resets the margins, homes the print head and clamps on the inserted form. It then positions the form to the first available print line. The first line is 0.75 inches from the top of form.
Programmer's Guide Form Requirements for [ESC] M and [ESC] N Top View 2.0" Min. 2.5" Min.
4.0" Min Note: Model 61 and 62 printers will accept forms less than 4.0".
If there is no form present, the command will generate an error. The error can be cleared by pressing the Select key, inserting the form correctly and reselecting the printer. Unlike the [ESC] i command this command requires that only the front Slip Sensor be covered and the form be under the feed rolls. The printer will load the form to the rear sensor to check for alignment. If the form is not found an error is generated. The form must be at least 2.5 Inches long and 4.0 Inches wide for proper operation. If the application program in the host computer is to control the slip insertion, the ENQ 5 status request command can be sent to the printer to query the sensor status before the Load Slip command is issued. Function:
Load Slip, Position to Top of Form
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] h 1BH 68H <27><104> &%SL
Description:
Enter slip mode and position the slip to the top of the form. This command resets the margins, homes the print head and clamps on the inserted form. It then positions the form to the edge of the rear slip sensor. This is 1.75 inches from the top of form. If there is no form present or it is not fully inserted the command will generate an error. The error can be cleared by pressing the Select key, inserting the form correctly, and reselecting the printer. If the application program in the host computer is to control the slip insertion, the ENQ 5 and 6 status request commands can be sent to the printer to query the sensor status before the Load Slip command is issued.
Function: ASCII: Hexadecimal: Decimal: IPCL: Description:
Load Slip, Position to Top of Form [ESC] N 1BH 4EH <27><78> &%SQ Enter slip mode and position the slip to the top of the form. This command resets the margins, homes the print head and clamps on the inserted form. It then positions the form to the edge of the rear slip sensor. This is 1.75 inches from the top of form. If there is no form present the command will generate an error. The error can be cleared by pressing the Select key, inserting the form correctly, and reselecting the printer. Unlike the [ESC] h command this command requires that only the front Slip Sensor be covered. The printer will load the form to the rear sensor to check for alignment. If the form is not found an error is generated. The form must be at least 2.5 Inches long and 4.0 Inches wide for proper operation. If the application program in the host computer is to control the slip insertion, the ENQ 5 status request command can be sent to the printer to query the sensor status before the Load Slip command is issued.
Function:
Page 36
Load Slip, Position to Top of Form (rotated 180°)
Rev C 7/8/2008
Page 38
Programmer's Guide ASCII: Hexadecimal: Decimal: IPCL: Description:
PcOS Series 60
Control Codes
Ithaca Peripherals Incorporated
[ESC] b 1BH 62H <27><98> &%SW Enter slip mode and position the slip to the top of the form. This command resets the margins, homes the print head and clamps on the inserted form. It then positions the form to the first print line of the form 0.35 inches from the top of the form.
Station Control
Form Requirements for [ESC] b Top View
3.5" Min. 4.0" Min.
4.0" Min Note: Model 61 and 62 printers will accept forms less than 4.0".
Unlike previous slip load commands, this command prints upside down and as the form moves out of the printer. That is the top of the form is toward the operator. If there is no form present the command will generate an error. The error can be cleared by pressing the Select key, inserting the form correctly, and reselecting the printer. Unlike the [ESC] B command this command requires that both the front and the rear Slip Sensor be covered. If the edge of the form is not found an error is generated. The form must be at least 3.5 Inches long and 4.0 Inches wide for proper operation. If the application program in the host computer is to control the slip insertion, the ENQ 5 status request command can be sent to the printer to query the sensor status before the Load Slip command is issued. Function:
Load Slip, Position to Top of Form (rotated 180°)
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] B 1BH 42H <27><66> &%SX
Description:
Enter slip mode and position the slip to the top of the form. This command resets the margins, homes the print head and clamps on the inserted form. It then positions the form to the first print line of the form 0.35 inches from the top of the form.
Form Requirements for [ESC] B Top View 2.0" Min. 2.5" Min.
4.0" Min Note: Model 61 and 62 printers will accept forms less than 4.0".
Unlike previous slip load commands, this command prints upside down and as the form moves out of the printer. That is the top of the form is toward the operator. If there is no form present the command will generate an error. The error can be cleared by pressing the Select key, inserting the form correctly, and reselecting the printer. Unlike the [ESC] b command this command requires that only the front Slip Sensor be covered. If the edge of the form is not found an error is generated. The form must be at least 2.5 Inches long and 4.0 Inches wide for proper operation. If the application program in the host computer is to control the slip insertion, the ENQ 5 status request command can be sent to the printer to query the sensor status before the Load Slip command is issued. Function:
Set Slip Left Print Margin
ASCII: Hexadecimal: Decimal: IPCL: Description:
[ESC] p <n> 1BH 70H <n> <27><112> &%LM <n> Set left print margin in 1/60" increments where 0< n < 127. This is the left as you look at the printer from the front or view the resulting print. If in rotated 180 Degree print mode the left margin is on the right of the printer but still on the left of the printed form. NOTE: This command works only in slip mode.
Function: ASCII:
Enable or Disable Dual Station Operation [ESC] l <n> Rev C 7/8/2008
Page 37
Page 39
Control Codes Station Control Hexadecimal: Decimal: IPCL: IPCL: Description:
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
1BH 6CH <n> <27><108><n> &%SD (Enable Dual Station) &%SS (Single Station) If n = 1 Dual Station is enabled. In this mode both the Receipt and Journal (or the Slip and Journal) will feed. This allows the journal to record the information printed on the receipt or inserted form. If n = 0 the printer will revert back to single station operation. The effect of this command is to enable journal feed in Slip and Receipt modes. This mode requires that the journal paper be self-printing and the print to be recorded on the journal be centered on the journal print zone. Note: The journal will feed back to front with fixed feed only. This should be taken into consideration when this mode is used. When any station select commands are issued, the printer will revert to single station operation.
Page 38
Rev C 7/8/2008
Page 40
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Control Codes Station Control
Miscellaneous Control Function:
Clear Print Buffer
ASCII: Hexadecimal: Decimal: IPCL: Description:
[CAN] 18H <24> &%RD Clears print buffer. 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. If the serial interface is being used an [ENQ] <10> will reset the printer and clear any clearable errors. In parallel mode toggling the INIT signal will reset the printer. Both of these "Reset" operations will reset the printer to the power on defaults. The CAN command does NOT restore default conditions. It only clears the print buffers.
Function: ASCII: Hexadecimal: Decimal: IPCL:
Wait in Print Que. [ESC] q 1BH 71H <27><113> NONE
Description:
This command waits at the output of the print buffer Que. until the printer has completed all previous tasks. This command is used to allow ENQ <3> commands to return buffer not empty until the printer has completed all operations. This has no effect on print data or print mode.
Function:
Wait for Print Que.
ASCII: Hexadecimal: Decimal: IPCL:
[ESC] Q 1BH 51H <27><81> NONE
Description:
This command waits at the output of the print buffer Que. until the printer has completed all previous tasks. This command will respond to the host with an acknowledge when all previous commands have been completed. This has no effect on print data or print mode. In serial mode this command will return an [ETX] to the host. In parallel mode a busy/acknowledge sequence will be issued. A detailed description of this response is described in the Parallel & Serial Port Acknowledge sections.
Rev C 7/8/2008
Page 39