Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 3 of 33

IPL Programming Reference Manual, pages 15 to 26

Pages 15 to 26 of 298: Before You Begin; Chapter 1: Introduction to IPL Commands

The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 3600 and Intermec 4400

Page 15

Before You Begin

Before You Begin This section introduces you to standard warranty provisions, document formatting conventions, and sources of additional product information. A documentation roadmap is also provided to guide you in finding the appropriate information.

Warranty Information To receive a copy of the standard warranty provision for this product, contact your local Intermec support services organization. In the U.S. call 1-800-755-5505, and in Canada call 1-800-668-7043. If you live outside of the U.S. or Canada, you can find your local Intermec support services organization on the Intermec Web site at www.intermec.com.

Terms and Conventions Listed below are special terms and conventions used throughout the manual.

Terms “Printer” can refer to the 3240, 3400, 3440, 3600, 4100, 4400, 4420, 4440, 4630, 4830, 7421, or EasyCoder F4 bar code printer. “Media” is the label stock on which the printer prints labels. “Host” refers to a personal computer or other computer that communicates with the printer. A “symbol” or “bar code symbol” consists of alphanumeric characters encoded in a bar code format. “IPL” stands for the Intermec Printer Language. Note: Notes are statements that either provide extra information about a topic or contain special instructions for handling a particular condition or set of circumstances.

xv

Page 16

IPL Programming Reference Manualdsf

Conventions Downloaded commands appear in the order that you enter them into the printer with the following conventions: Convention

Description

<>

Angle brackets < > enclose mnemonic representations of ASCII control characters. For example, <ETX> represents the ASCII “End of Text” control character.

data

Italic text represents variable data, which you must replace with a real value. For example, n signifies a variable for which you must designate a constant value.

[data]

Italic text within brackets represents optional data.

Ctrl

Bold text represents a key on your keypad. For example, Ctrl represents the Ctrl key.

Ctrl-Z

When two keys are joined with a dash, press them simultaneously. For example, if you see the command Ctrl-Z, press the two keys at the same time.

E3;F3

Type all characters that appear in the Courier font by pressing an individual key on the keypad.

Other Intermec Manuals You may need additional information when working with printers in a data collection system. Please visit our Web site at www.intermec.com to download many of our current manuals in PDF format. To order printed versions of the Intermec manuals, contact your local Intermec representative or distributor.

xvi

Page 17

1 Introduction to IPL Commands

Page 18

sd

Page 19

Introduction to IPL Commands

1

This chapter describes Intermec’s approach to printing labels and introduces the Intermec Printer Language (IPL) command set. The chapter also explains how to switch between Print and Program modes, how to send IPL files to a printer, and how to use ASCII control characters in IPL commands. The chapter concludes with a roadmap to the rest of the manual.

What Is IPL? Intermec Printer Language (IPL) is the programming language that has been developed for use with Intermec printers. IPL is an easy-to-use programming language that allows you to • design formats (templates) for bar code labels.

• download bar code label formats to the printer.

• modify a bar code label format that is stored in the printer.

• download data to fill in a bar code label format and print the label.

• enable or disable printer features and options.

• query the printer for hardware diagnostic data and the status of print jobs.

• abort print jobs and reset the printer.

What Are IPL Commands? There are five types of IPL commands (Print, Program, Test and Service, Configuration, and Immediate) and these types are related to the printer’s three operating modes (Print, Program, and Test and Service). That is, in order to execute an IPL command, the printer must be in the operating mode that corresponds to the IPL command’s type. IPL Command Type

Printer Operating Mode

Uses for This Type of IPL Command

Immediate

Any operating mode

Query the printer on the status of print jobs, abort print jobs, and reset the printer.

Print

Print mode

Download data to the printer and print bar code labels.

Configuration

Print mode

Enable or disable printer features and options.

Program

Program mode

Design label formats.

Test and Service

Test and Service mode

Query the printer for hardware diagnostic information.

1-3

Page 20

IPL Programming Reference Manual

Note: The printer executes Immediate commands as soon as it receives them, even if there are other IPL commands waiting to be executed. The printer does not execute a command that does not match the current operating mode. For example, if you send a Program command while the printer is in Print mode, the printer ignores the Program command. See “Switching Between Print Mode and Program Mode” later in this chapter, or refer to your printer user’s manual for help changing the mode of your printer.

Programming for Intermec Printers When you program in IPL, you must understand the approach that Intermec uses to print bar code labels. It is a two-step process: 1. Design the format (or template) for the bar code label, and then send the format to the printer, where it is stored in memory. 2. Send another command to the printer that specifies the data for the fields of the format and prints the label. Note: It is not always necessary to send the format and the data to the printer separately. You can send fixed data formats or even variable data formats that include the data in the same file. If you skip Step 1 and do not specify a format, the printer assumes you want to use the default format, which is stored permanently in the printer. The printer will print the label using that format. The default format is called format 0. You can store multiple formats on your printer. Many Intermec printers can store up to 19 formats, but some printers (such as the 3240 and 3440) can store up to 99. To learn how many formats your printer can store, see the “Format, Create or Edit” command in Chapter 7.

1-4

Page 21

Introduction to IPL Commands

1

Learning the Structure of IPL Commands This section describes general principles to follow when creating or downloading IPL commands. Note: The syntax of each IPL command is described in detail in Chapter 7, “IPL Command Reference.” •

IPL commands are case sensitive. Type them as they appear in this manual. For example, if the command is an uppercase “A,” do not enter it as a lowercase “a.”

•

Each command string that you download to a printer must begin with the start of text character <STX> and end with the end of text character <ETX>.

Note: When the printer is in XON/XOFF mode, you can send data and print multiple labels without using the <ETX> character. •

The <STX> and <ETX> commands mark the beginning and end of a message. The semicolon (;) is the command terminator. All commands in Program mode or Test and Service mode must end with this terminator except the last command in a string. Commands in Print mode do not require the semicolon command terminator.

For example, a simple IPL command string looks like this: <STX>E2;F2<ETX>

Using Control Characters in IPL Command Strings Formats that you design with IPL commands require you to enter ASCII control characters in your command strings. To create ASCII control characters, either: • enter a control code or • type the printable command characters

Many word processing programs have the ability to represent ASCII control characters such as <ETX> by entering a control code. For example, to enter the hexadecimal equivalent of the ASCII character <ETX> on your computer, you would type the control code 03. For help finding the hexadecimal equivalent of a control character, consult the full ASCII table in Appendix A. If it is difficult for you to edit or transmit IPL command files that contain ASCII control characters, you can use printable control characters instead.

1-5

Page 22

IPL Programming Reference Manual

A printable control character (or “readable character”) is a text string, enclosed in angle brackets, that represents an ASCII control character. For example, instead of entering a control code for the ASCII start of text character, you can type these five readable characters: <STX> To determine the readable character for each ASCII control character, see the full ASCII table in Appendix A. Simply enclose the text string in the ASCII column in angle brackets to create the readable character. The printer automatically detects whether you are using ASCII control characters or readable characters by the start of text (<STX>) character, which marks the beginning of an IPL command message. All characters in a message must be in the same form (ASCII control character or readable characters) as the start of text character. For example, if you begin a message with the readable characters <STX>, the printer executes only the readable characters in the message and throws away any ASCII control characters in the message. Using readable characters may consume more space and time, but it has the distinct advantage of displaying everything on the screen in readable characters. Here is an example of using control codes: ^B^Og1,567^C Where: ^B is the control code representation of hex 02 (the <STX> character). ^O is the control code representation of hex 0F (the <SI> character). ^C is the control code representation of hex 03 (the <ETX> character). Here is an example of using printable control characters: <STX><SI>g1,567<ETX>

1-6

Page 23

Introduction to IPL Commands

1

Sending IPL Commands to the Printer Before you can send IPL commands to the printer, you need to • connect the printer to a PC.

• create an ASCII text file of IPL commands.

To connect the printer to a PC 1. Connect the printer to the serial port on your PC using the correct cable. For help selecting a cable, see your user’s manual. 2. Configure the PC for a serial connection to the printer by typing this command at the DOS prompt and pressing Enter. The following example assumes that your serial connection is COM1. MODE COM1 96,E,7,1,N These serial connection characteristics are the default for the printer. 3. Make sure the printer is configured for the hardware flow control (XON/XOFF) communications protocol. This protocol is the default. For help, see your printer user’s manual. Note: If you receive the “write fault error” error message, it indicates that either you are sending the data to the wrong COM port or your cable does not support hardware flow control. Try sending the data via Windows using the information below. To create an ASCII text file of IPL commands 1. Create a set of IPL commands. For help, see Chapter 2, “Downloading Fonts to the Printer,” or Chapter 3, “Designing Bar Code Labels.” 2. Type the commands into the text file using any text editor or word processor and save the file as an ASCII text file. Your ASCII text file can contain an entire label format or just a single configuration command that you use often. For example, if you need to set the media sensitivity number often, you may want to create a text file that contains the IPL command line: <STX><SI>g1,567<ETX>. You can send IPL commands to the printer in many ways. This section describes two simple methods: •

Downloading commands from Windows

•

Sending a string of commands through an application

1-7

Page 24

IPL Programming Reference Manual

Downloading Commands From Windows After you create a text file of IPL commands, you can use Windows HyperTerminal to send the file to the printer. To download commands using HyperTerminal 1. Start the HyperTerminal application. 2. In the Connection Description dialog box, enter a name for your new connection and click OK. 3. In the Phone number dialog box, select a serial port from the Connect using list box and click OK. 4. In the COM Properties dialog box, set the port settings to your printer communication settings. If you have not changed the printer default settings, enter the following information and click OK: Bits per second Data bits Parity Stop bit Flow control

9600 7 even 1 XON/XOFF

5. From the Main menu bar, select Transfer. 6. From the Transfer list box, select Send Text File. 7. In the Send Text File dialog box, locate your .TXT file and click Open. HyperTerminal sends the .TXT file to your printer. Your command text file will either change a configuration setting in the printer or print your label format.

Sending a String of Commands Through an Application You can send a string of IPL commands through a PC communications application, a terminal emulation application, or a host terminal. See the application’s documentation for instructions. The disadvantage of sending a string of commands is that you must retype the entire command string if you make an error while entering the commands. It is easier to retype a command if you keep the command strings short; therefore, you should design your label formats as combinations of several short command strings rather than one very long string. To illustrate this idea, consider the next examples, which show two ways to send a bar code label format to the printer. Example 1 uses several short command strings to define the format. Example 2 combines all of the commands into a single string.

1-8

Page 25

Introduction to IPL Commands

1

Example 1 <STX><ESC>P<ETX> <STX>E3;F3;<ETX> <STX>H0;o81,100;f0;c0;d0,16;h1;w1;<ETX> <STX>H1;o81,120;f0;c0;d0,16;h1;w1;<ETX> <STX>H2;o81,150;f0;c2;d0,14;h1;w1;<ETX> <STX>H3;o81,190;f0;c2;d0,16;h1;w1;<ETX> <STX>B4;o81,0;f0;c0,1;h50;w1;d0,11;i0;p@;<ETX> <STX>R<ETX>

Example 2 <STX><ESC>P;E3;F3;H0;o81,100;f0;c0;d0,16;h1;w1;H1;o81,120;f0;c0;d 0,16;h1;w1;H2;o81,150;f0;c2;d0,14;h1;w1;H3;o81,190;f0;c2;d0,16;h1 ;w1;B4;o81,0;f0;c0,1;h50;w1;d0,11;i0;p@;R<ETX>

In Example 1, each line begins with the start of text character <STX> and finishes with the end of text character <ETX>. If you make a mistake, you need to retype only the line with the mistake. In Example 2, if you made a mistake anywhere in the string, you must retype the entire format. Example 1 takes slightly longer to download, but is much easier to read and debug.

Switching Between Print Mode and Program Mode Print mode and Program mode are two different operating modes of the printer. Before you download information to the printer, make sure that you are in the correct mode: •

Use Program mode to define formats, pages, fonts, and characters.

•

Use Print mode to print labels, to download data, or to download configuration commands to the printer.

To enter Program mode on any printer •

Type this command: <STX><ESC>P<ETX> Send this command every time that you download formats, even if you think the printer is already in Program mode. If the printer is already in Program mode, it ignores this command.

1-9

Page 26

IPL Programming Reference Manual

To enter Print mode on any printer •

Type this command: <STX>R<ETX> Send this command before each set of data or as your last format command. If the printer is already in Print mode, it ignores this command.

Note: The R command may be treated as data if the data to the printer does not include a <CAN> or field pointer to clear the fields.

What to Read Next Now that you have been introduced to IPL commands, you can use this manual to learn how to perform these tasks:

1-10

For Help With This Task

Refer to

To download any font to the printer

Chapter 2

To design and code the formats for bar code labels

Chapter 3

To diagnose and solve problems with IPL commands

Chapter 4

To learn how to use printer memory efficiently, how to increase throughput, and when to use Emulation mode

Chapter 5

To find a specific IPL command

Chapter 6

To look up the exact syntax and description of any IPL command

Chapter 7

To refer to the Full ASCII table

Appendix A

To see the character set tables

Appendix B

To create your own fonts and graphics

Appendix C

To refer to the user-defined interface tables

Appendix D

To download direct graphics

Appendix E