Unisys e-@ction Slip, Validation, and Receipt Printer EFP9800 Series Owner’s Guide UNISYS ©2000 Unisys Corporation. All rights reserved.
NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THIS DOCUMENT. Any product or related information described herein is only furnished pursuant and subject to the terms and conditions of a duly executed agreement to purchase or lease equipment or to license software. The only warranties made by Unisys, if any, with respect to the products described in this document are set forth in such agreement.
Page Status Page Issue iii iv v through xv xvi 1–1 through 1–6 2–1 through 2–16 3–1 through 3–33 3–34 4–1 through 4–7 4–8 5–1 through 5–10 6–1 through 6–78 7–1 through 7–20 8–1 through 8–15 8–16 9–1 through 9–24 10–1 through 10–11 10–12 11–1 through 11–13 11–14 A–1 through A–14 –002 Blank –002 Blank –002 –002 –002 Blank –002 Blank –002 –002 –002 –002 Blank –002 –002 Blank –002 Blank –002 3255 4073–002 iii
Page Status iv 3255 4073–002
Contents Section 1 About the EFP9800 Printer Features and Options....................................................1–3 Receipt Station Features ............................................1–3 Journal Station Features .............................................1–3 Slip/Validation Station Features ...................................1–3 General Features .......................................................1–4 Options.....................................................................
Contents Section 3 Diagnostics and Print Tests Level 0 Diagnostics ...................................................... 3–1 Level 1 Diagnostics ...................................................... 3–2 Information About DIP Switch Settings .........................3–2 Switch Entry Mode .....................................................3–4 Choose a Printer Emulation ..................................3–5 Set Internal Switch Pack Values in NVRAM .............
Contents Getting Service .............................................................4–7 Section 5 Communication Interfaces .....................................................................5–1 Sending Commands......................................................5–1 Using DOS to Send Commands...................................5–1 Using BASIC to Send Commands ................................5–2 RS-232C Interface ........................................................5–2 RS-232C Interface Protocols..
Contents Carriage Return ..................................................6–6 Standard Mode ..............................................6–6 Page Mode ....................................................6–6 Cancel Print Data in Page Mode............................6–7 Set Right-Side Character Spacing .........................6–7 Standard Mode ..............................................6–7 Page Mode ....................................................6–8 Select Print Mode(s) ...........................
Contents Set Slip Waiting Time ........................................6–25 Generate Pulse .................................................6–26 Release ...........................................................6–26 Select Head Energizing Time..............................6–27 Set Left Margin.................................................6–27 Set Fundamental Calculation Pitch ......................6–28 Set Printable Area Width ....................................6–28 Print Characteristics Commands .....
Contents Select Horizontal Size of Bar Code (Receipt Station)...................................................6–68 Page Mode .............................................................6–69 Overview ..........................................................6–69 Limitations .......................................................6–70 Command Settings in Both Modes ......................6–71 Processing the Data in the Page.........................6–71 Examples of Printing in Page Mode .....................
Contents Fine Line Feed ....................................................7–9 Uni-Directional/Bi-Directional Print .......................7–10 Print Characteristics Commands ...............................7–10 Set Single Line Double-Wide ...............................7–11 Original Character Size .................................7–11 Doubled Character Size ................................7–11 Set 17.2 Characters/Inch ..................................7–11 Set 10 Characters/Inch ..........................
Contents Open Forms Compensation Assembly ...................8–6 Close Forms Compensation Assembly...................8–7 Reprint After Media Jam.......................................8–7 Echo ................................................................8–8 Write Device Control Memory ...............................8–8 Print Characteristics Commands ...............................8–12 Cancel Double-Wide...........................................8–13 Set Double-Wide........................................
Contents Repeat Character..............................................9–12 Wait for Slip .....................................................9–12 Cancel Slip Waiting............................................9–13 Print Characteristics Commands ...............................9–13 Double-Wide Font ..............................................9–13 Double-Wide Off ................................................9–13 Character Set...................................................9–14 Underline Print.......
Contents Erase Selected Sector.....................................10–10 Download Sector ............................................10–10 Reboot the printer...........................................10–11 Section 11 MICR Commands and Parsing MICR Commands........................................................ 11–1 Read MICR Data and Transmit ............................11–1 Define Parsing Format, Save in NVRAM ...............11–1 Reread MICR Data.............................................
Contents Receipt and Journal Print Zones ..................................... 4 Validation Print Zone ..................................................... 5 Slip Print Zone.............................................................. 8 MICR Read Zone .............................................................. 8 Dimensions...................................................................... 9 Power Requirements...................................................... 10 Environmental Requirements ......
Contents xvi 3255 4073–002
Section 1 About the EFP9800 Printer The EFP9800 printer is a fast, quiet, reliable, and very compact multiplefunction printer. It prints receipts and a journal, validates and prints checks, and prints on a variety of single- or multiple-part slips. An additional option is the Magnetic Ink Character Recognition (MICR) check reader with parsing which reads account numbers on checks for easy verification.
About the EFP9800 Printer Note: A Running Change acoustic noise reduction enhancement was released for the EFP9840 and EFP9841 serial interface units. This Running Change incorporates a new solenoid clamp assembly and a revised controller PCBA to further reduce acoustical noise. The change was incorporated into factory production starting at serial number 5108 67054. All EFP9840 and EFP9841 units with serial numbers 5108 67054 and above will have the acoustic enhancements.
About the EFP9800 Printer Features and Options The EFP9800 printer comes with a variety of standard features, and can be configured with several options. Receipt Station Features • Standard/compressed pitch (host computer selectable): 11.6 to 16.8 characters per inch, 33-51 columns (ESC/POS) • Drop in paper loading, requires no spindle • Paper Status indicator light (LED) (adjustable) Journal Station Features • Standard/compressed pitch (host computer selectable): 11.6 to 16.
About the EFP9800 Printer General Features • Industry standard RS-232C communication interface or IEEE 1284 parallel bi-directional communication interface • NVRAM (Non-Volatile memory) to store customer configuration and historic data • Cash drawer connector • Online LED • Cover open switch Options • Magnetic Ink Character Recognition (MICR) check reader built into the slip station for verifying checks (includes custom MICR field parsing) • Remote power supply • EFP9800-SW1 software utiliti
About the EFP9800 Printer Ordering Paper and Supplies The following section lists the paper , supplies, and documentation available for order. Receipt/Journal Paper Item Type Number One-Ply Receipt or journal 150 feet 40-1004-874 Two-Plies Receipt/journal 95 feet 40-1005-871 Slips and Forms The EFP9800 printer prints on single- or multiple-part slips in the slip station.
About the EFP9800 Printer Other Supplies Contact your sales representative to order the supplies listed below.
Section 2 Operating the Printer This section includes information about operating the printer controls, loading paper and ribbon cassettes, replacing the printhead, and working with slips, forms, and checks. Using the Controls The EFP9800 printer includes the following buttons: • Paper Feed button used to advance paper. • Reset button used to initialize the printer. Caution Pressing the Reset button initializes the printer, causing any downloaded fonts to be lost.
Operating the Printer Changing Paper The EFP9800 features simple paper loading that is quick and efficient, saving both time and paper. Caution Do not operate the printer if it runs out of paper. The printer will continue to operate, but data may be lost and the printhead may be damaged.
Operating the Printer Changing Receipt Paper Note: Use these instructions if you are printing receipts only. If you are printing both receipts and a journal (record of transactions), or a journal only, see “Changing Receipt/Journal Paper” later in this section. Note: All EFP9800 Series printers have a receipt journal take up spool assembly factory installed that is not always required or utilized by the client.
Operating the Printer Removing the Old Receipt Paper Roll 2–4 1. Open the rear cover. 2. Open the clamshell. 3. Remove the used receipt paper roll.
Operating the Printer Loading the New Receipt Paper Roll 1. Drop the new roll into the bucket and pull out several inches. 2. Lay the end of the paper out over the top of the slip table, then close the rear cover and the clamshell.
Operating the Printer Changing Receipt/Journal Paper Note: Use these instructions if you are printing both receipts and a journal (record of transactions) or a journal only. If you are printing receipts only, see “Changing Receipt Paper” earlier in this section. Removing the Printed Journal 2–6 1. Open the rear cover. 2. Tear the paper off below the last journal entry. 3. Open the clamshell. 4. Slide the printed journal off the take-up core and set it in a safe place. 5.
Operating the Printer Loading the New Receipt/Journal Paper Roll 1. Drop the new receipt/journal roll into the bucket and pull out about 10 inches (25 cm) of paper. The paper should not extend farther than the back of the printer cabinet. 2. Close the clamshell. 3. Place the end of the journal ply between the halves of the take-up assembly. If you are printing a journal only, continue with step 4.
Operating the Printer Verifying Checks Follow this procedure to verify checks on printers with the MICR check reader option. The printer’s Magnetic Ink Character Reader (MICR) check reader reads the magnetic ink characters on the check in order for the host computer to verify that the check is good. Note: 2–8 Verify the check before you validate it. For more information, see “Validating Slips and Checks” later in this section.
Operating the Printer 1. Insert the check from the front, face up, with the MICR characters to the right, as shown. 2. Slide the check toward the back of the printer along the right side until it covers both sensors. The Slip In LED turns on when both sensors are covered, indicating that the check is inserted properly. The printer reads the magnetic characters on the check.
Operating the Printer Printing on Slips and Checks There are several types of transactions for which you may print on a slip or check. These include some credit card transactions, merchandise return forms, electronic funds transfers and check printing (printing the date, payee, and amount on the check). The EFP9800 can print on slips and forms up to five-parts thick (the receipt is included as one or two of the parts depending if it is one-ply or two-ply).
Operating the Printer 4. Position the slip/check so that the top is protruding from the top of the printer. The Slip In LED flashes green. When the slip/check is inserted properly, the Slip In LED is lit steadily. Depending on your printer setup, the printer may automatically begin printing, or you may have to perform the action programmed for your printer, such as pressing a particular keyboard key. Follow the instructions from the host computer. 5.
Operating the Printer Validating Slips and Checks The EFP9800 can print on slips and forms up to five-parts thick (the receipt is included as one or two of the parts depending if it is one-ply or two-ply). For more information on the types of slips and forms you can use, see “Ordering Paper and Supplies” in section 1. Follow this procedure to validate slips and checks. Note: Do not use this procedure for check verification. See “Verifying Checks” earlier in this section.
Operating the Printer 4. Remove the slip/check once it is fed back out and then follow the instructions from the host computer to finish the transaction. Changing the Ribbon Cassette Change the ribbon cassette when the print is too light or the ribbon is frayed. 1. Open the cassette cover. 2. Slide the carriage assembly (assembly that holds the printhead) to the center of the printer.
Operating the Printer 3. Pull the used ribbon cassette out of the printer and discard it. Be careful not to bump or damage the Form Out sensor while you remove the ribbon cassette. 4. Snap in the new ribbon cassette, and close the cassette cover. Caution Do not remove the mylar shield on the ribbon cassette. It protects against smudging. The ribbon cassette will be ruined if it is removed.
Operating the Printer Replacing the Printhead The impact printhead is extremely reliable. However, it may need to be changed depending on the use of the printer. Printhead replacement is required if it is tearing or fraying the ribbon, or if some dots print lighter than others. Call a service representative for printhead replacement. Adjusting the Paper Low Sensor Before adjusting the paper low sensor, make sure the power is off.
Operating the Printer Procedure The paper low sensor lights the paper low/out LED when the paper roll is almost empty. You can raise or lower the paper low sensor assembly to change the amount of paper left on the roll when the sensor lights the paper low/out LED. Raise the assembly by turning the screw counterclockwise to signal paper low earlier (more paper left on the roll). Lower the assembly by turning the screw clockwise to signal paper low later (less paper left on the roll).
Section 3 Diagnostics and Print Tests The following diagnostic tests are available for the EFP9800: • Level 0 Diagnostics: Performed during the startup cycle and each time the printer is reset. • Level 1 Diagnostics: Performed using DIP switches or the Paper Feed button. • Diagnostic Print Tests. Level 0 Diagnostics The printer automatically performs Level 0 diagnostics each time it is turned on. Level 0 diagnostics include the following: • All motors and solenoids are turned off.
Diagnostics and Print Tests If both the red Paper Status and the green Slip In LED’s are steadily illuminated, it is an indication that the NVRAM has failed. When the last step of the Level 0 diagnostics is complete, the Paper Feed button is enabled and the printer is ready for normal operation. If the printer does not complete Level 0 diagnostics, the LED’s flash to indicate the problem. See “Getting Service” in section 4.
Diagnostics and Print Tests After changing the DIP switch settings, cycle the printer by pressing the Reset button off and then on again. The green Online LED flashes when the printer cycles. Caution If you are changing the switch settings for a function or test, be sure you choose the correct settings to avoid accidentally changing the settings for another function or test.
Diagnostics and Print Tests Switch Entry Mode Use Switch Entry mode to set the printer emulation or the internal switch pack values in NVRAM. Note: For an alternate method to set the emulation and switch settings, see “Section 10: Flash Download Commands.” The EFP9800 printer can emulate the following printers and emulations: • Epson ESC/POS (370/5) printer Note: This emulation is included in the EFP9800 ESC/POS commands.
Diagnostics and Print Tests Use the diagnostics print tests to print the name of the emulation which is currently active and the settings of the NVRAM switch packs. See “Diagnostics Print Tests” later in this section for information about running the tests. Choose a Printer Emulation Caution The DIP switches are set at the factory to predetermined settings. Change the settings carefully to avoid changing other functions. Run the Diagnostic Print Tests to see what emulation the printer is set for.
Diagnostics and Print Tests 7.
Diagnostics and Print Tests Set Internal Switch Pack Values in NVRAM Once you’ve chosen the emulation (in the previous section), you can specify various printer functions by setting the switches on “internal switch packs.” Caution The DIP switches are set at the factory to predetermined settings. Change the settings carefully to avoid changing other functions. 1. Turn the printer off. 2. Turn the printer to the back to access the DIP switches and write down the current switch settings. 3.
Diagnostics and Print Tests 6. Switch Pack Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Switch 6 Switch 7 Switch 8 1 OFF OFF OFF OFF OFF OFF OFF ON 2 OFF OFF OFF OFF OFF OFF ON OFF 3 OFF OFF OFF OFF OFF OFF ON ON 4 OFF OFF OFF OFF OFF ON OFF OFF Press the Paper Feed button. The green Slip In LED turns off. 7. Set the DIP switches to the settings on the switch pack for the emulation you have already chosen. 8.
Diagnostics and Print Tests EFP9800 ESC/POS Internal Switch Pack Settings (Includes Epson ESC/POS) EFP9800 ESC/POS Emulation: Internal Switch Pack 1 Switch Settings Description 1 OFF ON Print “?” for data error. Ignore data error. 2 OFF ON 4K byte communication data buffer. 40 byte data buffer. 3-8 Unused. EFP9800 ESC/POS Emulation: Internal Switch Pack 2 Switch Settings Description 1 OFF ON No display module connected (default). No display module connected (same as ON). 2 3 Unused.
Diagnostics and Print Tests EFP9800 ESC/POS Emulation: Internal Switch Pack 3, Switches 2 and 3 Switch 2 Switch 3 Description OFF OFF Epson 40/33 character print zone (2.506 inches wide). OFF ON Epson 42/35 character print zone (2.506 inches wide). ON OFF Unisys 42/35 character print zone (3.024 inches wide). ON ON Unisys 51/42 character print zone (3.024 inches wide).
Diagnostics and Print Tests EFP9800 ESC/POS Emulation: Internal Switch Pack 3, Switch 8 Switch Settings 8 Description Unused. Ithaca Peripherals Proprinter Internal Switch Pack Settings Ithaca Peripherals Proprinter Emulation: Internal Switch Pack 1, Switches 1, 2, 3, and 6 Switch Settings Description 1 OFF ON If slip is detected, both slip feed and receipt/journal feed advance. If slip is detected, only the slip feed advances.
Diagnostics and Print Tests Ithaca Peripherals Proprinter Emulation: Internal Switch Pack 1, Switches 4 and 5, 7 and 8 Switch 4 Switch 5 Sets Receipt Paper Length OFF OFF 5.5 inches. OFF ON 8.5 inches (default). ON OFF 11 inches. ON ON 14 inches. Switch 7 Switch 8 Selects Code Page OFF OFF ESC 6 selects Code Page 850, PC Multilingual. ESC 7 selects Code Page 437, PC US. OFF ON ESC 6 selects Code Page 852, Eastern European. ESC 7 selects Code Page 437, PC US.
Diagnostics and Print Tests EF4270 Internal Switch Pack Settings EF4270 Emulation: Internal Switch Pack 1, Switches 1 and 2 Switch Settings Description 1 OFF ON Auto Line Feed OFF. Auto Line Feed ON. 2 Unused. EF4270 Emulation: Internal Switch Pack 1, Switches 3 and 4 Switch 3 Switch 4 Description OFF OFF Set Receipt (Journal) line spacing to 8.0 lines/inch. ON OFF Set Receipt (Journal) line spacing to 6.9 lines/inch. OFF ON Set Receipt (Journal) line spacing to 6.0 lines/inch.
Diagnostics and Print Tests EF4270 Emulation: Internal Switch Pack 2, Switches 1, 2, and 3 Switch 1 Switch 2 Switch 3 Description OFF OFF OFF Set pitch to 33 characters/line. ON OFF OFF Set pitch to 36 characters/line. OFF ON OFF Set pitch to 40 characters/line. ON ON OFF Set pitch to 44 characters/line. OFF OFF ON Set pitch to 50 characters/line. ON OFF ON Set pitch to 57 characters/line. OFF ON ON Set pitch to 66 characters/line. ON ON ON Unused.
Diagnostics and Print Tests EF4270 Emulation: Internal Switch Pack 3, Switches 1, 2, and 3 Switch Settings Description 1 OFF Concurrent print disabled. (When the slip feeds, the paper roll does not necessarily also feed.) Concurrent print enabled. (When the slip feeds, the paper roll also feeds.) ON 2 Unused. 3 Unused. EF4270 Emulation: Internal Switch Pack 3, Switches 4, 5, and 6 Switch Settings Description 4* OFF ON Enables two cash drawers when activate command is received.
Diagnostics and Print Tests EF4270 Emulation: Internal Switch Pack 3, Switches 7 and 8 Switch Settings Description 7 Unused. 8 (Printers with parallel interface only.) OFF ON Pin 13 of the communication cable connector functions as the select line output. Pin 13 of the communication cable connector equals 1 when a form is present. EF4270 Emulation: Internal Switch Pack 4, Switches 1, 2, 3, and 4 Switch 1 Switch 2 Switch 3 Switch 4 Description OFF OFF OFF OFF 2.63 inches (66.
Diagnostics and Print Tests Flash Download Mode This section describes the protocol used to download firmware to the printer from an application through the communication connector. Requests are provided to query the state of the firmware and to check the CRC of a given flash sector. All downloading must be done with 8 bit communications.
Diagnostics and Print Tests RS-232C Switch Settings Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Switch 6 Switch 7 Switch 8 Setting ON ON ON N/A OFF N/A N/A N/A DTR/DSR control ON ON ON N/A ON N/A N/A N/A XON/XOFF control ON ON ON N/A N/A OFF N/A N/A Without parity ON ON ON N/A N/A ON N/A N/A Odd parity ON ON ON N/A N/A N/A OFF OFF 19,200 Baud rate ON ON ON N/A N/A N/A ON OFF 9,600 Baud rate ON ON ON N/A N/A N/A OFF ON 4,800 Baud rate
Diagnostics and Print Tests 5. Run the program that implements the download protocol. The program leads you through the download process. Note: This program must be installed on the host computer or to a computer that is connected to the printer for diagnostic purposes. 6. Turn the printer off and reset the DIP switches to what they were when you started. 7. For normal operation settings, see “Switch Settings” in section 5. Turn the printer back on.
Diagnostics and Print Tests 3. 4. Set the DIP switches to the following settings: Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Switch 6 Switch 7 Switch 8 ON OFF OFF ON OFF ON OFF OFF Turn the printer back on to put the printer in Data Scope mode. The red Paper Status LED blinks once to indicate that the printer is in Data Scope mode. 5. Turn the printer off and reset the DIP switches to what they were when you started. For normal operation settings, see “Switch Settings” in section 5.
Diagnostics and Print Tests Exit Data Scope Mode 1. Turn the printer off. 2. Turn the printer to the back to access the DIP switches and write down the current switch settings. 3. Set the DIP switches to the following settings: 4. Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Switch 6 Switch 7 Switch 8 ON OFF OFF OFF OFF ON OFF OFF Turn the printer back on to take the printer out of Data Scope mode.
Diagnostics and Print Tests 1. Turn the printer off. 2. Turn the printer to the back to access the DIP switches and write down the current switch settings. 3. Set the DIP switches to enable or disable the cover open switch: Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Switch 6 Switch 7 Switch 8 ON OFF N/A OFF OFF OFF ON N/A Enable Cover Open Switch ON OFF N/A ON OFF OFF ON N/A Disable Cover Open Switch 3–22 4. Turn the printer back on. 5.
Diagnostics and Print Tests Verifying Read of MICR Characters This test reads the characters on a check and prints a hexadecimal dump of the characters on the receipt. It is also referred to as the MICR Read and Print Loop test. This is a continuous test. Note: The MICR check reader feature has been factory adjusted for a normal operating environment with a host computer.
Diagnostics and Print Tests 3. Set the DIP switches to the following settings: Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Switch 6 Switch 7 Switch 8 ON OFF ON OFF OFF OFF OFF OFF E13B Font Test ON OFF ON OFF OFF OFF OFF ON CMC7 Font Test 4. Turn the printer back on to begin the test. The green Slip In LED blinks, indicating that the printer is ready for the check to be inserted. 5.
Diagnostics and Print Tests Checking MICR Noise Level This test checks the extraneous signals picked up by the MICR check reader and prints a reading indicating the relative level of the noise. If the noise level is printed as a letter lower than F (A-E), then the MICR check reader will generally read the MICR characters without problems. However, if the letter printed is the letter F or above, there may be problems when reading the MICR characters, and you may need to call a service representative.
Diagnostics and Print Tests 5. Press the Paper Feed button. The printer prints the letter indicating the relative noise level on the receipt. 6. Repeat by pressing the Paper Feed button again. When finished, turn the printer off and reset the DIP switches to what they were when you started. 7. For normal operation settings, see “Switch Settings” in section 5. 8. Turn the printer back on.
Diagnostics and Print Tests 3. Set the DIP switches to setting for the font you wish: Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Switch 6 Switch 7 Switch 8 MICR Font ON OFF OFF ON OFF OFF OFF OFF CMC-7 ON OFF OFF OFF OFF OFF OFF OFF E13b (default) 4. Turn the printer back on. 5. Turn the printer off and reset the DIP switches to what they were when you started. For normal operation settings, see “Switch Settings” in section 5. 6. Turn the printer back on.
Diagnostics and Print Tests Diagnostic Print Tests Three diagnostic print tests and a general print test are available: • Print configuration, ROM CRC, and internal switch packs information. • Continuous slip printing. • Print each character in the ASCII character set. • General print test The following procedures describe how to run each of these tests. Print Configuration Information This test produces a printout of all ROM CRC, internal switch pack, and configuration information.
Diagnostics and Print Tests Continuous Slip Printing This test prints a slip, stopping each time the end of the slip is sensed and continuing when a new slip is inserted. The printout includes all ROM CRC, internal switch pack, and configuration information (same as the Print Configuration Information test). See the sample printout later in this section. 1. Turn the printer off. 2. Turn the printer to the back to access the DIP switches and write down the current switch settings. 3.
Diagnostics and Print Tests Print Each Character in the ASCII Character Set This test produces a printout of each character in the ASCII character set, including all code pages, emulations, and character types (single-wide, doublewide, and so forth). You can set the test to cycle continuously, or to restart when you press the Paper Feed button. 1. Turn the printer off. 2. Turn the printer to the back to access the DIP switches and write down the current switch settings. 3.
Diagnostics and Print Tests General Print Test This test produces a printout of all ROM CRC, internal switch pack, and configuration information (see the sample printout on the next page). In addition, it prints each character in the ASCII character set including all code pages and character types (single-wide, double-wide, and so forth). With the unit powered on the Online LED on: 1. Press the Reset button (Online LED goes off). 2. Press the Reset button (Online LED goes on). 3.
Diagnostics and Print Tests Sample of Configuration Printout The following sample shows a configuration printout, including ROM CRC and internal switch pack.
Diagnostics and Print Tests Adjusting the Printhead Gap If the print from the test is light, the gap between the printhead and the paper may be too large. If the print is smudged, the gap may be too small. You can easily adjust the printhead gap. 1. Open the cassette cover and remove the ribbon cassette. 2. Move the anti-rotation bearing to the right to decrease the gap, or move it to the left to increase the gap. 3.
Diagnostics and Print Tests 3–34 3255 4073–002
Section 4 When Something Goes Wrong The EFP9800 printer is a simple, generally trouble-free printer, but from time to time minor problems may occur. For example, the power supply may be interrupted or the paper may jam. For some problems, the printer communicates the information to the host computer and relies on the application to indicate the problem. You’ll be able to fix most problems easily. For some problems, you will need to contact a Unisys-authorized service representative.
When Something Goes Wrong Printer Not Operating Cause Action Power cable not connected properly Check all cable connections. Check that the host computer and power supply are both on. The power supply is turned on by plugging it into an outlet. Paper jam in receipt/journal or slip station Open the cover and the clamshell. Push the carriage away from the paper jam. Remove any jammed paper or other obstructions. Press the Reset button to remove error status.
When Something Goes Wrong Indicators Showing a Problem Cause Action Paper Status LED blinks red A blinking Paper Status LED indicates that paper is low or out. Check receipt/journal paper and replace when necessary. For more information see, section 2. Paper Status LED steady red A steady lit Paper Status LED indicates a carriage or paper jam. Open the cover and the clamshell. Push the carriage away from the paper jam. Remove any jammed paper or other obstructions.
When Something Goes Wrong Carriage and Paper Jams Cause Action Jam in receipt/journal or slip station Open the cover and the clamshell. Push the carriage away from the jam. Remove any jammed paper or other obstructions. Press the Reset button to remove error status. Reload the paper if necessary, and then close the cover. Press the Paper Feed button to make sure the paper is no longer jammed. For step-by-step paper loading instructions, see section 2.
When Something Goes Wrong Slips, Forms, or Checks Skew When Feeding into the Printer Cause Action Paper path jammed Open the cover and the clamshell. Push the carriage away from the jam. Remove any jammed paper or other obstructions. Press the Reset button to remove error status. Reload the paper if necessary, and then close the cover. Press the Paper Feed button to make sure the paper is no longer jammed. For step-by-step paper loading instructions, see section 2.
When Something Goes Wrong Overall Print is Light or Smudged Cause Action Ribbon cassette worn Replace the ribbon cassette. For step-by-step instructions, see “Changing the Ribbon Cassette” in section 2. Slip out of specification Check that the slip you are using meets the specifications for the EFP9800 printer. For more information see, “Ordering Paper and Supplies” in section 1. Slips should not be more than five parts thick. Total thickness should be no greater than 0.014 inches (0.355 mm).
When Something Goes Wrong Other Serious Problems The following problems all need to be corrected by a qualified service representative. For more information on contacting a representative, see the next section. • Printer does not cycle or stop when required. • Illegible characters or light print. • Paper does not feed. • Platen does not open or close.
When Something Goes Wrong 4–8 3255 4073–002
Section 5 Communication In order for a receipt or slip to be printed, a program must be in place that translates the data from the host computer into a language the printer can understand. This program must tell the printer exactly how to print each character. This section describes how to create such a program or modify an existing one. Interfaces In order for the printer to communicate with the host computer, a communication link must be set up.
Communication Exit the COPY mode by typing: CTRL Z [Enter] Once the computer knows to direct data from any print command to the proper port, commands can be sent from any software program. Using BASIC to Send Commands In BASIC, printer commands are sent as a string of characters preceded by the PRINT command. For example, PRINT#1, CHR$(&H0A) (where #1 is the file number of a communication line opened by the OPEN “COM1:” command. For more information, see your BASIC documentation.
Communication • For XON/XOFF, a particular character is sent back and forth between the host computer and the printer to regulate the communication. • For DTR/DSR, changes in the DTR/DSR signal coordinate the information flow. The RS-232C version of the EFP9800 offers the standard options which are selected with the DIP switches. For more information on these settings, see “Setting Switches” later in this section.
Communication DTR/DSR Protocol The DTR signal is used to control data transmission to the printer. It is driven low when the printer is ready to receive data and driven high when it cannot accept any more data. Data is transmitted from the printer after it confirms that the DSR signal is low. RS-232C Interface Connectors This section describes the pin settings for the RS-232C connectors and interface parameters. The RS-232C parameters are selected by setting the DIP switches on the PC board.
Communication RS-232C 25-Pin (Host Computer) to 9-Pin Communication Connector Pin Assignments 3255 4073–002 5–5
Communication Power Cable Connector Pin Assignments The following illustration shows the power cable connector and pin assignments. The power cable connector is a 6-pin mini-DIN plug and is located at the rear of the printer. Cash Drawer Connector Pin Assignments The following illustration shows the cash drawer connector and pin assignments. The cash drawer connector is 6-pin modular jack and is located at the rear of the printer. You may use one or two cash drawers.
Communication Parallel Interface The parallel interface is an industry standard IEEE 1284 bi-directional interface. It communicates in the following modes: compatibility, nibble, and byte. The following sections explain the interface protocols and connectors for the parallel interface. For information on the RS-232C interface protocols and connectors, see “RS-232C Interface” earlier in this section.
Communication with an integral shielded cable on the external power supply. It is located at the rear of the printer. Cash Drawer Connector Pin Assignments The following illustration shows the cash drawer connector and pin assignments. The cash drawer connector is 6-pin modular jack and is located at the rear of the printer. You may use one or two cash drawers. If you use two, connect a split cable (y-cable) to use the same connector for both.
Communication Setting Switches The DIP switches are located at the rear of the printer as shown in the illustration. They are used to set the communication parameters as outlined in the table. These parameters must match those of the host computer in order for the host computer and the printer to communicate. Note: The switches are also used for setting other functions and tests. Be careful not to accidentally change the settings for the other functions.
Communication DIP Switch Settings for RS-232C Parameters Switch Settings Description 1 OFF ON On-line Mode. Use to set RS-232C options (default) Offline. Level 1 Diagnostics (setup mode) 2 OFF ON DTR/DSR Protocol (default) XON/XOFF Protocol 3 OFF ON Without Parity (default) With Parity 4* OFF ON Odd Parity Even Parity 5, 6 5 OFF ON OFF ON 6 OFF OFF ON ON 19,200 Baud 9600 Baud (default) 4800 Baud 1200 Baud *Switch 4 is not used if the parity is disabled (switch 3 OFF).
Section 6 EFP9800 ESC/POS Commands Commands control all operations and functions of the EFP9800 printer. The commands in this section include the commands for the Epson 370/375 printer, allowing the EFP9800 printer to emulate the Epson printers. List of EFP9800 ESC/POS Commands This table lists the EFP9800 ESC/POS commands in numerical order according to their hexadecimal codes. The page number indicates where a complete description of the command can be found in the next section.
EFP9800 ESC/POS Commands 6– 2 Hexadecimal Code Command Name Page 1B 2A Select Bit Image Mode 6– 40 1B 2D Set/Cancel Underline 6– 34 1B 32 Set Line Spacing to Default Spacing 6– 11 1B 33 Set Line Spacing 6– 12 1B 3C Return Home 6– 12 1B 3D Select Peripheral Device 6– 13 1B 3F Cancel User-Defined Characters 6– 35 1B 40 Initialize Printer 6– 13 1B 43 Set Slip Eject Length 6– 14 1B 44 Set Horizontal Tab Positions 6– 14 1B 45 Set/Cancel Emphasized Mode 6– 35 1B 47 Set/Cance
EFP9800 ESC/POS Commands Hexadecimal Code Command Name Page 1B 71 Release 6– 26 1B 74 Select Character Code Table 6– 39 1B 75 Transmit Peripheral Device Status 6– 45 1B 76 Transmit Paper Sensor Status 6– 46 1B 7B Set/Cancel Upside Down Printing 6– 39 1B 7D 00 Copy Downloaded Object to Flash Memory 6– 76 1B 7D 01 Disable Loading the Object to RAM When Powering on the Printer 6– 77 1B 7D 02 Enable Loading the Object When Powering on the Printer 6– 78 1B 7D 03 Copy the Object from
EFP9800 ESC/POS Commands EFP9800 ESC/POS Command Descriptions These commands include the commands for the Epson 370/375 printer. The command descriptions in this section are grouped in the following categories: • Printer Function Commands • Print Characteristics Commands • Graphics Commands • Printer Status Commands • Real-time Commands • Bar Code Commands • Page Mode (Overview only. Many commands throughout this section include page mode functions.
EFP9800 ESC/POS Commands Horizontal Tabs: Skip to Next Tab Stop Skips to the next horizontal tab stop. The command is ignored unless the next horizontal tab position has been defined. Default tab stops are every 8 columns. Hexadecimal Decimal 09 ASCII 9 HT Standard Mode If there are no more tab stops before the end of a line when this command is received, the print starting position will be set to the beginning of the next line. In other words, a line feed will be performed.
EFP9800 ESC/POS Commands Eject Slip Prints the data in the buffer and ejects the slip. Hexadecimal Decimal ASCII 0C 12 FF Standard Mode • Enabled only when slip is selected for printing. • Slip is ejected to the length set by the Set Slip Eject Length command (1B 43). If this length is not set, the slip is completely ejected. • Receipt or journal paper from the paper roll is not ejected even if it is also selected.
EFP9800 ESC/POS Commands Cancel Print Data in Page Mode Deletes all the data to be printed in the “ page” area. Any data from the previously selected “ page” area that is also part of the current data to be printed is deleted. This command is only used in page mode. For more information see “ Page Mode” later in this section. Hexadecimal Decimal ASCII 18 24 CAN Set Right-Side Character Spacing Sets the right-side character spacing to n x (fundamental calculation pitch).
EFP9800 ESC/POS Commands Page Mode Two types of fundamental calculation pitch are used to set the right-side character spacing, depending on the value of the Select Print Direction in Page Mode command (1B 54 n). For more information see “ Page Mode” later in this section. • If 1B 54 n = 0 or 2, the horizontal direction of the fundamental calculation pitch is used. • If 1B 54 n = 1 or 3, the vertical direction of the fundamental calculation pitch is used.
EFP9800 ESC/POS Commands Underlined and Double-Wide A0 A1 Underlined, Double-Strike, and Double-Wide A8 A9 Underlined, Double-High, and Double-Wide B0 B1 Underlined, Double-Strike, Double-High, and Double-Wide B8 B9 Note: Underlines cannot be printed for 90 degree clockwise rotated characters or for spaces set by the Horizontal Tab, Set Absolute Starting Position, or Set Relative Print Position commands.
EFP9800 ESC/POS Commands Select Print Mode(s) (for Windows™ Printer Drivers) Selects the print mode(s) specified by the value of n as outlined below. The default is 1. This command is intended for use with Windows printer drivers developed with the Windows unitool. This command is nearly identical to Select Print Mode(s) (1B 21) except that the bits for Double-Strike and Underline are ignored.
EFP9800 ESC/POS Commands Standard Mode The horizontal direction of the fundamental calculation pitch is used to set the print starting position from the beginning of the line. Page Mode Two types of fundamental calculation pitch are used to set the print starting position from the beginning of the line, depending on the value of the Select Print Direction in Page Mode command (1B 54 n). For more information see “ Page Mode” later in this section.
EFP9800 ESC/POS Commands Set Line Spacing Sets the line spacing to n x (fundamental calculation pitch). The default value is n = 24. The command is only available for the paper selected using the Select Paper for Setting Line Spacing command (1B 63 31). See the Set Fundamental Calculation Pitch command (1D 50). Hexadecimal Decimal ASCII Value of n 1B 33 n 27 51 n ESC 3 n 0-255 Standard Mode The vertical direction of the fundamental calculation pitch is used to set the line spacing.
EFP9800 ESC/POS Commands Select Peripheral Device Selects or cancels a peripheral device designated by the value of n. When the printer is not selected, it reads all data but performs nothing except the Real Time Status Transmission or Real Time Request to Printer commands. Even though the printer is not selected, it may go offline through manual printer operation. Use internal switch pack settings to determine which value of n is selected. For more information, see “ Switch Entry Mode” in section 3.
EFP9800 ESC/POS Commands Set Slip Eject Length Sets the slip eject length to n lines. (When n = 0, no length is set.) Changes in line spacing do not affect the slip eject length. The length set by this command is used only when the Eject Slip command (0C) is performed. This command is only effective in the standard mode. Hexadecimal Decimal ASCII Value of n 1B 43 n 27 67 n ESC C n 0 - 255 The maximum slip eject length is 40 inches.
EFP9800 ESC/POS Commands Print and Feed Paper Prints the data in the buffer and feeds the paper a distance of n x (fundamental calculation pitch). The maximum feed amount is 40 inches; if a greater number is entered, the paper is fed 40 inches. See the Set Fundamental Calculation Pitch command (1D 50). Hexadecimal Decimal ASCII Value of n 1B 4A n 27 74 n ESC J n 0 - 255 Standard Mode The vertical direction of the fundamental calculation pitch is used to calculate the distance the paper is fed.
EFP9800 ESC/POS Commands Select Page Mode Changes mode from standard to page. Hexadecimal Decimal ASCII 1B 4C 27 76 ESC L This command collects and processes the data intended for printing on a specific area of the paper. When the Eject Slip command (0C) is received, the data is printed in the specified area and the printer returns to standard mode. For more information see “ Page Mode” later in this section. 6– 16 • This command is valid only when input at the beginning of the line.
EFP9800 ESC/POS Commands Command Setting(s) Not Used in Page Mode Select Print Modes (1B 21) Double-Strike, All 7 x 7 fonts Select Print Modes (1B 22) All 7 x 7 fonts Select Bit Image Mode (1B 2A) Double Density Set/Cancel Emphasized Mode (1B 45) All Set/Cancel Double-Strike Mode (1B 47) All Set/Cancel 90 Degree Clockwise Rotation (1B 56) All Select Justification (1B 61) All Set/Cancel Upside Down Printing (1B 7B) All Print Downloaded Bit Image (1D 2F 00) Double Density Set Left Margin
EFP9800 ESC/POS Commands Hexadecimal 1B 54 n Decimal 27 84 n ASCII ESC T n Value of n (Start Position) 0 = Upper left corner proceeding across page to the right (A) 1 = Lower left corner proceeding up the page (B) 2 = Lower right corner proceeding across page to the left (upside down) (C) 3 = Upper right corner proceeding down page (D) Set/Cancel Uni-Directional Printing Starts or stops uni-directional printing. In uni-directional printing, the printer prints from right to left.
EFP9800 ESC/POS Commands Standard Mode The default value of n is 0. Page Mode The default value of n is 1. For more information see “ Page Mode” later in this section. Note: Only the lowest bit of n is effective. When n is even, uni-directional printing is turned off and when n is odd, uni-directional printing is turned on. Set Printing Area in Page Mode Sets the position and size of the printing area in page mode. For more information see “ Page Mode” later in this section.
EFP9800 ESC/POS Commands Keep the following notes in mind for this command. 6– 20 • The fundamental calculation pitch depends on the vertical or horizontal direction. • The maximum printable area in the x direction is 400/160 inches. • The maximum printable area in the y direction is 1408/144 inches.
EFP9800 ESC/POS Commands Set Relative Print Position Sets the print starting position based on the current position, in the fundamental calculation pitch. The distance (in inches) from the current position is calculated as: [N x (fundamental calculation pitch)]. See the Set Fundamental Calculation Pitch command (1D 50). Pitch N to the right is calculated as: (n1 + n2 x 256). Pitch N to the left is calculated as: (n1 + n2 x 256) = 65535 - N.
EFP9800 ESC/POS Commands The command is effective only at the beginning of a line. It is ignored when n is out of range. Hexadecimal Decimal ASCII Value of n 1B 61 n 27 97 n ESC a n 0 = Left Justify (default) 1 = Center 2 = Right Justify The settings do not apply in page mode. Select Print Paper(s) Selects the paper for printing. (See the following table.) The command is effective only at the beginning of a line. It is ignored when n is out of range. The default is n = 1.
EFP9800 ESC/POS Commands Notes: • When the paper selection changes, if slip or validation was previously selected, the slip or validation paper is ejected. • When either slip or validation is selected, the printer waits for the paper to be inserted. • When both slip and receipt/journal paper are selected at once, printing on the pressure roll is possible only when pressure-sensitive paper is used. • If the previously selected paper is re-selected, no action takes place.
EFP9800 ESC/POS Commands Select Paper Sensor(s) to Stop Printing Selects the paper sensor(s) used to stop printing when the paper-end is detected. The printer finishes printing the current line and feeds the paper before stopping. After a paper sensor is enabled, printing is stopped only when the corresponding paper is currently selected. If multiple sensors are enabled, printing stops when any one detects a paper end.
EFP9800 ESC/POS Commands Enable/Disable Paper Feed Button Enables or disables the Paper Feed button. Note: Hexadecimal Decimal ASCII 1B 63 35 n 27 99 53 n ESC c 5 n Only the lowest bit of n is effective. When n is even, the paper feed button is enabled and when n is odd, the paper feed button is disabled. Print and Feed n Lines Hexadecimal Decimal ASCII Value of n 1B 64 n 27 100 n ESC d n 0 - 255 The maximum paper feed length is 40 inches.
EFP9800 ESC/POS Commands When either n or m is out of range, the settings that were in effect before this command remain unchanged. Hexadecimal Decimal ASCII Value of n Value of m 1B 66 m n 27 102 m n ESC f m n 0 - 64 0 - 15 Generate Pulse Outputs a pulse defined by n1 and n2 to open a cash drawer. The drawer connector solenoid should have a resistance of 24 ohms or more to avoid excessive current flow. Use the printer power supply (drawer connector pin 4) to power the drawer.
EFP9800 ESC/POS Commands Select Head Energizing Time Selects the head energizing time as specified by n. The head energizing time is set for the paper type selected using the Select Print Paper(s) command (1B 63 30). (When both receipt/journal paper and slip are selected, the head energizing mode for slip is enabled.) This command is effective only at the beginning of a line.
EFP9800 ESC/POS Commands • Any printable area that is less than one character wide will be extended to the right enough to print one character. If the area cannot be extended to the right, the left margin will then be reduced. See “ Set Printable Area Width” for more information. Set Fundamental Calculation Pitch Sets the fundamental calculation pitch.
EFP9800 ESC/POS Commands • The width of the printable area is set for the paper that was selected by the Select Paper(s) for Settings command (1B 63 31). • If a fraction is part of the result from calculating the width of the printable area, it is corrected with the remainder being truncated. • If the width of the printable area is less than one character wide (or the equivalent of one character wide for a bit image), the width will be extended to the right enough to print one character.
EFP9800 ESC/POS Commands Define User-Defined Characters Defines user-defined alphanumeric characters for the specified character codes. The character codes may be any between ASCII code 20-7E (95 characters possible). User-defined characters remain in effect until: • A different user-defined character is defined. • The printer is initialized, reset, or turned off. • A downloaded bit image is defined. A user-defined character set and a downloaded bit image cannot be defined simultaneously.
EFP9800 ESC/POS Commands The command is ignored if the value of v, b, f, or h is out of range. Any following data is processed as normal data. Hexadecimal Decimal ASCII 1B 26 v b f [h u1, l1, u2, l2 . . . uh, lh]* 27 38 v b f [h u1, l1, u2, l2 . . . uh, lh]* ESC & v b f [h u1, l1, u2, l2 . . . uh, lh]* *The data in [ ] is repeated f - b + 1 times, once for each character to be defined. Value Range (in decimal) Description v 2 Fixed to 2 b 32 - 126 Beginning character code in range.
EFP9800 ESC/POS Commands The following table describes the format of the character data as expressed by h, u, and l. Value Range (in decimal) Description h 0-10 (7 x 7) 0-6 (5 x 9) Number of u, l pairs (columns) ui ui = 0-255 Data for column i pins. u = the upper 8 pins. Bit 7 of ui corresponds to pin 1, bit 6 of ui corresponds to pin 7, and so on. Bit 0 of ui corresponds to pin 8. The illustration on the following page shows graphically the character data format.
EFP9800 ESC/POS Commands The following example redefines the character 20 (H) for 5 x 9: 1B 21 00 (selects 5 x 9 characters) 1B 26 02 20 20 05 FE 00 10 00 10 00 10 00 FE 00 u1 u5 FE 10 10 10 FE 1 0 0 0 1 1 0 0 0 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 1 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 l1 l5 00 00 00 00 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3255 4073– 002 6– 33
EFP9800 ESC/POS Commands The result is the character H as shown in the illustration. In order to define characters for either 7 x 7 or 5 x 9, the character set must be selected by the Select Print Mode(s) command (1B 21). The characters downloaded are stored as the defined character set. Columns are stored in the following order: first received in the leftmost column. Any undefined columns are set to 0. In the example, 5 of 6 possible columns are downloaded with the remainder set to 0.
EFP9800 ESC/POS Commands Cancel User-Defined Characters Cancels the user-defined character designated by character code n of the selected font size. After a particular character is canceled, the corresponding built-in character is printed. The printer ignores this command if a user-defined character is not defined for the character code n or if n is out of range. Hexadecimal Decimal ASCII Value of n 1B 3F n 27 63 n ESC ? n 32 - 126 Set/Cancel Emphasized Mode Starts or stops emphasized printing.
EFP9800 ESC/POS Commands Set/Cancel Double-Strike Mode Starts or stops double-strike printing. Printer output is the same as in emphasized mode. Double-strike printing cannot be used with bit-images or downloaded bit-images. Hexadecimal Decimal ASCII Value of n 1B 47 n 27 71 n ESC G n 0 -255 The settings do not apply in page mode. Note: Only the lowest bit of n is effective. When n is even, double-strike mode is turned off and when n is odd, double-strike mode is turned on.
EFP9800 ESC/POS Commands 3255 4073– 002 6– 37
EFP9800 ESC/POS Commands 6– 38 3255 4073– 002
EFP9800 ESC/POS Commands Set/Cancel 90 Degree Clockwise Rotation Starts or stops 90 degree clockwise rotated printing. Underlining may be on in rotated mode, but characters are not underlined. The command is ignored when n is out of range. Hexadecimal Decimal ASCII Value of n 1B 56 n 27 86 n ESC V n 0 = Cancel 90 degree clockwise rotation (Default) 1 = Start 90 degree clockwise rotation (1-dot character spacing) The settings do not apply in page mode.
EFP9800 ESC/POS Commands Note: Only the lowest bit of n is effective. When n is even, upside down printing is turned off and when n is odd, upside down printing is turned on. Graphics Commands These commands are used to control the way graphics are entered or printed. They are listed in numerical order of their hexadecimal codes. Select Bit Image Mode Selects the bit image mode using m. The number of dots is specified by n1 and n2. The number of horizontal dots is calculated as: n1 + 256 x n2.
EFP9800 ESC/POS Commands See the illustration for a graphic representation of the bit image. Hexadecimal Decimal ASCII 1B 2A m n1 n2 [d] (n1 + 256 x n2)* 27 58 m n1 n2 [d] (n1 + 256 x n2)* ESC * m n1 n2 [d] (n1 + 256 x n2)* *There are n1 + 256 x n2 data columns (the value [d]). The value n1 + 256 x n2 does not appear in the data stream. Value of Range Description m 0,1 Selects the bit image mode. n1 0 - 255 Parameter used to calculate number of horizontal dots is n1 + 256 x n2.
EFP9800 ESC/POS Commands Define Downloaded Bit Image Defines a downloaded bit image as specified by n1 and n2. Hexadecimal Decimal ASCII 1D 2A n1 n2 [d] (n1 x n2 x 8)* 29 42 n1 n2 [d] (n1 x n2 x 8)* GS * n1 n2 [d] (n1 x n2 x 8)* *There are n1 x n2 x 8 data columns (the value [d]). The value n1 x n2 x 8 does not appear in the data stream. Value of n1 Va lue of n2 Value of n1 x n2 1 - 255 125 5 1 - 512 The bit image data is represented by d.
EFP9800 ESC/POS Commands The command is ignored if n1 x n2 is out of range. Print Downloaded Bit Image Prints a downloaded bit image in the mode specified by m. If a downloaded bit image exceeds one line, the excess data is not printed. Downloaded bit images and user-defined character sets cannot be used simultaneously. Any dots outside the selected print area are discarded. Note: In page mode Double density print is disabled.
EFP9800 ESC/POS Commands The command is ignored if: • Data is present in the print buffer. • A downloaded bit image is not defined. • The value of m is out of range. Hexadecimal Decimal ASCII Value of m 1D 2F m 29 47 m GS / m (See table below) Horizontal Direction m Dot Density Adjacent Dot Specification Max.
EFP9800 ESC/POS Commands Transmit Peripheral Device Status Transmits the status of drawer connector pin 3. Note: Hexadecimal Decimal ASCII Value of n 1B 75 n 27 117 n ESC u n 0, 48 = Drawer connector pin 3 Bit Function 0 1 0 Pin Level 3 Low High 1-3 Undefined 4 Not Used 5-6 Undefined 7 Not Used Always 0 Always 0 When the connector is not used, bit 0 = 1.
EFP9800 ESC/POS Commands Transmit Paper Sensor Status Transmits the status of a paper sensor.
EFP9800 ESC/POS Commands Note: When the Enable/Disable Automatic Status Back (ASB) command is enabled, the status transmitted by ASB and by this command must be distinguished. Transmit Printer ID Transmits the printer’s ID to the host computer. Hexadecimal Decimal ASCII Value of n 1D 49 n 29 73 n GS I n 1-3 The following table shows the printer ID as specified by n.
EFP9800 ESC/POS Commands • The printer transmits only one byte after confirming that the host computer is ready when DTR/DSR protocol is selected. One byte is transmitted without confirming the signal when XON/XOFF protocol is selected. • When the command is buffered, a status is sent causing a possible delay between when the command is received by the host computer and the status sent. This is dependent on the state of the receive buffer.
EFP9800 ESC/POS Commands If any of the status items listed above are selected, ASB is enabled and the printer automatically transmits 4 status bytes whenever the selected status changes. If no status is selected, ASB is disabled. In RS-232C communications, all four status bytes are transmitted without checking DSR. The four bytes must be consecutive, except for XOFF code.
EFP9800 ESC/POS Commands The transmitted status is shown in the following tables: First Byte (printer information) Printer Status Bit Printer Function 0 1 0-1 Not Used Always 0 2 Cash Drawer Connector, Pin 3 Low High 3 Online/Offline State Online Offline 4 Not Used 5 Cover State Closed Closed 6 Paper Feed using Paper Feed Button Not Feeding Feeding 7 Not Used Always 0 Always 1 Second Byte (error information) Error Status 6– 50 Bit Error Type 0 1 0-1 Undefined 2 Mechani
EFP9800 ESC/POS Commands Third Byte (paper sensor information) Receipt/Journal Paper Out Switch Status Bit Receipt/Journal Paper Out Switch 0 1 0 Receipt/Journal Paper Near End Paper Low Not Detected Paper Low Detected 1 Receipt/Journal Paper Near End Paper Low Not Detected Paper Low Detected 2-3 Undefined 4 Not Used Always 0 5 Slip Slip Present Slip Not Present 6 Slip Slip Present Slip Not Present 7 Not Used Always 0 Fourth Byte (slip sensor information) Slip Sensor Status Bit
EFP9800 ESC/POS Commands Notes for Bit 1: • The slip paper status becomes 0 (Printable) after paper is loaded and becomes 1 (Not Printable) when the paper is ejected or the printer times out. • When the slip paper is selected and the printer goes into the slip waiting state, bits 5 and 6 of the third byte become 1 (No Paper) and bits 0 and 1 of the fourth byte become 0 (Slip Selected) and 1 (Not Printable) respectively.
EFP9800 ESC/POS Commands Identifying Auto Status Back Bytes Transmitted by the Printer The printer transmits status to the host computer in several ways as shown in the following table: Printer response to a status request from host computer Pattern of status bytes sent by printer Transmit Peripheral Device Status (1B 75) 0**0**** Transmit Paper Sensor Status (1B 76) 0**0**** Transmit Printer ID (1D 49) 0**0**** Transmit Status (1D 72) 0**0**** Real Time Status Transmission 0**1**10 Auto Status
EFP9800 ESC/POS Commands Transmit Status Transmits the status specified by the value of n. In RS-232C communications, when DTR/DSR control is selected, the printer confirms that the host computer is ready to receive data (DSR signal is SPACE) and then transmits only one byte. If the host computer is not ready to receive data (DSR signal is MARK), the printer waits until the host computer is ready. When XON/XOFF control is selected, the printer transmits only 1 byte before checking the DSR signal.
EFP9800 ESC/POS Commands The command is ignored if n is out of range.
EFP9800 ESC/POS Commands n = 3: Slip Status (Transmits the values 00H - 0FH, indicating the remaining printable area) Number of Remaining Dots 6– 56 Slip Status (Hexadecimal) 0-8 00 (Transmitted when there is not enough paper for the next instruction) 9 - 17 01 18 -26 02 : : 117 - 125 0D 126 -134 OE 135 - OF 3255 4073– 002
EFP9800 ESC/POS Commands Real Time Commands The following three situations must be understood when using real time commands. 1. First, the printer performs the real time command upon receiving it and will transmit status regardless of the condition of the DSR signal. 2. Second, the printer transmits status whenever it receives the real time status transmission command sequence, even if that sequence happens to occur within the data of another command, such as graphics data.
EFP9800 ESC/POS Commands To guard against this situation, an application should determine the cause of a busy condition and take appropriate action or pace further real time commands to avoid filling the buffer. There are a minimum of 256 bytes available in the printer’s buffer when it goes busy. The commands are listed numerically by hexadecimal code. Real Time Status Transmission Transmits the printer status in real time.
EFP9800 ESC/POS Commands n = 1: Printer Status Printer Status Bit Printer Function 0 1 0 Not Used Always 0 1 Not Used 2 Cash Drawer Connector, Pin 3 Low High 3 Online/Offline State Online Offline 4 Not Used 5-6 Undefined 7 Not Used Always 1 Always 1 Always 0 n = 2: Offline Status Offline Status Bit Description 0 1 0 Not Used Always 0 1 Not Used 2 Not Used Always 0 3 Paper Feeding with Feed Button Except During Paper Feeding 4 Not Used 5 Printing Stop Due to Paper
EFP9800 ESC/POS Commands n = 3: Error Status Error Status Note: Bit Description 0 1 0 Not Used Always 0 1 Not Used 2 Mechanical Error 3 Undefined 4 Not Used 5 Unrecoverable Error No Error 6-7 Not Used Always 0 Always 1 No Error Error Always 1 Error For Bit 2, mechanical errors include home position detection, carriage detection, and slip ejection errors.
EFP9800 ESC/POS Commands n = 5: Slip Paper Status Slip Paper Status Bit Slip Paper Function 0 1 0 Not Used Always 0 1 Not Used 2 Slip Paper Selection Selected Not Selected 3 Slip Insertion Waiting Not Waiting Waiting 4 Not Used 5 Slip/Validation Sensor Slip Present Slip Not Present 6 Slip/Validation Sensor Slip Present Slip Not Present 7 Not Used Always 0 Always 1 Always 1 Notes: • For Bit 2, there is a lag between receipt of the Select Print Paper(s) command (1B 63 30) an
EFP9800 ESC/POS Commands n = 6: Validation Paper Status Validation Paper Status Bit Validation Paper Function 0 0 Not Used Always 0 1 Not Used 2 Validation Paper Selection Selected Not Selected 3 Validation Insertion Waiting Not Waiting Waiting 4 Not Used 5 Validation Sensor Validation Present Validation Not Present 6 Slip/Validation Sensor Validation Present Validation Not Present 7 Not Used Always 0 Note: 1 Always 1 Always 1 For Bit 2, there is a lag between receipt of th
EFP9800 ESC/POS Commands Do not use this command within the data sequence of another command that consists of two or more bytes. For example, if you send the Set Line Spacing (ASCII code ESC 3 n) to the printer, and a Real Time Request to Printer command (10 05 n) interrupts before n is received, the code 10 for 10 05 n is processed as the value of n for ESC 3 n.
EFP9800 ESC/POS Commands Bar Code Commands These commands format and print bar codes on the receipt station. Select Printing Position of HRI Characters (Receipt Station) Prints HRI characters (Human Readable Interface) above or below the bar code.
EFP9800 ESC/POS Commands Print Bar Code (Receipt Station) Selects the bar code type and prints a bar code for the ASCII characters entered. The command is only valid at the beginning of a line. If the width of the bar code exceeds one line, the excess data is not printed. Illegal data cancels the command.
EFP9800 ESC/POS Commands First Variation: String terminated with NULL Character Hexadecimal Decimal ASCII 1D 6B m [d]n 00 29 107 m [d]n 0 GS k m [d]n NUL 0 = End of command.
EFP9800 ESC/POS Commands Second Variation: Length of Byte Specified at Beginning of String Hexadecimal Decimal ASCII 1D 6B m [d]n 29 107 m [d]n GS k m [d]n m = 65-71, 73 (see the table) d =0-127 (see the table) n = 1-255 (see the table) The value of m selects the bar code system as described in the table. When data is present in the print buffer, the printer processes the data following m as normal data. The variable d indicates the character code to be encoded into the specified bar code system.
EFP9800 ESC/POS Commands m Bar Code d n, Length 65 UPC-A 48- 57 (ASCII numerals) Fixed Length: 11, 12 66 UPC-E 48- 57 Fixed Length: 11, 12 67 JAN13 (EAN) 48- 57 Fixed Length: 12, 13 68 JAN8 (EAN) 48- 57 Fixed Length: 7, 8 69 CODE39 48- 57, 65- 90 (ASCII alphabet), Variable 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is supplied by printer if necessary) 70 Interleaved 2 of 5 (ITF) 48- 57 Variable (Even Number) 71 CODABAR (NW-7) 65- 68, st
EFP9800 ESC/POS Commands Page Mode Overview Page mode is one of two modes which the EFP9800 printer uses to operate. Standard mode is typical of how most printers operate by printing data as it is received and feeding paper as the various paper feed commands are received. Page mode is different in that it processes or prepares the data as a “ page” in memory before it prints it. Think of this as a virtual page. The page can be any area within certain parameters that you define.
EFP9800 ESC/POS Commands Limitations Be aware of the following limitations in page mode: • Bi-directional printing may cause problems and should be avoided. Use Set/Cancel Uni-Directional Printing (1B 55) to set uni-directional printing. • Half dots cannot be used. Page mode requires full dots for 5 x 9 dot font characters (user defined) and bit images.
EFP9800 ESC/POS Commands Command Settings in Both Modes The command settings are treated the same in page mode as they are in standard mode. However, there are some differences: • The settings for the following commands are set independently in both modes: Set Right-Side Character Spacing (1B 20) Spacing (1B 32) Set Line Spacing (1B 33) Printing (1B 55) Set Line Spacing to Default Set/Cancel Uni-Directional • Horizontal tabs are treated somewhat differently in both modes.
EFP9800 ESC/POS Commands The total number of dots for dx is 200 (400 half dots) at 160 half dots per inch. The total number of dots for dy is 704 (1408 half dots) at 144 half dots per inch. • 6– 72 The print starting position for standard height characters is determined by the first line of the page and the direction. Depending on the direction, the print starting position will be in one of the four following positions. See the illustration for a graphic representation.
EFP9800 ESC/POS Commands • A line feed is automatically performed any time the number of characters is greater than the specified width of the page (assuming no commands including a line feed are present). This moves the print starting position to the next line.
EFP9800 ESC/POS Commands Examples of Printing in Page Mode The first example is text on two lines at 9 dots per line with an auto-line feed. The text on the third line is double-high. See the sample printout and the sample code. 1B 4C 1B 57 00 00 00 00 90 01 90 01 “ Page mode text has auto-line feed feature.” 1B 33 2A 0A 1B 21 10 “ Double high” 0C In this example, you enter page mode and select a print area of 400 x 400 halfdots (200 x 200 full dots).
EFP9800 ESC/POS Commands 1B 63 30 04 1B 4C 1B 54 03 1B 44 0C 2D 38 00 09 09 “ OCT 15” 09 “ 96” 0A 0A 0A 09 “ YOUR NAME HERE” 09 09 “ *12.67” 0A 0A 09 “ TWELVE AND 67/100” 0A 0C In this example, begin by selecting slip insertion paper. Then enter page mode and select the print direction to start at the upper right corner and proceed sideways down the page. Set three tab positions at 12, 45, and 56 columns from the left margin.
EFP9800 ESC/POS Commands Flash Memory Commands These commands copy user-defined character sets or logos to the printer’s flash memory. Depending on the command chosen, the object stored in flash memory is then copied to RAM when the printer is powered up, or kept in flash memory for later use. Either way, it is available from the flash memory whenever needed. These commands are only available for the EFP9800 ESC POS emulation.
EFP9800 ESC/POS Commands • If a character set is being copied to flash memory, both the 7x7 and 5x9 versions of the character set are copied. The character set must have at least one user-defined character defined to be copied. • The current state of the user-defined characters is preserved when the command is performed.
EFP9800 ESC/POS Commands Enable Loading the Object When Powering on the Printer Enables the object in flash memory to be copied to RAM when the printer is powered up or the Initialize Printer command (1B 40) is received. This command reverses the previous command, “ Disable Loading the Object to RAM When Powering on the Printer” (1B 7C 01). The command is ignored if nothing has been copied to flash memory.
Section 7 Ithaca Peripherals Proprinter Emulation Commands Commands control all operations and functions of the EFP9800 printer. The commands in this section emulate the Ithaca Peripherals Proprinter emulation. List of Ithaca Peripherals Proprinter Emulation Commands This table lists the commands in numerical order according to their hexadecimal codes. The page number indicates where a complete description of the command can be found in the next section.
Ithaca Peripherals Proprinter Emulation Commands 7–2 Hexadecimal Code Command Name Page 18 Clear Printer 7–6 1B 11 Perform Validation: Open Forms Compensation Assembly 7–6 1B 13 Perform Validation: Close Forms Compensation Assembly 7–7 1B 14 Perform Validation: Close Forms Compensation Assembly When Slip Sensed 7–7 1B 2D 30 Cancel Underlining 7–12 1B 2D 31 Set Underlining 7–13 1B 30 Set Line Spacing to 1/8 Inch 7–7 1B 33 n Set Fine Line Spacing (n/216 Inch) 7–7 1B 36 Select Alt
Ithaca Peripherals Proprinter Emulation Commands Hexadecimal Code Command Name Page 1B 4C n1 n2 Double-Density, Half-Speed Graphics 7–18 1B 53 30 Set Superscript 7–15 1B 53 31 Set Subscript 7–15 1B 54 Cancel Subscript/Superscript 7–15 1B 55 n Uni-Directional/Bi-Directional Print 7–10 1B 57 30 Cancel Double-Wide for Current Font 7–15 1B 57 31 Set Double-Wide for Current Font 7–16 1B 59 n1 n2 Double-Density, Normal Speed Graphics 7–18 1B 5A n1 n2 Quadruple Density Graphics 7–19
Ithaca Peripherals Proprinter Emulation Commands Ithaca Peripherals Proprinter Emulation Command Descriptions The command descriptions in this section are grouped in the following categories: • Printer Function Commands • Print Characteristics Commands • Graphics Commands • Printer Status Commands Within each group the commands are listed in numerical order according to their hexadecimal codes. Each command is described and the hexadecimal , decimal, and ASCII codes are listed.
Ithaca Peripherals Proprinter Emulation Commands Open Cash Drawer 2 Opens cash drawer number 2. A default pulse is sent which is 120 ms high and 480 ms low. Hexadecimal Decimal ASCII 08 8 BS Horizontal Tab Moves the print position to the next horizontal tab stop set by the Set Horizontal Tab Positions (1B 44) command. The command is ignored if it exceeds the right margin or the maximum number of tab stop settings. Hexadecimal Decimal ASCII 09 9 HT Line Feed Prints and feeds the paper one line.
Ithaca Peripherals Proprinter Emulation Commands Advance to Top of Next Form Prints the data in the data buffer and advances the paper to the top of the next receipt. The length of the advance can be set by NVRAM switches in switch pack #1. See “Set Internal Switch Pack Values in NVRAM” in section 3. Hexadecimal Decimal ASCII 0C 12 FF Carriage Return Prints one line. Does not feed the paper unless DIP switch 3 is On. For more information, see “Switch Entry Mode” in section 3.
Ithaca Peripherals Proprinter Emulation Commands Perform Validation: Close Forms Compensation Assembly Closes the forms compensation assembly. The command is ignored if the forms compensation assembly is already closed. Hexadecimal Decimal ASCII 1B 13 27 19 ESC DC3 Perform Validation: Close Forms Compensation Assembly When Slip Sensed Closes the forms compensation assembly only when a form is detected. The Slip In LED flashes until the form is inserted correctly, when it is turned off.
Ithaca Peripherals Proprinter Emulation Commands Set Line Spacing to 1/6 Inch Sets the line spacing to 1/6 inch or 6 lines/inch. Hexadecimal Decimal ASCII 1B 41 0C 1B 32 27 65 12 27 50 ESC A 12 ESC 2 Set Form Length in Inches Sets the length of the page until the printer is powered up again or until another command setting the length of the page is received. Also sets the top margin and the top line for the 1-inch vertical tab settings. For more information see “Vertical Tab.
Ithaca Peripherals Proprinter Emulation Commands Set Horizontal Tab Positions Sets the horizontal tab stops. If no horizontal tabs command is given, tab stops are set at every 8th column. Keep the following in mind: • You can specify up to 32 tabs stops. • Specify tab settings in ascending order. • Column 1 is the home position. • Tabs can be at different intervals throughout the width of a column. • Tab functions can be performed in all character sizes and print modes, including double-wide.
Ithaca Peripherals Proprinter Emulation Commands Uni-Directional/Bi-Directional Print In uni-directional printing, the printer prints from left to right only. Unidirectional printing increases the accuracy of the left margin. In bi-directional printing, the printer prints in both directions. Bi-directional printing increases the speed of the printer.
Ithaca Peripherals Proprinter Emulation Commands Set Single Line Double-Wide Doubles the width of the currently selected character size. The table below shows the available character sizes. You can change character size in the middle of a line. The command stays in effect until it is canceled with the Cancel Single Line Double-Wide command (14) or until the line is printed. To return to single-wide characters, use the Cancel Single Line Double-Wide (14) command.
Ithaca Peripherals Proprinter Emulation Commands Set 10 Characters/Inch Sets the character size to 10 characters/inch. You can change character size in the middle of a line. To double the width from 10 characters/inch to 5 characters/inch, use the Set Single Line Double-Wide (0E) command. To return to single-wide characters, use the Cancel Single Line Double-Wide (14) command.
Ithaca Peripherals Proprinter Emulation Commands Set Underlining Begins underlining. The printer continues to underline until the Cancel Underlining (1B 2D 0) command is received. The underline is drawn by the ninth dot.
Ithaca Peripherals Proprinter Emulation Commands Set Emphasized Printing Starts emphasized printing. Each line is printed twice to improve penetration of multiple-part forms and to increase print contrast. Emphasized printing cannot be used with the following: • Superscript or subscript characters • Block graphics mode To return to normal print mode, use the Cancel Emphasized Printing (1B 46) command.
Ithaca Peripherals Proprinter Emulation Commands Set Superscript Starts superscript printing. (Superscript characters print above the normal print line.) The Set Superscript command must be sent before the characters to be printed in superscript. To return to printing on the normal print line, use the Cancel Superscript (1B 54) command. Hexadecimal Decimal ASCII 1B 53 30 27 83 48 ESC S 0 Set Subscript Starts subscript printing. (Subscript prints characters below the normal print line.
Ithaca Peripherals Proprinter Emulation Commands Set Double-Wide for Current Font Doubles the width of the currently selected character size. Double-wide can begin in the middle of a line, but cannot be canceled before the end of a line by the Cancel Single Line Double-Wide command (14). To return to single-wide characters, use the Cancel Double-Wide for Current Font command (1B 57 30). Hexadecimal Decimal ASCII 1B 57 31 27 87 49 ESC W 1 Graphics Commands These commands control graphics printing.
Ithaca Peripherals Proprinter Emulation Commands The printhead has 9 print wires, numbered from 1 to 9 with 1 being the topmost print wire and 9 being the bottom most. Each data byte directs the activation of the topmost 8 wires. Each data byte contains 8 data bits, numbered 0 to 7.
Ithaca Peripherals Proprinter Emulation Commands Single-Density Graphics Prints graphics in single-density format, in a 60 dots/inch by 72 dots/inch image pattern. Maximum dots/line = 144 Maximum dot resolution = 144 Maximum columns/line = 144 Hexadecimal Decimal ASCII 1B 4B n1...n2 27 75 n1...n2 ESC K n1...n2 Double-Density, Half-Speed Graphics Prints graphics in double-density format, at a slower rate of speed in a 120 dots/inch by 72 dots/inch image pattern.
Ithaca Peripherals Proprinter Emulation Commands Quadruple Density Graphics Prints graphics in quadruple-density format in a 240 dots/inch by 72 dots/inch image pattern. Dot columns can overlap by 3/4 dot width. Dots can not be printed in adjacent columns of the same row. Maximum dots/line = 192 Maximum dot resolution = 576 Maximum columns/line = 576 Hexadecimal Decimal ASCII 1B 59 n1...n2 27 89 n1...n2 ESC Y n1...
Ithaca Peripherals Proprinter Emulation Commands Cash Drawer Status Commands Cash Drawer Status Elicits status response from printer. The printer returns a single byte containing the status of the paper roll and the cash drawer. Each bit is described in the table. The command is processed following any preceding commands in the buffer.
Section 8 NCR 5021 Printer Emulation Commands Commands control all operations and functions of the EFP9800 printer. The commands in this section emulate the NCR 5021 printer. Note: The NCR 5021 emulation is for use only with EFP984x serial interface units. This emulation is NOT resident in the EFP9850 and EFP9851parallel interface units. List of NCR 5021 Emulation Commands This table lists the commands in numerical order according to their hexadecimal codes.
NCR 5021 Printer Emulation Commands 8–2 Hexadecimal Code Command Name Page 1B 5B 77 01 13 Open Forms Compensation Assembly 8–6 1B 5B 77 01 14 Close Forms Compensation Assembly 8–7 1B 5B 77 01 16 Reprint After Media Jam 8–7 1B 5B 7A vv yy yy...yy Echo 8–8 1B 5B 7F vv xx xx yy...
NCR 5021 Printer Emulation Commands NCR 5021 Emulation Command Descriptions The command descriptions in this section are grouped in the following categories: • Printer Function Commands • Print Characteristics Commands • Printer Status Commands Within each group the commands are listed in numerical order according to their hexadecimal codes. Each command is described and the hexadecimal, decimal, and ASCII codes are listed. Printer Function Commands Line Feed Performs a line feed.
NCR 5021 Printer Emulation Commands Reset This command does the following: • Stops printing • Flushes data buffers • Initializes parameters • Resets I/O ports • Takes the printer offline It does not reload the character set from NVRAM, affect the interline spacing, clear the tallies, or flush the communication buffers. The command is executed immediately, regardless of the state of the printer.
NCR 5021 Printer Emulation Commands Close Takes the printer offline. When the printer is offline, it accepts only the following commands: • Set Interline Spacing (1B 5B 72) • Reset (1B 5B 30) • Read Status (1B 5B 31) • Open (1B 5B 32) • Read Tallies (1B 5B 34) • Write Device Control Memory (1B 5B 7F) • Reset Character RAM (1B 5B 70) The printer does not accept printable data when it is offline. The Close command is ignored if it is received when: • The printer is processing data.
NCR 5021 Printer Emulation Commands Reset Character RAM Reinitializes the character memory. The original dot patterns are copied from ROM into RAM, eliminating any changes made by the user. This command is processed only when the printer is offline. Hexadecimal Decimal ASCII 1B 5B 70 27 91 112 ESC [ p Read Slip Sensor Returns the state of the slip sensor in the forms compensation assembly of the printer. This command is processed only when the printer is online.
NCR 5021 Printer Emulation Commands The state of the forms compensation assembly can be checked with the Read Status (1B 5B 31) command. This command is processed only when the printer is online. Hexadecimal Decimal ASCII 1B 5B 77 01 13 27 91 119 01 19 ESC [ w 01 13 Close Forms Compensation Assembly Closes the forms compensation assembly. The printer does not accept print data when the forms compensation assembly is open.
NCR 5021 Printer Emulation Commands Echo When the printer receives this command, it takes the data following 1B 5B 7A vv yy, converts the data to unpacked ASCII, and returns the converted data to the host computer. This is useful when performing diagnostics on the printer. This command is executed immediately, regardless of the state of the printer. Hexadecimal Decimal ASCII 1B 5B 7A vv yy yy...
NCR 5021 Printer Emulation Commands WARNING Due to the electrical characteristics of the printer, neighboring dots cannot both be fired within a horizontal row. Damage to the print mechanism may result. It is the responsibility of the character set creator to insure that this can not occur. Altering a character in the character set is a two step procedure. The first step is to define the new character and the second step is to download the new character to the printer.
NCR 5021 Printer Emulation Commands The dot pattern for the character “A” (ASCII 41H) is: . . . . 0 0 0 . . . 0 . . . . . 0 . 0 . . . 0 . . . . . 0 . . . 0 . . . 0 . . . . . . . 0 . 0 . . . . . 0 . . . . . . . 0 0 0 . . . . . . . . . . . . . . . . . . . . . Next, convert each row of dots into a 16-bit value. Assign logical one (1) to every position that does not contain a “fired” dot and assign a logical zero (0) to every position that contains a “fired” dot.
NCR 5021 Printer Emulation Commands The values for the dot patterns are: . . . . 0 0 0 . . . 0 . . . . . 0 . 0 . . . 0 . . . . . 0 . . . 0 . . . 0 . . . . . . . 0 . 0 . . . . . 0 . . . . . . . 0 0 0 . . . . . . . . . . . . . . . . . . . . . 0F7FH 0EBFH 0DDFH 0BEFH 0557H 07F7H 07F7H Finally, assign a hex value to the new character. For demonstration purposes, the hex value 41H will be assigned to the character “A.” The codes are then downloaded into the printer.
NCR 5021 Printer Emulation Commands The calculated offset does not have to fall on a character boundary and the number of codes does not have to be a whole multiple of seven (7).
NCR 5021 Printer Emulation Commands Cancel Double-Wide Ends double-wide printing. Hexadecimal Decimal ASCII 10 16 DLE Set Double-Wide Starts double-wide printing. The printer returns to single-wide mode when it receives the Cancel Double-Wide (10) command or when the end of the current line is reached. Hexadecimal Decimal ASCII 12 18 DC2 Set Interline Spacing Sets the number of dot rows that are printed between lines. The default number of dot rows is 2. The valid range is from 1 to 7 dot rows.
NCR 5021 Printer Emulation Commands If a paper jam has occurred, the print mechanism must be cleared. If more printable data than the print data buffer can accommodate is sent, the printer discards all data after the data buffer is filled. This command is executed immediately, regardless of the state of the printer.
NCR 5021 Printer Emulation Commands Read and Clear Tallies Returns printer tallies for hours on and lines printed and then clears the tallies. The tallies are not cleared by the Reset (1B 5B 30) command. Hexadecimal Decimal ASCII 1B 5B 35 27 91 53 ESC [ 5 The printer sends the following in reply to the message: 1BH, 5BH, xxH, xxH, xxH, xxH, xxH, xxH, xxH, xxH, 2CH, 30H, 30H, 30H, 30H, 2CH, 30H, 30H, 30H, 30H, 70H. The value of xxxxxxxx is the count of lines printed (in unpacked ASCII).
NCR 5021 Printer Emulation Commands 8–16 3255 4073–002
Section 9 EF4270 Emulation Commands Commands control all operations and functions of the EFP9800 printer. The commands in this chapter emulate the EF4270 printer. List of EF4270 Emulation Commands This table lists the commands in numerical order according to their hexadecimal codes. The page number indicates where a complete description of the command can be found in the next section. Some commands listed are not implemented (they are identified as not implemented).
EF4270 Emulation Commands 9–2 Hexadecimal Code Command Name Page 1B 08 Cash Drawer 2 9–7 1B 0C Document Clamp Open 9–8 1B 13 Self Test 9–8 1B 17 Document Validation 9–8 1B 1A 1B 5A Receipt/Journal Print 9–8 1B 1C Document Clamp Close 9–9 1B 1D Graphics: 5 Dot 9–21 1B 21 Character Set 9–14 1B 41 Form Eject 9–9 1B 42 75 Download (Not Implemented) 9–9 1B 43 Underline Print 9–15 1B 44 Underline Off 9–16 1B 45 Double-High Off 9–16 1B 46 Form In (Parallel Printers Only
EF4270 Emulation Commands Hexadecimal Code Command Name Page 1B 7D n n Rotate Font 90 Degrees Clockwise or Cancel Rotated Print 9–18 1B 7E Cancel Slip Waiting 9–13 1E Graphics 9–19 1F c n n n 1F Repeat Character 9–12 3255 4073–002 9–3
EF4270 Emulation Commands EF4270 Command Descriptions The command descriptions in this section are grouped in the following categories: • Printer Function Commands • Print Characteristics Commands • Graphics Commands • Printer Status Commands Within each group the commands are listed in numerical order according to their hexadecimal codes. Each command is described and the hexadecimal, decimal, and ASCII codes are listed.
EF4270 Emulation Commands Line Feed Prints the data in the buffer and feeds the paper one line. The height of the line is determined by the internal DIP switch settings or by the Set Up Parameters command (19 n). See “Chapter 3: Diagnostics and Print Test” for more information. Hexadecimal Decimal ASCII 0A 10 LF Vertical Tab Prints any data in the buffer and then advances the paper .02083 inches (0.523mm).
EF4270 Emulation Commands Setup Parameters Sets temporary values for default printer parameters. N is the sum of the values for each parameter. Hexadecimal Decimal ASCII 19 n 25 n EM n Value of n Hexadecimal Decimal ASCII Parameter Setting 00 01 0 1 NUL SOH Auto Line Feed ON OFF 00 02 0 2 NUL STX Characters per Line 40 ALT 00 04 08 0C 0 4 8 12 NUL EOT BS FF Journal Lines/Inch 8.0 6.9 6.0 5.3 00 10 20 30 0 16 32 48 NUL DLE SPACE 0 Validation Lines/Inch 8.0 6.9 6.0 5.
EF4270 Emulation Commands Reset Printer This command is processed immediately and causes the printer to reset and initialize as if the power had been interrupted. All data in the buffer will be lost. The printer sends an XOFF if XON/XOFF handshaking is selected. No additional data should be sent to the printer following the reset command until one of the following: • The BUSY line toggles (parallel interface). • The RTS line toggles (RS-232 serial interface with RTS/CTS hardware handshaking selected).
EF4270 Emulation Commands Document Clamp Open Opens the platen. Any forms still in the printer may fall back into the validation station when the platen is opened. This command enables the Receipt/Journal paper feed and disables the Slip/Validation paper feed. Hexadecimal Decimal ASCII 1B 0C 27 12 ESC FF Self Test Clears all data in the print buffer and prints the current configuration parameters.
EF4270 Emulation Commands Document Clamp Close Closes the platen when the form has been detected and the time for the clamp delay is up. This command enables the Slip/Validation paper feed and disables the Receipt/Journal paper feed. Hexadecimal Decimal ASCII 1B 1C 27 28 ESC FS Form Eject Ejects the form from the validation station after it has been printed. Hexadecimal Decimal ASCII 1B 41 27 65 ESC A Download This command is not supported and is ignored if received.
EF4270 Emulation Commands Select Used for parallel printers only. Causes pin 13 on the 25-pin communication cable connector to function as the SELECT line. Internal switch pack #3, switch 8 must be set to OFF. Hexadecimal Decimal ASCII 1B 47 27 71 ESC G Either Form-In Sensor This command is not supported and is ignored if received. Hexadecimal Decimal ASCII 1B 49 27 73 ESC I Both Form-In Sensors This command is not supported and is ignored if received.
EF4270 Emulation Commands Clamp Delay Sets the time that the printer waits from when it detects an inserted form to when it clamps the platen closed. This allows time for the form to be lined up correctly and held still. Hexadecimal Decimal ASCII Value of n 1B 4C n 27 76 n ESC L n See table Value of n Hexadecimal Decimal ASCII Time of Clamp Delay 00 0 NUL No delay 01 1 SOH 0.250 seconds 02 2 STX 0.500 seconds (default) 03 3 ETX 1.
EF4270 Emulation Commands Buffer Clear Clears all print characters and control codes from the buffer. All current settings are maintained. This command does not return the printer to its default condition. The command is processed immediately. Hexadecimal Decimal ASCII 1B 60 27 96 ESC ‘ Repeat Character Repeats any printable characters or control codes up to 255 times. This command is best used to send several Line Feed commands (0A), or to print a single character a certain number of times.
EF4270 Emulation Commands Cancel Slip Waiting Cancels slip waiting. The communication buffer is cleared and the printer returns to roll mode. The command is executed immediately after it is received. Hexadecimal Decimal ASCII 1B 7E 27 126 ESC ~ Print Characteristics Commands These commands affect the appearance of printed information. They control the following: • Character set selection • Character formatting • Print orientation The commands are listed numerically by hexadecimal code.
EF4270 Emulation Commands Character Set Selects the character set. The default character set is defined by the internal DIP switch settings. See “Chapter 3: Diagnostics and Print Test” for more information.
EF4270 Emulation Commands 3255 4073–002 9–15
EF4270 Emulation Commands Underline Print Activates the 9th wire on all character cells to underline all printable characters, including a space (blank) character. Hexadecimal Decimal ASCII 1B 43 27 67 ESC C Underline Off Turns off underline printing. Hexadecimal Decimal ASCII 1B 44 27 68 ESC D Double-High Off Turns off double-high printing. Hexadecimal Decimal ASCII 1B 45 27 69 ESC E Double-High Font Starts double-high printing.
EF4270 Emulation Commands Pitch Selection Selects the character pitch, from 33 to 66 characters per line. The default character set is defined by the internal DIP switch settings. For more information, see “Chapter 3: Diagnostics and Print Test.” The Double Wide command may be used with any pitch to provide a total of 6 combinations of pitch and font. Hexadecimal Decimal ASCII Value of n 1B 50 n 27 80 n ESC P n See table Hexadecimal Decimal ASCII Pitch Characters per Line 00 0 NUL 11.
EF4270 Emulation Commands Upside-Down Off Turns off upside-down printing. Hexadecimal Decimal ASCII 1B 52 27 82 ESC R Upside-Down Print Starts upside-down printing. Available for both journal and validation printing. Lines are printed in the order they are received from the host. The first line of data is the last line of text after the slip is turned right-side up for reading.
EF4270 Emulation Commands Graphics Commands These commands are used to control the way graphics are entered or printed. They are listed in numerical order of their hexadecimal codes. Graphics Enters graphics printing mode which prints all available dots (uses all wires in the printhead). Any combination of dots may be printed in a graphics cell. Each graphics cell is eight dots wide by nine dots high, with nine bytes of data needed to define the cell (each byte defines the row of eight dots).
EF4270 Emulation Commands The following representation of the graphics cell shows how the cell is defined and which bits define which dots in the cell (bit 0 is the least significant bit; bit 7 is the most significant bit).
EF4270 Emulation Commands Graphics: 5 Dot Enters or exits graphics printing mode which prints only the top five dots of the column (corresponding to the top five wires of the printhead). These top five dots correspond to the least significant five bits (bits 0-4) of the data sent to the printer as shown in the table.
EF4270 Emulation Commands Printer Status Commands These commands enable the printer to communicate its status to the host computer. The commands are listed numerically by hexadecimal code. Status: 3 Bit Transmits the status of the paper sensors and the condition of the printer. This command is processed immediately.
EF4270 Emulation Commands Status: 6 Bit Transmits the status of the paper sensors, cash drawers, forms clamp, and the condition of the printer. This command is processed immediately. The transmitted status is shown in the table below.
EF4270 Emulation Commands Status: 7 Bit Transmits the status of the paper sensors, cash drawers, forms clamp, and the condition of the printer, including paper jam status. This command is processed immediately. The transmitted status is shown in the table below.
Section 10 Flash Download Commands These commands are used to load firmware into the printer and to configure the printer. With the exception of the Put the Printer in Flash Download Mode command (1B 5B 7D), these commands are available only when the printer is in download mode. No other commands are available in download mode. Download mode can be entered in one of two ways: • Set the external switches to a special diagnostic setting and power on the printer.
Flash Download Commands List of Flash Download Commands This table lists the commands in numerical order according to their hexadecimal codes. The page number indicates where a complete description of the command can be found in the next section.
Flash Download Commands Flash Download Command Descriptions These commands control downloading of flash memory. The printer returns either ACK or NAK to the host computer when each command is received: • ACK (hexadecimal 06) Sent when the printer has received a host transmission and has completed the request successfully. • NAK (hexadecimal 15) Sent when a request is unsuccessful. The commands are listed in numerical order according to their hexadecimal codes.
Flash Download Commands Request Flash Identifier Returns the size of the flash used. There may be 4, 8, or 16 sectors (64K each) in flash memory. The numbers returned are the number of sectors minus one (3, 7, or 15 respectively). This command assures that the firmware to be downloaded is the appropriate size for flash memory. Hexadecimal Decimal ASCII 1D 01 29 1 GS SOH Select Sector to Download Selects the flash sector for which the next download operation applies.
Flash Download Commands Return Microprocessor CRC Causes the printer to transmit ACK followed by the CRC of the microprocessor: ACK (CRC low, CRC high). Hexadecimal Decimal ASCII 1D 07 29 7 GS BEL Set Emulation Sets the printer to the emulation requested. The command assumes that the printer flash program memory (sectors 0, 1) have been correctly programmed. If these sectors have been erased, the printer returns NAK. The printer returns ACK if the command is performed successfully.
Flash Download Commands Write EEROM Switches Sets the emulation EEROM switches. The command assumes that the printer flash program memory (sectors 0, 1) have been correctly programmed. If these sectors have been erased, the printer returns NAK. The printer returns ACK if the command is performed successfully. Hexadecimal Decimal ASCII 1D 0A d1, d2, d3, d4 29 10 d1, d2, d3, d4 GS LF d1, d2, d3, d4 The first data byte is the settings for switch pack #1, the second for #2 and so on.
Flash Download Commands Read EEROM switches Returns the settings of the EEROM switches. This command is used to verify that the EEROM switches are set correctly. The command assumes that the printer flash program memory (sectors 0, 1) have been correctly programmed. If these sectors have been erased, the printer returns NAK. The printer returns ACK, followed by switch data.
Flash Download Commands Write EEROM Parameter Turns data scope mode on or off, and selects the MICR type (CMC7 or E13B). The command assumes that the printer flash program memory (sectors 0, 1) have been correctly programmed. If these sectors have been erased, the printer returns NAK.
Flash Download Commands Read EEROM Parameter Returns the setting of the requested parameter. The command assumes that the printer flash program memory (sectors 0, 1) have been correctly programmed. If these sectors have been erased, the printer returns NAK. The printer transmits ACK, followed by the value of the request parameter.
Flash Download Commands Erase Selected Sector Erases the sector that was selected previously. The printer transmits ACK if the sector is erased successfully, NAK if no sector was selected previously. Hexadecimal Decimal ASCII 1D 10 nn 29 16 nn GS DLE nn Download Sector Contains a start address (ah*256 + al) and count (ch*256 + cl) of binary bytes to load into the selected sector, followed by that many data bytes. The start address is relative to the start of the sector.
Flash Download Commands Reboot the printer Ends the load process and reboots the printer. Before executing this command, the printer should have firmware loaded, emulation set, EEROM switches set and external switches set to the runtime settings. Application software for downloading should prompt the user to set the external switches and confirm before sending this command.
Flash Download Commands 10–12 3255 4073–002
Section 11 MICR Commands and Parsing These commands control the Magnetic Ink Character Recognition (MICR) check reader, including how it parses the character strings on checks. This section explains these commands. The section that follows, “MICR Parsing,” describes how to create a parsing format and how to create and maintain an exception table.
MICR Commands and Parsing Reread MICR Data Resends the unparsed MICR data (as if the parsing has not been defined) from the previous MICR sequence. Hexadecimal Decimal ASCII 1B 77 52 27 119 80 ESC w P Define Parsing Format, Do Not Save Permanently Defines, but does not save parsing format. See “Parsing Parameter String Options” on the next page. Send this command at the start of day or use in the setup application. If no parameters are selected, parsing is not performed.
MICR Commands and Parsing Parsing Parameter String Options The parsing options apply only to the E13B MICR font only, not to the CMC7 MICR font.
MICR Commands and Parsing Other Parameters Error Number E One Digit Returned 0 Read OK 1 Read error: bad character, empty field invalid length, check digit invalid Status S Field Separator Two Digits Returned 01 No MICR data 09 Mexican check 08 Canadian check 05 Error in transit number 07 Error in account number 04 Error in check serial number 10 Business or commercial check 11 Amount field present 00 No error ’x Field separator preceded by a single quote, so a field separator o
MICR Commands and Parsing Ten parameters are more than enough to specify all variable length fields with a field separator each and other status information that may be helpful to an application. More than 10 parameters are not recommended because they use up space in non-volatile memory (NVRAM) available for the exception table. The parsing parameter string is stored packed in NVRAM starting at word 10, with the total byte length stored in the high order byte of word 10.
MICR Commands and Parsing ESC w p 018 A • Always 18 characters in the account number (high order zero-filled if necessary) • Final Carriage Return ESC w p 018 X A • Always 18 characters in the account number with spaces and dashes removed • Final Carriage Return ESC w p 018 x A • Always 18 characters in the account number with spaces and dashes replaced with 0 • Final Carriage Return ESC w p T 18 X A 04C • All characters in the transit number • All characters in the a
MICR Commands and Parsing • Final Carriage Return ESC w p T ’/ A ’/ C ’/ S • All characters in the transit number • Field separator: / • All characters in the account number • Field separator: / • All characters in the check number • Field separator: / • Two-digit status • Final Carriage Return 3255 4073–002 11–7
MICR Commands and Parsing Notes All parameters are ASCII characters, i.e. greater than or equal to 0x20, with the exception of a non-ASCII character enclosed in single quotes as a field separator. This applies both to parameter specifications sent from application to printer, and to MICR data returned from printer to application. Parameters are positional; their order in the parameter string is the order in which the parsed MICR data will be returned.
MICR Commands and Parsing Once a parsing format is specified, the following values are returned: MICR Characters ASCII Hexadecimal Numerics 0...9 0x30...0x39 Space 0x20 Dash - 0x2D Field separator* Country code* *As specified in the parsing parameter string With RS-232C communication, the printer adds a final carriage return to the MICR data sent to the application. Check Serial Number Parsing the Check Serial Number Most banks print the check serial number in three easily recognizable spots.
MICR Commands and Parsing Otherwise, a three or more digit number to the right of the rightmost “on us” symbol, and to the left of the leftmost amount symbol if an amount field is present, is the check serial number. txxxxxxxxxt xxxxxxxxo cccc txxxxxxxxxt xxxxxxxxo cccc $xxxxxx$ If both of these searches fail to produce the check serial number, extract the whole account number field from between the rightmost transit symbol and the rightmost “on us” symbol.
MICR Commands and Parsing In this example, without an exception table entry, the firmware would not be able to pick out the check serial number because it is not separated from the rest of the account number: txxxxxxxxxt ccccxxxxxxxxxxo In this example, without an exception table entry, the firmware would not be able to pick out the check serial number correctly, because it is imbedded within the rest of the account number: txxxxxxxxxt xxx-ccc-xxxxxxxxxxo Loading the Exception Table The exception table beg
MICR Commands and Parsing The three high order bits of each byte mark the character type. The characters can be marked in three ways: check serial # character, account # character, or “skip this character or symbol.” The five low order bits of each byte contain the number of characters of that type to extract. Most exceptions will not need to use all six bytes; in that case clear the unused bytes to zero.
MICR Commands and Parsing Example 2 t22137-632t001 6042202o927540 2754 is the check serial # 6042202 is the account # To load the third table entry, which starts at word 30, the transit number 2137632 would be stored in the first two words of its table entry using this string of commands: 0x1B 0x73 0x22 0x13 30 0x1B 0x73 0x76 0x32 31 After the right transit symbol are four characters to skip, a seven digit account number, two characters to skip, and finally a four digit check serial #.
MICR Commands and Parsing 11–14 3255 4073–002
Appendix A Specifications Printing Specifications Table 1: Speed and Print Modes Receipt/Journal Station Slip Station Speed 290 lines/minute (40 columns at 13.9 CPI, with 10 x 7 character cell, in 3.024 inch print zone) 290 lines/minute (40 columns at 13.9 CPI, with 10 x 7 character cell, in 3.024 inch print zone) Printhead 9 Wire Impact Line Spacing 7.2, 6.0, 5.0 LPI (ESC/POS) 8, 6.9, 6.0, 5.3 LPI (EF4270) 9, 8, 7.2, 6.5, 6, 5.5, 5.1 LPI (NCR 5021) 8, 6 LPI (Ithaca Peripherals Proprinter)** 7.
Specifications Table 3: Character and Line Specifications EFP9800 ESC/POS (Includes Epson ESC/POS Emulation) Characters/ Line (Columns) Character Cell Size Print Line Width Inches (mm) Slip Right Margin Inches (mm) Receipt Right Margin Inches (mm) Characters /Inch (Pitch) 40 10 x 71 2.506 (63.65) 0.53 (13.46)3 Or 0.3720 (9.45)3 0.3720 (9.45) 15.9 33 5 x 92 2.506 (63.65) 0.53 (13.46)3 Or 0.3720 (9.45)3 0.3720 (9.45) 13.2 42 10 x 71 2.506 (63.65) 0.53 (13.46)3 Or 0.3720 (9.45)3 0.
Specifications NCR 5021 Emulation (Serial Interface Units only) Characters /Line (Columns) Character Cell Size Print Line Width Inches (mm) Slip Right Margin Inches (mm) Receipt Right Margin Inches (mm) Characters/Inch (Pitch) 40 12 x 71 3.024 (76.80) 0.1130 (2.87) 0.1130 (2.87) 13.2 1 12 half dots wide by 7 dots high.
Specifications Print Zones The illustrations in this section show the printable area for the receipt, journal, slip, and validation stations. The illustrations are not to scale. References to a table are for Table 3: Character and Line Specifications on the previous page. Receipt and Journal Print Zones The table referenced in the illustration is Table 3: Character and Line Specifications, on the previous page.
Specifications Validation Print Zone The table referenced in the illustration is Table 3: Character and Line Specifications, earlier in this appendix. The following tables specify the location of the first line of validation from the bottom of the form for each emulation.
Specifications Emulation Number of Validation Lines* Location of First Line of Validation from Bottom of Form EFP9800 ESC/POS 4 1.17 inches (29.7 mm) EFP9800 ESC/POS 6 1.525 inches (38.7 mm) EFP9800 ESC/POS 10 2.00 inches (50.8 mm) EFP9800 ESC/POS 14 2.67 inches (67.82 mm) IPI Proprinter 14 2.6 inches (66.04 mm) NCR 5021 3 1.02 inches (25.91 mm) NCR 5021 6 1.52 inches (38.
Specifications Using the EF4270 emulation, the EFP9800 can print up to 16 lines of validation at 8 lines/inch. Use internal switch pack 4 to change the settings. Emulation Location of First Line of Validation from Bottom of Form EF4270 2.63 inches (66.80 mm) 2.51 inches (63.75 mm) 2.42 inches (61.46 mm) 2.33 inches (59.18 mm) 2.22 inches (56.38 mm) 2.12 inches (53.84 mm) 2.00 inches (50.8 mm) 1.91 inches (48.51 mm) 1.80 inches (45.72 mm) 1.67 inches (42.41 mm) 1.59 inches (40.38 mm) 1.50 inches (38.
Specifications Slip Print Zone The table referenced in the illustration is Table 3: Character and Line Specifications on page 2.
Specifications Dimensions 3255 4073–002 A–9
Specifications Power Requirements The EFP9800 printer can receive power from a remote power supply. The voltage requirements are listed below: Voltage Maximum Short Term Current Maximum Long Term Current 24 V +/- 5% 2.4 Amps 1.
Specifications Character Sets Code Page 437 (PC US) 3255 4073–002 A–11
Specifications Code Page 850 (PC Multilingual) A–12 3255 4073–002
Specifications Code Page 852 (Eastern European) CRT Character Set Code Page 852 3255 4073–002 A–13
Specifications Code Page 865 (Nordic Languages) A–14 3255 4073–002