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 10 of 26

IRL Programming Reference Manual, pages 91 to 100

Pages 91 to 100 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 91

I (Insert) IRL Editor Commands

4

I (Insert) Purpose:

Inserts a new program statement.

Syntax:

I [line number] I line number [statement]

Parameters:

If you omit line number and statement, the Editor enters Insert mode and displays the next available line number for you to type a new statement. After you enter the statement, the next available line number is displayed. You remain in Insert mode until you press Enter at the beginning of a new line. Use the line number parameter to insert a statement at a specific line number. The statements that follow that line number are renumbered. If you omit statement, the Editor enters Insert mode. The Editor displays the specified line number for you to type a statement. You remain in Insert mode until you press Enter at the beginning of a new line. statement is any valid IRL program statement. Use the statement form as a shortcut to enter one new program line. You type the statement on the same line as the I command, and the Editor inserts the statement without changing to Insert mode.

Notes:

To insert a statement 1. Type an insert command and press Enter. The Editor displays the next available line number. 2. Type the new program statement and press Enter. The Editor checks the syntax, saves the statement, and displays a new line. 3. Press Enter at the beginning of a new line to exit Insert mode and return to the Editor prompt (>).

Example

Result

I

Displays next available line number and remains in Insert mode.

I20

Inserts a new line before line 20 and remains in Insert mode.

I25.Label

Inserts the statement ".Label" at line 25 and remains in Editor mode.

4-13

Page 92

IRL Editor Commands L (List)

L (List) Purpose:

Displays all or part of a program, including line numbers.

Syntax:

L [line number] [,line number] LP

Parameters:

line number is the starting line number or a beginning and ending line number. The P option displays 20 lines (a page), and then pauses the listing and displays the >L prompt. Press Enter to display the next 20 lines.

Example

Result

L25

Displays the program starting with line 25.

L6,10

Displays lines 6 through 10

M (Monitor) Purpose:

Starts the IRL Monitor.

Syntax:

M [C]

Parameters:

The unmodified M command exits the Editor, compiles the program if changes have been made, enters the Monitor, and displays the first program statement for debugging. The C option exits the Editor, compiles the program whether changes have been made or not, enters the Monitor, and displays the first program statement for debugging.

4-14

Page 93

Q (Quit) IRL Editor Commands

4

Q (Quit) Purpose:

Exits the editor without compiling the program.

Syntax:

Q

Parameters:

None

Notes:

If you want to exit and compile the program, use the E command.

S (Substitute) Purpose:

Replace an existing program line with a new one.

Syntax:

S line number [statement]

Parameters:

line number is the statement number that you want to replace. If you omit statement, the Editor enters Substitute mode. The Editor displays the specified line number for you to type a replacement statement. You remain in Substitute mode until you press Enter at the beginning of a new line. statement is any valid IRL program statement. Use the statement form as a shortcut. You type the statement on the same line as the substitute command, and the Editor replaces the statement without changing to Substitute mode.

Notes:

To substitute a statement 1. Type S line number and press Enter. The Editor displays the specified line number. 2. Type the new program statement and press Enter. The Editor checks the syntax, saves the statement, and displays the next line number. 3. If desired, type additional replacement statements as the line number is displayed. The existing statements are erased if you type anything at the line number prompt. 4. Press Enter at the beginning of a new line to exit Substitute mode and return to the Editor prompt (>).

4-15

Page 94

IRL Editor Commands U (Usage)

Example

Result

S25

Enters Substitute mode at line 25 and waits for you to type the new statement.

S4.TEST1

Replaces line number 4 with ".TEST1" and remains in Editor mode.

U (Usage) Purpose:

Displays the current program size in bytes.

Syntax:

U

Parameters:

None

4-16

Page 95

IRL Monitor Commands

4

IRL Monitor Commands This section describes the syntax and parameters for the IRL Monitor commands. You must press Enter after typing a command. The Enter key is not included in the syntax description. Use these commands to test and debug your program with the IRL Monitor: D

Display file

E

Exit

Execute Execute current statement F

Find string

G

Goto

L

List program

Q

Exit

R

Display registers

$n =

Redefine register

#n =

Redefine register

4-17

Page 96

IRL Monitor Commands D (Display File)

D (Display File) Purpose:

Displays records in the specified file.

Syntax:

D filename [record] [,record]

Parameters filename is an opened file. If you specify a filename that is not used in the program, you get an error message. record is the starting record number or a range of record numbers to display.

E (Exit) Purpose:

Exits the Monitor and return to the Editor.

Syntax

E

Parameters:

None.

Execute (Enter Key) Purpose:

Executes the displayed program statement and moves to the next one.

Syntax:

None. Press the Enter key to execute a statement.

Parameters:

None.

4-18

Page 97

F (Find) IRL Monitor Commands

4

F (Find) Purpose:

Locates a specific string and lists all occurrences of that string.

Syntax:

F [line number] [,line number] \string

Parameters:

line number is an optional starting line number for the search or a range of line numbers to search. The search is always forward to the end of the program or to the specified ending line number.

Parameters:

string is the text to search for. Case is important: "LOOP" and "loop" are not the same string. The backslash (\) character is required at the beginning of the string.

Notes:

If your reader keypad does not have the backslash (\) character, you can attach a 1700 keyboard or you can scan the following bar code label. \ (backslash)

* %L* * %L*

Each line containing string is displayed in order, and some lines may scroll off the screen. To display only a few lines, use a range of line numbers with the I command. The Editor displays the first 20 occurrences of string, and then pauses the search and displays the >F prompt. Press Enter to continue searching.

4-19

Page 98

IRL Monitor Commands G (Goto)

G (Goto) Purpose:

Executes the program until it reaches the specified label.

Syntax:

G .label

Parameters:

Label is a valid IRL program label, up to 7 characters.

L (List) Purpose:

Displays all or part of a program, including line numbers.

Syntax:

L [line number] [,line number] LP

Parameters:

line number is the starting line number or a beginning and ending line number. The P option displays 20 lines (a page), and then pauses the listing and displays the >L prompt. Press Enter to display the next 20 lines.

Q (Quit) Purpose:

Exits the Monitor and return to the Editor.

Syntax

Q

Parameters:

None.

4-20

Page 99

R (Registers) IRL Monitor Commands

4

R (Registers) Purpose:

Displays the contents of all registers.

Syntax:

R

Parameters:

None.

$n= (Redefine String) Purpose:

Redefines string register $n.

Syntax:

$n = "string"

Parameters:

n is a valid string register number. IRL v2.X has registers $0 through $3. string is any ASCII string enclosed in quotation marks.

#n= (Redefine Numeric) Purpose:

Redefines numeric register #n.

Syntax:

#n = data

Parameters:

n is a valid numeric register number, #0 through #9. data is any valid integer. IRL v2.X supports values from 1 to 9,999,999.

4-21

Page 100

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