Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 11 of 15

PcOS Series 60 Multi-Station Slip Printers Programmer's Guide, pages 101 to 110

Pages 101 to 110 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 101

Configuring Printers

PcOS Series 60

Ithaca Peripherals Incorporated

Programmer's Guide

PRINTVRF.MCH Print an alignment verification pattern. (Could be a check) PRINT.MCH Print alignment chart. (Leaves alignment set to 7) PRINTCUT.MCH Cycles the cutter PRINTUP.MCH Increases the vertical adjustment and prints a test pattern PRINTDN.MCH Decreases the vertical adjustment and prints a test pattern CLAMPOP.MCH Opens the Slip Clamp CLAMPCL.MCH Closes the Slip Clamp HOMERT.MCH Moves head to Right Home HOMELF.MCH Moves head to Left Home ADJSET0.MCH Sets Vertical adjustment to 0 and prints a test pattern. . . . ADJSET15.MCH Sets Vertical adjustment to 15 and prints a test pattern. These files are not needed by typical CFG60 users. They can be deleted from the disk is the mechanical adjustments should not be required..

Page 100

Rev C 7/8/2008

Page 102

Programmer's Guide

PcOS Series 60

Ithaca Peripherals Incorporated

Configuring Printers

Creating Configuration files for CFG60 To make CFG60 easier there are a number of parameters can be preset in a configuration file. These fall into three categories: PC Configuration, Default Printer Configuration, and CFG60 Feature Selections.

PC Configuration "COM 1" "COM 2" "COM 3" "COM 4" "NOLPT" "LPT 1" "LPT 2"

Select COM1 Select COM2 Select COM3 Select COM4 Select NO Parallel Port available Select LPT1 Select LPT2

Default Printer Configuration To define a default Printer Configuration, use the following commands in the CFG60.CFG file (NOTE: Some of the configuration commands will also define the test and demonstration communications configuration; these are tagged with a *). The last specified option will override a previous specification. In other words, if PARALLEL is after SERIAL in the file, the SERIAL command will be ignored. This allows a serial test and demonstration configuration to be defined but a parallel printer configuration to be the default. "SERIAL" "PARALLEL" "BAUD 19200 " * "BAUD 9600 " * "BAUD 4800 " * "BAUD 2400 " * "BAUD 1200 " * "BAUD 600 " * "BAUD 300 " * "8BN " * "8BE" * "8BO" * "7BN" * "7BE" * "7BO" * "MODEL 61" "MODEL 62" "MODEL 63" "MODEL 64" "XON" * "XOFF * "DTR" *

Serial Configuration Parallel Configuration 19200_baud 9600_baud 4800_baud 2400_baud 1200_baud 600_baud 300_baud 8 bit No parity 8 bit Even parity 8 bit Odd parity 7 bit No parity 7 bit Even parity 7 bit Odd parity Model 61 Model 62 Model 63 Model 64 Xon/Xoff Flow Control Xon/Xoff Flow Control Use DTR for Flow Control

CFG60 Feature Control "NOFLOW" "LOCKSN" "BARCODE"

No Flow Control in Serial Port Test (Test only) Allow Serial Number to be reentered on reconfiguration Allows a barcode reader to be used for Serial number input (requires LOCKSN)

Rev C 7/8/2008

Page 101

Page 103

Configuring Printers "RESTART" "LEVEL0 "TEST" "EDITOR path\name.exe" "SWAPMODE x

"PARDEMO" "LIFETEST fname.dmo" "SERDEMO"

PcOS Series 60

Ithaca Peripherals Incorporated

Programmer's Guide

Reset printer after Configuration (Allows printer testing) Run Level 0 printer tests after configuration33 Run printer test after configuration (requires RESTART) Select a custom editor for demo edits. Specify the complete path and name of the editor. Include any flags. Example: EDITOR C:\DOS\EDIT.EXE What memory to use for program swapping 0 Auto Select 1 use EMS only 2 use XMS only 3 use disk only (Use environment variable TEMP for the path) Pre select parallel port for demos Names an alternate file "fname.dmo: of the life test demo file. lifetest.dmo is used as a default. Pre select serial port for demos

To create a CFG60.CFG file place each command on a separate line. Any blank lines are ignored. The following is an example configuration file: COM 1 NOLPT SERIAL Baud 9600 8bn DTR MODEL 63 RESTART TEST LIFETEST fsttest.dmo This specifies that COM1 will be used on the PC and No Parallel port is available. The printer is to be configured as a Model 63 with serial communications at 9600 baud, 8 bit no parity, and use DTR flow control. The printer will restart after configuration and be tested. The file fsttest.dmo will be used in place of lifetest.dmo for the "run extended tests" menu selection. The demonstration editor can be used to create configuration files. To run the demo editor (outside of CFG60) to create or edit a CFG60.CFG file enter: C:\CFG60> DEMOEDT CFG60.CFG (Enter) The DEMOEDT program can also be used to modify .INI files as well. instructions on DEMOEDT operation.

33This feature is not available on rev 10 printers

Page 102

Rev C 7/8/2008

(Refer to appendix E for

Page 104

Programmer's Guide

PcOS Series 60

Ithaca Peripherals Incorporated

Running Demos

Running Demonstrations Selecting the DEMO Menu There are several built in demonstrations as well as a user defined demonstration capability. To run a demonstration, load CFG60, connect a Series 60 printer, and select Run a Demo from the selection menu. (you are given several demonstrations to select). Three of these demonstrate various capabilities of each of the 3 stations of a Series 60 printer. The Edit Demo and Select a Demo selections provides the ability to create a demonstration file of your own and send it to the printer. Exit Slip Journal Receipt

Select a Demo Edit Demo Change Port

When a demo selection has been made, the program will ask to which port should data be sent. Select Serial or Parallel. Once a port is selected it will be remembered and need not be selected again. If you want to change the selection choose the Change Port selection. (Set "PARDEMO" or "SERDEMO" in CFG60.CFG if same port is always used)

Running the Slip Demo To run a Slip demo, select "Slip" from the "Select a Demonstration" menu. The program will start by showing a printer status display at the bottom of the screen and a transcript window on the rest of the screen. This will demonstrate the slip station and use the rotated print feature of the printer. After starting the demo you will be asked to insert a slip into the printer. Insert a slip placing it against the right hand guide and extending out the back of the printer. Then press any key on the PC. The demo information will be sent to the printer and printed.

Running the Journal Demo To run a Journal Print demo, select "Journal" from the "Select a Demonstration" menu. The program will start by showing a Printer status display at the bottom of the screen and a transcript window on the rest of the screen. This will print a short journal entry. You will not be required to interact with the program provided no errors are encountered. If the printer does not have journal capability an error will be displayed and the printer will go off line.

Running the Receipt Demo To run a Receipt printing demo, select "Receipt" from the "Select a Demonstration" menu. The program will start by showing a Printer status display at the bottom of the screen and a transcript window on the rest of the screen. This will print a short Receipt and deliver it to the operator. You will not be required to interact with the program provided no errors are encountered. If the printer does not have receipt capability an error will be displayed and the printer will go off line.

Rev C 7/8/2008

Page 103

Page 105

Running Demos

PcOS Series 60

Ithaca Peripherals Incorporated

Programmer's Guide

Creating and Editing Demonstration files To create a custom demo, a printer control transcript must be generated. This transcript contains information for printing and printer control commands. Most printer control commands consist of non printable control characters and decimal numbers. To allow control sequences to be easily created, a printer control language has been defined. It is translated by CFG60 into printer control codes and print text before it is sent to the printer. To create a custom demo script DEMOEDT34 has been provided. This is a screen oriented text editor that has several enhancements to help create demo scripts. Full documentation for the DEMOEDT is contained in appendix E. If Edit Demo is selected a sorted list of demo files will be displayed. Select the demo you wish to edit. The Ithaca Peripherals Inc. DEMOEDT program will then be called and the selected demo can be edited. If you wish to create a new demo file select any of the current demos and use the FILE command in DEMOEDT to create a new file. Like CFG60 DEMOEDT contains context sensitive help. As part of this help is a complete list of Series 60 printer commands as well as demo control commands. This will make it easier for you to create demo scripts. If the DEMOEDT program is not suitable for your needs it is possible for CFG60 to call your editor from the Edit Demo Menu. See Appendix B for more information.

Demo Scripts Demo scripts are simple ASCII only files that allow printer control and text strings to be sent to a printer without having to write a program. Most text editors don't deal well with control codes in text. In most cases the editor inserts control codes in text files to control things like top of page and end of line. To prevent these control codes from being sent to the printer, all control characters in a demo script file are ignored by the demo script processor. Control characters are inserted into the printer data stream with special grouping delimiters. This allows the control codes to be entered easily and clearly without requiring you to translate them into binary codes. "[" and "]" characters are used to delimit printer control characters For example the following sequence35 would tell the printer to open the slip clamp: Script:

[ESC]z

Information:

Escape code and then a "z".

34Any DOS text file editor can be used to create and edit demo scripts.

that is supplied with DOS 5.0 is acceptable.

For example the EDIT program

35Control sequences are not case sensitive. [ESC].[ESC] and [ESC] are the same.

Page 104

Rev C 7/8/2008

Page 106

Programmer's Guide

PcOS Series 60

Ithaca Peripherals Incorporated

Running Demos

Demo Nomenclature [ ]

Enclose a control character. This is a single 8 bit value as defined in the standard ASCII tables. The ASCII chart in Appendix A lists all the control codes. An example would be [ESC] which would represent a 1BH or 26 Decimal

< >

Enclose an 8 bit value in decimal format. This value will be from 0 to 255 An example would be <2> which would represent 02H or 2 decimal

<n>

This indicates a variable parameter. In this case a variable parameter "n" that can have a value of from 0 to 255. The meaning of "n" is described and defined in the description of the command.

<n>1 <n>2

This indicates that there are 2 parameters, n1 and n2 where both can have values from 0 to 255.

x

All other characters in control strings represent ASCII characters. For example " [ESC] 1 " Would represent 1BH followed by 31H.

The following control characters can be represented in this form: Sequence [NUL] [SOH] [STX] [ETX] [EOT] [ENQ] [ACK] [BEL] [BS] [HT] [LF] [VT] [FF] [CR] [SO] [SI]

Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Hex Control Code 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F

Sequence [DLE] [DC1] [DC2] [DC3] [DC4] [NAK] [SYN] [ETB] [CAN] [EM] [SUB] [ESC] [FS] [GS] [RS] [US]

Decimal 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Hex Control Code 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F

To allow decimal parameters to be easily placed in control scripts, a numeric format is defined <000> would insert a 0 in the data stream. <065> would insert a decimal 65, hex 41H or ASCII "A" in the data stream. Hex numbers can also be entered with a format similar to "C",<0x41> would insert a decimal 65 Hex 41 or an ASCII "A". For example the following sequence would set the slip left margin to 60 dot columns. [ESC]p<60> To allow "[" and other delimiters to be inserted in the data stream a "\" (back slash) will turn off the translation for one character. For example, "\[" would insert a "[" in the printer data stream. To make [CR][LF] sequences easier a "\n" will insert a [CR][LF] sequence. To help control the flow of data to the printer several control commands are available. Control commands are enclosed in braces "{}".

Demo Commands Rev C 7/8/2008

Page 105

Page 107

Running Demos

PcOS Series 60

Ithaca Peripherals Incorporated

Programmer's Guide

{ECHO}, {PAUSE:xx} and {STOP} commands are used to control the flow of data. Pause {PAUSE:xx} will pause the data stream for about xx seconds where xx can be from 1 to 99 seconds. Stop {STOP} will stop the data stream and wait for a key or it will time out after about 2 min. Echo {ECHO} will stop the flow and place the rest of the line in a window on the PC. For example the following sequence would stop the demo and display "Insert a Slip" in a window in the PC. ({ECHO} will also time out after about 2 Min.) {ECHO}Insert a Slip Any key on the PC keyboard will resume the demo after an {ECHO} command. RV In some cases it is required that the text to be sent to the printer be in reverse order. To allow text to be reversed a {RV} command is available. It reverse the order of data after it and stops at any control code36 or the end of the line. Example:

"This is a test {RV} of the printer[CR][LF]"

Will transmit as "This is a test retnirp eht fo [CR][LF]" RPT In some cases a sequence may be repeated a number of times. To make this easier a {RPT:xx} command is available. This command will repeat the rest of the line xx times where xx can be from 1 to 99. (0 is equivalent to 1) Example:

"{RPT:5}[LF]"

Will transmit 5 linefeeds to the printer. Example:

"{RPT:40}*" "[CR][LF]"

Will transmit 40 "*"'s and then a CRLF (if [cr][lf] were on the same line as the RPT 40 lines of a single * would be printed. Date and Time To allow demos to have current date and time information contained in them, {DATE:f} and {TIME:f} commands are included. {DATE:f} inserts the date in a format specified by f. If {DATE} is used with no format f=0 is used. The date formats are as follows: f 0 1 2

Format December 3, 1988 3 Dec 88 12-3-88 f 3 4 5

Format 12/3/88 3/12/88 12/03/88

{TIME:f} inserts the time in a format specified by f. If {TIME} is used with no format f=2 is used. The time formats are as follows: f 0

Format 16:30:57.89 f 3

36A "\" will stop a RV command.

Page 106

Rev C 7/8/2008

Format 4:30p

Page 108

Programmer's Guide 1 2

PcOS Series 60

Ithaca Peripherals Incorporated

16:30:57 4:30 PM

4

5

4:30

Running Demos

04:30

DO To allow a demo script to call a second demo script a {DO:file} command is provided. This command inserts the file specified in the parent demo script. There are some restrictions to the {DO:file} command; "file" must be in the same directory as the parent or must have a path relative to the parent, and {DO:file} can not be nested37 more than 8 deep. A {DO:file} may, however, be repeated with a {RPT:xx} command. Example:

{DO:tstjnl.dmo}

This will read file tstjnl.dmo and then return to the next line of the parent. REM To allow demo scripts to be commented a " ` " or {REM} command will skip the rest of the line. Example: Print this part [CR][LF]` This is a comment {REM} this is also a comment Please note that any spaces before the " ` " or {REM} are transmitted to the printer. Counters To allow sequence numbers to be added to demonstration scripts two variables are defined; A and B. A and B are integers that can be assigned values from 32767 to - 32768. The variables can be set, added to, subtracted from, and printed in several formats. {A=:xx} Sets A to xx {A+:xx} Adds xx to A {A-:xx} Subtracts xx from A {A.}

Prints A in free format. ( no leading zeros)

{A.:x}

Prints A in a fixed format of x digits with leading zeros. (x can be 2 to 7)

In all cases A can be replaced with B. Example:

{A=:55} {RPT:5}Page: {A.}{A+:1}\n

Would print:

Page: 55 Page: 56 Page: 57 Page: 58 Page: 59

37Care must be taken to prevent recursive DO calls. If the nesting stack is exceeded a nesting error will be displayed and the file will not be inserted.

Rev C 7/8/2008

Page 107

Page 109

Running Demos

PcOS Series 60

Ithaca Peripherals Incorporated

Programmer's Guide

Sensor and Front To demonstrate the series 60 remote sensor capabilities, {SENSOR} and {FRONT} commands are included. These commands will request that a Slip be inserted and display the sensor status as it is positioned. These commands take the remainder of the input line and uses it as an input prompt. For Example: {SENSOR}Guest Check Would display: or

Please insert a Guest Check. The Guest Check is inserted too far.

If {SENSOR} is not followed with a prompt string, "Slip" is used by default. {SENSOR} Requires that both front and back sensors be covered, {FRONT} requires only the front sensor Reset The {RESET} command asserts the INIT signal on the parallel port then waits 4 Seconds for the printer to reset. This command is ignored in serial mode. Graphic The {GRAPHIC:filename} command reads a file and transmits it to the printer with no translation of the imbedded data. Every character in the file is transmitted to the printer unaltered. This command is intended to allow graphic APA print images to be sent to the printer. To generate a graphic print image use the following procedure. 1). Generate the graphic image in whatever program you wish. 2). Make sure the paper size you pick will fit on the printer station you intend to print on. If the paper size can not be set, print only a portion of the page. 3). Print the graphic to a file using a "Generic IBM Graphics 9 pin" driver. The standard IBM resolutions are: 240 x 216, 120 x 72, and 60 x 72. The Series 60 printer supports all three resolutions. 120 x 72 gives good resolution with reasonable speed. 4). Print the graphic image to a file. To keep graphic files separate from demo files use the file.GPH extension.

Example of APA Graphics

5). Make the resulting file available to CFG60 so that it will be sent to the printer when the {GRAPHIC:file.GPH} is encountered.

Page 108

Rev C 7/8/2008

Page 110

Programmer's Guide

PcOS Series 60

Ithaca Peripherals Incorporated

Running Demos

Demo Command Control Summary {COMMAND}

Flow Control Commands

[CTL]

Control Characters

<NUMBER>

Decimal or Hex Numbers

\X

Short hand and delimiter override

{REM} ` {PAUSE:xx} {RV} {STOP} {FRONT} {SENSOR} {ECHO} {RESET} {DO:file} {GRAPHIC:file} {A=:xx} {A+:xx} {A-:xx} {A.} {A.:x} {B=:xx} {B+:xx} {B-:xx} {B.} {B.:x} {RPT:xx}

Disregard the rest of this line(comment) Disregard the rest of the line (comment) Pause Demo for xx Seconds Reverse the following text Stop the demo for 2 Min. or any key Wait for a slip and display status (front sensor only) Wait for a slip and display status (both sensors) Echo the following text to the display and stop Reset Printer (Parallel mode only) Read demo file: "file.dmo" Read a graphic file "file.gph" Sets A equal to xx Adds xx to A Subtracts xx from A Prints A free format Prints A in a fixed format of x digits with leading zeros. (x can be 2 to 7) Sets B equal to xx Adds xx to B Subtracts xx from B Prints B free format Prints B in a fixed format of x digits with leading zeros. (x can be 2 to 7) Repeat the rest of the line xx times.

Rev C 7/8/2008

Page 109