Intermec PX4i Intermec Direct Protocol 8.60 Programmer's Reference Manual
Intermec PX4i Manual
View all Intermec PX4i manuals
Add to My Manuals
Save this manual to your list of manuals |
Intermec PX4i manual content summary:
- Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 1
Programmer's Reference Manual Intermec Direct Protocol v8.60 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 2
the part of Intermec Technologies Corporation. © 2005 by Intermec Technologies Corporation. All rights reserved. The word Intermec, the Intermec are either trademarks or registered trademarks of Intermec Technologies Corporation. Throughout this manual, trademarked names may be used. Rather - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 3
Direct Protocol v8.00. Describes Intermec Direct Protocol v8.10. Describes Intermec Direct Protocol v8.20. Describes Intermec Direct Protocol v8.30. Describes Intermec Direct Protocol v8.40. Describes Intermec Direct Protocol v8.60. Intermec Direct Protocol v.8.60-Programmer's Reference Manual iii - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 4
Field-Related Formatting Instructions 11 2.8 Layout Instructions 12 2.9 Printable Data Instructions 12 2.10 Feeding and Printing Instructions 12 2.11 Setting Up the Printer 13 2.12 Reading the Printer's Status 14 2.13 File-Handling Instructions 14 2.14 Syntax Descriptions 15 3 Label Design - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 5
Contents 3.8 Layout Instructions 37 3.9 Printable Data Instructions 39 4 Feeding & Printing Instructions 4.1 Media Feed 46 4.2 Label Printing 48 4.3 Batch Printing 49 5 Setting Up the Printer 5.1 Enabling/Disabling Direct Protocol 54 5.2 Selecting Standard IN/OUT Channel 54 5.4 Selecting - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 6
8.3 XMLReady™ Printing 84 9 Character Sets and Fonts 9.1 Character Sets 86 9.2 Resident Fonts 110 A Error Messages Table of Error Messages 112 B Reference Lists Instructions in Alphabetic Order 116 Instruction Syntax List 121 vi Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 7
the end of this manual for lists of the various instructions in the Intermec Direct Protocol. We recommend that you have the following manuals accessible: • The User's Guide for the printer model in question. • This Programmer's Reference Manual. • Intermec Fingerprint v.8.60, Programmer's Reference - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 8
Contents viii Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 9
how to connect the printer to a computer using the serial interface, switch on the printer, use Intermec Shell to select the Direct Protocol, and how to check that the communication between printer and the host computer is working. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 1 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 10
ample supply of media (that is, paper or similar) and, in case of thermal transfer printing, of thermal transfer ribbon. Also check that the printer is set up accordingly in regard of media size, media type, and paper type. Refer to the User's Guide for setup and loading instructions. 2 Intermec - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 11
5 sec. v.8.2 This menu indicates that the printer is fitted with the Intermec Shell startup program. Before the 5 seconds countdown is completed, you should take action as to select the Intermec Direct Protocol by means of Intermec Shell as described in the User's Guide. Should you fail to take any - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 12
it has been entered correctly. When you press the "Carriage Return" key the third time, the printer will feed out a label, ticket, tag, or piece of continuous stock with the text printed in the lower left corner of the printable area. ABCDEFGHIJKLM You can try using other characters between the - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 13
and shows how to send instructions to the printer. Finally, it provides a quick overview of the instructions used for various purposes in the Direct Protocol. These are explained more comprehensively in the chapters that follow. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 5 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 14
Print key to produce printouts. • By default, verbosity is off in the Intermec Direct Protocol. While you develop your Direct Protocol files, we recommend setting the verbosity to ON using a SYSVAR (18) instruction, see Chapter 5.15. 6 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 15
work in the Intermec Direct Protocol: COUNT& ERROR FORMAT INPUT INPUT ON|OFF LAYOUT END LAYOUT INPUT LAYOUT RUN PRINT KEY ON|OFF 2.4 Sending Instructions The Intermec Direct Protocol allows you to send instructions to the printer in two ways: • You can send instructions that the printer will act - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 16
eld) (insertion point for text field) (select font for text field) (input data to text field) (print one label) A label looking like this should be printed regardless if you use a continuous string or send the instructions line-by-line: 8 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 17
(variable input data to VAR1$) My FIRST label ↵ (variable input data to VAR2$) (end of input data, ASCII 04 dec) PF ↵ (print one label) This should produce a label looking exactly like the one shown on the previous page. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 9 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 18
printing labels using layout and printable data in one sequence, the predefined layout must first be cleared from the printer's working memory using the instruction: LAYOUT RUN "" 2.5 Fields The printable information on a label • A line 2.6 General Formatting Instructions Any type of field should be - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 19
printer's clock/calendar. In the Intermec Direct Protocol, you can either specify the fields both in regard of formatting parameters and input data in the same string, or you can create a layout to which you can send variable data later. Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 20
special instructions Printing one label or a batch of labels (or similar) • Activating an optional paper cutter • Speeding up batch printing • Reprinting lost labels after interruption of batch print jobs • Enable/disable reprinting 12 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 21
• Restart the printer • Select verbosity level • Select type of error message • Enable error handling and create customized error messages • Select method for breaking the printing of a batch of labels • Change the printer's setup Intermec Direct Protocol v.8.60-Programmer's Reference Manual 13 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 22
date and time • Memory status • Printhead status and characteristics • Value of various system counters • Status of various sensors and straps • Software and hardware version 2.13 File-Handling Instructions A number of instructions are used to control the printer's memory, for example to: • Read - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 23
space characters are indicated by double-headed arrows ( ↔ ). • Square instructions are described in as simple terms as possible. Complete syntax descriptions and comprehensive information on each instruction can be found in the Intermec Fingerprint v.8.60, Programmer's Reference Manual. Intermec - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 24
Chapter 2-Principles of Operation 16 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 25
3 Label Design This chapter describes how a label layout is made up of various types of fields and explains the instructions used for creating each type of field. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 17 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 26
Chapter 3-Label Design 3.1 Field Types A label layout is made up of a number of fields. There are restrictions, other than the size of the memory, regarding the number of fields on a single label. Bar Code Field (w. interpretation) This is a multiline text field with line-wrap and hyphenation Image - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 27
determined by the Feed adjustment in the setup (and any FORMFEED instruction executed before the current PRINTFEED instruction or after the when facing the printer) and the Y-axis runs along the media path from the printhead and back towards the media supply. Units of Measure The unit of measure is - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 28
Default value: Reset to default by: is a number 1-9 1 PRINTFEED (PF) Example: AN 1 ↵ This instruction will place the lower left corner of the text field at the insertion point specified by PRPOS. Refer to the illustration below, and to the Intermec Fingerprint v.8.60, Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 29
Chapter 3-Label Design Intermec Direct Protocol v.8.60-Programmer's Reference Manual 21 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 30
Chapter 3-Label Design In case of multi-line text fields, the alignment will not only decide the anchor point of the followed by No. 4. ALIGN 1 This is line number 1 and this is line 2 and now comes line 3 followed by No. 4. ALIGN 3 22 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 31
3-Label Design Directions Intermec Direct Protocol allows printing in four different directions. You can rotate the printable object clockwise around the anchor point/insertion point with a 90° increment (0°, 90°, 180°, or 270°) using a DIR instruction: DIR Default: Reset - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 32
↵ AN 6 ↵ PT "INTERMEC PRINTERS" ↵ PF ↵ XOR Mode The instruction XORMODE controls how intersecting fields will be printed. At XORMODE OFF (default), the intersection will be black, and at XORMODE ON, the intersection will be white. 24 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 33
the following instructions: Select Font The FONT instruction specifies the typeface, size, slant, and width of the simgle-byte Unicode font to be printed. The printer may contain various "Swiss 721 BT" "Swiss 721 Bold Condensed BT" Intermec Direct Protocol v.8.60-Programmer's Reference Manual 25 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 34
the background is decided by the character cell. A NORIMAGE instruction is only needed when changing back from INVIMAGE printing. NORIMAGE | NI INVIMAGE | II Default: Reset to default by: NORIMAGE. PRINTFEED (PF) NORIMAGE INVIMAGE 26 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 35
3-Label Design Summary To create a text field, the following formatting instructions must be given (in most cases default values may substitute missing parameters). Input data to the field and printing instructions are explained in Chapters 3.9 and 4.2 respectively. Purpose Instruction Default - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 36
Chapter 3-Label Design 3.4 Bar Code Field The Intermec Direct Protocol supports 53 of the most common bar code symbologies. Each bar code (optionally including its human readable interpretation) makes up a bar code field. In addition to the general formatting instructions PRPOS, ALIGN, and DIR (see - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 37
Chapter 3-Label Design EAN 128 subset A EAN 128 subset B EAN 128 subset C EAN "PLESSEY" "POSTNET" "QRCODE" "RSS14" "RSS14T" "RSS14S" "RSS14SO" "RSS14L" "RSS14E" "RSS14ES" "C2OF5" "ADDON2" "UCC128" "SCCADDON" "UPCA" "UPCA_CC" "UPCD1" Intermec Direct Protocol v.8.60-Programmer's Reference Manual 29 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 38
also affects interpretations that are integrated in the code, for example EAN and UPC codes. BARMAG | BM Default: Reset to default by: is the enlargement of the bar code pattern. 2 PRINTFEED (PF) 30 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 39
position as shown in the figure (default:0 meaning disabled) � � � Offset in the bar code direction from the insertion point. Offset in the bar code height direction from the insertion point. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 31 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 40
3-Label Design enables printing of bar code interpretation (default: OFF) All parameters reset to default by PRINTFEED (PF) Bar code interpretation printing can also be enabled or disabled using these instructions: BARFONT ↔ON | BARFONT↔OFF[,] BF ↔ON | BF↔OFF[,] By default - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 41
instructions: Select an Image An image is selected by the full name under which it is stored in the printer's memory, either as plain text or as a variable (also see Chapter 3.9). PRIMAGE | PM "" Default . Intermec Direct Protocol v.8.60-Programmer's Reference Manual 33 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 42
printing instructions are explained in Chapters 3.9 and 4.2 respectively. Purpose Instruction Default parts inversed Normal (revokes INVIMAGE) Full name incl. extension Example: PP 200,500:AN 3:DIR 3:MAG 2,2:II:PM "GLOBE.1" ↵ 34 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 43
Box size Instruction PP (PRPOS) AN (ALIGN) DIR PX (PRBOX) Default Remarks 0/0 Number of dots 1 Select ALIGN 1-9 1 Select DIR 1-4 n.a. Height, width, and line thickness (dots) Example: PP 250,250:AN 1:DIR 3:PX 200,200,10 ↵ Intermec Direct Protocol v.8.60-Programmer's Reference Manual 35 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 44
Alignment Direction Line size Instruction PP (PRPOS) AN (ALIGN) DIR PL (PRLINE) Default 0/0 1 1 n.a. Remarks Number of dots Select ALIGN 1-9 Select DIR 1-4 Length and thickness (dots) Example: PP 100,100:AN 1:DIR 4:PL 200,10 ↵ 36 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 45
Label Design 3.8 Layout Instructions Start Layout Recorder The LAYOUT INPUT instruction clears the printer's working memory, starts the layout recorder, and allows you to assign a name and a device to the layout. The layout should be created in the printer PT VAR1$ ↵ PT "Price: ";VAR2$ ↵ PB VAR3$ - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 46
LAYOUTEND instruction. The layout could then be copied to the printer's permanent memory ("/c") so it will not be deleted when the power is switched off. LAYOUT END Example: LAYOUT END ↵ COPY "tmp:Shipping Label","/c/Shipping Label" ↵ 38 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 47
separator. By default, the following separators should be used: • Start separator: STX (ASCII 02 dec) • Field separator: CR (ASCII 13 dec) • End separator: EOT (ASCII 04 dec) All separators can be changed at will using a FORMAT INPUT instruction, see Chapter 5.5. Intermec Direct Protocol - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 48
using a predefined layout and you want to return to the method of printing labels using layout and printable data in one sequence, the predefined layout must first be cleared from the printer's working memory using the instruction: LAYOUT RUN "" Input Data to Single- and Multi-Line Text Fields The - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 49
and between each text line (-100 to +100 dots). Default: 0. is a string used to replace the default carriage return or line feed character. is a string for hypenation control, see Intermec Fingerprint v.8.60, Programmer's Reference Manual. The height, width, and line thickness parameters are the - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 50
PRBAR instruction. The different parts are instructions in the form of a variable. CNT$ is the number is assigned to the counter in the COUNT& instruction. Example: PT "Label number: ";CNT1$ ↵ PB CNT2$ ↵ 42 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 51
3-Label Design Input Data from the Printer's Clock/Calendar The printer's clock/calendar can be used to provide input data to text and bar code fields by including any of the following instructions in the PRTXT, PRBOX, or PRBAR instructions: DATE$ Returns the current date according to the printer - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 52
be specified in the standard format"YYMMDD"or by a DATE$instruction. By default, the week number is calculated according to ISO 8601, but there are 14 other methods (see Intermec Fingerprint v.8.60, Programmer's Reference Manual). Examples: PT WEEKNUMBER("031201") ↵ PT WEEKNUMBER(DATE$) ↵ DATEADD - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 53
4 Feeding & Printing Instructions This chapter describes the various instructions used for controlling the media feed and the printing of labels. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 45 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 54
ve different Media Type options (also see the User's Guide of the printer): • Label (w gaps) • Ticket (w mark) • Ticket (w gaps) • Fix length strip • Var length strip When a FORMFEED, TESTFEED, or PRINTFEED instruction is executed, the photoelectric label stop sensor (LSS) detects the forward edge of - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 55
objects like a space character or the transparent part of an image also are included in the print image. The Detection setup allows you to perform two global adjustments to the media feed described above: • Start Adjust • Stop Adjust By default, both these two parameters are set to 0, which - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 56
heating of the printhead dots as the media is fed past them. Each PRINTFEED instruction produces one single copy or, optionally, a batch of labels, tickets, tags, or pieces of continuous stock. PRINTFEED | PF [] Default: specifies the number of copies to be printed. 1 The - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 57
certain errors have occurred. clears image buffers from the corresponding FIELDNOinstruction to the end of the label and is used in connection with print repetition when only part of the label should be modified between the copies. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 49 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 58
fined layout and you want to return to the method of printing labels using layout and printable data in one sequence, the predefined layout must first be cleared from the printer's working memory using the instruction: LAYOUT RUN "" 50 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 59
3. Note: After an error in a batch print job, check for possible duplicate labels. Prevent Reprinting It is possible to prevent reprinting of a print job using the following instruction: REPRINT ON|OFF ON OFF enables reprinting (default) disables reprinting Intermec Direct Protocol v.8.60 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 60
Chapter 4-Feeding & Printing Instructions 52 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 61
5 Setting Up the Printer This chapter describes how to use various instructions to set up the printer. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 53 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 62
verbosity to off. The message "Direct Protocol 8.60" appears in the printer's display. To return from the Intermec Direct Protocol to the Immediate Mode, use this instruction: INPUT OFF Reception of data to layouts are disabled, the error-handler is turned off and the verbosity is reset to the level - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 63
. Example: TIME$ = "131548" ↵ The formats for printing dates and time in connection with DATE$("F"), DATEADD$("F"), TIME$("F"), and TIMEADD$("F"), see Chapter 3.9, can be specified by the instructions FORMAT DATE$ and FORMAT TIME$. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 55 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 64
) Default: instructions that allow you to assign names in any language to months and weekdays: NAME DATE$,"" is 1-12. is the desired name enclosed with quotation marks. 56 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 65
or ENQ/ACK, which may interfere with the communication between printer and host. You must first leave the Intermec Direct Protocol by means of an INPUT OFF instruction, change the separators using a FORMAT INPUT instruction, and then enter the Intermec Direct Protocol again by means of an INPUT ON - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 66
Up the Printer 5.6 Creating Counters You can create a number of counters for use in text and bar code fields, where each counter is specified by a CNT$ instruction, see Chapter 3.9. The counters are global, which means that the same counter can be used in many different labels and - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 67
label has been removed. This facility is especially useful for batch printing. You can enable or disable this function by means of the following instruction. By default, LTS is disabled. LTS& ON | OFF 5.8 Enabling/Disabling Automatic Cutting Some printers can, as an option, be fitted with a paper - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 68
5.9 Enabling/Disabling the Print Key All printers have a key on its front panel, usually labelled "Print", which can be used to initiate a PRINTFEED operation. You can enable or disable this function by means of the following instruction. By default, the key is disabled. PRINT KEY ON | OFF - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 69
come in binary form via the standard IN channel (by default "uart1:"). Characters are transmitted in ASCII format, which upon reception will be preprocessed by the printer's firmware according to possible MAP instructions. The MAP instruction is used to modify a character set, or to filter out - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 70
how the various characters will be printed. This instruction makes it possible to adapt the printer to various national standards, see Chapter 9. NASC is one of the following numbers: 1: Roman 8 (default) -1: PCMAP 33: French -2: ANSI 34: Spanish - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 71
has not been saved to the permanent memory, will be deleted and the buffers will be emptied. REBOOT Note: Counters, time and date formats, separators, and error messages will be lost and a number of instructions will be reset to default. 5.15 Setting the Verbosity Level The verbosity level controls - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 72
the text in the lower line. Examples: ERROR 1010,"HARDWARE ERROR"↵ ERROR 1029,"PRINTHEAD↔VOLT-↔↔AGE↔TOO↔HIGH"↵ The following error conditions are always handled without having to be activated by an ERROR instruction: Font not found (error 15) Printer beeps and message is shown. Press any key - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 73
of ribbon (error 1027) A message is shown in the display. The printer waits for a ribbon load. If the error stopped a print operation, the operation must be restarted. Label not found (error 1031) Printer beeps and message is shown. The printer perform formfeeds as long as the error remains - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 74
break the printing, if for example an error should be detected. You can break the printing either via any serial communication channel or from the printer's built-in keyboard (if any). By default, a break instruction + Shift 158 66 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 75
the BREAK instruction. Communication channels disabled Keyboard enabled 5.19 Changing the Printer's Setup The basis for how the printer works is the setup in the Setup Mode. There are several ways to change the setup: • Manually using the printer's built-in keyboard, see the "User's Guide" manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 76
,LABEL↔OFFSET,nnn" "MEDIA,PAPER↔TYPE,TRANSFER,LOW↔DIAMETER,nnn" "MEDIA,CONTRAST,-10%|-8%|-6%|-4%|-2%|+0%|+2%|+4%|+6%|+8%|+10%" "MEDIA,PAPER, LOW ↔DIAMETER,nnn" "MEDIA,PAPER, TESTFEED↔MODE,FAST|SLOW" "MEDIA,LEN(SLOW↔MODE),nn" "PRINT↔DEFS,PRINT↔SPEED,nnn" "PRINT↔DEFS,LT↔VALUE,nn" 68 Intermec - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 77
and FORMFEED. Default is 1 mm/0.039 inches (8 or 12 dots depending on printhead density). 5.22 Overriding Media Feed Setup The LBLCOND instruction allows you to override the media feed setup, switch off the label stop/black mark sensor (LSS), or to select mode for controlling the printing of very - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 78
, only the part of the print image that fits on the label or ticket will be printed and the remainder will be ignored. This means that some of the print image may not be printed at all, but the following labels will not be affected. 70 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 79
6 Reading the Printer's Status This chapter describes the various methods and instruction that enables the programmer to read how the printer is set up. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 71 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 80
to the host must be selected standard IN/OUT channel (default, see SETSTDIO instruction in Chapter 5.2). 6.2 Returning Information to the Host The PRINT instruction reads the printer's status as specified by a complementary instruction and returns the result on the standard OUT channel to the - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 81
5.16) returns printer's paper type setup: 0= Direct thermal or 1= Thermal transfer returns status of the ribbon end sensors: 0=No ribbon or 1=Ribbon returns status of the ribbon low sensor: 0=Ribbon OK or 1=Ribbon low returns status of the paper low sensor: 0=Media OK or 1=Media low Intermec Direct - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 82
ribbon (returns 0 if DT) printer voltage too high printer is feeding RESERVED printer out of media Parameters can be combined, for example checks for both "printhead lifted" and "label not removed" conditions. The printer will either return 1 (=yes) or 0 (=no). The version of the Intermec - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 83
7 File Handling This chapter explains how to read the contents in the various parts of the printer's memory and how to remove, copy, and download files. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 75 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 84
of all files in the printer's permanent memory or optionally in some other specified part of the memory. Information on Intermec Fingerprint v.8.60 Programmer's Reference Manual): KILL ""|"" The file name must correspond exactly to the name returned by a FILES instruction - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 85
printer's permanent memory using a single instruction. Before the transfer can be performed, deleted at power off or reboot. The printer waits for the specified number of bytes to be received with a 25 seconds timeout between characters. Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 86
Chapter 7-File Handling 78 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 87
on how to use complex two-dimensional bar code symbologies and international character sets including double-byte fonts. Please refer to the Intermec Fingerprint v.8.60, Programmer's Reference Manual for comprehensive descriptions and examples. Intermec Direct Protocol v.8.60-Programmer's Reference - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 88
fies height of bars in dots (default 100) - are bar code specific. Only used in some complex codes. See the Fingerprint Programmer's Reference Manual for more information on how these param- eters affect specific bar codes. 80 Intermec Direct Protocol v.8.60-Programmer's Reference - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 89
. Even compound data, such as... PRTXT "Label No.";CNT1$;" Date ";DATE$("F") ...is expanded by the printer into a single ASCII string before any other the printer's firmware. • Double-byte mappings, which map pairs of ASCII characters to unicodes. The Intermec Direct Protocol v8.60 supports these - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 90
the characters in points (a point is a standard typographic unit, equal to 1/72 inches) the italic angle of the characters in degrees; a positive value slants the characters clockwise away from the vertical. Default: 0 PRINTFEED|PF 82 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 91
3 bytes (no 4-byte support as of yet), depending on the range of the first byte. The chosen font must contain the desired character. More detail regarding the use of UTF-8 with Fingerprint or Direct Protocol can be found in Intermec Fingerprint v8.60, Programmer's Reference Manual. The example below - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 92
running Direct Protocol v8.60 are XMLReady™, and have support for Oracle MSCA/WMS and SAP Auto-ID Infrastucture (AII) XML document types. XML data can be sent over the network to the printer, triggering a label (or labels) to be printed with the variables defined in the layout file substituted - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 93
9 Character Sets and Fonts This chapter lists the various single-byte character sets used in Intermec Direct Protocol v8.60 and provides printout samples of the resident fonts. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 85 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 94
instruction CHR$() as listed below. • Characters between ASCII 32 decimal and ASCII 127 decimal can always be printed the selected font, is used, an error condition (Error 1030) will occur. Non-printable control Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 95
Roman 8 Chapter 9-Character Sets and Fonts (NASC 1) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 87 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 96
Chapter 9-Character Sets and Fonts French (NASC 33) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 88 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 97
Spanish Chapter 9-Character Sets and Fonts (NASC 34) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 89 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 98
Chapter 9-Character Sets and Fonts Italian (NASC 39) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 90 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 99
English (UK) Chapter 9-Character Sets and Fonts (NASC 44) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 91 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 100
Chapter 9-Character Sets and Fonts Swedish (NASC 46) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 92 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 101
Norwegian Chapter 9-Character Sets and Fonts (NASC 47) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 93 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 102
Chapter 9-Character Sets and Fonts German (NASC 49) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 94 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 103
Japanese Latin Chapter 9-Character Sets and Fonts (NASC 81) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 95 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 104
Chapter 9-Character Sets and Fonts Portuguese (NASC 351) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 96 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 105
MS-DOS Latin 1 Chapter 9-Character Sets and Fonts (NASC 850) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 97 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 106
Chapter 9-Character Sets and Fonts MS-DOS Greek 1 (NASC 851) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 98 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 107
MS-DOS Latin 2 Chapter 9-Character Sets and Fonts (NASC 852) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 99 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 108
Chapter 9-Character Sets and Fonts MS-DOS Cyrillic (NASC 855) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 100 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 109
MS-DOS Turkish Chapter 9-Character Sets and Fonts (NASC 857) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 101 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 110
Chapter 9-Character Sets and Fonts Windows Latin 2 (NASC 1250) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 102 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 111
Windows Cyrillic Chapter 9-Character Sets and Fonts (NASC 1251) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 103 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 112
Chapter 9-Character Sets and Fonts Windows Latin 1 (NASC 1252) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 104 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 113
Windows Greek Chapter 9-Character Sets and Fonts (NASC 1253) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 105 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 114
Chapter 9-Character Sets and Fonts Windows Latin 5 (NASC 1254) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 106 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 115
Windows Baltic Rim Chapter 9-Character Sets and Fonts (NASC 1257) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 107 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 116
Chapter 9-Character Sets and Fonts PCMAP (NASC -1) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 108 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 117
ANSI Chapter 9-Character Sets and Fonts (NASC -2) 0123456789 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 Intermec Direct Protocol v.8.60-Programmer's Reference Manual 109 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 118
Chapter 9-Character Sets and Fonts 9.2 Resident Fonts All fonts in this list contain the Euro currency sign (€) with the exception of OCR-A BT, OCR-B 10 Pitch BT, and DingDings SWA. 110 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 119
A Error Messages This appendix lists the number and messages for the various errors conditions. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 111 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 120
number. Too many strings. Error in setup file. File is list protected. ENTER function. FOR without NEXT Evaluation overflow. Bad optimizing type. Error from communication channel. Unknown execution entity. Not allowed in immediate mode. Line label not found. Line label already defined. IF without - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 121
. 1025 File does not exist. 1086 Secret not found. 1026 Label pending. 1087 Paper jam. 1027 Out of transfer ribbon. 1088 Printhead too hot. 1028 Paper type is not selected. 1101 Illegal character in bar code. 1029 Printhead voltage too high. 1102 Illegal bar code font. 1030 Character is - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 122
Fail. Power supply Over Volt V24. Power supply Under Volt V24. Power supply Over Volt VSTM. Power supply Under Volt VSTM. Power supply Over Temperature. Power supply Error. No route to host. Disc quota exceeded. Connection refused. 114 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 123
B Reference Lists This chapter lists the instructions in alphabetic order with short explanations and references to the related chapters. It also provides a shortlist of instruction syntaxes. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 115 - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 124
B-Reference Lists Instructions in Alphabetic Order Instruction Chapter Purpose ALIGN (AN) 3.2 Specifying which part (anchor point) of a text, bar code field, image field, line, or box will be positioned at the insertion point. BARFONT (BF) 3.4 Specifying fonts for the printing of bar - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 125
and enabling the error handler for specified error conditions. 3.3 Getting the current field number for partial clearing of the print buffer by a CLL instruction. 6.4 Reception and storing of binary files in the printer's permanent memory 6.1 Listing files stored in the printer's memory to - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 126
Lists FRE 7.1 FUNCTEST$ 6.4 HEAD part of the printer's memory. Performing various hardware tests. Returning the result of a thermal printhead Intermec Direct Protocol. Inversing the printing of text and images from "black-on-white" to "white-on-black." Deleting a file from the printer label taken - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 127
text field. Selecting an image stored in the printer's memory. Printing of data to the standard OUT channel. Enabling/disabling printing of a label by pressing the Print key. Printing and feeding out one or a specified number of labels (or similar). Creating a line. Specifying the insertion point - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 128
of the firmware, printer family, or type of CPU board 3.9 Returning the name of the weekday from a specified date. 3.9 Returning the number of the week for a specified date. 3.2 Controlling printing of intersection fields. 120 Intermec Direct Protocol v.8.60-Programmer's Reference Manual - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 129
Appendix B-Reference Lists Instruction Syntax List ALIGN|AN >[, - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 130
B-Reference Lists DATE$[("F")] DATEADD$ (["",][,"F"|"A"]) DIR ERROR ] FRE () FUNCTEST$ ("|||") HEAD() IMAGE LOAD " - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 131
B-Reference Lists MAP [< string>"]]]]] PRIMAGE|PM "" PRINT|? PRINT KEY ON|OFF PRINTFEED|PF [ - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 132
Appendix B-Reference Lists TIME$ = "" TIME$ [("F")] TIMEADD$ (["",] - Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 133
- Intermec PX4i | Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 134
Intermec Technologies Corporation Corporate Headquarters 6001 36th Avenue West Everett, WA 98203 U.S.A. tel +425.348.2600 fax +425.355.9551 www.intermec.com Intermec Direct Protocol v8.60-Programmer's Reference Manual *1-960597-06* *1-960597-06*
Programmer’s
Reference Manual
Intermec
Direct Protocol
v8.60