Pitney Bowes Shipping and Weighing Systems Model J640 / J641 Pro-Mark Printer Programmer’s Manual SV60255 3/95 1995 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. Pitney Bowes reserves the right to make changes in the product and the programs and their availability at any time and without notice. Although Pitney Bowes has made every effort to provide complete and accurate information in this manual, Pitney Bowes shall not be liable for any omissions or inaccuracies. Any update will be incorporated in a later edition of this manual.
Preface Thi s manual shoul d be used w i th the Pi tney Bow es J640/J641 pri nter. About This Manual ––––––––––––––––––––––––––––––––––––––––– Terms to Know ––––––––––––––––––––––––––––––––––––––––––––– Batch D ata Thi s contai ns fi el ds w i thi n ({ }) that pri nt on the suppl y. Batch H eader Thi s i s the fi rst l i ne of a batch, i mmedi atel y fol l ow i ng the Start of Packet ({). A batch header must begi n w i th B, and i s fol l ow ed by vari ous batch el ements (parameter s).
J640 Programmer’s Manual Compliance Labels These ar e shi ppi ng l abel s used excl usi vel y for a cer tai n r etai l er. The l abel compl i es w i th the retai l er ’s standards. Compliance Label Overlay Thi s i s the "skel eton" of the compl i ance l abel that contai ns the fi xed fi el ds (constant text, l i nes, etc.). Field Thi s can be text, bar codes, l i nes, boxes, constant, or non-pri ntabl e text. It i s the r esul t of a fi el d defi ni ti on.
Preface The fi r st l i ne of the graphi c packet, i mmedi atel y fol l ow i ng the star t of packet ({). A gr aphi c header must begi n w i th G, fol l ow ed by vari ous graphi c el ements. Graphic Packet Thi s i s a packet that creates a graphi c bi tmap i mage or a compl i ance l abel over l ay. Refer to the defi ni ti on of Packet for mor e i nfor mati on. M onospaced Fonts A l l char acters have the same w i dth and are easy to center justi fy. (Standard, Bol d, and Reduced fonts ar e monospaced.
J640 Programmer’s Manual iv
Table of Contents Chapter 1. Designing a Format . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 Chapter 2. Applying Field Options . . . . . . . . . . . . . . . . . . . . . . . 2-1 About Field Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Combining Field Options. . . . . . . . . . . . . . . . . . . . . . . . . . . Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Field Options on the Format Worksheet . . . . . . . . . . . . . . .
J640 Programmer’s Manual . . . . . . . . . . . . . . . . . . . . . . 2-2 Defining Fixed Characters for an Entire Field . . . . . 2-2 Defining Fixed Characters for Part of a Field . . . . . 2-4 Copying Data into a Field (Option 4). . . . . . . . . . . . . . . . . . 2-5 Merging Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8 Sub-Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8 Adding Characters to Pad Fields (Option 30) . . . . . . . . . .
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . 5-1 Chapter 6. Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 Downloading Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . Sequential Method . . . . . . . . . . . . . . . . . . . . . . . . . Batch Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Batch Quantity Zero Method . . . . . . . . . . . . . . . . . . Modifying Formats. . . . . . . . . . . . . . . . . . . . . . . . . .
J640 Programmer’s Manual . . . . . . . . . . . . . . . . . . . . . . . . 7-3 Defining Text Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4 Defining Bar Code Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6 Defining Non-Printable Text Fields . . . . . . . . . . . . . . . . . . . 7-9 Defining Constant Text Fields . . . . . . . . . . . . . . . . . . . . . . 7-10 Defining Line Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-12 Defining Box Fields . . . .
Table of Contents . . . . . . . . . . . . . . . . . 7-38 Chapter 8. Status Polling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 Inquiry Request (ENQ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . Inquiry Response (ENQ Response) . . . . . . . . . . . . Job Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Job Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1 8-2 8-7 8-7 Chapter 9. Creating Graphics . . . . . . . . . . . . . .
J640 Programmer’s Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-33 Binary to Hex Conversion Chart . . . . . . . . . . . . . . 9-34 Dot to Run Length Encoding Chart . . . . . . . . . . . . 9-38 Chapter 10. Diagnostics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1 Printing a Test Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-1 Using Data Dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3 Additional Diagnostics Information . .
Table of Contents Monospaced Font Magnification . . . . . . . . . . . . . . . . . . . . . B-4 Proportional Font Magnification . . . . . . . . . . . . . . . . . . . . . B-6 Using Font IDs in Your Format . . . . . . . . . . . . . . . . . . . . . . B-9 Appendix C. Symbol Sets/Code Pages. . . . . . . . . . . . . . . . . . . . C-1 Supported Symbol Sets and Code Pages. . . . . . . . . . . . . . Selecting a Symbol Set or Code Page . . . . . . . . . . . . . . . . Selecting the Internal Symbol Set . . . . . . . . .
Chapter 1. Designing a Format This chapter describes how to ! design custom labels. ! categorize data into field types. ! use the Supply Layout Grid and Format Worksheet. What is a Format? –––––––––––––––––––––––––––––––––––––––––– A format defines which fields appear and where the fields are printed on the label. The printer requires this information in a special form, using Monarch ® Printer Control Language (MPCLII). Before you create your format file, you must design your label.
J640 Programmer’s Manual 6. Fill out your Format Worksheet. Refer to "Format Worksheet" in this chapter for more information. At this point, you are ready to communicate your design to the printer. To do this: 7. Create a format file, based on how you filled out your worksheet. Refer to Chapter 7, "Syntax Quick Reference," for more information. 8. Download your format to the printer. Refer to Chapter 6, "Printing," for more information.
Chapter 1. Designing a Format Considering Print Area –––––––––––––––––––––––––––––––––––––– The "bottom" is the edge that exits the printer first. The print area is centered on the supply and it begins 0.06 inches from the bottom of the supply. Refer to Appendix E, "Format Design Tools," for the non-print zone on this printer.
J640 Programmer’s Manual Drawing Rough Sketches –––––––––––––––––––––––––––––––––––– After you decide what information you want to print, sketch how you want the information to appear on the label. You may want to draw several sketches that contain the same information, but with different layouts, to determine which one works best for you. Note any areas that are preprinted on the label, such as a logo.
Chapter 1. Designing a Format Supply Layout Grids –––––––––––––––––––––––––––––––––––––––– A Supply Layout Grid contains measurement markers. These markers help you accurately position information on your label. Decide whether you want to design formats using English, Metric, or Dot measurements. You can choose from the following three Supply Layout Grids: ! English The English grid, shown to the right, is measured in 1/100 inches. Supply Layout (Inches) 8.0 7.5 7.0 6.5 6.0 5.5 ! Metric 5.0 4.
Designing a Format
F R8 NAME. ("IN QUOTES") F7 WIDTH F6 LENGTH F5 MEASURE F4 DEVICE F3 ACTION F2 FORMAT # F1 HEADER Chapter 1.
F 1-22 R R8 NAME.
T15 SYM. SET T14 FIELD ROT. T13 CHAR. ROT. T12 ALIGNMENT T11 COLOR T10 WID. MAG. T9 HGT. MAG. T8 FONT T7 GAP T6 COLUMN T5 ROW T4 FIX/VAR T3 # OF CHAR. T2 FIELD # T1 HEADER Chapter 1.
Chapter 1.
J640 Programmer’s Manual 1-26
Chapter 1.
J640 Programmer’s Manual 1 Tops of characters point to left of field. 1-28 2 Tops of characters point to bottom of field. 3 Tops of characters point to right of field.
Chapter 1.
T T T T 1-30 T15 SYM. SET T14 FIELD ROT. T13 CHAR. ROT. T12 ALIGNMENT T11 COLOR T10 WID. MAG. T9 HGT. MAG. T8 FONT T7 GAP T6 COLUMN T5 ROW T4 FIX/VAR T3 # OF CHAR.
B12 FIELD ROT. B11 ALIGNMENT B10 TEXT B9 HEIGHT B8 DENSITY B7 FONT B6 COLUMN B5 ROW B4 FIX/VAR B3 # OF CHAR. B2 FIELD # B1 HEADER Chapter 1.
Chapter 1.
J640 Programmer’s Manual 1-34
Designing a Format
Designing a Format
Chapter 1.
B12 FIELD ROT. B11 ALIGNMENT Balanced B10 TEXT B9 HEIGHT B8 DENSITY B7 FONT B6 COLUMN B5 ROW B4 FIX/VAR B3 # OF CHAR.
D3 CHAR. # D2 FIELD # D1 HEADER Chapter 1.
C C C 1-42 C13 SYM. SET C12 FIXED CHAR. ("IN QUOTES") C11 FIELD ROT. C10 CHAR. ROT. C9 ALIGNMENT C8 COLOR C7 WID. MAG. C6 HGT. MAG. C5 FONT C4 GAP C3 COLUMN C2 ROW C1 HEADER D3 # OF CHAR.
Chapter 1.
J640 Programmer’s Manual 1-44
Designing a Format
J640 Programmer’s Manual 1-46
Chapter 1. Designing a Format 1 Tops of characters point to left of field. 2 Tops of characters point to bottom of field. 3 Tops of characters point to right of field. Designing a Format 0 Tops of characters point to top of field.
J640 Programmer’s Manual Balanced 1 (LEFT) 1 (LEFT) 2 (BOTTOM) 1-48 3 (RIGHT) 3 (RIGHT) Left/Center/Right-Justified 0 (TOP) 2 (BOTTOM) 2 (BOTTOM) 0 (TOP) 3 (RIGHT) 1 (LEFT) 0 (TOP) End-Justified
C13 SYM. SET C12 FIXED CHAR. ("IN QUOTES") C11 FIELD ROT. C10 CHAR. ROT. C9 ALIGNMENT C8 COLOR C7 WID. MAG. C6 HGT. MAG. C5 FONT C4 GAP C3 COLUMN C2 ROW C1 HEADER Chapter 1.
L L 1-50 L8 PATTERN L7 THICKNESS L6 LENGTH/ END COL.
Chapter 1.
J640 Programmer’s Manual 1-52
L8 PATTERN L7 THICKNESS L6 LENGTH/ END COL. L5 ANGLE/ END ROW L4 COLUMN L3 ROW L2 TYPE L1 HEADER Chapter 1.
Q Q 1-54 Q7 PATTERN Q6 THICKNESS Q5 END COLUMN Q4 END ROW Q3 COLUMN Q2 ROW Q1 HEADER J640 Programmer’s Manual
Chapter 1.
J640 Programmer’s Manual 1-56
Q7 PATTERN Q6 THICKNESS Q5 END COLUMN Q4 END ROW Q3 COLUMN Q2 ROW Q1 HEADER Chapter 1.
Chapter 2. Applying Field Options About Field Options –––––––––––––––––––––––––––––––––––––––– Field options further define text, bar code, and non-printable text fields. The following options are available: Option 1 Defines fixed characters. This option is an alternative to using a constant text field. Option 4 Copies/merges data from previous fields. Option 30 Pads data by adding characters to the field. Option 31 Calculates a check digit for the field and specifies the check digit scheme.
J640 Programmer’s Manual Combining Field Options –––––––––––––––––––––––––––––––––––– You can use more than one option with most fields. For example, you can use Option 4 to copy data from another field, and then use Option 30 to pad the field. When you use multiple options for the same field, you must place the options in the order you want to apply them to your format. Restrictions Some options cannot be used together.
Chapter 2. Applying Field Options To define a fixed field: 1. Define your text, non-printable text, or bar code field on the Format Worksheet as shown in Chapter 1, "Designing a Format." Remember Write F in box T4 or B4 to specify a fixed field length. ! Make sure the maximum number of characters defined in box T3 or B3 is the same as the number of characters you will place in the field. 2. Find Option 1 on the Format Worksheet. 3.
J640 Programmer’s Manual 2-4
Chapter 2.
J640 Programmer’s Manual 2-6
Chapter 2.
J640 Programmer’s Manual 2-8
Chapter 2.
J640 Programmer’s Manual 2-10
Chapter 2.
2-12 R2 CODE # R R R R 50 50 50 50 R7 ADDITIONAL WIDE SPACE R6 ADDITIONAL NAR. SPACE R5 ADDITIONAL CHAR. GAP R4 DOT WIDTH WIDE ELEMENT R3 DOT WIDTH NAR.
Applying Field Options
J640 Programmer’s Manual 2-14
Chapter 2.
J640 Programmer’s Manual 2-16
Chapter 2.
J640 Programmer’s Manual Re-Image ON 2-18 Re-Image OFF
Chapter 3. Using Check Digits Check digits are typically used to ensure that a text or bar code field scans correctly. If you apply Option 31, the printer calculates a check digit. You can use check digits with text or bar code fields. Check digit calculations are performed on numeric data only. n Do Not use check digits with price fields. You can define a check digit scheme for some bar codes. The following bar codes contain predefined check digits.
J640 Programmer’s Manual A6 LENGTH A7 ALGORITHM A5 MODULUS A4 DEVICE A3 ACTION A1 HEADER A A2 SELECTOR # To create a check digit scheme, make a copy of this page or the check digit worksheet in Appendix E, "Format Design Tools." Fill in your copy as you follow these steps. WEIGHTS A8 R 1. Assign a number from 1 to 10 to identify this check digit scheme. You will refer to this number later when you apply Option 31 to a field. Write the number in box A2. 2.
Chapter 3. Using Check Digits 7. Determine what numbers to use as the weight string. A weight string is a group of two or more numbers that is applied to a field. For an example of how the weight string is applied to a field, refer to "Sum of Products Calculation" or "Sum of Digits Calculation" later in this chapter.
J640 Programmer’s Manual 4. Divide the sum of the products by the modulus (10 in this case), only to the whole number. The balance is called the remainder. 9 10 98 90 8 5. Subtract the remainder from the modulus. The result becomes the check digit. In this case, the check digit is 2.
Chapter 3. Using Check Digits Sum of Digits Calculation ––––––––––––––––––––––––––––––––––– This is an example of how the printer uses Sum of Digits to calculate a check digit for this data: 5 2 3 2 4 5 2 1 9 1. Weights are applied to each digit, starting with the last digit in the weight string. They are applied right to left, beginning at the right-most position of the field. Remember, a weight string must contain at least two different numbers. This example has a weight string of 1,2,3,4.
J640 Programmer’s Manual 4. Divide the sum of the digits by the modulus (10 in this case), only to the whole number. The balance is called the remainder. 4 10 44 40 4 5. Subtract the remainder from the modulus. The result becomes the check digit. In this case, the check digit is 6.
Chapter 4. Recording Batch Data Batch data is the actual information printed on the supply. Batch data fills in the format’s text, bar code, and non-printable text fields. A batch consists of three parts: ! Batch Header identifies the format to use for the batch and how many labels to print. ! Batch Control allows you to define the print job, including the feed mode, batch separators, and multi-part printing.
J640 Programmer’s Manual Defining the Batch Header ––––––––––––––––––––––––––––––––––– A batch header begins the file. It tells which format the batch uses and how many labels to print. Example {B,1,N,40 p Syntax {header,format#,N/U,quantity p B4 QUANTITY B3 NEW / UPDATE B2 FORMAT # B1 HEADER 1. Find the Batch Header section on your worksheet. B 2. Select the identification number of the format you want to use for this batch. (See box F2 of the Format Worksheet.
Chapter 4. Recording Batch Data Defining the Batch Control Field –––––––––––––––––––––––––––––– The batch control field defines the print job and applies only to the batch that immediately follows. 1. Find the Batch Control Field section on your worksheet. E7 CUT-MULT E5 MULTI-PART E6 CUT-TYPE E E4 PRINT-MULT {E,feed_mode,batch_sep,print_mult,multi_part, cut_type,cut_mult p E3 BATCH-SEP Syntax E2 FEED-MODE {E,0,1,4,2,0,0 p E1 HEADER Example 0 0 2. Select the feed mode.
J640 Programmer’s Manual BATCH DATA FIELD # DATA 4-4
Chapter 4.
Chapter 5. Configuring the Printer This chapter discusses how to set communication parameters. ! configure the printer using configuration control packets. ! use immediate commands to control the printer’s operation at any time.
J640 Programmer’s Manual Setting Communication Parameters –––––––––––––––––––––––––– In order for your printer to be able to communicate with your host, you must make sure the communications parameters are set to the same values. You can use Record F or Autobaud to set communication parameters. On IBM-PC/MS-DOS computers, you can use the MODE command to set communication values on your PC.
Chapter 5. Configuring the Printer Using Autobaud n Do Not send any data to the printer before using autobaud. You can use the autobaud feature to automatically set the printer’s baud rate, parity, data bits, and stop bits to match the host’s. To use autobaud, you must: 2. After the LED indicator becomes solid green or amber, send a sequence of 32 alternating @A characters (for a total of 64 characters) to the printer.
J640 Programmer’s Manual Configuration Control Packets ––––––––––––––––––––––––––––––– Use Configuration Control Packets to change the printer settings. You can send individual records or a packet of up to six records. You supply all parameters for each record. If you do not supply a parameter, the printer uses the previous value. When you turn off or reset the printer, the new settings are saved and used when the printer is turned back on.
Chapter 5. Configuring the Printer Syntax for single record { I, A, parameter 1...parameter 5 } Start of Packet Configuration Packet Identifier System Setup End of Packet Record A: System Setup ! select the online mode. ! select the display language. ! print separators between batches. ! print a normal zero or a "slashed zero." ! select a symbol set.
J640 Programmer’s Manual The following table describes each parameter you can set using the System Setup record. Parameter Options Description Identifier A System Setup Record online_mode 0 1 online mode "Print Mode Ready" offline mode language 0 English sep_on 0 Do not print a separator. 1 Print a separator. 0 Print a standard zero. Print a zero with a slash through it., slash_zero 1 symbol_set n 5-6 0 Internal. Use if formats are used with other MPCLII printers. 1 ANSI.
Chapter 5. Configuring the Printer Example {I,A,0,0,1,1,0 p } This record would identify the system setup record. ! power up the printer in the online mode. ! use the default prompt value. ! print a separator after each batch. ! print zeros with slashes through them. ! use the internal symbol set. The I parameter is only needed if you send these records separately. (If you are sending multiple records, the I parameter is only needed once.
J640 Programmer’s Manual The following table describes each parameter you can set using the Supply Setup record. Parameter 5-8 Description identifier B Supply Setup Record supply_type 0 Black mark stock loaded 2 Non Indexed stock loaded ribbon_on 0 Ribbon not installed (direct supply) 1 Ribbon installed (transfer supply) feed_mode 0 Continuous operation 1 On-demand mode 0 -99 to 99 Supply position in 1/192 dots supply_posn n Options The default values are shown in bold.
Chapter 5. Configuring the Printer Example {I,B,0,0,1,10 p } This record would identify the supply setup record. ! indicate black mark stock has been loaded. ! indicate thermal direct supply has been loaded. ! cause the printer to operate in on-demand mode. ! feed the supply approximately 2 inch at a time before printing the format on each label (10/192 inches). The I parameter is only needed if you send these records separately.
J640 Programmer’s Manual The following table describes each parameter you can set using the Print Control record. Parameter n 5-10 Options Description Identifier C Print Control record contrast 0 -390 to 100 Contrast adjustment in .
Chapter 5. Configuring the Printer Example {I,C,-200,-20,-10,0,0 p } This record would identify the print control record. ! decrease the contrast by two volts. ! move print .1 inch closer to the bottom of the supply (20/192 inches). ! move print .05 inch more to the left on the supply (10/192 inches). ! print at 2 inches per second. ! set the supply width to 4 inches. The I parameter is only needed if you send these records separately.
J640 Programmer’s Manual This table describes each parameter you can set using the Monetary Formatting record.
Chapter 5. Configuring the Printer Example {I,D,5,0,1 p } This record would identify the monetary format record. ! print the Franc symbol. ! eliminate the use of any secondary sign. ! place only one digit to the right of the decimal. Configuring the Printer n ! The I parameter is only needed if you send these records separately. (If you are sending multiple records, the I parameter is only needed once.) Record E: Control Characters Use this record to ! change the MPCLII control characters.
J640 Programmer’s Manual The following table describes each parameter you can set with the Control Characters record.
Chapter 5. Configuring the Printer Example {I,E,"~123~063~034~124~125~126~094" p } This record would change only the parameter separator character to ?. The other control characters would remain unchanged. ! enable the immediate commands, using the ^ symbol as the command identifier. The I parameter is only needed if you send these records separately. (If you are sending multiple records, the I parameter is only needed once.
J640 Programmer’s Manual Record F: Communication Settings The printer’s communication values must match the host’s. Use this record to set your printer’s communication values. Use the following syntax for the Communication Settings record: Syntax n {I,F,baud,word_length,stop_bits,parity, flow_control p } Changing the communication settings takes approximately two seconds to complete. Communications during this interval may be lost.
Chapter 5. Configuring the Printer n Example ! If you use the COPY command to download your formats, set "Flow Control" to DTR (not XON/XOFF). ! Always make sure the communications values at the host match the values on your printer, or you will not be able to print formats. {I,F,3,1,0,0,1 p } ! identify the communication settings record. ! use a baud rate of 9600. ! use a word length of 8 bits. ! use a 1-stop bit. ! not use a parity bit. ! use the DTR mode.
J640 Programmer’s Manual Immediate Commands –––––––––––––––––––––––––––––––––––––– Immediate commands affect printer operation as soon as the printer receives them, even if they are included within a packet. These commands can be used at any time, but the printer can accept only one immediate command at a time, or else an error may occur. You can use immediate commands to ! change immediate command control characters. ! change status polling control characters. ! reset the printer.
Chapter 5. Configuring the Printer Command Parameter ^CA Cancels all the batches in the queue. ^CB Cancels only the current batch being printed. ^DD or DCd Disables the MPCL data escape character and inhibits MPCL from acting on ANY data escape sequence from the host. Sets the MPCL data escape character to the ACSII value given by the d parameter. The value can be any ASCII character. Aborts an error condition. May need to be sent multiple times.
J640 Programmer’s Manual This table assumes that the defined Immediate Control character is ^ and that the defined Status Polling Control character is d. You may define these characters to suit your needs. Example ^CB This command immediately cancels the batch currently printing. n 5-20 To use the Immediate Control character or the Status Polling character within your data, use the tilde sequence.
Chapter 5. Configuring the Printer Special Packets ––––––––––––––––––––––––––––––––––––––––––––– The following packets, Clear Packets, Font Packets, and the Printer Upload Configuration Packet, can clear a specific packet or font from memory. ! upload a specific packet or font. ! return information about font packet sizes, or the current buffer sizes.
J640 Programmer’s Manual Syntax {header,packet#,action,device p } The following table lists the parameters you can use with the Clear Packet.
Chapter 5. Configuring the Printer Using Font Packets You can use a Font Packet to clear downloaded fonts from memory, upload your font buffer, or upload the cell size information for a particular font. The font packet is useful when you are downloading soft fonts.
J640 Programmer’s Manual Printer Configuration Upload Packet You can now upload your printer’s current configuration using Configuration Control Packets. To request the configuration upload, send the following packet to the printer: Syntax {header,ID#,action p } The following table lists the parameters you can use with the Printer Configuration Upload Packet.
Chapter 6. Printing This chapter describes how to download files to the printer. Turn the printer on and make sure it is ready to receive data before you download. See your host documentation or system administrator for information on downloading from your particular host. See the "Downloading Methods" section later in this chapter for information on ways to download. When downloading, send your data streams in this order: 1. Configuration records (Records A-F) 2.
J640 Programmer’s Manual 4. Type these commands at the DOS prompt: COPY LABEL1.FMT COM1 This command transmits a file called "LABEL1.FMT" to COM1. COPY LABEL1.BCH COM1 This command transmits a batch called "LABEL1.BCH" to COM1. n If you use the COPY command to download your formats, set "Flow Control" to DTR (not XON/XOFF). Also, do not use the MS-DOS prompt from inside Windows, because you will get a framing error.
Chapter 6. Printing Batch Method This is similar to the sequential method, but it is used when you want to send multiple batches. All data for the first batch is sent down at one time, and the printer then images each field. As soon as the last field for the first batch is imaged, your labels begin to print for that batch. This process is repeated for each subsequent batch.
J640 Programmer’s Manual Your file should look like this: { F,1,A,R,E,300,200,"TEXTILES" p B,1,12,V,150,40,0,1,2,80,7,L,0 p T,2,10,V,250,50,0,1,1,1,B,C,0,0 p D,3,3 p D,4,20 p T,5,25,V,80,10,0,1,1,1,B,L,0,0,0 p R,4,4,1,20,6,1p C,30,10,0,1,1,1,B,L,0,0,"Made in USA" p L,S,110,30,270,150,3,"" p Q,240,30,270,150,3,"" p } { B,1,N,0 p } The printer images the constant text, line, and box fields, but does not print them. 2. Input data for each field, and send it with a batch update with a quantity of zero.
Chapter 6. Printing 4. For the last field, input data and send it with the quantity of labels you want printed. When the printer receives input for the last field, it immediately prints the labels. Your file should look like this: { B,1,U,10 p 5,"100% DACRON" p C,"POLYESTER" p } Ten labels that look like this are printed: The Optional Entry Method is a quick way to modify your format fields, check digit fields, and configuration commands.
Chapter 7. Syntax Quick Reference This chapter provides a quick reference for creating MPCLII data streams. MPCLII Conventions –––––––––––––––––––––––––––––––––––––––– Here are some guidelines to follow when using MPCLII. MPCLII Punctuation Use the following symbols when creating MPCLII data streams: Start of packet } End of packet p Field separator , Parameter separator "ABC" Quotation marks enclose character strings. Empty quotes ("") identify null strings or unused fields.
J640 Programmer’s Manual Standard Syntax Guidelines When creating MPCLII packets 7-2 ! Begin each packet with a Start of Packet. ! End each packet with an End of Packet. ! Define no more than 100 fields in a format. ! Define all fields in the order you want to image/print them. The printer does not print in field number order. ! Separate all parameters with a Parameter Separator. ! End each field with a Field Separator.
Chapter 7. Syntax Quick Reference Defining the Format Header –––––––––––––––––––––––––––––––––– A Format Header begins a format file. The format header is followed by a series of fields that determines text, non-printable text, bar code, constant text, line, or box definitions. Example {F,1,A,R,E,300,200,"TEXTILES" p Syntax {F,format#,action,device,measure,length,width, "name" p F1. F Indicates format header. Enter F. F2. format# Unique number from 0-999 to identify the format.
J640 Programmer’s Manual Defining Text Fields ––––––––––––––––––––––––––––––––––––––––– Example T,2,10,V,250,50,0,1,1,1,B,C,0,0,0 p Syntax T,field#,# of char,fix/var,row,column,gap,font, hgt mag wid mag,color,alignment,char rot, field rot,sym set p T1. T Indicates a text field. Enter T. T2. field # Unique number from 0-99 to identify this field. (Pitney Bowes recommends starting at 1, instead of 0.) T3. # of char Maximum number of printed characters (1-2710) in the field. T4.
Chapter 7. Syntax Quick Reference T8. font Style of font. Options: 1 Standard 4 2 Reduced 10 3 Bold 11 OCRA-like CG Triumvirate CG Triumvirate Bold T9. hgt mag Height magnifier, 1-7 (times). T10. wid mag Width magnifier, 1-7 (times). T11. color Options: B D O R W T12. alignment Options: L C R B E T13. char rot Top Top Top Top of of of of character character character character points points points points to to to to top of field left of field bottom of field right of field Field rotation.
J640 Programmer’s Manual Defining Bar Code Fields –––––––––––––––––––––––––––––––––––– Example B,3,12,V,150,40,1,2,80,7,L,0 p Syntax B,field#,# of char,fix/var,row,column,font, density,height,text,alignment,field rot p B1. B Indicates bar code field. Enter B. B2. field # Unique number from 0-99 to identify this field. (Pitney Bowes recommends starting at 1, instead of 0.) B3. # of char Maximum number of characters. Range: 1-2710. B4. fix/var Fixed or variable length field. Options: F V B5.
Chapter 7. Syntax Quick Reference B7. font Bar code. Options: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 22 23 31 32 33 40 41 44 50 UPCA UPCE Interleaved 2 of 5 Code 39 (no check digit) Codabar EAN8 EAN13 Code 128 MSI UPCA +2 UPCA +5 UPCE +2 UPCE +5 EAN8 +2 EAN8 +5 EAN13 +2 EAN13 +5 POSTNET Code 93 Code 16K PDF417 Maxicode Code 39 (MOD 43 check digit) UPCA & Price CD EAN13 & Price CD Interleaved 2 of 5 with Barrier Bar B8. density Bar code density. Refer to the chart in Chapter 1, "Designing a Format.
J640 Programmer’s Manual B10. text Appearance of text with bar code. Options: 0 1 5 6 7 8 B11. alignment Choose L, R, C, B or E. B12. field rot Field rotation. Lower left corner of field is the pivot point.
Chapter 7. Syntax Quick Reference Defining Non-Printable Text Fields –––––––––––––––––––––––––––– Example D,4,20 p Syntax D,field#,# of char p D1. D Indicates a non-printable text field. Enter D. D2. field# Unique number from 0-99 assigned to this field. (Pitney Bowes recommends starting at 1, instead of 0.) D3. # of char Maximum number of characters in this field (1-2710).
J640 Programmer’s Manual Defining Constant Text Fields –––––––––––––––––––––––––––––––– Example C,30,10,0,1,1,1,B,L,0,0,"MADE IN USA",0 p Syntax C,row,column,gap,font,hgt mag,wid mag,color, alignment,char rot,field rot,"fixed char", sym set p C1. C Indicates a constant text field. Enter C. C2. row For monospaced fonts, distance from bottom of print area to lower left corner of field. For proportionally spaced fonts, distance from bottom of print area to baseline of characters in the field.
Chapter 7. Syntax Quick Reference C9. alignment Alignment of constant text in the field. Options: L C R B E C10. char rot Character rotation. Options: 0 1 2 3 C11. field rot Align on left side of field. Center text within field (for monospaced fonts only) Align on right side of field (for monospaced fonts only) Align at midpoint of field Align at end of field.
J640 Programmer’s Manual Defining Line Fields ––––––––––––––––––––––––––––––––––––––––– Example L,S,110,30,110,150,10,"" p Syntax L,type,row,column,angle/end row,length/end col, thickness,"pattern" p L1. L Indicates a line field. Enter L. L2. type Type of line. Only vertical and horizontal lines are supported. Options: L3. row S Segment. You choose the starting point and ending point. V Vector. You choose the starting point, angle, and length. Distance from bottom of print area to line origin.
Chapter 7. Syntax Quick Reference L6. length/ end col If Using Segments Column location of end point. Measure from left edge of print area. Ranges same as above. On vertical lines, this value must match parameter L4. If Using Vectors Length of the line in selected units. Ranges for horizontal lines: English Metric Dots 0 - 400 0 - 1016 0 - 768 Ranges for vertical lines: English Metric Dots 0 - 600 0 - 1524 0 - 1152 L7. thickness Line thickness 1-99. Measured in dots. L8. "pattern" Line pattern.
J640 Programmer’s Manual Defining Box Fields ––––––––––––––––––––––––––––––––––––––––– Example Q,240,30,270,150,3,"" p Syntax Q,row,column,end row,end col,thickness, "pattern" p Q1. Q Indicates a box (Quadrilateral) field. Enter Q. Q2. row Distance from bottom of print area to lower left corner of box. Measure in 1/100 in., 1/10 mm, or dots. Ranges: English Metric Dots Q3. column Distance from left edge of print area to lower left corner of box. Measure in 1/100 in., 1/10 mm, or dots.
Chapter 7. Syntax Quick Reference Applying Field Options –––––––––––––––––––––––––––––––––––––– Example R,1,3,1,3,1,1 p Syntax R,option#,parameter...parameter p R1. R Indicates field option header. R2.
J640 Programmer’s Manual Option 1 (Fixed Data) ––––––––––––––––––––––––––––––––––––––– Example R,1,"_ _ _%$_ _ _ _ _" p Syntax R,1,"fixed char" p R1. R Indicates option header. R2. 4 Indicates Option 1. R3. fixed char Characters to insert. Enclose in quotation marks. If you are defining fixed characters for part of a field, place underscores (_) in non-fixed positions.
Chapter 7. Syntax Quick Reference Option 30 (Padding Data) ––––––––––––––––––––––––––––––––––– If a variable length field is not completely filled with batch data, this option fills the remaining positions in the field with the character X. Example R,30,L,"X" p Syntax R,30,L/R,"character" p R1. R Indicates option header. R2. 30 Indicates Option 30. R3. L/R Indicates type of padding R4. "character" L Pad field on left side R Pad field on right side Pad character (must be printable).
J640 Programmer’s Manual Option 31 (Calculate Check Digit) –––––––––––––––––––––––––––– Do not use this option with Option 42, Maxicode, Code 39, or Code 93 bar codes, or fields with predefined check digits, such as UPC, EAN, and Code 128 bar code fields. Example R,31,G,5 p Syntax R,31,gen/ver,check digit # p R1. R Indicates option header. R2. 31 Indicates Option 31. R3. gen/ver Enter G to generate a check digit. R4. check digit # Specifies a check digit scheme.
Chapter 7. Syntax Quick Reference Option 42 (Price Field) ––––––––––––––––––––––––––––––––––––––– Do not use with Options 31 or 60. Example R,42,1 p Syntax R,42,appearance code p R1. R Indicates option header. R2. 42 Indicates Option 42. R3. appearance code Enter 1 to print price field in standard notation, as defined by country setting. Use Configuration Record D, Monetary Formatting, to select monetary notations and symbols by country setting.
J640 Programmer’s Manual Option 50 (Bar Code Density) –––––––––––––––––––––––––––––––– When using this option, set the density parameter in your bar code field to the default value. You can only use this option once for each bar code field. This option overrides the density selected in the bar code field. Do not use this option with POSTNET or Maxicode bar codes. If you use this option with a bar code that contains only narrow elements, set the wide element equal to the narrow element.
Chapter 7. Syntax Quick Reference Option 51 (PDF417 Security/Truncation) ––––––––––––––––––––––– This option can appear only once per PDF417 field, in any order, following the bar code field. Example R,51,2,S p Syntax R,51,security,stand/default p R1. R Indicates option header. R2. 51 Indicates Option 51. R3. security Security level ranges from 0-8 (0 is the default). Higher security levels add data to a bar code, improving scan reliability.
J640 Programmer’s Manual Option 52 (PDF417 Width/Length) –––––––––––––––––––––––––––– If this option does not immediately follow the PDF417 bar code field, the default settings are used. You can only use this option once per PDF417 bar code field. Example R,52,C,10 p Syntax R,52,row/column,dimension p R1. R Indicates option header. R2. 52 Indicates Option 52. R3. row/column Indicates if you are defining the number of rows or columns.
Chapter 7. Syntax Quick Reference Option 60 (Incrementing/Decrementing Fields) –––––––––––––––––– Do not use with Option 42 (price field), because this option can be applied to numeric data only. Example R,60,I,5,1,6 p Syntax R,60,I/D,amount,l pos,r pos p R1. R Indicates option header. R2. 60 Indicates Option 60. R3. I/D I D incrementing field. decrementing field R4. amount Amount by which value increases or decreases. R5. l pos Leftmost position in inc/dec portion of field.
J640 Programmer’s Manual Option 61 (Reimage Field) ––––––––––––––––––––––––––––––––––– This option applies to text, bar code, constant text, line, or box fields. Example R,61 p Syntax R,61 p 7-24 R1. R Indicates option header. R2. 61 Indicates Option 61.
Chapter 7. Syntax Quick Reference Defining the Batch Header ––––––––––––––––––––––––––––––––––– A batch header begins the file. It tells which format the batch uses and how many labels to print. Example {B,1,N,1 p Syntax {B,format #,N/U,quantity p B1. B Batch header. B2. format# Format number (0-999) to use. (Pitney Bowes recommends starting at 1, instead of 0.) B3. N/U Controls how image is generated. B4. quantity N New. Erase image and re-image all fields using online data.
J640 Programmer’s Manual Defining the Batch Control Field–––––––––––––––––––––––––––––– The batch control field defines the print job and applies only to the batch that immediately follows. The Batch Header must precede this field. Example {E,0,1,4,2,0,0 p Syntax {E,feed_mode,batch_sep,print_mult, multi_part,cut_type,cut_mult p E1. E Defines the data stream as a Batch Control Field. E2. feed_mode Type of feed mode. Options: 0 1 E3. batch_sep Type of batch separator. Options: 0 1 E4.
Chapter 7. Syntax Quick Reference Defining Batch Data Fields ––––––––––––––––––––––––––––––––––– Batch data fields should be sent in field number order. Example 1,"Size 12" p 2,"" p 3,"Blue" p C,"and this would be appended." p Syntax field#,"data string" p C,"continuation" p field# Identifies the text, bar code, or non-printable text field in which to insert the following data. "data string" Provides the actual information to appear in the selected field. Always enclose inside double quotes.
J640 Programmer’s Manual Applying Check Digits –––––––––––––––––––––––––––––––––––––– Check digit algorithms are predefined for UPC and EAN bar codes. Example {A,1,A,R,10,5,P,"65432" p } Syntax {A,selector,action,device,modulus,fld_length,D/P, weights p } A1. A Indicates a check digit data stream. Enter A. A2. selector Assign a number from 1-10 to this check digit formula. A3. action Adds a check digit scheme. Enter A. A4. device Print storage device. R is the only valid option. A5.
Chapter 7. Syntax Quick Reference Changing Printer Configurations –––––––––––––––––––––––––––––– Example Start of Packet Configuration Packet Identifier { I, 1 to 6 optional records A,0,0,0,0,0 p B,0,0,0,0 p C,0,0,0,0,0 p D,1,0,2 p E,"~123~044~034~124~125" p F,3,1,0,0,1 p } System Setup Supply Setup Print Control Monetary Formatting Control Characters Communication Settings End of Packet Syntax { I, A, B, C, D, E, F, p } parameter parameter parameter parameter parameter parameter 1...parameter 1...
J640 Programmer’s Manual Configuration Syntax Guidelines When creating a printer configuration packet: ! Follow the "Standard Syntax Guidelines" listed at the beginning of this chapter. ! Begin a packet with the printer configuration header (I). ! Download multiple configurations within one packet or download a single configuration. ! Include the first five ANSI codes, at a minimum, in Record E (Control Characters).
Chapter 7. Syntax Quick Reference Defining the Supply Setup Record B ––––––––––––––––––––––––––– Example {I,B,0,0,1,10 p } Syntax {I,B,supply_type,ribbon_on,feed_mode, supply_posn p} B1. B Indicates Supply Setup Record B2. supply_type Options: 0 2 Black mark stock (default) Non Indexed stock Options: 0 1 Ribbon not installed Ribbon installed (default) Options: 0 1 Continuous operation On-demand mode (default) B3. ribbon_on B4. feed_mode B5.
J640 Programmer’s Manual Defining the Print Control Record C –––––––––––––––––––––––––– Example {I,C,0,0,0,0,0 p } Syntax {I,C,contrast,print_adj,margin_adj, speed_adj,width_adj p } C1. C Indicates the Print Control record C2. contrast 390 to 156 in .078 volts/count C3. print_adj -99 to 99. Vertical adjustment in 1/192 dots C4. margin_adj -99 to 99. Horizontal adjustment in 1/192 dots C5. speed_adj Print speed is 2 inches per second. C6. width_adj 0 to 99. Width of the supply.
Chapter 7. Syntax Quick Reference Defining the Monetary Formatting Record D ––––––––––––––––––– Example {I,D,1,0,2 p } Syntax {I,D,dollar,secondary,decimals p } D1. D Indicates the Monetary Formatting record D2.
J640 Programmer’s Manual Defining the Control Characters Record E ––––––––––––––––––––– Example {I,E,"~123~063~034~124~125~126~094" p } Syntax {I,E,"ANSI_cd",string1","string2" p } E1. E Indicates the Control Characters record E2.
Chapter 7. Syntax Quick Reference Defining the Communication Settings Record F ––––––––––––––––– Changing the communication settings takes approximately two seconds to complete. Communications during this interval may be lost. Always make sure the communications values at the host match the values on your printer, or you will not be able to print formats. Example {I,F,3,0,0,0,0 p } Syntax {I,F,baud,word_length,stop_bits,parity, flow_control p } F1. F Indicates the Communication Settings Record F2.
J640 Programmer’s Manual Clearing Packets from Memory ––––––––––––––––––––––––––––––– Example {F,1,C,R p } Syntax {header,packet#,action,device p } 1. header Identifies A B F G W 2. packet# Identification number of the packet to clear (1-999) or font number (0-9999). 3. action Enter C to clear the packet. 4. device Storage device. Valid values: N R T 7-36 the packet.
Chapter 7. Syntax Quick Reference Using Font Packets –––––––––––––––––––––––––––––––––––––––––– Example {W,0,M,R p } Syntax {W,font#,action,device p } W1. W Indicates the Writable font header. W2. font# Font number from 0-9999. W3. action Options: C H M W4. device Clears all or specified fonts. Uploads Font Size information. Uploads Font Memory Usage information.
J640 Programmer’s Manual Printer Configuration Upload Packet–––––––––––––––––––––––––– Example {I,0,U p } Syntax {header,ID#,action p } 7-38 1. header Constant I 2. ID# Configuration ID (Constant 0) 3.
Chapter 8. Status Polling There are two types of Status Polling: Inquiry Request--information about the readiness of the printer ! Job Request--information about the current (or last received) job downloaded to the printer Inquiry Request (ENQ) –––––––––––––––––––––––––––––––––––––– An ENQ character acts as a request for printer status information. You can send an ENQ in front of, in the middle of, or immediately following any packet downloaded to the printer.
J640 Programmer’s Manual Inquiry Response (ENQ Response) Printer status is returned to the host in a 3-byte (3-character) sequence. The first byte is the ENQ character. The second and third bytes are printer status codes. Refer to the ENQ Reference Tables for the meaning of the response characters. Example: E AB The status codes (A and B in this case) are ASCII equivalents to the hexadecimal bits that represent the various types of status responses.
Chapter 8. Status Polling ENQ Reference Table - Byte #2 Char Const. OFF Const. ON Comp. Failure Corr.
J640 Programmer’s Manual ENQ Reference Table - Byte #2 (continued) Char Const. OFF Const. ON Comp. Failure Corr.
Chapter 8. Status Polling ENQ Reference Table - Byte #3 Char Const. OFF Const.
J640 Programmer’s Manual ENQ Reference Table - Byte #3 (continued) Char Const. OFF Const.
Chapter 8. Status Polling Job Request –––––––––––––––––––––––––––––––––––––––––––––––– A Job Request returns status information about the most recently processed print job. You can send a job request after an ENQ or batch.
J640 Programmer’s Manual Example Status2 These are errors in the syntax of the MPCL data stream. Printing does not stop, but the information may not print properly. These errors are numbered greater than 23 on the "Job Status 0, 1, 2 Response Table," later in this chapter. FMT-1/BCH-2 The format or batch number is returned. {J,8,0,"FMT-1","BCH-2"} This response indicates that a portion of the format extends off the tag in format 1, batch 2.
Chapter 8. Status Polling The following syntax is the response for a Job, 3 request. Syntax {J,"Status1 A,B","Status2 A,B,C,D,E","FMT-1","BCH-2"} "Status1 A,B" Status1 A contains the field number, in the format or batch, where an error was found. If the error is not in the format or batch, a "0" is returned. Example {J,"2,612",} In the above example, 2 is the field number where an error was found.
J640 Programmer’s Manual n Example Status2 C- Field Number represents the field number within each packet. The packet header is the first field and each subsequent field is indicted by the field separator. Status2 D- Parameter represents the parameter within the field that the error occurred. The numbering begins after the field identifier. Status2 E- Error Number is the error that coincides with the error numbers presented in Chapter 11, "Errors.
Chapter 8.
J640 Programmer’s Manual Job Status 0, 1, 2 Response Table (continued) Number 8-12 Meaning 60 Invalid thickness value 61 Invalid text field 62 Invalid bar code field 63 Data string too long 64 Invalid data field 65 Row greater than stock length 66 Row greater than format length 67 Column greater than printhead width 68 Column greater than format width 69 Invalid label length 70 Invalid label width 71 Invalid increment/decrement value 72 Identifier out-of-range 73 No field to c
Chapter 9. Creating Graphics This chapter explains how to use graphic packets in your formats to create graphic images on your tag and label designs. This chapter includes how to: ! design graphic images. ! create graphic packets. ! include graphic images in your formats. ! use Binary to Hexadecimal and Dot to Run Length charts. You can use graphic packets to create ! compliance labels ! bitmapped images.
J640 Programmer’s Manual Also, using a graphic packet for a compliance label reduces the number of fields in your format. Formats have a maximum number of fields per packet (0-99). However, you can bypass that requirement by placing your compliance layout in a graphic packet. When you process your formats, you only need one line to call the graphic packet. The following example shows how to call a graphic packet from within a format packet. { F,1,A,R,E,400,400,"RDCI" p G,57,0,0,0,0 p . .
Chapter 9. Creating Graphics Determining a Method You can use one of two methods to map out your graphic image: Hexadecimal Method The dot sequences are segmented into Binary numbers, and then converted to Hexadecimal numbers. A graphic using gray-scaling, several slanted lines, or several vertical lines typically translates more efficiently with Hex Representation.
J640 Programmer’s Manual Designing the Graphic Image ––––––––––––––––––––––––––––––––– This section describes ! how to design compliance labels. ! how to design bitmapped images. ! special considerations. ! how to map out the graphic image by the Hex and Run Length methods. ! how to store the graphic image. The information presented in this section deals with Binary and Hexadecimal numbers.
Chapter 9. Creating Graphics Designing Bitmapped Images Once you determine the encoding method to use, you can begin mapping out your graphic image. n The image that you map must be an upside down mirror image of the final result. Special Considerations In the first label, the large "M" logo and thick black line exceed the allowed black to white print ratio. In the second label, the large "M" logo does not exceed the black to white print ratio. 2.0" 2.0" .5" Exceeds limit Exceeds limit .
Creating Graphics
Creating Graphics
Creating Graphics
J640 Programmer’s Manual 9-12
Chapter 9.
J640 Programmer’s Manual 9-14
G2 GRAPH ID G A G9 NAME G8 MODE G7 COLUMN G6 ROW G5 UNITS G4 DEVICE G3 ACTION G1 HEADER Chapter 9.
Creating Graphics
Creating Graphics
Creating Graphics
J640 Programmer’s Manual 9-22
Chapter 9.
Chapter 9.
Creating Graphics
9-28 G6 ROTATION G4 COLUMN G3 ROW G5 MODE G G2 GRAPH ID G1 HEADER J640 Programmer’s Manual O O
Creating Graphics
Chapter 9.
J640 Programmer’s Manual 9-32
Creating Graphics
Creating Graphics
Creating Graphics
Chapter 10. Diagnostics This chapter explains how to print a test label, and where to find additional diagnostics information. Before you call for service, print a test label. The label contains information to help Service diagnose mechanical and setup problems. Printing a Test Label –––––––––––––––––––––––––––––––––––––––– n Before printing a test label, disconnect your printer from the host. To print a label, the printer must be in the diagnostics mode.
Diagnostics
Chapter 11. Errors This chapter provides explanations of your printer’s errors. The errors are classified by type and are listed in order from 001 to 765. If you have any questions regarding your printer, contact our National Diagnostic Center at 1-800-537-2488. n To clear an error, press the trigger. 11-1 Errors If you have trouble loading supplies or performing maintenance, refer to your J640/J641 Operator’s Handbook.
J640 Programmer’s Manual Data Errors –––––––––––––––––––––––––––––––––––––––––––––––– Errors 001 to 249 are Data Errors. These errors are returned in response to a J,3 request. Refer to Chapter 8, "Status Polling," for more information. A Data Error indicates that incorrect data was received from the host, causing the printer to ignore the entire print job. After checking the data stream and correcting the problem, transmit the print job again. The following is a list of data errors.
Chapter 11. Errors Field Errors Description 010 Field ID number is outside the range 0 to 999. 011 Field length exceeds 2710. 012 Row field position is greater than the maximum stock dimension. Refer to "Defining Text Fields" in Chapter 7 for valid row lengths. 013 Column field position is greater than the maximum stock dimension. Refer to "Defining Text Fields" in Chapter 7 for valid column widths.
J640 Programmer’s Manual 11-4 Error Code Description 021 Horizontal magnification is outside the range 1 to 7. 022 Color is defined as something other than B, D, O, R, or W. Refer to "Defining Text Fields" in Chapter 7 for more information about the valid color choices. 023 Intercharacter gap is outside the range 0 to 99. 024 Field justification is defined as something other than B, C, E, L, or R. Refer to "Defining Text Fields" in Chapter 7 for more information about field justification.
Chapter 11. Errors Description 040 Line thickness is outside the range 0 to 99. 041 Line orientation is invalid. Line box is defined as something other than 0, 90, 180, or 270. 042 End row is invalid. Line segment or box end row is defined outside of printable area. 043 End column is invalid. Line segment or box end column is defined outside of printable area. 044 Dot pattern for line or box is outside the range 0 to 8. 045 Line length is defined beyond the maximum length.
J640 Programmer’s Manual Error Code Description 107 Cut multiple is outside the range 1 to 999. Only valid for printer with a knife. 108 Multiple part supply is outside the range 1 to 5. 109 Reserved for knife usage. Valid only on printers with a knife. Option Errors 200 Option number is invalid. Number is something other than 1, 2, 3, 4, 5, 20, 30, 31, 40, 41, 42, 43, 50, 51, 52, 60 or 61. 201 Copy length is outside the range 0 to 2710. 202 Copy start position is outside the range 0 to 2709.
Chapter 11. Errors Description 210 Security value for a PDF417 bar code is outside the range 0 to 8. Correct the value and resend the format to the printer. 211 Narrow element value is less than 2 or greater than 99. Correct the value and resend the format to the printer. 212 Wide element value is less than 2 or greater than 99. Correct the value and resend the format to the printer.
J640 Programmer’s Manual Error Code Description 217 Input device is invalid. Valid options: D H K N S 218 Default Host Keyboard None Scanner Pad direction is invalid. Valid options: L R From Left From Right 219 Pad character is outside the range 0 to 255. 220 Check digit selection is invalid. Must contain G to generate check digit. 221 Primary or secondary price format is outside the range 1 to 6. 222 Data type restriction is outside the range of 1 to 6.
Chapter 11. Errors Description 252 Language selection is invalid. 0 is the only valid option. Refer to Chapter 5, "Configuring the Printer," for more information. 253 Batch separator code is invalid. Must be 0 or 1. 254 Slash zero selection is invalid. Must be 0 or 1. 255 Supply type is invalid. Must be 0 or 2. Refer to Chapter 5, "Configuring the Printer," for more information. 256 Ribbon selection is invalid. Must be 0 or 1. Refer to Chapter 5, "Configuring the Printer," for more information.
J640 Programmer’s Manual Error Code Description 265 Monetary decimal places are outside the range 0 to 3. 266 Character string length is invalid. Must be 5 or 7. 267 Baud rate selection is invalid. Must be 0, 1, 2, 3, or 4. Refer to Chapter 5, "Configuring the Printer," for more information. 268 Word length selection is invalid. Must be 0, or 1. Refer to Chapter 5, "Configuring the Printer," for more information. 269 Stop bits selection is invalid. Must be 0, or 1.
Chapter 11. Errors Error Code Description 284 Call Pitney Bowes Service. 285 Call Pitney Bowes Service. 286 The buffer size is invalid. Call Pitney Bowes Service. 287 The supply width is invalid. Options: 0 to 99 Packet Errors ––––––––––––––––––––––––––––––––––––––––––––––– 310 Check digit scheme number is invalid. Valid numbers are 1 to 10 only. 311 Modulus is invalid. Valid numbers are 2 to 11 only. 314 Check digit algorithm is defined as something other than D or P.
J640 Programmer’s Manual Parser Errors ––––––––––––––––––––––––––––––––––––––––––––––– Errors 400 to 408 are parser errors. These errors occur when the packet cannot be parsed. Check the syntax of your packet and transmit the print job again. 11-12 Error Code Description 400 The character immediately following { is invalid. 401 Internal software failure. Call Pitney Bowes Service. 402 Field separator is not in the expected location. 403 Field separator was not found.
Chapter 11. Errors Communication/ Hardware Failures ––––––––––––––––––––––––––– Errors 409 to 415 are usually caused by a hardware failure, by an incorrect SETUP option or by the host ignoring flow control (XON/OFF, CTS/RTS or DTR). n The valid options for printer Port Settings are shown below. The default values are shown in bold.
J640 Programmer’s Manual Error Code Description 412 There is a problem with flow control between the printer and the host. Make sure the printer and the host parity settings match (both are DTR or both are Xon/Xoff). If the error persists, call Pitney Bowes Service. 413 Online receive queue is full. Check your printer’s XON/XOFF or DTR SETUP values to be sure there is not a flow control problem. Buffer Errors 414 Internal keyboard buffer is full. Call Pitney Bowes Service.
Chapter 11. Errors Description 424 Item in use. Record the error, then press the trigger and try to continue. If the error reappears, call Pitney Bowes Service. 425 Item already checked out. Record the error, then press the trigger and try to continue. If the error reappears, call Pitney Bowes Service. 426 Item not checked out. Record the error, then press the trigger and try to continue. If the error reappears, call Pitney Bowes Service. 427 Format name is invalid.
J640 Programmer’s Manual Data Formatting Failures –––––––––––––––––––––––––––––––––––– Errors 570 to 599 are data formatting errors. These errors indicate that a field will print incorrectly. After you have checked the data stream and corrected the data, retransmit the batch. n 11-16 For errors 571-614, the batch will still print, but the field, font, bar code, or density may be incomplete, missing or contain incorrect data. Error Code Description 571 UPC or EAN bar code data length is invalid.
Chapter 11. Errors Imaging Errors ––––––––––––––––––––––––––––––––––––––––––––– Errors 600 to 699 are imaging errors. These errors occur when the printer cannot image the tag or label. Check your format and transmit the print job again. Description 600 An imaging error occurred because the batch was refused. Call Pitney Bowes Service. 601 An error occurred while the batch was imaging. Call Pitney Bowes Service. 602 The batch was not found during imaging. Call Pitney Bowes Service.
J640 Programmer’s Manual Machine Faults ––––––––––––––––––––––––––––––––––––––––––––– Errors 700 to 765 occur when there is a problem with the printer. Call Pitney Bowes Service. Error Code Description 700 An error is pending and the printer cannot continue with the batch. Press the trigger and try to continue printing. If the error continues to appear, call Pitney Bowes Service. 701 Printer received a command that it cannot execute while it is running. Press the trigger and try to continue printing.
Chapter 11. Errors Description 750 Printhead is overheated. Turn the printer off to let the printhead cool. If the error persists, call Pitney Bowes Service. 751 Printer did not sense a black mark when expected. For errors 751-753, Check the ! supply tracking ! supply marks ! black mark sensor position ! supply roll for binding. Errors n Error Code Press the trigger and try to continue printing. If the error continues to appear, change the supply.
J640 Programmer’s Manual 11-20 Error Code Description 758 Check Supply. Either the on-demand sensor is broken, the supply is not seen, or you have a continuous unit set to on-demand mode. Adjust the on-demand sensor so it is over a white area on the supply, or set the unit to continuous mode. This message may also appear on printer models that do not have the rewind capability. 759 Knife is not moving. Valid only on printers with a knife. 760 Knife jam. Valid only on printers with a knife.
Appendix A. Samples This appendix contains sample formats and labels. You can customize any of these formats and labels to meet your needs.
J640 Programmer’s Manual A-2
Samples
Appendix A.
Appendix A.
J640 Programmer’s Manual A-8
Appendix B. Fonts This appendix contains information you need to work with fonts. Standard Fonts ––––––––––––––––––––––––––––––––––––––––––––– Your printer comes with these fonts loaded in ROM: Number Appearance Type of Spacing 1 Standard Monospaced 2 Reduced Monospaced 3 Bold Monospaced 4 OCRA-like Monospaced 10 CG Triumvirate Bold Proportional 11 CG Triumvirate Proportional Refer to the following pages for illustration of these fonts.
J640 Programmer’s Manual B-2 Standard Font Reduced Font Bold Font OCRA-like Font
Appendix B.
Fonts
Fonts
Fonts
Appendix C. Symbol Sets/Code Pages Supported Symbol Sets and Code Pages –––––––––––––––––––––––– The printer supports these symbol sets and code pages: ! Internal Symbol Set ! ANSI Symbol Set ! DOS Code Page 437 ! DOS Code Page 850 C-1 Symbol Sets/Code Pages This appendix contains a listing of the symbol sets and code pages the printer supports. The extended characters available within these symbol sets and code pages are also listed.
J640 Programmer’s Manual Selecting a Symbol Set or Code Page –––––––––––––––––––––––––– The printer defaults to the Internal symbol set. You can change the symbol set by changing the symbol set parameter in Record A. Refer to Chapter 5, "Configuring the Printer," for more information.
Appendix C. Symbol Sets/Code Pages Internal Symbol Set ––––––––––––––––––––––––––––––––––––––––– Char. Code Char. Code Char. 128 Ç 151 û 174 « 129 ü 152 ÿ 175 » 130 é 153 Ö 176 I 131 â 154 Ü 177 $ 132 ä 155 ¢ 178 £ 133 à 156 £ 179 ¥ 134 å 157 ¥ 180 135 ç 158 Pt 181 F 136 ê 159 ƒ 182 P 137 ë 160 á 183 L.
J640 Programmer’s Manual C-4
Appendix C.
J640 Programmer’s Manual C-6
Appendix D. Daily Procedures This chapter provides some suggestions for creating procedures for your operators. Daily Startup Checklist ––––––––––––––––––––––––––––––––––––– You may want to design a checklist for operators to follow each day. Here are a few suggested checklist items: Turn the host on. Turn the printer on. Make sure ribbon and supplies are loaded. Download packets from the host to the printer. You may want to keep records of supplies that have been printed.
J640 Programmer’s Manual Creating DOS Batch Files for Downloading ––––––––––––––––––– If you are downloading from an MS-DOS system, you can create batch files to set communication values and download formats. It is a good idea to create a subdirectory to hold your format files. Here is a DOS batch file that sets a serial port, changes to a subdirectory, and downloads a check digit file, format file, and batch data file. MODE COM1: 2400,N,8,I,P CD\PITNEY BOWES\COPY LABEL1.CDS COM1 COPY LABEL1.
Appendix E. Format Design Tools Use copies of these worksheets and grids to create formats, batch data, and check digit schemes.
E-2 JOB REQUEST STATUS REQUEST F FLOW CONTROL PARITY STOP BITS WORD LENGTH BAUD HEADER HEADER DECIMALS SECONDARY DOLLAR SUPPLY POSN FEED MODE RIBBON ON SUPPLY TYPE HEADER SUPPLY SETUP SYMBOL SET SLASH ZERO SEPARATOR LANGUAGE ONLINE MODE HEADER SYSTEM SETUP HEADER ONLINE HEADER A IMMED. COMMAND WIDTH ADJUST SPEED ADJUST MARGIN ADJUST MONETARY FORMATTING C DATA ESCAPE END OF TRANSMISSION FIELD SEPARATOR CHAR.
FIELD # DATA B E E5 MULTI-PART C C C C C C C C C C C C C C 0 C 0 E6 CUT-TYPE DATA Batch Worksheet –––––––––––––––––––––––––––––––––––––––––––––––––––––––– BATCH DATA B1 HEADER B2 FORMAT # B3 NEW / UPDATE B4 QUANTITY E1 HEADER E2 FEED-MODE E3 BATCH-SEP E4 PRINT-MULT BATCH CONTINUATION E7 CUT-MULT
A A1 HEADER A A A1 HEADER R A1 HEADER A5 MODULUS A6 LENGTH A7 ALGORITHM A6 LENGTH A7 ALGORITHM A6 LENGTH A7 ALGORITHM A7 ALGORITHM A4 DEVICE A3 ACTION A2 SELECTOR # WEIGHTS A8 A6 LENGTH R A5 MODULUS R WEIGHTS A8 A5 MODULUS A4 DEVICE A3 ACTION A2 SELECTOR # R WEIGHTS A8 A5 MODULUS A4 DEVICE A3 ACTION A2 SELECTOR # A A4 DEVICE A3 ACTION A2 SELECTOR # A1 HEADER Check Digit Worksheet –––––––––––––––––––––––––––––––––––––– WEIGHTS A8
Appendix E. Format Design Tools Non-Print Zone ––––––––––––––––––––––––––––––––––––––––––––– The following table lists the non-print zone for your printer. Top .04 inches 10.2 mm 7.68 dots Bottom .06 inches 15.2 mm 11.5 dots Left .05 - .11 inches 12.7 - 28 mm 9.6 - 21.1 dots Right 05 - .11 inches 12.7 to 28 mm 9.6 - 21.
J640 Programmer’s Manual E-6
Index A ––––––––––––––––––––––––––––– B ––––––––––––––––––––––––––––– bar code changing density 7-21 defining aspect ratios 7-23 defining densities 7-21 density 7-6 density table 1-23 field 1-2, 1-8 field alignment 1-27, 7-7 field defining 1-19 £ 1-27 field number 1-19 field number of characters 1-20 field pivot point 1-20 field syntax 7-6 £ 7-7 height 1-26 human readable characters 1-26, 7-7 PDF417 options 7-23 selector 1-23 batch control example 7-27 C––––––––––––––––––––––––––––– calling for service 10
J640 Programmer’s Manual number of 1-11, 1-20, 7-4, 7-6, 7-9 pad 2-9 positions 2-6 rotation 1-16, 1-35, 7-4, 7-10 spacing 1-14, 1-31, 7-4, 7-10 width 1-12, 1-33 chart hexadecimal conversion 9-34 run length conversion 9-38 check digit 2-10, 7-19 adding 7-29 clearing 7-29 field 7-29 modulus 7-29 schemes 2-10, 3-1, 3-3, 3-5 selector number 7-29 syntax 7-29 weights 7-29 worksheet E-4 £ E-5 checking the software version 10-1 checklist syntax 7-3, 7-27 clear check digit scheme 7-29 packet 5-22 code pages C-1 437
Index batch data 4-1, 4-3, 4-5 preparing batches for 4-1 E ––––––––––––––––––––––––––––– EAN bar codes 7-19 end point box 7-15 line 7-13 English measurement 7-3 ENQ 8-1 reference table 8-3, 8-5 entering batch data 4-1, 4-3, 4-5 errors 8-11 £ 8-13 about 11-1 communication 11-13 £ 11-14 data 11-2 £ 11-11 data format failure 11-15 £ 11-16 machine faults 11-17 £ 11-18 establishing daily procedures D-1 £ D-2 F ––––––––––––––––––––––––––––– field 7-2 alignment 7-4, 7-7 bar code 1-2, 7-6 £ 7-7 batch control 4-3
J640 Programmer’s Manual non-printable text 1-2, 1-29, 7-2, 7-9 number 1-11, 1-19, 7-4, 7-6, 7-9 number of characters 1-11 options 2-1 £ 2-18, 7-16 £ 7-25 options definitions 2-2 order of 1-11 padding 2-9 price 2-11, 7-19 reimaging 2-18, 7-25 rotation 1-27, 1-36, 7-4, 7-7 source 7-17 text 1-2, 1-11, 1-15, 1-34, 7-4 text defining 1-11 types 1-8 variable length 1-11 width 1-12 field color attributes 1-15, 1-34, 7-5 field reference corner 1-10 field rotation 1-17, 1-28 fields merging 2-5 £ 2-8 file 7-1 £ 7-38
Index supply layout 1-5 worksheet E-5 H ––––––––––––––––––––––––––––– I –––––––––––––––––––––––––––––– immediate commands 5-18 table 5-19 including compliance label 9-28 graphic image 9-28 incrementing 2-16 £ 2-17 data entry 2-17 incrementing fields 7-24 batch data 4-5 inquiry 8-1 interface definition 5-16 J –––––––––––––––––––––––––––––– job status 8-1 table 8-11 £ 8-13 L ––––––––––––––––––––––––––––– layout grid 1-5, 1-10 length bar code field 7-6 fixed 1-11 lines 7-13 supply 1-10, 7-3 text field 7-4
J640 Programmer’s Manual N ––––––––––––––––––––––––––––– new batch 7-26 £ 7-27 non-printable text fields 1-2, 1-8, 7-2 defining 1-29 syntax 7-9 number field 1-11 number of characters 1-11, 1-20, 7-4, 7-6, 7-9 O ––––––––––––––––––––––––––––– online communication requirements 5-2 configuration 5-1 configuration control 5-5 online configuration worksheet E-2 opaque explanation 1-15, 1-34 field color attribute 2-18 overlay 1-15 reimage field 2-18 operator instructions D-1 operator prompt 2-8 options field 2-1
Index S ––––––––––––––––––––––––––––– sample compliance packet A-3 compliance label 9-31 compliance label overlay 9-21 format A-1 hex graphic packet 9-23 run length graphic packet 9-25 zero batch packet A-6 sample formats A-3 £ A-4, A-6 £ A-8 segments line 1-39 £ 1-40, 1-42 segments, line 1-37, 7-13 selector bar code 1-23 serial numbers 2-16 £ 2-17, 9-1 service, calling for 10-1, 10-3, 10-5 setting supply parameters 5-7 soft fonts B-1 £ B-2 software version 10-1, 10-3, 10-5 checking 10-1 source field 2-5
J640 Programmer’s Manual checklist 7-3, 7-27 example 7-3 Record A 7-31 Record B 7-32 Record C 7-33 Record D 7-34 Record E 7-35 Record F 7-36 reference 7-1 £ 7-38 T ––––––––––––––––––––––––––––– table bar code density 1-23 ENQ reference 8-3, 8-5 hexadecimal conversion 9-34 immediate commands 5-19 job status 8-11 £ 8-13 temporary storage 7-3, 9-11 constant 9-20 test label printing 10-1, 10-3, 10-5 printing 10-1 text alignment 1-16, 1-33, 1-35, 7-4, 7-10 constant 7-10 defining 1-15, 1-34 field 1-2, 1-8 field
Printed in U.S.A.