Page 2
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.
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...3-5 4. Message Structures...4-1 Creating Online Data Streams ...4-1 Transmitting Online Data Streams ...4-1 Error Notification ...4-3 Monetary Symbols ...4-4 Commands ...4-5 Programming Conventions ...4-5...
Page 4
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...6-1 9425/9445/9465/9474 Fonts ...6-1 9420/9440 Fonts ...6-3 Character Width (in Dots) ...6-3 Parallel Character Width (in Dots) for the 9425, 9445, and 9474 ...6-4...
Page 5
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... B -2 Quiet Zone... B -4 Function Codes ... B -5 Table A-1.
1. Introduction This manual tells you how to enter online formats and batch data for downloading to Monarch 9400™ series printers. The following printers are covered by this manual. 9425 9445 9465 9474 Other manuals you may need are Equipment Manual Operator’s Handbook...
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.
Page 10
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.
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.
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 . 1. From the main menu, press Configuration. Press Enter password: _ _ _ _ _ _ _ _...
Page 14
9400 Series Programmer’s Manual 4. Select the parity you need and press Enter Word Length [7-8]: 8 5. Select the word length you need and press Enter Stop Bits [1-2]: 1 6. Select the stop bits you need and press Enter Start (XON) character: 7.
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 . The RS-232C cable interface is set up as a terminal device...
Page 16
9400 Series Programmer’s Manual The cable interface for PC null modems is shown below. 9400 DTR 20 20 DTR...
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.
Page 18
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...
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.
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.
Commands The following characters are used in 9400 series online data streams. Command Characters Command Character Value Programming Conventions All online commands from the host computer follow these rules. All data after the TERMINATOR character ( } ) and before the next LEADIN character ( { ) is ignored.
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...
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 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.
Page 24
9400 Series Programmer’s Manual WIDTH ;FORMAT_NAME Note that since the Format Name is a character string, it is preceded by a semicolon (;). Example {F23, 500, 200;TEXTILES This format has the following attributes: Format number is F23. Supply length is 50 millimeters.
Page 25
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 Field Contents IFLAG IVALUE 4-10 Must begin with the letter ‘T’ for a text field. The T is followed by one or two digits for the field number.
Page 27
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.
Page 28
9400 Series Programmer’s Manual TFONT C-ROT F-ROT COLOR 4-12 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.
Page 29
Example T05,I,0,230,30,1,1,0,0,B 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.
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 BARCODE IFLAG IVALUE 4-14 Contents Must be the letter ‘B’ for a bar code field. The B is followed by one or two digits for the field number.
Page 31
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.
Page 32
9400 Series Programmer’s Manual DENSITY BFONT F-ROT HEIGHT 4-16 One digit for the bar code density for Interleaved 2 of 5, Code 128, MSI, Code 39, and UPC/EAN barcodes. Values: Some bar codes do not support all 5 values. For the actual densities for these values, see "Quick References."...
Page 33
(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. Values: 0 = No human readable characters printed 1 = Human readable printed above the bar 2 = Human readable printed below the bar NOTE: Always use the HR parameter to Example...
Page 34
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.
Page 35
Code 39 The start and stop characters must be placed at the beginning and end of the data before it is sent to the printer. The start and stop character is an asterisk (*). The length of the data is variable.
Page 36
9400 Series Programmer’s Manual Two additional bar codes are supported as extensions to both UPC and EAN bar codes. +2 Send exactly two digits for this bar code. +5 Send exactly six digits (a five-digit bar code and a one-digit check digit).
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.
Page 38
9400 Series Programmer’s Manual COLUMN DIRECTION STOP 4-22 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.
Page 39
1 dot = 1/192 inch (horizontal line) 1 dot = 1/264 inch (vertical line) 9474 1 dot = 1/192 inch 1-15 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."...
Page 40
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 ( If this is the last record in your format, place a close brace (}) at the end of the record.
Page 41
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.) Format {F1,635,508;BOX L0,50,50,0,304,3 L1,50,50,1,304,3 L2,50,304,0,304,3 L3,304,50,1,316,3 Batch {B1,1,0,1,1,1,C;BOX.TEST 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.
Page 43
One to four digits for the quantity to print in QUANTITY a given batch. Values: On printers with a knife: CUT/TAKEUP One digit to control how tickets are cut. Values: 0 = no cut 1 = cut each ticket in the batch (except 2 = cut each ticket in the batch (including 3 = cut between batches NOTE: Do not use option 2 if your supply...
Page 44
9400 Series Programmer’s Manual PARTS RESERVED MODE 4-28 One to four digits for the supply repetition for cutting, and increment/decrement field. Values: 1-9999 One digit for the number of parts across the supply. Values: Enter 0. One character to define the mode of printing, or batch separator.
Page 45
This batch has the following attributes: This batch prints data using format 11. This batch will print 200 tickets. The printer will cut after each ticket is printed, including the last ticket (2). Each ticket will print 5 times. This is a two-part ticket. The format will print 2 times horizontally across each ticket.
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.
Page 47
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."...
Using Multiple Batches with One Format You can send multiple batches for any format previously loaded into the printer. To do so, send the format to the printer, then send as many batches as you want to print data on that format.
Your Operator’s Handbook shows the type of batch separator used by your printer. NOTE: When printing online, add 1 to your batch quantity. The batch separator does not add a tag to the total number of tags in a batch.
Page 50
9400 Series Programmer’s Manual Field TYPE Stacker Type none Data Stream No separator {S0} Double length {S1} tag with no stripe Normal length {S2} tag with 3 mm stripe 3 mm extra {S3} length tag with 6 mm stripe 4-34...
Page 51
Example Format data stream. F 12, 560, 508;SMALL2IN T1, I, 0, 300, 50, 1, 1, 0, 0, B T2, I, 0, 200, 50, 1, 1, 0, 0, B T3, I, 0, 150, 50, 1, 1, 0, 0, B T4, I, 0, 100, 50, 1, 1, 0, 0, B T5, I, 0, 050, 50, 1, 1, 0, 0, B Batch data stream.
"ON" or "OFF" on the printhead. We will use the terms "black dots" to describe a dot that is ON, and "white dots" for a dot that is OFF. This section describes how to build a data stream to create this pattern with your printer.
Page 54
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.
Page 55
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)
Page 56
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... Field COLUMN LINES DOTS Contents Must begin with the letter "G" to identify this as a graphic data stream.
Page 57
NOTE: The parameters ROW, COLUMN, The first row of dot codes corresponds to ;dot codes the bottom row of dots in the image. Essentially, this means you are building the graphic image upside down in the data stream. Note that since this record is a character string, it begins with a semi-colon (;).
Page 58
9400 Series Programmer’s Manual Example This graphic data stream generates the letter A from the grid earlier in this section. The format and batch data streams to print a sample tag follow the graphic data stream. G1,0,0,0,0 ;dHsHd ;dHsHd ;dHsHd ;eGsGe...
Page 59
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.
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.
Page 61
This value is measured in tenths of millimeters (TOMMS) and must be less than the maximum length of the supply. Values: One to four digits to define the column 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.
Page 62
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 Example 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.
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. Example Field Contents Must be the letter ‘C’ to identify the clear image buffer command.
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.
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.
Page 68
9400 Series Programmer’s Manual Parallel Characters Value/Font 1/Standard 2/Reduced 3/Bold 5/OCR-A 6/UPC HR1 7/UPC HR2 Rotated Characters Font Characters per Inch Standard Reduced Bold OCR-A Characters/Inch 21.3 12.0 64.0 24.0 19.2 10.1 10.1 19.2 13.7 32.0 19.2 Character Height (in.) 0.10...
(across the character width). The dots per character is the same for the 9425, 9445, and 9474 printers for all characters, and for the 9465 printer for serial characters. The examples below show the difference between parallel characters and serial characters.
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).
Parallel Character Width (in Dots) for 9465 Value/Font 1/Standard 2/Reduced 3/Bold 5/OCR-A 6/UPC HR1 7/UPC HR2 *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. Parallel Character Width (in Dots) for 9420/9440 Fonts Value/Font Dots Wide...
9400 Series Programmer’s Manual Serial Character Width (in Dots) for 9420/9440 Fonts Value/Font 1/Standard 2/Reduced 3/Bold 5/OCR-A 6/UPC HR1 7/UPC HR2 Bar Codes The table below lists bar code selections and values. Value UPC-A UPC-E Interleaved 2 of 5 Code 39...
(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 Code 39 I 2 of 5 Code 128* UPC/EAN Code 39 I 2 of 5 Code 128* UPC/EAN Code 39 I 2 of 5 Code 128* Code 39** I 2 of 5 Code 39 For more information on Code 128, see Appendix B.
Bar Code Densities (9420/9440) Value Bar Code Code 39 I 2 of 5 Code 128* Code 39 I 2 of 5 Code 128* Code 39 I 2 of 5 Code 128* Code 39 I 2 of 5 Code 39 For more information on Code 128, see Appendix B. 6.
9400 Series Programmer’s Manual Bar Code Densities (9465, Parallel Print) Value Bar Code Code 39 I 2 of 5 Code 128* UPC/EAN Code 39 I 2 of 5 Code 128* UPC/EAN Code 39 I 2 of 5 Code 128* Code 39...
Bar Code Densities (9465, Serial Print) Value Bar Code Code 39 I 2 of 5 Code 128* UPC/EAN Code 39 I 2 of 5 Code 128* UPC/EAN Code 39 I 2 of 5 Code 128* Code 39 I 2 of 5 Code 39 For more information on Code 128, see Appendix B.
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.
Horizontal Line Widths (9465) The following table shows the horizontal line widths for the 9465. Line Number Appearance 6. Quick References Line Width Inches .005 .010 .015 .021 .026 .031 .036 .042 1.06 .046 1.16 .052 1.32 .057 1.44 .062 1.57 .067 1.70...
9400 Series Programmer’s Manual Vertical Line Widths (9465) The following table shows the vertical line widths for the 9465. Line Number 6-14 Appearance Line Width Inches .003 .076 .008 .177 .011 .279 .015 .381 .019 .457 .023 .558 .027 .660 .030...
Special Characters The following table shows the ASCII code for special characters available in the standard font. 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. online values you may use for the horizontal print location when the printer is in 9420/9440 compatible mode.
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) yes ’(apostrophe) yes = What you enter is what prints.
Page 85
Printable Characters by Font Following are the printable characters (not at actual size). Human Readable 1 and Human Readable 2 are not available offline. Human Readable (HR1) 6. Quick References Human Readable (HR2) Standard Reduced Bold OCR-A 6-19...
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. Sample Format Data Stream F2,0550,0507;BOX L0,50,50,0,304,10 L1,50,50,1,304,10 L2,50,304,0,304,10 L4,304,50,1,316,10 Sample Batch Data Stream B2,1,0,1,1,1,C;BOXTEST Sample Tag...
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 Sample Batch Data Stream B3,1,1,1,1,0,1;LETTER-A T0;LETTER A GRAPHIC Sample Tag...
Compressed Graphic Data This example shows the same graphic data stream in compressed format. Sample Compressed Graphic Data Stream G3,0,0,0,0 ;3dHsHd ;eGsGe ;eHqHe ;fGqGf ;2fHoHf ;gGoGg ;gHmHg ;3hGMGh ;2iFMFi ;3jEMEj ;2kHgHk ;lGgGl ;2lHeHl ;2mGeGm ;3nGcGn ;oFcFo ;oGaGo ;pFaFp ;pFAFp ;3qEAEq ;2rDADr ;3sCACs ;2tBABt...
Page 94
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 Sample Batch Data Stream B3,1,1,1,1,0,1;LETTER-A T0;LETTER A GRAPHIC Sample Tag...
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.
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.
Page 97
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.
Page 98
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.
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.
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:...
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 Handboo k.
Page 102
9400 Series Programmer’s Manual Code Code Value Code ’ Bar Pattern...
Page 103
Code Code Value FNC3 FNC3 FNC2 FNC2 SHIFT SHIFT 99 CODE C CODE C 100 CODE B FNC4 FNC 4 CODE A CODE A FNC1 FNC1 STOP Appendix B: Code 128 Information Code Bar Pattern CODE B FNC1...