The text of a manual · part 1 of 26
IRL Programming Reference Manual, pages 1 to 10
Pages 1 to 10 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 1
User’s Manual P/N 048609-003
IRL Programming
Page 2
nugget code39 helconital
Intermec Corporation 6001 36th Avenue West P.O. Box 4280 Everett, WA 98203-9280 U.S. service and technical support: 1-800-755-5505 U.S. media supplies ordering information: 1-800-227-9947 Canadian service and technical support: 1-800-688-7043 Canadian media supplies ordering information: 1-800-268-6936 Outside U.S. and Canada:
Contact your local Intermec service supplier.
The information contained herein is proprietary and is provided solely for the purpose of allowing customers to operate and/or service Intermec manufactured equipment and is not to be released, reproduced, or used for any other purpose without written permission of Intermec. Information and specifications in this manual are subject to change without notice. 1996 by Intermec Corporation All Rights Reserved The word Intermec, the Intermec logo, JANUS, IRL, TRAKKER, Antares, Duratherm, Precision Print, PrintSet, Virtual Wedge, and CrossBar are either trademarks or registered trademarks of Intermec Corporation. Throughout this manual, trademarked names may be used. Rather than put a trademark ( or ) symbol in every occurrence of a trademarked name, we state that we are using the names only in an editorial fashion, and to the benefit of the trademark owner, with no intention of infringement.
Page 3
nugget code39 helconital
Manual Change Record This page records the changes to this manual. Version
Date
Description of Change
A
4/89
Rewrote the manual to include all versions of IRL as well as the newest release, Version 2.2.
B
10/89
Made small corrections throughout the manual.
C
3/90
Revised pages 4-54 and 4-56 to include new error message that warns when an incompatible terminal mode Y command exists.
001
4/93
This manual covers IRL 2.2 only. Special notes for other versions have been deleted. Made corrections throughout the manual.
002
9/95
Updated to IRL version 4.1. Incorporated version 4.0 Addendum, Part No. 059608. Added chapter on “Using IRL With JANUS Readers.” Rewrote chapters for clarity.
003
10/96
Added information on JANUS environment variables. Reordered chapters so that command reference is last chapter.
Page 4
Page 5
Contents
Contents Before You Begin xiii Warranty Information xiii Cautions xiii About This Manual xiii Other Intermec Manuals xviii
1
Getting Started What Is IRL? 1-3 Using Programmable Bar Code Readers 1-4 Choosing the Correct IRL Version 1-4 Writing IRL Programs 1-5 Using a PC and PC-IRL 1-5 Using a Host Computer 1-6 Using IRL Editor on a Reader 1-6 Using a Terminal Attached to a Reader 1-6 Using a DOS Text Editor on a JANUS Reader 1-7 Running and Exiting IRL Programs 1-7
2
Learning to Program in IRL Learning IRL 2-3 Introducing the Sample Programs 2-4 Entering a Program 2-5 Programming Tips 2-6 Sample Program One 2-6 Understanding Program One 2-7 Running Program One 2-8 Sample Program Two 2-13 Understanding Program Two 2-14 v
Page 6
IRL Programming Reference Manual
Sample Program Three 2-18 Understanding Program Three 2-19 Program Notes 2-20
3
Programming Techniques Programming Basics 3-3 IRL Architecture 3-4 String Registers 3-5 Numeric Registers 3-5 Floating Point Registers 3-5 File Memory 3-5 IRL 2.X Memory Structure 3-6 IRL 4.X Memory Structure 3-6 Default File 3-7 Opening and Naming Files in IRL v2.X 3-7 Opening and Naming Files in IRL v4.X 3-8 Purging Data Files 3-8 Input and Output 3-8 Program Elements 3-9 Reader Commands 3-9 Special Characters 3-9 Program Statements 3-10 Program Command Types 3-11 Using Input Commands 3-12 Receiving Edited Data 3-12 Receiving Unedited Data 3-13 Appending Input Data 3-13 Receiving Data From a Communications Port 3-14 Appending the Time 3-14 Using Output Commands 3-15 Creating Prompts and Messages 3-15 Using Sound and Lights 3-16 Transmitting Data 3-16 Using Data Manipulation Commands 3-16 Storing Data 3-17 Opening Files 3-17 Appending Data 3-18 Converting Data 3-18 vi
Page 7
Contents
Performing Mathematical Operations 3-19 Working With Numeric Registers 3-19 Working With Floating Point Registers 3-20 Working With String Registers 3-20 Using String Functions 3-21 Using Program Control Commands 3-22 Adding Comments to Your Program 3-22 Branching 3-23 Using Procedures 3-23 Using Subroutines 3-23 Ending a Program 3-24 Taking a Break 3-25 Determining File Position 3-25 Locating Data 3-25 Programming Reader Commands 3-25 Using Function Keys 3-26
4
Programming With IRL Editor and IRL Monitor Programming and Debugging 4-3 Using the IRL Editor and IRL Monitor 4-4 Starting the IRL Editor 4-4 Working With the IRL Editor 4-6 Entering Program Statements 4-6 Changing Program Statements 4-7 Compiling Programs 4-8 Error Conditions 4-8 Using the IRL Monitor 4-9 IRL Editor Commands 4-10 D (Delete) 4-11 E (End) 4-11 F (Find) 4-12 I (Insert) 4-13 L (List) 4-14 M (Monitor) 4-14 Q (Quit) 4-15 S (Substitute) 4-15 U (Usage) 4-16 vii
Page 8
IRL Programming Reference Manual
IRL Monitor Commands 4-17 D (Display File) 4-18 E (Exit) 4-18 Execute (Enter Key) 4-18 F (Find) 4-19 G (Goto) 4-20 L (List) 4-20 Q (Quit) 4-20 R (Registers) 4-21 $n= (Redefine String) 4-21 #n= (Redefine Numeric) 4-21
5
Using IRL With JANUS Readers IRL Version 4.X 5-3 IRL Desktop 5-4 Setting DOS Environment Variables for IRL 5-4 IM_IRL_NO_SECONDS 5-5 IM_IRL_NUM 5-6 IM_IRL_SEPARATE_EOF 5-6 IM_SILENT 5-7 IM_IRL_STAT 5-7 IM_IRL_TIMEOUT 5-8 IM_IRL_YXN 5-8 Working With IRL Files 5-9 Naming IRL Files 5-9 Referring to IRL Data Files in a Program 5-9 Dimensioned and Undimensioned Data Files 5-10 Specifying the Path for IRL Files 5-11 Resuming an IRL Program 5-12 Increasing Available Memory 5-12 JANUS-Specific IRL Features 5-13 Using the IRL Z Command 5-13 Determining the Status of the NiCad Battery Pack 5-13 Displaying Messages on the Reader 5-14 Setting the Reader’s Internal Clock 5-14 Displaying Reverse Video and Blinking Prompts 5-15 Using the Enhanced Time Command 5-16 Transmitting EOF as a Separate Record in IRL 5-16 viii
Page 9
Contents
Using Floating Point Registers 5-16 Protecting Program Files 5-17 Creating a DOS-Text Data File 5-17 Differences Between 944X and JANUS Readers 5-18 IRL Reader Commands 5-19
6
User Tips for All IRL Versions Using the Tips 6-3 Entering Keypad and Keyboard Characters 6-4 JANUS Reader Keys and 94XX Keys 6-5 Formatting the Reader Display 6-5 Using Transparent Display Mode 6-5 Using a Protected Field in the Display 6-6 Performing Binary Searches in IRL 6-7 Searching During Selective Data Collection 6-8 Receiving Data 6-9 What Is Data Communications? 6-9 The Input Buffer 6-10 Transferring Data 6-10 Receiving Records 6-11 Receiving Files 6-11 Transmitting Records 6-12 Transmitting Files 6-12 DLE Character 6-12
7
IRL Command Descriptions Understanding the Description Formats 7-3 IRL Version Notes 7-4 IRL Commands 7-5 . (Label) 7-6 : (Comment) 7-7 A (ASCII Input) 7-8 ix
Page 10
IRL Programming Reference Manual
B (Beep) 7-11 C (Convert) 7-12 D (Define Data) 7-14 E (End) 7-17 F (Function Output) 7-19 G (Goto) 7-21 H (File Position) 7-23 I (Insert) 7-24 K (Keyboard Input) 7-26 L (Lookup Record) 7-29 N (Numeric Input) 7-31 O (Open File) 7-33 P (Prompt) 7-36 Q (Quit Subroutine) 7-38 R (Record) 7-40 S (Call Subroutine) 7-41 T (Time) 7-43 U (Unedited Input) 7-45 V (Universal Input) 7-47 W (Wait) 7-49 X (Transmit Data) 7-50 Y (Receive Data) 7-53 Z (Execute Reader Command) 7-56
A
ASCII Charts US ASCII Codes A-3 ASCII Control Characters A-5
B
Error Messages Alphabetic List of IRL Error Messages B-3 IRL Syntax Errors B-7 IRL Editor and IRL Monitor Errors B-9 Compile Errors B-10 Runtime Errors B-11 Download Errors B-12 x