The text of a manual · part 21 of 26
IRL Programming Reference Manual, pages 201 to 210
Pages 201 to 210 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 201
Error Messages
B
IRL Syntax Errors Message
Meaning and Action
? #Reg
Numeric registers must be between 0 and 9. Verify the register number.
? $Reg
String registers must be between 0 and 3 for IRL 2.X. String registers must be between 0 and 9 for IRL 4.X. Verify the register number.
? 3 Lengths ? 3 Lengths
Only 3 input lengths are allowed for IRL 2.X. Only 5 input lengths are allowed for IRL 4.X.
? Bit
Only 0’s and 1’s allowed. The B command accepts only 0 and 1 for data.
? Bit or X
Only 0’s, 1’s, and X’s allowed. The F command accept only 0, 1, or X for data.
? End Chars
Unexpected characters found after the command. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
? File id
Illegal file identifier. Verify the filename. IRL only accepts 0 and A through Z as filenames.
? File rec
Illegal file record. Your program referenced a file record outside the range you defined in the O command.
? IRL Command
Unknown IRL Command. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
? IRL Syntax
Unrecognizable syntax for this IRL Command. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
? Missing (
Expected left parenthesis not found.
? Missing )
Expected right parenthesis not found.
? Missing +
Expected a concatenation operator (+).
? Missing ,
Expected comma not found. The command requires a comma before a parameter. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
? Missing <=>
Expected a conditional operator (<, =, >).
? Missing =
Expected an equals sign (=).
B-7
Page 202
IRL Programming Reference Manual
Message
Meaning and Action
? Missing ]
Expected right bracket not found. The string length function uses this format: [$n]
? Missing label
Expected label not found. A G or S command refers to a label that does not exist.
? Missing op
Expected a numeric operator (+, -, *, /).
? Num recs
Number of record must be between 1 and 65,535.
? Number syntax
Illegal numeric syntax.
? Parameter
Unrecognized command parameter. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
? Quote
Strings must be contained in quotes. Verify the command syntax in Chapter 7, “IRL Command Descriptions.” Some IRL v1.X commands did not require strings to be in quotation marks.
? Rec length
Record lengths must be between 1 and 128 or 1 and 250. IRL v2.X cannot use more than 128 characters per record. IRL v4.X cannot use more than 250 characters per record.
? Term char
Missing termination character. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
? Timeout
Timeouts must be between 1 and 6500.
? Wait
Waits must be between 1 and 65.
B-8
Page 203
Error Messages
B
IRL Editor and IRL Monitor Errors Message
Meaning and Action
Command syntax
Illegal command syntax. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
File not open
File has not been opened. You must open a file before you refer to it. Verify the filename.
File rec. no.
Illegal file record number. Verify the size of the dimensioned file and any commands that reference the file. IRL data files have from 1 to 65,535 records.
Line number
Illegal line number. (IRL Editor/Monitor) Verify the program line number.
Max. line no.
Maximum number of lines reached.
Memory is full
No room to insert program data.
Missing equals
Missing equals sign.
Missing quote
Strings must be in quotes.
Not a command
Unrecognized command. Verify the command syntax in Chapter 7, “IRL Command Descriptions.”
Reg. number
Illegal register number. Verify the number of registers with the table in Chapter 7, “IRL Command Descriptions.”
Register value
Illegal register value. Verify the limits on register with the table in Chapter 7, “IRL Command Descriptions.”
Unknown label
Label is not in symbol table. Verify the label name.
Write protect
Program is write protected. You cannot edit or delete a write-protected program file. See the E command in Chapter 7, “IRL Command Descriptions.”
B-9
Page 204
IRL Programming Reference Manual
Compile Errors Message
Meaning and Action
! Bad file id
Reference to an unopened file. You must open a file with the O command before you use the file in a program statement.
! Bad file open
Open command not at beginning of program. Place all O commands at the beginning of the program.
! Bad file rec
Reference to an invalid file record. Verify the size of the dimensioned file and any commands that reference the file.
! Call w/o quit
Subroutine call with no quit. All subroutines must end with the Q command.
! Dup file open
Duplicate open command. You can only open a file once. For example, you cannot have two files named B.
! Dup. label
Duplicate label. You can only use a label name once within a program.
! No file mem.
Insufficient memory to open file. The reader RAM is full. You need to free up some memory. Try opening a smaller data file. See your reader manual for memory limitations.
! No IRL Input
No input (A, K, N, U, V, or Y) command. An IRL program must contain at least one input command.
! No program
No IRL program exists for compilation. You entered a compile or run command on a reader that does not have an IRL program stored in memory.
! No such label
Reference to a nonexistent label. Verify the label name.
! Quit w/o call
Subroutine quit with no call. A Q command was encountered without a corresponding S command. A subroutine must be called with the S command and must end with a Q command.
! Symbol table
Insufficient memory for symbol in symbol table. You need to free up some memory. See your reader manual for memory limitations.
B-10
Page 205
Error Messages
B
Runtime Errors Message
Meaning and Action
LRC data error
An LRC error was detected in the reader’s RAM. This is a fatal error.
LRC program error
An LRC error was detected in the IRL program. This is a fatal error.
Mem almost full
The reader’s default file has less than 250 bytes of storage left. This is a warning message only.
Memory is full
Attempted to write more data to the default file than it can hold. This is a fatal error.
No IRL program
There is no IRL program to run. This is a fatal error. Download the program file and try to run it again.
Not compiled
There is an IRL program in the reader that has not been compiled. This is a fatal error. Compile the program from the IRL Editor and then try to run it again.
Rec access err
Attempted to access a record beyond the end of the file. This error is not fatal, and the IRL command is ignored. Verify the dimensions of the file.
Set file err
Attempted to set a file location beyond the end of the file. This error is nonfatal and the IRL command is ignored. Verify the dimensions of the file.
Stack overflow
Subroutine calls cannot be nested more than 20 times.
Stack underflow
Attempted to return from a subroutine when not in a subroutine. This is a fatal error. Verify that each Q command has a corresponding S command.
B-11
Page 206
IRL Programming Reference Manual
Download Errors Message
Meaning and Action
Data in memory; cannot download
IRL programs cannot be downloaded if data exists in any user-specified files or in the default file. Issue the Clear All Data Command and then try again.
Download failed; Protocol error
There are communication problems between the host and the reader.
Download failed; Syntax errors
The program to be downloaded contains syntax errors.
B-12
Check the protocol parameters and then try again.
Correct the errors and try again.
Page 207
C Sample IRL Programs
Page 208
Page 209
Sample IRL Programs
C
Using the Sample Programs This appendix contains two complete sample programs. They illustrate concepts and techniques discussed throughout this manual. The samples are: •
Binary Search Program
•
TRAKKER Modem Program
Binary Search Program This program is a useful building block for an IRL version 2.X or IRL version 4.X program that performs a binary search. This sample creates a file containing 1000 records with 3 characters in each record, and then prompts the user for a search value. The program searches the file for that specific value and displays a message indicating if the value was found or not. You will need to modify the .CREATE procedure to create your own file or to use an existing file.
C-3
Page 210
IRL Programming Reference Manual
:********************************************************************** :* Program: FB2507.IRL :* Purpose: Example of how a binary search works :* Documentation: See Intermec FAX Document #2507 :* Function: Create File A which is ASCII sorted data. :* Numeric string data is used for illustration :* purposes only. :* If a value out of range is entered, the program :* will prompt for data to be in the correct range. :* If the search string is found in File A, the :* resulting record location in File A is prompted. :* In this example, the record location is the same :* as the data string. :* Compatiblitity: IRL 2.1, 2.2, 4.0, or 4.1 :* Registers Used: #0 Status register (convert command) :* #1 Used for creating data for File A :* #2 Record counter for creating File A :* #3 Used for testing search string limits :* #4 Upper limit :* #5 Lower limit :* #6 Middle limit :* Notes: 1. The screen prompts may have to be modified to :* fit the screen size of the reader :* 2. You can change File A data to any ASCII string * data. Tests performed on string or file data :* are based on the ASCII value of the string. :* :********************************************************************** .START OA(1000,3) :1000 records, file pointer value 0 to 999 D#1=0 :#1 is used for string data D#2=0 :#2 is used for record pointer : Note in this example, #1 will equal #2 P"Please wait while" P"file A is being" P"created..." .CREATE C$1=#1 D$1="000"+$1 DA(#2)=$1R3 D#2=#2+1 D#1=#1+1 G#2<1000.CREATE D$1="" P"File A created" B111 W2 .PROMPT D$0="" P"\e[2J"
C-4