Monarch 9400™ Series Thermal Printer Programmer’s Manual TC9400PM Rev. A 8/90 ©1990 Monarch Marking Systems, Inc. All rights reserved.
Each product and program carries a respective written warranty, the only warranty on which the customer can rely. Monarch reserves the right to make changes in the product and the programs and their availability at any time and without notice. Although Monarch has made every effort to provide complete and accurate information in this manual, Monarch shall not be liable for any omissions or inaccuracies. Any update will be incorporated in a late edition of this manual.
Table of Contents Table of Contents 1. Introduction .....................................................................1-1 2. Overview ..........................................................................2-1 3. Communication Requirements......................................3-1 Input Characteristics ..................................................3-1 Data Flow Control ..........................................3-2 Setting Communication Values ..................................3-3 Cable Interface...
9400 Series Programmer’s Manual 5. Using Graphics................................................................5-1 Defining Graphic Image Data.....................................5-1 Placing the Image in a Format ...................................5-8 Clear Image Buffer .......................................5-11 Compressing the Data Stream.....................5-12 6. Quick References............................................................6-1 Text Font Sizes...........................................
Appendix A: Sample Data Streams...................................A-1 Formats, Text and Bar Code Fields ...........................A-1 Line Fields ..................................................................A-2 Graphic Images..........................................................A-3 Compressed Graphic Data ........................................A-5 Appendix B: Code 128 Information...................................B-1 Bar Code Width..........................................................
9400 Series Programmer’s Manual iv
1. Introduction This manual tells you how to enter online formats and batch data for downloading to Monarch 9400™ series printers. Introduction The following printers are covered by this manual. • 9425 • 9445 • 9465 • 9474 Other manuals you may need are Equipment Manual Contains general setup and maintenance procedures. Operator’s Handbook Explains data entry and batch control for offline printing. User’s Manual Tells about creating and entering offline formats.
9400 Series Programmer’s Manual 1-2
2. Overview The 9400 Series Thermal Printer can receive print data online from a host computer. During online communication, the host computer treats the printer as an RS-232 type printer. For the printer to communicate online, you will need an RS-232 cable. For mainframe communication, you may need a protocol converter. To transmit data from the host computer requires communication controls for the download operation. Refer to the next section, "Communication Requirements.
9400 Series Programmer’s Manual Each data type has its own data stream structure. Refer to "Message Structures" in this manual.
3. Communication Requirements To enable communications between the printer and the computer, the printer communications setup must match the setup for the host computer. The options are: • Baud rate • Parity • Data flow control • Data bits • Stop bits All online data uses the ASCII (American Standard Code for Information Interchange) character code for interpretation of bits as characters. Input Characteristics Below are the input characteristics for communications. The defaults are shown in bold print.
9400 Series Programmer’s Manual There are three main buffers: batch, format, and graphic. The printer also has a 1024 byte input buffer which holds data until it is processed into the respective buffer(s). Data Flow Control The printer uses Xon/Xoff or data terminal ready (DTR) for data flow control. DTR flow control is usually required if you are using an IBM-PC, unless the PC has a special Xon-Xoff program.
3. Communication Requirements Setting Communication Values To set the communication parameters, follow the instructions below. For more information on operating the printer, refer to the Operator’s Handbook. D 1. From the main menu, press to display Printer Configuration. Press . You’ll see E Enter password: _ _ _ _ _ _ _ _ Enter the 1-8 character password and press E. NOTE: When you first receive the printer, the password is MANAGER or ONLINE. 2. You’ll see the Configuration Options menu.
9400 Series Programmer’s Manual 4. Select the parity you need and press E . You’ll see Enter Word Length [7-8]: 8 5. Select the word length you need and press see E . You’ll Enter Stop Bits [1-2]: 1 6. Select the stop bits you need and press E . You’ll see Enter Start (XON) character: 17 7. Enter a number from 1-127 for XON flow control, or 128 for DTR flow control. You’ll see Enter Stop (XOFF) character: 19 8. Enter a number from 1-127 for XOFF flow control, or 128 for DTR flow control.
3. Communication Requirements Cable Interface The printer accepts standard RS-232C electrical signal transmissions when it is connected to a DB-25S connector configured as Data Terminal Equipment (DTE). For correct operation, use all defined pins. PC null modems Plug the RS-232 cable into: • A serial (RS-232) port on your host computer or protocol converter • The 25-pin RS-232 connector on your printer. See "Installing the Printer" in your Equipment Manual.
9400 Series Programmer’s Manual The cable interface for PC null modems is shown below.
4. Message Structures This chapter has information and message structures for • Formats • Batch Data Graphic image data is discussed in Chapter 5. Creating Online Data Streams Create data streams for your 9400 series printer using a standard text editor, such as EDLIN or TSO. If you use a word processor to create data streams, make sure to save the file in text-only or unformatted mode. Transmitting Online Data Streams Your printer must be in Online Mode before it will accept data from your computer.
9400 Series Programmer’s Manual Send data to the printer just as you would send any print data to a printer from your computer. For example, if you have a file named FORMAT1.DAT on an MS-DOS system, you could send the data to your printer with these commands: MODE COM1:2400,N,8,1,P MODE LPT1:=COM1 PRINT FORMAT1.DAT This set of commands would send the file FORMAT1.DAT to a printer connected to COM1 of an MS-DOS computer. Format and graphic structures can be sent at any time.
4. Message Structures Error Notification Data handling and error checking are resident in the printer. If an error in transmission occurs, an error is displayed on the printer keypad display. However, no message is sent to the host computer and processing continues until the end of the transmission. Certain errors may put the printer in offline mode. See the Messages Manual for a list of possible messages. Data Transmission Errors The printer displays errors that occur during data transmission.
9400 Series Programmer’s Manual Monetary Symbols The default monetary symbols are the U.S. dollar and cents. The ASCII characters $ (24 hex) and ^ (5E hex) represent the dollar and cent symbols. If you change your printer settings to use international pricing symbols, these characters will then represent the new symbols. For monetary selections that don’t have a cent equivalent, the ^ character is changed to a space. NOTE: In EBCDIC-based systems a ^ is not available. Use ~94 to print a cent sign.
4. Message Structures Commands The following characters are used in 9400 series online data streams. Command Characters Command Character Hex Value Description { 7B Open brace. Command LEADIN character , 2C Comma. Inter-field separator (IFS) ; p } 3B Semicolon. Beginning of string character 7C Split vertical bar. Command inter-record separator (IRS) 7D Close brace. Command TERMINATOR character Programming Conventions All online commands from the host computer follow these rules.
9400 Series Programmer’s Manual Format Data Format data contains the following. • Format identification number and name • Supply size • Online field definitions for text, bar code, line and graphic fields The following offline format elements are not supported online. • Merged fields • Sub-fields • Time or date fields • User-defined check digits • Fixed characters • Alphanumeric distinction • Fixed or variable length • Price fields You must supply these elements if you need them in your program.
4. Message Structures Example This example has three text fields and one bar code field. { F1,0558,0507;ONLINE T00,I,000,0475,0050,1,1,0,0,B T01,I,000,0406,0050,1,1,0,0,B T02,I,000,0017,0253,1,1,0,0,B B00,I,000,0124,0093,1,1,0,0177,1 } p p p p p The format header record (beginning with the Format ID) must always be the first record in a format data stream. NOTE: Spaces can be used in the data stream. However, if used in a string following a semi-colon, they will be treated as printable characters.
9400 Series Programmer’s Manual One to four digits to define the width of the supply in tenths of millimeters (across the printhead). WIDTH Values: 9425 9445 9465 9474 191-634 (0.75 to 2.5 inches) 191-1078 (0.75 to 4.25 inches) 191-1078 (0.75 to 4.25 inches) 191-1078 (0.75 to 4.25 inches) One to eight-character name assigned by the user. It can contain any ASCII alphanumeric character, including slash (/), hyphen (-), space ( ), dollar sign ($), or decimal point (.).
4. Message Structures • Make sure your format name begins with a semi-colon (;). • Make sure the record ends with a record separator ( ).
9400 Series Programmer’s Manual Text Field Record The text field record is constructed as shown below. Syntax T##,IFLAG,IVALUE,ROW,COL,MAG,TFONT,C-ROT,F-ROT,COLOR p Field Contents T## Must begin with the letter ‘T’ for a text field. The T is followed by one or two digits for the field number. There can be up to 100 fields per format, in any combination of text, barcode, line, or graphic fields. Values: IFLAG 0-99 You can set numeric fields to increase or decrease in value as each ticket is printed.
4. Message Structures ROW One to four digits to define the row location of the field on the supply. This is the distance from the the guide edge zero point at the bottom of the supply and the bottom of the field. The zero point is 1.5 mm or 0.060 inches from the bottom of the supply. The bottom of the supply is the edge that exits the printer first. This value is measured in tenths of millimeters (TOMMS) and must be less than the maximum length of the supply.
9400 Series Programmer’s Manual MAG One to two digits as the magnification factor for the font of text fields. Values: 1 - 10 NOTE: Font magnifications creating greater than 30% black print on a format may result in lower print quality. TFONT One digit as the font for the TEXT field. See "Quick References" for font samples. Values: 1 2 3 5 6 7 C-ROT Standard Reduced Bold OCR-A UPC HR1 UPC HR2 Character rotation. The direction characters point with respect to the field.
4. Message Structures Example T05,I,0,230,30,1,1,0,0,B p This text field has the following attributes: • Text field number is T05. • This field does not change value with successive tickets (IFLAG = I, increment value = 0). • Field begins 23 millimeters from the bottom of the print area. • Field begins 3 millimeters from the left edge of the print area. • The font appears at normal size (magnification = 1) • Standard font is used (1).
9400 Series Programmer’s Manual Bar Code Field Record The bar code field record is constructed as shown below. Syntax B##,IFLAG,IVALUE,ROW,COL,DENSITY,BFONT,F-ROT,HEIGHT,HR Field Contents BARCODE Must be the letter ‘B’ for a bar code field. p The B is followed by one or two digits for the field number. There can be up to 100 fields per format, in any combination of text, barcode, line, or graphic fields.
4. Message Structures ROW One to four digits to define the row location of the field on the supply. This is the distance from the the guide edge zero point at the bottom of the supply and the bottom of the field. The zero point is 1.5 mm or 0.060 inches from the bottom of the supply. The bottom of the supply is the edge that exits the printer first. This value is measured in tenths of millimeters (TOMMS) and must be less than the maximum length of the supply.
9400 Series Programmer’s Manual DENSITY One digit for the bar code density for Interleaved 2 of 5, Code 128, MSI, Code 39, and UPC/EAN barcodes. Values: 1-5 Some bar codes do not support all 5 values. For the actual densities for these values, see "Quick References." BFONT One digit indicating which bar code font to use. Values: 1 2 3 4 5 6 7 8 9 10 11 F-ROT UPC-A UPC-E Interleaved 2 of 5 Code 39 Codabar EAN-8 EAN-13 Code 128 MSI UPC/EAN+2 UPC/EAN+5 Field rotation.
4. Message Structures (Human readable characters) One digit for the location of human readable characters printed with a UPC or EAN bar code. If no value is given, no human readable characters are printed. HR Values: 0 = No human readable characters printed 1 = Human readable printed above the bar code 2 = Human readable printed below the bar code NOTE: Always use the HR parameter to generate the human readable text for a UPC or EAN bar code.
9400 Series Programmer’s Manual • No human readable characters appear with this bar code ( 0). Syntax Checklist • Make sure this record is preceded by a format header record. • Make sure the first parameter (field number) begins with B. • Make sure the row and column locations in this record are less than the supply length and width. • Make sure you have allowed enough space to hold all the characters in the field without running off the supply.
4. Message Structures UPCA You must send a leading zero, 11 digits of data and a check digit (13 digits total). UPCE The printer automatically prints a leading zero for this bar code. You must send data and a check digit (7 digits total). EAN13 You must send 12 digits of data and a check digit (13 digits total). EAN8 You must send 7 digits of data and a check digit (8 digits total).
9400 Series Programmer’s Manual • batch data when printing. To send the Function Codes, use a tilde (~) followed by a three digit ASCII code as shown in the following table. For example, to print a string of bar code data with function code F2 as the fourth character... 123(F2)5678 send this string of characters... 123~1295678 ASCII Code ~134 ~129 ~128 ~132 Function Code F1 F2 F3 F4 Two additional bar codes are supported as extensions to both UPC and EAN bar codes.
4. Message Structures Line Field The message structure below transmits a line field. This data stream defines the bit map to form a graphic line field. Use the line field to emphasize data by printing a line or box. You can have up to 100 line images. The line record can be placed in a format data stream anywhere following the format header record. Syntax L##, ROW, COLUMN, DIRECTION, STOP, THICKNESS p NOTE: Lines are counted as fields, just like text or bar code fields.
9400 Series Programmer’s Manual COLUMN One to four digits to define the column location of the field on the supply. This is the distance from the guide edge zero point at the left edge of the supply and the left edge of the field. The zero point is 1.5 mm or 0.060 inches from the left edge of the supply. The unit of measurement is tenths of millimeters. The range must be less than the maximum width of the supply. Values: 9425 9445 9465 9474 DIRECTION One digit to define the direction of the line.
4. Message Structures THICKNESS One or two digits for the line thickness in dots. 9425 9445 9465 9474 Values: 1 dot = 1/192 inch 1 dot = 1/192 inch 1 dot = 1/192 inch (horizontal line) 1 dot = 1/264 inch (vertical line) 1 dot = 1/192 inch 1-15 NOTE: Horizontal and vertical line widths on the 9465 printer do not match exactly. To choose compatible horizontal and vertical line widths, refer to the Line Width table in "Quick References.
9400 Series Programmer’s Manual • Make sure the row and column locations in this record are less than the supply length and width. • Make sure your end point does not make the line run off the supply. • Make sure the record ends with a record separator ( ). p • If this is the last record in your format, place a close brace (}) at the end of the record.
4. Message Structures Example This example draws a simple 1-inch box starting at row 50 and column 50 on a 2" x 2.5" tag, as shown below. (Line width values are for the 9425/45/74.) {F1,635,508;BOX Format p L0,50,50,0,304,3 p L1,50,50,1,304,3 p L2,50,304,0,304,3 L3,304,50,1,316,3 } Batch p p {B1,1,0,1,1,1,C;BOX.TEST } p Note that line L3 is longer than the other 3 lines to complete the box in the upper right corner.
9400 Series Programmer’s Manual Batch Data The batch data stream contains: • Batch information: - format number (layout for the print image) - print quantity - supply definition - item description (batch name) • Print image: - field numbers - data to be printed in each field The message structure used to provide the printed data for an online format is shown below. An example follows. {B##,QUANTITY,CUT,REP,PARTS,0,MODE;BATCH_NAME T##;(..print data..) B##;(..print data..) . . .
4. Message Structures QUANTITY One to four digits for the quantity to print in a given batch. Values: CUT/TAKEUP 1-9999 On printers with a knife: One digit to control how tickets are cut.
9400 Series Programmer’s Manual REP One to four digits for the supply repetition for cutting, and increment/decrement field. Values: PARTS 1-9999 One digit for the number of parts across the supply. Values: 1-5 RESERVED Enter 0. MODE One character to define the mode of printing, or batch separator. Values: 0 = separator off. 1 = double length separator (use for 924 or 925 stacker). 3 mm extra length tag on 920 stacker. 2 = normal length separator with 3 mm black stripe.
4. Message Structures ;BATCH_NAME One to eight characters for the name of the batch. A priority batch name must begin with a decimal. For example: .SOCKS12. NOTE: Each batch should have a unique name, or you can omit the name for automatic batch naming. If multiple batches are sent with the same name, all batches are stored with the same name. If you omit the batch name, the printer will generate unique names which begin with the letters "AUTO" and end with a 4-digit number.
9400 Series Programmer’s Manual Syntax Checklist • Make sure this record begins with an open brace ({). • Make sure the first parameter (batch header) begins with B. • Make sure the number in the first parameter matches the number of the format you are using. • If you assign a name to the batch, make sure the name begins with a semi-colon (;).
4. Message Structures If there is a text field you don’t want to use, enter that field number and a semi-colon with no print data. Example This example contains data to print the label shown below. You’ll find the data stream for this format in the section "Format Data." {B1,0012,1,01,1,0,C;PTEST T00;TEST FORMAT1 T01;S/N 97464B T02;$12.34 B00;0012345678905 } p p p p p This batch has the following attributes: • This batch prints the phrase "TEST FORMAT 1" in text field T00.
9400 Series Programmer’s Manual • If the field is an incrementing field, you can enter any type of characters; however, only the numeric data will increment. • Make sure the print data begins with a semi-colon (;). • Make sure each record ends with a record separator ( ). p • Place a close brace (}) at the end of the last record. NOTES: 1. Send the correct format to the printer before sending the batch. Batch data that doesn’t have a defined format will generate an error. 2.
4. Message Structures For example, batch 1 below prints a date in text field T01. Since batch 1 and batch 2 are printed on the same day, batch 2 can leave out field T01. Since T01 was defined in the preceding batch, it will automatically print in batch 2. Batch 1: Batch 2: { B12,1,0,1,1,0,C; T01;12/31/90 T02;Stock #43768 T03;100’ Hose } p p { B12,1,0,1,1,0,C; T02;Stock #52014 T03;Sprinkler } p NOTE: If two fields overlap, do NOT use this feature.
9400 Series Programmer’s Manual { S TYPE } Field Contents S Must be the letter ‘S’ to identify the batch separator selection. TYPE A single digit to turn the batch separator selection on or off. The resulting separator depends on the type of stacker you are using. Values 0, 1, 2, or 3 as shown in the table below.
4. Message Structures Example Format data stream. { F 12, 560, 508;SMALL2IN T1, I, 0, 300, 50, T2, I, 0, 200, 50, T3, I, 0, 150, 50, T4, I, 0, 100, 50, T5, I, 0, 050, 50, p 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, B B B B B p p p p p } Batch data stream. {S0} { B 12, 1, 0, 1, 1, 0, C;SMALL2IN T1;Separators off. T2;Line 2. T3;Line 3. T4;Line 4. T5;Line 5. p p p p p p } Turn batch separator on; print another batch. {S1} { B 12, 1, 0, 1, 1, 0, C;SEP.
9400 Series Programmer’s Manual 4-36
Using Graphics 5. Using Graphics There are two stages to printing a graphic: • Create the data stream for the graphic image • Place the image into a format. To print a format with a graphic image, transmit data to the printer in this order: 1. Graphic data stream to define the graphic image 2. Format data stream that references the graphic image 3. Batch data to print the format. Defining Graphic Image Data Graphic images are created by a series of dots printed in a specific pattern.
9400 Series Programmer’s Manual This example shows how black dots and white dots form an image of the letter A. Row 3 Row 2 Row 1 To create a data stream for this image, start with the bottom row. Count the number of white dots and black dots, in order of appearance in each row.
The data stream uses letters to identify dot counts. • CAPITAL letters represent black dots. • lowercase letters represent white dots. Using the coding chart below, the data stream for row 1 would be written as follows: Dot count: Row 1: 4 White, 8 Black, 19 White, 8 Black, 4 White Data Stream: dHsHd (4 white = d, 8 black = H, 19 white = s) p You can use multiple letter codes to indicate strings of same-color dots.
9400 Series Programmer’s Manual The graphic data stream contains a graphic header record followed by data streams for each row of dots in the image. Syntax { G##,0,0,0,0 ;...dot codes... ;...dot codes... ;...dot codes... . . . p p p p } Field Contents G## Must begin with the letter "G" to identify this as a graphic data stream. The G is followed by a one or two digit number to identify the graphic image. Later you will use this number to insert the graphic into a format.
NOTE: The parameters ROW, COLUMN, LINES and DOTS exist to maintain the 9420/9440 data structure. These parameters are not used by the 9425/9445/9465/9474 printers, but must be in the data stream. The values can be valid 9420 values, or can be set to 0. ;dot codes The first row of dot codes corresponds to the bottom row of dots in the image. Essentially, this means you are building the graphic image upside down in the data stream.
9400 Series Programmer’s Manual Example { G1,0,0,0,0 ;dHsHd ;dHsHd ;dHsHd ;eGsGe ;eHqHe ;fGqGf ;fHoHf ;fHoHf ;gGoGg ;gHmHg ;hGMGh ;hGMGh ;hGMGh ;iFMFi ;iFMFi ;jEMEj ;jEMEj ;jEMEj ;kHgHk ;kHgHk ;lGgGl ;lHeHl ;lHeHl ;mGeGm ;mGeGm ;nGcGn ;nGcGn ;nGcGn ;oFcFo ;oGaGo ;pFaFp ;pFAFp ;qEAEq ;qEAEq ;qEAEq ;rDADr ;rDADr ;sCACs ;sCACs ;sCACs ;tBABt ;tBABt ;uCu ;uCu ;uCu ;vAv p This graphic data stream generates the letter A from the grid earlier in this section.
The graphic has the following attributes: • This graphic is assigned a number of 1. • This graphic is 46 dots tall. Syntax Checklist • Make sure the data stream begins with an open brace ({). • Make sure the first record in the data stream begins with G. • Make sure each data row begins with a semi-colon (;). • Make sure each record ends with a record separator ( ). p • Place a close brace (}) at the end of the last record. 5-7 Using Graphics 5.
9400 Series Programmer’s Manual Placing the Image in a Format The message structure below places a graphic field in a format. You can have up to 100 graphic images. The graphic record can be placed in a format data stream anywhere following the format header record. Syntax G##, ROW, COLUMN p NOTE: Graphics are counted as fields, just like text or bar code fields. When determining the number of fields in your format, count each graphic as a separate field.
This value is measured in tenths of millimeters (TOMMS) and must be less than the maximum length of the supply. Values: 0-2032 One to four digits to define the column location of the field on the supply. This is the distance from the guide edge zero point at the left edge of the supply and the left edge of the field. COLUMN The zero point is 1.5 mm or 0.060 inches from the left edge of the supply. The unit of measurement is tenths of millimeters.
9400 Series Programmer’s Manual The following batch data stream prints the tag below. { B11,1,1,1,1,0,C;LETTER-A T0;LETTER-A GRAPHIC p p } Example G1,100,40 p The graphic is inserted into the format as follows: • Insert graphic number 1 into the format. • Place the graphic 10 millimeters from the bottom of the print area. • Place the graphic 4 millimeters from the left edge of the print area. Syntax Checklist • Make sure this record is preceded by a format header record.
Clear Image Buffer This command clears all or selective graphics from the image buffer. Once graphic data is sent to the printer, that graphic stays in memory until a clear image buffer command is sent. { C## } Example {C} Field Contents C Must be the letter ‘C’ to identify the clear image buffer command. See the next section for more information about the clear command. ## This optional parameter will specify a particular graphic to be cleared from memory.
9400 Series Programmer’s Manual Compressing the Data Stream Image data usually consists of a large amount of repetitive data. Therefore, the printer uses a data compression algorithm for the graphic message structure. Here’s how it works. 1. Any image is defined as a matrix of cells. 2. Each row of the matrix consists of a series of consecutive ON (black) or OFF (white) cells. The range is 1-26, represented by adding either a hex 40 (black) or hex 60 (white).
Long Version Compressed Version {G1,0,0,0,0 ;dHsHd ;dHsHd ;dHsHd ;eGsGe ;eHqHe ;fGqGf ;fHoHf ;fHoHf ;gGoGg ;gHmHg ;hGMGh ;hGMGh ;hGMGh ;iFMFi ;iFMFi ;jEMEj ;jEMEj ;jEMEj ;kHgHk ;kHgHk ;lGgGl ;lHeHl ;lHeHl ;mGeGm ;mGeGm ;nGcGn ;nGcGn ;nGcGn ;oFcFo ;oGaGo ;pFaFp ;pFAFp ;qEAEq ;qEAEq ;qEAEq ;rDADr ;rDADr ;sCACs ;sCACs ;sCACs ;tBABt ;tBABt ;uCu ;uCu ;uCu ;vAv } p p p p p p p p p p p p p p p p p p p p p p p p p p p {G1,0,0,0,0 ;3dHsHd ;eGsGe ;eHqHe ;fGqGf ;2fHoHf ;gGoGg ;gHmHg ;3hGMG
9400 Series Programmer’s Manual 5-14
6. Quick References Text Font Sizes Quick References The 9425, 9445, 9465, and 9474 printers can print using 9425/9445/9465/9474 fonts, or using 9420/9440 fonts (9420/9440 Compatible Mode). The fonts are selected in Printer Configuration in offline mode only. Be sure the fonts selected at the printer are compatible with the format and batch data you are downloading. NOTE: If 9420/9440 Compatible Mode is selected at the printer, the horizontal field location is also modified slightly.
9400 Series Programmer’s Manual Parallel Characters Value/Font Characters/Inch Character Height (in.) I M 1/Standard 21.3 12.0 0.10 2/Reduced 64.0 24.0 0.07 3/Bold 19.2 7.1 0.20 5/OCR-A 10.1 10.1 0.10 6/UPC HR1 19.2 13.7 0.10 7/UPC HR2 32.0 19.2 0.
6. Quick References 9420/9440 Fonts Parallel Characters Font Rotated Characters Characters per Inch Font Characters per Inch Standard 12 Standard 10 Reduced 24 Reduced 14 Bold 6 Bold 5 OCR-A 10 OCR-A 10 Character Width (in Dots) The size of the characters is the same on the 9425, 9445, 9465, and 9474 printers. However, there are more dots per horizontal inch on the 9465.
9400 Series Programmer’s Manual Parallel Character Width (in Dots) for the 9425, 9445, and 9474 The following table shows the width of the 9425, 9445, and 9474 characters in dots. Uppercase I is the narrowest character (fewest dots per character). Uppercase M is the widest character (most dots per character).
6. Quick References Parallel Character Width (in Dots) for 9465 Value/Font Dots Wide ICG* M 1/Standard 10 20 3 2/Reduced 3 10 1 3/Bold 6 28 4 5/OCR-A 19 19 4 6/UPC HR1 18 18 2 7/UPC HR2 14 14 1 Quick References I *Inter-character gap The table below shows the character width (in dots) for the 9420/9440 fonts. There is no inter-character gap for the 9420/9440 fonts.
9400 Series Programmer’s Manual Serial Character Width (in Dots) for 9420/9440 Fonts Value/Font Dots Wide 1/Standard 24 2/Reduced 14 3/Bold 48 5/OCR-A 24 6/UPC HR1 24 7/UPC HR2 16 Bar Codes The table below lists bar code selections and values.
6. Quick References Bar Code Densities Parallel Bar Code Serial Bar Code 6-7 Quick References Because the 9465 printhead has more dots per horizontal inch, parallel bar codes on the 9465 only have a higher density than serial bar codes. (Bar code densities are the same on the 9425, 9445, and 9474 printers for all bar codes, and on the 9465 printer for serial bar codes.) The samples below show the difference between parallel and serial bar codes.
9400 Series Programmer’s Manual Bar Code Densities (9425/9445/9474) Value Bar Code 1 Code 39 I 2 of 5 Code 128* MSI UPC/EAN 2 Code 39 I 2 of 5 Code 128* MSI UPC/EAN 3 Code 39 I 2 of 5 Code 128* MSI 4 Code 39** I 2 of 5 5 Code 39 * Density (Char/in) 6.63 12.02 8.74 (alphanumeric) 17.48 (numeric only) 6.87 80% standard density 3.32 6.87 5.83 (alphanumeric) 11.66 (numeric only) 5.34 120% standard density 4.01 4.93 4.37 (alphanumeric) 8.74 (numeric only) 4.01 12.02 3.01 6.
6. Quick References Bar Code Densities (9420/9440) Bar Code 1 Code 39 I 2 of 5 Code 128* 2 Code 39 I 2 of 5 Code 128* MSI MSI 6.63 12.02 8.74 (alphanumeric) 17.48 (numeric only) 6.87 3.32 6.87 5.83 (alphanumeric) 11.66 (numeric only) 5.34 3 Code 39 I 2 of 5 Code 128* 4 Code 39 I 2 of 5 12.02 3.01 5 Code 39 6.01 MSI * Density (Char/in) Quick References Value 4.01 4.93 4.37 (alphanumeric) 8.74 (numeric only) 4.01 For more information on Code 128, see Appendix B.
9400 Series Programmer’s Manual Bar Code Densities (9465, Parallel Print) Value Bar Code 1 Code 39 I 2 of 5 Code 128* MSI UPC/EAN 2 Code 39 I 2 of 5 Code 128* MSI UPC/EAN 6.63 12.02 8.74 (alphanumeric) 17.48 (numeric only) 6.87 87% standard density 3.32 6.87 5.83 (alphanumeric) 11.66 (numeric only) 5.34 117% standard density 3 Code 39 I 2 of 5 Code 128* 4 Code 39 I 2 of 5 12.02 3.01 5 Code 39 6.01 MSI * Density (Char/in) 4.01 4.93 4.37 (alphanumeric) 8.74 (numeric only) 4.
6. Quick References Bar Code Densities (9465, Serial Print) Value Bar Code 1 Code 39 I 2 of 5 Code 128* 2 Code 39 I 2 of 5 Code 128* MSI UPC/EAN 3.32 6.87 5.83 (alphanumeric) 11.66 (numeric only) 5.34 120% standard density 3 Code 39 I 2 of 5 Code 128* 4 Code 39 I 2 of 5 12.02 3.01 5 Code 39 6.01 MSI * 6.63 12.02 8.74 (alphanumeric) 17.48 (numeric only) 6.87 80% standard density Quick References MSI UPC/EAN Density (Char/in) 4.01 4.93 4.37 (alphanumeric) 8.74 (numeric only) 4.
9400 Series Programmer’s Manual Line Width The following tables show the horizontal and vertical line widths. On the 9425/9445/9474 and 9420/9440 printers, the line widths are the same for horizontal and vertical lines. On the 9465, horizontal and vertical line widths are different. Line Widths (9425/9445/9474 and 9420/9440) The following table shows the horizontal and vertical line widths for the 9425/9445/9474 and 9420/9440 printers. Line Width Line Number Inches MM 1 .005 .13 2 .010 .26 3 .
6. Quick References Horizontal Line Widths (9465) The following table shows the horizontal line widths for the 9465. Line Width Appearance Inches MM 1 .005 .13 2 .010 .26 3 .015 .40 4 .021 .53 5 .026 .66 6 .031 .79 7 .036 .92 8 .042 1.06 9 .046 1.16 10 .052 1.32 11 .057 1.44 12 .062 1.57 13 .067 1.70 14 .072 1.82 15 .078 1.
9400 Series Programmer’s Manual Vertical Line Widths (9465) The following table shows the vertical line widths for the 9465. Line Width Line Number Inches MM 1 .003 .076 2 .008 .177 3 .011 .279 4 .015 .381 5 .019 .457 6 .023 .558 7 .027 .660 8 .030 .762 9 .034 .863 10 .038 .939 11 .042 1.041 12 .046 1.143 13 .049 1.244 14 .053 1.346 15 .057 1.
6. Quick References Special Characters The following table shows the ASCII code for special characters available in the standard font. Symbol Description Hashed box Pound or Lira Yen Kronna Deutsche mark Markka Schilling Half sign Rupee Quick References ASCII Code ~128 ~129 ~130 ~131 ~132 ~133 ~134 ~135 ~136 Code 128 Function Codes The following table shows the ASCII code for the Code 128 function codes.
9400 Series Programmer’s Manual 9420/9440 Horizontal Print Location If the printer is set for 9420/9440 compatible mode, the field location starts at the nearest 8th dot (nearest 0.04 inch) to the location you enter. The following table shows the offline and online values you may use for the horizontal print location when the printer is in 9420/9440 compatible mode. If you use a value that is not listed, the print position shifts plus or minus to the closest number in the table. The maximum shift is 0.
6. Quick References Online mm tomms 041.8 402 042.9 412 043.9 423 045.0 433 045.0 433 046.0 444 047.1 455 048.2 465 049.2 476 050.3 486 051.3 497 052.4 507 053.5 518 054.5 529 055.6 539 056.6 550 057.7 560 058.7 571 059.8 582 060.9 592 061.9 603 063.0 613 064.0 624 065.1 634 066.2 645 067.2 656 068.3 666 069.3 677 070.4 687 071.4 698 072.5 708 Offline inches 2.89 2.94 2.98 3.02 3.06 3.10 3.14 3.19 3.23 3.27 3.31 3.35 3.39 3.44 3.48 3.52 3.56 3.60 3.64 3.69 3.73 3.77 3.81 3.85 3.89 3.94 3.
9400 Series Programmer’s Manual ASCII Characters The following table shows the characters available in each font. HR1 and HR2 are human readable fonts for bar codes. Character # $ % ^ & * ( ) [ ] ‘(grave) { } ~ ,(comma) " = _(underscore) + .
6. Quick References Printable Characters by Font Following are the printable characters (not at actual size). Human Readable 1 and Human Readable 2 are not available offline.
9400 Series Programmer’s Manual English/Metric Conversion Inches TOMM Inches TOMM Inches TOMM Inches TOMM 0.125 0.225 0.325 0.425 0.525 0.625 0.725 0.825 0.925 1.025 1.125 1.225 1.325 1.425 1.525 1.625 1.725 1.825 1.925 2.025 2.125 2.225 2.325 2.425 2.525 2.625 2.725 2.825 2.925 3.025 3.125 3.225 3.325 3.425 3.525 3.625 3.725 3.825 3.925 4.025 4.125 4.225 4.325 0.060 0.150 0.250 0.350 0.450 0.550 0.650 0.750 0.850 0.950 1.050 1.150 1.250 1.350 1.450 1.550 1.650 1.750 1.850 1.950 2.050 2.150 2.250 2.
6. Quick References English/Metric Conversion (cont.) Inches TOMM Inches TOMM Inches TOMM 4.425 4.525 4.625 4.725 4.825 4.925 5.025 5.125 5.225 5.325 5.425 5.525 5.625 5.725 5.825 5.925 6.025 6.125 6.225 6.325 6.425 4.450 4.550 4.650 4.750 4.850 4.950 5.050 5.150 5.250 5.350 5.450 5.550 5.650 5.750 5.850 6.950 6.050 6.150 6.250 6.350 6.450 4.475 4.575 4.675 4.775 4.875 4.975 5.075 5.175 5.275 5.375 5.475 5.575 5.675 5.775 5.875 5.975 6.075 6.175 6.275 6.375 6.475 4.500 4.600 4.700 4.800 4.900 5.
9400 Series Programmer’s Manual 6-22
Appendix A: Sample Data Streams This appendix contains sample data streams for formats, batches, and graphics. The illustrations show the tags that are printed from these data streams. Formats, Text and Bar Code Fields This example shows a standard format with three text and one bar code field.
9400 Series Programmer’s Manual Line Fields This example shows how to use line fields to create a box.
Appendix A: Sample Data Streams Graphic Images Sample Graphic Data Stream This Graphic data stream precedes the format that uses it.
9400 Series Programmer’s Manual Sample Format Data Stream { F3,0550,0507;GRAPHIC T0,I,0,400,100,1,1,0,0,B G3,200,200 p p } Sample Batch Data Stream { B3,1,1,1,1,0,1;LETTER-A T0;LETTER A GRAPHIC p } Sample Tag A-4 p p
Appendix A: Sample Data Streams Compressed Graphic Data This example shows the same graphic data stream in compressed format.
00 Series Programmer’s Manual Sample Format Data Stream { F3,0550,0507;GRAPHIC T0,I,0,400,100,1,1,0,0,B G3,200,200 p p } Sample Batch Data Stream { B3,1,1,1,1,0,1;LETTER-A T0;LETTER A GRAPHIC p } Sample Tag A-6 p p
Appendix B: Code 128 Information The 128 bar code is divided into 3 character sets (Code A, Code B, and Code C). Depending on the character set used, the same bar pattern can be one of three characters. Table 1, at the end of this appendix, lists the characters in each character set. Code A contains upper case letters (A-Z), special characters, and control characters. Code A does not have lower case letters. Code B contains upper and lower case alphanumeric characters and special characters.
9400 Series Programmer’s Manual Bar Code 2 is not as wide as Bar Code 1 because all of its characters are printed with bar symbols from code C. Only 6 of Bar Code 1’s characters are printed in code C. The other character has to be printed in code B. Whenever 128 switches from one character set to another, it adds bar patterns that tell a scanner to switch character sets. These extra bar patterns cause wider bar codes.
Appendix B: Code 128 Information Here’s why bar code 1 is wider: • The 8 numbers in each example appear in groups of four or more, and they appear in even-numbered quantities, therefore, all 8 numbers will use code C. • The 6 alphabetic characters will use code B. Look at the example again. This time, data is underlined when the character set changes.
9400 Series Programmer’s Manual The table below shows the characters per inch for Code 128. The table shows the values for numeric data, and for alphanumeric data at each of the three densities available on the printer. The characters per inch for your bar code will be somewhere between these two values, depending on the mixture of numeric and alphabetic characters. For a precise calculation of the width of your bar code, refer to the specification for the Code 128 bar code.
Appendix B: Code 128 Information Quiet Zone When you estimate the area you’ll need for the bar code, remember to add the length of the quiet zone. The quiet zone is an area of white space required at the beginning and end of each bar code. The minimum size of the quiet zone is 0.10, or 10 times the width of the narrowest bar code element, whichever is greater. The tables below show the minimum size of the quiet zone at each density. For wand scanning, the quiet zone should be 0.25 to 0.35 inch.
9400 Series Programmer’s Manual Function Codes Code 128 has four function codes (f1-f4). These special characters can be entered as: • fixed characters when defining a code 128 field (Format Entry) • data when printing a batch (Data Entry). Enter the special 128 function codes as follows: Press these keys F2 then 1 F2 then 2 F2 then 3 F2 then 4 to select this function code f1 f2 f3 f4 The function code is displayed as F1, F2, F3, or F4.
Appendix B: Code 128 Information Table A-1. 128 Bar Code Character Sets Any of the following characters can be used in online communication with the printer by sending the character’s standard decimal value. To enter specific characters from the keyboard, refer to "Using the Keyboard" in section 1 of the Operator’s Handbook. Values listed on the chart are for reference only; they are not decimal values. Value Code B Code C B Bar Pattern S B S BS S ! " # $ % & ’ ( ) * + , .
9400 Series Programmer’s Manual Value 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 B-8 Code A Code B Code C B Bar Pattern S B S BS 7 8 9 : ; 7 8 9 : ; = = ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ NUL SOH STX ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ’ a b 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
Appendix B: Code 128 Information Value Code A Code B Code C STOP Bar Pattern S B S BS 1 1 1 1 1 1 1 1 2 2 4 2 1 1 1 1 1 1 1 4 4 4 2 2 4 1 1 1 1 1 1 4 1 1 1 4 4 4 1 1 2 2 4 4 4 2 1 4 3 1 2 2 1 2 2 1 2 2 1 1 1 1 1 3 1 1 1 1 1 4 1 1 1 1 2 2 2 2 2 2 1 1 3 1 4 1 1 1 4 4 4 1 1 1 2 4 2 1 1 1 4 4 1 1 3 1 1 1 1 2 2 4 1 4 1 2 2 1 1 1 1 2 1 2 2 1 2 2 1 2 1 1 1 1 3 1 1 3 1 3 1 3 4 1 22 21 14 12 14 11 12 11 11 14 11 12 11 42 42 41 12 12 11 12 12 11 41 21 21 43 41 41 13 11 13 11 41 1 1 31 _ B S B S B SB
9400 Series Programmer’s Manual B-10
For supplies, service, or assistance call: TOLL FREE: 1-800-543-6650 (In the U.S.A.) 1-800-263-4650 (In Canada) Printed in U.S.A.