The text of a manual · part 12 of 15
PcOS Series 60 Multi-Station Slip Printers Programmer's Guide, pages 111 to 120
Pages 111 to 120 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 111
Running Demos
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Demo Example The following is an example of a demo script and the resulting receipt on the right.
[ESC]f[DC2][ESC]I[SOH][ESC]E[ESC]G[ESC]0 ITHACA PERIPHERALS INC.[CR][LF] [cr][lf] [ESC]W[SOH] IPI-MART[CR][LF] [ESC]F[SI][cr][lf] [ESC]v WE SELL FOR LESS!![CR][LF] [ESC]W[ESC]#0 [CR][LF] [ESC]H[ESC]F 2000[CR][LF] Ithaca, New York[CR][LF] (607)257-8901[CR][LF] ST# 2000 OP# 00067 TE# 021 TR#00035[CR][LF] KLEENEX FAM D04 QTY 1 1.68 J[CR][LF] RITZ D01 QTY 1 2.50 D[CR][LF] CHIPS D01 QTY 1 1.50 D[CR][LF] STORAGE BAG D04 QTY 1 1.50 J[CR][LF] SUB TOTAL 7.18[CR][LF] SALES TAX 1 .50[CR][LF] ------[CR][LF] TOTAL 7.68[CR][LF] CASH TEND 20.00[CR][LF] CHANGE DUE 12.23[CR][LF] [CR][LF] THANK YOU FOR SHOPPING WITH US[CR][LF] [CR][LF] {DATE:0} {TIME:0}[cr][lf] [ESC]z
Receipt Example
Page 110
Rev C 7/8/2008
Page 112
Page 113
Diagnostics Level 0
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
Using CFG60 to Test Printers By generating a test script a printer can be tested by using the demo mode to send the script to the printer. Each printer feature has a test program that can be run after configuration. These files are as follows: TSTJNL.DMO
Test journal station
TSTSLP.DMO
Test Slip station
TSTRCP.DMO
Test Receipt station
Use USER demo mode and select one of these file names to run the test. The first selection menu allows the extended test "Run Extended Tests" operation to be selected. This selection automatically starts a demo file without going through the demo selection process. By default this file is "lifetest.dmo", however LIFETEST followed by a file name in the CFG60.CFG file will allow any file name to be used. An example of a test file might be as follows: {a=:1}{b=:1} {rpt:99}{do:ftstjnl.dmo}{do:ftstrcp.dmo}{b+:1} {rpt:99}{do:ftstjnl.dmo}{do:ftstrcp.dmo}{b+:1} {rpt:99}{do:ftstjnl.dmo}{do:ftstrcp.dmo}{b+:1}
Where ftstjnl.dmo and ftstrcp.dmo are files that would test the journal and receipt. The rpt command would repeat each test 99 times. This line could then be repeated as many times as necessary. The a and b counters are used to keep track of the number of test cycles. There in no lifetest.dmo file included with CFG60. If this selection is made a DEMO file not found error message will be displayed.
Using CFG60 to Develop Applications To help develop applications for Series 60 printers the CFG60 program can be used in interactive communications mode. To use interactive communications mode, connect a printer to the PC through either the Serial or Parallel port. Use the "Test Serial" or Test Parallel" modes to interactively enter data to the printer. In both modes ALT-S will allow a string to be formed and sent to the printer. The same rules as demo files apply for inserting control characters in strings except that no {COMMANDS} are allowed. (Use F1 for help) The status display at the bottom of the screen will show how the printer is responding to the string sequences. (Use F1 to help decode the status display) To aid in displaying control codes a code translation mode is available that will display control codes in [ ] ASCII form. The F4 key will toggle this mode on and off. Only a few keys on the PC key board are intercepted by the test program. Therefore control keys (CRTL A) can be used to insert control sequences as well. These modes are very similar to other terminal emulation programs that are available for PC's.
Page cxii
Rev C 7/8/2008
Page 114
Programmer's Guide
PcOS Series 60
Diagnostics
Ithaca Peripherals Incorporated
Level 0
Using CFG60 to Monitor Serial Communications Because debugging control strings is sometimes difficult. it would be nice the have a way to display what was being sent to the printer. The CFG60 program provides this capability as part of the "Test Communications" mode. The Test Communications Mode is also a monitor38 mode. The test "Serial Communications" mode with display control codes on, (The F4 key will toggle this feature on and off.) will display any information received on the serial link.
Communications Monitor Application
Interconnect Cable
Host Computer
Printer
CFG60
Monitor PC
Because there will be three devices connected to the communications link, a special cable must be made to allow CFG60 to monitor the serial communications. The cable is constructed as follows:
Monitor Cable
Host Connection
Printer Connection
1
DCD
8 6
CTS DSR
RTS DTR
7 4
2 3
RX TX
TX RX
3 2
5
GND
GND
5
RX
GND
2
5
PC Monitor Connection
The CFG60 program is reasonably fast, however to operate at the fastest rate (19200) a reasonably fast PC is required. A 386SX-16 should work well at 19200. If problems with the monitor develop with it responding to XON and XOFF characters place a NOFLOW command in the configuration file. It will then ignore XON/XOFF.
38Monitor mode is only available on the serial link as only the serial port can be defined as input to the PC.
Rev C 7/8/2008
Page cxiii
Page 115
Diagnostics
PcOS Series 60
Level 0
Ithaca Peripherals Incorporated
Programmer's Guide
Demo Editor The DEMOEDT program is a self-contained text editor. It is designed to help create custom demonstration scripts. Like the CFG60 program it has context sensitive help. The [F1] key will display a help screen and [Alt-X] will exit the editor at any time.
Help To get help at any time press F1, or select Help from the menu. In the Help window, use Tab or the mouse to select crossreferences, which are highlighted. Click on the Index button to get a selectable list of all cross-referenced topics. Use [PgUp], [PgDn], the cursor keys, or the PgUp and PgDn buttons to move around within the Help text. The Prev button will take you to the previously-viewed Help screen. To exit Help, press [Esc] or click on the Quit button.
Editor Function Keys Key F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 Enter Home End Left Right Up Down PgUp PgDn Ins Del BkSpace Tab
Page cxiv
Normal Help Start search Search next Mark Start of block Mark End of block Mark word Copy block to cursor position. Move block to cursor position. Insert [] Select Menu Insert line Beg of line End of line Char left Char right Up one line Down one line Prev screen Next screen Toggle Insert / Over write Delete char Delete previous character Tab to next tab stop. (Insert spaces)
Ctrl
Shift
Replace Toggle direction Mark EOL
Mark BOL
Insert<>
Insert{}
Top of window Bottom of window Word left Word right Top of file Bottom of file Copy block Delete word Move back to prev. Tab stop.
Rev C 7/8/2008
Paste block Delete to end of line
Alt
Page 116
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Diagnostics Level 0
Short Cut Keys Key Alt-X Alt-E Alt-F Alt-H Alt-S Alt-L Alt-W Alt-A Alt-M Alt-C Alt-P Alt-D Alt-K
Action Quit editor Open Edit Menu Open File Menu Open Help Menu Open Search Menu Load file Save file Save as Mark Begin/End Block Copy Block to Clipboard Buffer Copy Clipboard Buffer to File Delete line Delete to end of line
Open File Enter the name of a file, or a filespec including the standard DOS wild card characters. You will be able to select the file to be opened from a sorted list.
Save File As Enter the name under which you would like to save the file being edited. You must enter a valid DOS filename, with or without a path.
Search for Text Type in the search string that you wish to search for. If you are replacing, the replacement string field will also be enabled. The other four fields allow you to set search/replace options: Direction F = forward B = backward Case Y = case sensitive N = case-insensitive Confirm Y = confirm each replacement N = replace unconditionally Global Y = continue after first replacement N = stop after one replacement
New File This command clears the edit window and lets you edit a new, unnamed file. If you already have a file in the edit window, and it has been changed since the last save, it will be saved before it is cleared out. The editor will show the file name as "NEW.DMO". You can give it a real filename by using the Save-As command.
Rev C 7/8/2008
Page cxv
Page 117
Diagnostics
PcOS Series 60
Level 0
Ithaca Peripherals Incorporated
Programmer's Guide
Block Operations There are a number of block operations available from this menu: Start block Start marking at the cursor position End block End marking at the cursor position Mark Word Mark the current word Mark To BOL Mark from cursor to beginning of line Mark To EOL Mark from cursor to end of line Move block Move marked block to cursor position Copy block Copy marked block into "clipboard" Paste block Copy block from "clipboard" to cursor position Del block Delete marked block Del EOL Delete from cursor to end of line
Searching/Replacing This menu gives you access to all three search/replace operations:
Find
Prompts for a search string and performs search. You can also set options for case-sensitivity and search direction.
Replace
Prompts for a search string and a replacement string and performs the procedure. You can set options for confirmation and global replacements, as well as case and direction.
Again
Attempts to find the next occurrence of the search string. If the search string was not previously set, nothing happens.
Save File This menu item saves the file being edited. You will be asked for confirmation before saving. If the file is not yet named, you will instead be prompted for a name under which to save the file.
Page cxvi
Rev C 7/8/2008
Page 118
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Diagnostics Level 0
Series 60 Diagnostics Level 0 Diagnostics The Series 60 diagnostics perform several system checks when a unit is powered on. The order of checks and the functions checked is as follows: 1.System Processor Function 2.System RAM 3.System ROM 4.EEPROM Validation 5.Print Processor Function 6.Configuration Validation 7.Key Pad Check 8.Normal Operation If any system function is found to be nonfunctional, an error indication is displayed using the "Select" and "Alarm" indicators. When the Series 60 is initially turned on, both the "Select" and "Alarm" lights will be on. As tests proceed the lights will be toggled as tests pass. 1.
System Processor Function
2.
System RAM If the processor and RAM are OK the "Select" light will go out.
3.
System ROM If the ROM is OK the "Alarm" light will go out.
4.
EEPROM validation There are two errors that can occur with respect to EEPROM operation, the EEPROM can be nonfunctional, or the data in it can be corrupted. • The EEPROM is nonfunctional
•
If the EEPROM is nonfunctional the "Select" and "Alarm" lights will blink alternately. This is a hard failure. The EEPROM is either bad or not connected properly. The EEPROM information is not correct. If the EEPROM information is corrupted but the EEPROM is functional, The "Select" and "Alarm" lights will blink with the "Alarm" light blinking twice as fast as the "Select" light. This can be corrected by reinitializing the EEPROM. The best way to do this is with the CFG60 Configuration program39 (Remote Configuration). If the Configuration Program is not available the auto configuration function can be selected by pressing the SLIP and RECEIPT keys when the error code is being indicated. This will initialize the printer to the basic SLIP ONLY configuration. The manual configuration procedure defined below can then be used to configure additional functions and features.
5.
Print Processor Function The print process is then checked and validated. There are two tests performed as part of this test. • The first is to determine if the communications link between the processors work. • If this test fails, both the "Select" and "Alarm" indicators will be on. (This is distinguished from a primary processor fault and/or a RAM failure by the previous test sequences having toggled the indicators.)
39Ithaca Peripherals Incorporated provides a configuration program as part of CFG60 that runs on a PC.
interactively allows a Model 60 printer to be configured.
Rev C 7/8/2008
Page cxvii
This program
Page 119
Diagnostics Level 0
• •
PcOS Series 60
Ithaca Peripherals Incorporated
Programmer's Guide
The second test is to verify that the software in the printer processor is compatible with the software for the master. If this test fails, the "Select" and "Alarm" lights will both blink with the "Select" light blinking twice as fast as the "Alarm" light.
6.
Configuration Validation At this point the system is assumed to be functional and the configuration and available features are read from the EEPROM and saved in System RAM for normal operation, manual configuration, and diagnostics operations.
7.
Key Pad Check The key pad is then checked for keys being depressed. (It does not wait for a key, it just checks for any keys being down.) If no keys are active normal operation will begin. However, if a key is found to be depressed one of 3 special modes will be entered. • If the SELECT key is pressed the printer will enter Level 1 diagnostics. • If the SELECT and SLIP keys are both pressed the printer will enter manual configuration mode. • If the RECEIPT and JOURNAL keys are both pressed the unit will enter remote configuration mode. • If NO keys are depressed normal operation will begin.
8.
Normal Operation Normal operation starts if all tests pass and no special functions are requested.
Page cxviii
Rev C 7/8/2008
Page 120
Programmer's Guide
PcOS Series 60
Ithaca Peripherals Incorporated
Diagnostics Level 1
Level 1 Diagnostics If the SELECT key is held during initial power on a self test diagnostics mode is entered. This mode provides six functions, to test and setup the printer. They are as follows: 1. Test Communications Interface 2. Configure Communications Interface 3. Enable Remote Configuration 4. Run Journal Test 5. Run Slip Test and Auto Sensor Adjust 6. Run Receipt Test
Test Communications Interface This mode is entered by pressing and holding the select key at power-up. This will place the unit in diagnostics select mode. If the "SLIP" and "RECEIPT" keys are then pressed the unit will print the current configuration and enter test communications mode (HEX Dump). This mode will print on the journal if the unit is configured with a journal, otherwise, it will print on the slip. If the slip station is used, a slip must be inserted. To insert a slip place a sheet of paper on the slip table that is at least 4 inches wide. Slide the paper as far to the right as possible. When the slip is in position both the select and error lights will be lighted. Because the slip will be printed in reverse, it is of advantage to place the paper as far in the unit as possible. When the Slip is in position press the "SLIP" key and the current configuration will be printed on the slip. As information is received the information will be converted to a HEX /ASCII format and printed after 8 characters are received. No translation is made; all information will be converted to HEX/ASCII and printed. If a carriage return is sent to the printer it will be translated to 0A in the HEX field and "." in the ASCII field. The format is as follows: 54 68 61 20
69 74
73 65
20 73
69 74
73 0D
20 0A
This is a test..
When the "SELECT" key is pressed the internal buffer is dumped and the diagnostics select mode is entered. There are several indications of printer and host communications problems that can be deduced from this test. If the printer is printing all 40 "@" symbols the parity is wrong or the number of bits is wrong. If the printer is printing some Hex 40's "@" signs when it should be printing other characters, the parity is wrong, the baud rate is wrong, or the bit length setting is wrong. If the printer prints out characters but they are wrong (like Hex C1 instead of Hex 41 "A") the printer is set for 8 bit data and the host is set for 7. It the printer fails to print at all, the printer may be configured for parallel operation. In most cases the print problems can be traced to the host and the printer not being configured in the same way. NOTE: The Series 60 printer handles 7 bit "No Parity" slightly differently than a PC. A PC can send a 7 bit "No Parity" data field which the printer can not accept. If the PC is to send 7 bit "No Parity" it must be set for send 2 stop bits.
Rev C 7/8/2008
Page 119