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 26

IRL Programming Reference Manual, pages 21 to 30

Pages 21 to 30 of 260

The original document is the PDF (666 KB). 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 9445, Intermec 9550, Intermec 9560 and Intermec 9512

Page 21

Getting Started

1

This chapter introduces Interactive Reader Language (IRL) and bar code readers.

What Is IRL? Interactive Reader Language (IRL) is the programming language you use to create programs that control Intermec bar code readers. With IRL, you can program readers to collect data efficiently, perform complex data manipulations, and present friendly prompts for users. The reader can prompt the user for data, warn the user when the data is not acceptable, and give the user other instructions and helpful status messages. An IRL program is a series of program statements that are stored in a reader’s memory. A program statement is one instruction in a program that gives directions to the reader about what data to collect or what to do with the data once it is collected. This chapter covers these topics: •

Using programmable bar code readers

•

Choosing the correct IRL version

•

Writing IRL programs

•

Running and exiting IRL programs

1-3

Page 22

IRL Programming Reference Manual

Using Programmable Bar Code Readers Intermec manufactures several types of programmable bar code readers. These readers collect the data encoded on bar code labels and can pass it on to a PC or other host computer system. You can program the readers with IRL to customize your data collection system. These readers support IRL: •

JANUS 2010 Hand-Held Data Collection Computer

•

JANUS 2020 Hand-Held Data Collection Computer

•

JANUS 2050 Vehicle-Mount Computer

•

9560 Transaction Manager

•

9550 Transaction Manager

•

9512 Transaction Manager

•

94XX TRAKKERs

•

9450 Vehicle-Mount Unit

Choosing the Correct IRL Version The IRL version you use depends on the type of reader you have. You cannot change the IRL version in a reader, but you can write programs that run on different readers. Intermec currently supports IRL version 2.1, version 2.2, and version 4.1. Only the JANUS family of programmable readers supports IRL version 4.0 and higher. Specific differences in IRL v2.X and IRL v4.X commands are noted in Chapter 7, “IRL Command Descriptions.” Note: Some IRL version 2.X programs will run on JANUS readers without modification. It is best, however, to use the highest IRL version for your target reader. The following table lists the IRL versions and their intended Intermec readers. Refer to the reader’s user manual to verify the IRL version it uses.

1-4

Version

Product

IRL 4.X

J2010 and J2020 Hand-Held Computers J2050 Vehicle-Mount Computer

IRL 2.2

94XX TRAKKERs 9450 Vehicle-Mount Computer

IRL 2.1

95XX Transaction Managers some 94XX TRAKKERs (early Model A units)

Page 23

Getting Started

1

Writing IRL Programs An IRL program is an ASCII text file containing valid IRL commands. You have several options for writing your programs. The method you choose depends on your system setup: •

Use PC-IRL to write the program and download it to the reader.

•

Use a host computer to write the program and download it to the reader.

•

Use IRL Editor to write the program directly on a 94XX or 95XX reader.

•

Use a terminal attached to a 94XX or 95XX reader.

•

Use a DOS text editor on a JANUS reader.

Using a PC and PC-IRL There are several advantages to using a PC and PC-IRL to write programs. A PC provides a larger display screen and full keyboard, runs faster, and saves programs on disk when you are not using them in your reader. PC-IRL is Intermec’s IRL program development system for PC computers. Use PC-IRL to develop, test, and download programs. PC-IRL provides a text editor, an IRL syntax checker, a simulator , a debugger, and a download function. Specifically, PC-IRL does the following: •

Checks the syntax of your program as you write it.

•

Debugs your program by executing one command at a time and displaying the contents of the registers.

•

Simulates your reader’s environment to make your test runs realistic.

•

Saves your programs to disk for later use or editing.

•

Transfers IRL files between the PC and readers or the PC and EPROM programmers.

•

Provides a compacting option that removes comments and extra spaces from the program before you download it to the reader.

For hardware requirements and more information, see the PC-IRL Reference Manual, Part No. 049212.

1-5

Page 24

IRL Programming Reference Manual

Using a Host Computer You can create your program in any ASCII text editor and download it to the reader from a PC or other host computer. A host computer provides a larger display screen and full keyboard, runs faster, and saves programs on disk when you are not using them in your reader. Additionally, you can connect several readers to one host. You can create one program and quickly download it to many readers. The one drawback to this method is the download process. You must use the appropriate data communications method to transmit the IRL program. For more information, refer to the Data Communications Reference Manual, Part No. 044737.

Using IRL Editor on a Reader The 94XX and 95XX readers include the IRL Editor and IRL Monitor, special tools for writing and debugging IRL programs. You can write programs directly on a reader using the reader’s keypad or by attaching a 1700 keyboard to the reader. The IRL Editor checks the syntax of each statement as you enter it. If there is an error, you can easily correct the mistake. The main advantage of writing a program directly on the reader is that you do not need any cables or communications programs. You write, compile, and run the program on the same unit. The major disadvantages are the small screen size and the limited keys on a keypad. For more information, see Chapter 4, “Programming With IRL Editor and IRL Monitor.”

Using a Terminal Attached to a Reader Attaching a 94XX or 95XX reader to a terminal is perhaps the next best alternative to writing your programs with PC-IRL. You use the IRL Editor, and the regular keyboard and full-size display screen of the terminal provide a PClike environment. For more information, see Chapter 4, “Programming With IRL Editor and IRL Monitor.” Note: The JANUS readers do not use the IRL Editor.

1-6

Page 25

Getting Started

1

Using a DOS Text Editor on a JANUS Reader The JANUS family of readers are 80386 DOS computers. If you have a text editor, such as MS-Edit, installed on one of the reader drives, you can create your programs with the JANUS keypad. You can create several programs and store them on disk for later use or editing. The major advantages to writing programs in a text editor are that you do not need any cables or communications programs and you can edit and store several files on the reader. The major disadvantages are that you cannot check the syntax or debug the program as you write it and you have the small screen and limited keys on a keypad. You can still compile your program on the reader with the IRL Desktop. For more information, see your JANUS manual.

Running and Exiting IRL Programs Use the following bar codes to execute or interrupt an IRL program. See your reader manual for the equivalent keyboard procedures. To run the default IRL program •

Scan the following label: Run Program

*//* *//*

To exit an IRL program •

Scan the following label: Exit Program

*/$* */$*

To resume an IRL program •

Scan the following label: Resume IRL Program

*$.* *$.*

1-7

Page 26

This page is a scan with no text; see it in the PDF.

Page 27

2 Learning to Program in IRL

Page 28

This page is a scan with no text; see it in the PDF.

Page 29

Learning to Program in IRL

2

This chapter is a tutorial that steps you through building three sample IRL programs. You will learn about basic IRL commands and the logic and structure of an IRL program.

Learning IRL This chapter uses three sample IRL programs to teach you different IRL commands and concepts, and each program builds upon concepts introduced in earlier programs. If you are already familiar with IRL, you can skip this chapter. This chapter covers these topics: •

Introducing the sample programs

•

Entering a program

•

Programming tips

•

Sample Program One

•

Sample Program Two

•

Sample Program Three

You need one of the following to edit and run the sample programs: •

A 94XX reader

•

A 95XX reader

•

A JANUS reader

•

A PC and PC-IRL

2-3

Page 30

IRL Programming Reference Manual

Introducing the Sample Programs The sample programs use an inventory data collection scenario. Every item in a warehouse is assigned a part number, which is printed on a bar code label. The bar code label is then attached to the item. When you collect inventory information, you scan the part number bar code label and then either scan the quantity of the part or enter it from the reader’s keypad. The reader requests the part number or quantity by displaying a message. The sample progams build one each other as follows: •

Sample Program One simply collects part numbers and the quantity of each part number.

•

Sample Program Two asks for a badge number, collects part numbers and quantities, and checks to see whether the part number is valid. If it is not valid the reader displays an error message.

•

Sample Program Three builds on the previous two programs. Program Three also checks the memory on the reader, sends a warning message when memory is getting full, and uploads data when memory is full or when the user requests.

To enter data when you run the sample programs 1. At the Part Number prompt, type seven characters or scan the following label. Part Number

*N565260* *N565260*

2. At the Quantity prompt, type a number or scan the following label. Quantity

*100* *100*

2-4