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 25 of 57

JANUS 2020 Hand-Held Computer (4MB) User's Manual, pages 241 to 250

Pages 241 to 250 of 565

The original document is the PDF (2.7 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 J2020, Intermec JG2020 and Intermec JR2020

Page 241

NF

BC

Page 242

NF

BC Working With IRL

7

This chapter introduces Intermec’s Interactive Reader Language (IRL) and explains how to use the IRL Desktop, specify the path for IRL files, interrupt and resume IRL programs, run IRL programs with limited conventional memory, and use the IRL reader commands covered in Chapter 11.

Learning About IRL Interactive Reader Language (IRL) is a high-level programming language you can use to develop programs for your JANUS reader. IRL Version 4.1 comes with your JANUS reader. IRL features include: • advanced bar code input capabilities.

• efficient reader power management.

• efficient memory management.

• ease of use for creating programs quickly.

You can create IRL programs using any DOS-based text editor and save the program as an ASCII text file. You can also write IRL programs on a PC with PC-IRL software and download them to the reader using the Polling Mode D protocol. For help learning how to program in IRL, or how to take advantage of the IRL features that are available only on JANUS readers, see these manuals: •

IRL Programming Reference Manual

•

PC-IRL Reference Manual

Note: The default filenames for IRL programs and data files include braces {}. For example, you may see these filenames on the reader: {IRL-1}.IRL and {IRL-A}.IRD.

7-3

Page 243

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

Using the IRL Desktop The IRL operating environment on the reader is called the IRL Desktop. The IRL Desktop is a menu-driven application that helps you run, download, transmit, and receive IRL programs. This section covers these tasks: •

Opening the IRL Desktop

•

Closing the IRL Desktop

•

Exploring the IRL Desktop User Interface

•

Executing Commands in the IRL Desktop

•

Running an IRL Program

•

Pausing an IRL Program

•

Exiting an IRL Program

•

Downloading an IRL Program

•

Transmitting IRL Files

•

Receiving IRL Files

•

Clearing IRL Data Files

Opening the IRL Desktop To open the IRL Desktop, type this command at the DOS prompt and press :

@ irl

Or scan this bar code:

*IRL* *IRL*

7-4

Page 244

NF

BC Working With IRL

7

You can load a protocol handler or run a program when you start the IRL Desktop by including one or both of these parameters in the command: irl -[portph] [filename] where: port is the number of the COM port for which you are loading the protocol handler.

ph is the code for the protocol handler you want to load: i p r filename

Intermec protocol handler PC Standard protocol handler RF protocol handler is the name of the IRL program to run.

For example, to load the Intermec protocol handler on COM1 and open the IRL Desktop, type this command at the DOS prompt: irl -1i

Or scan this bar code:

*IRL -1I* *IRL -1I*

To load the PC Standard protocol handler on COM1, open the IRL Desktop, and immediately begin running the STOCK.IRL program, type this command at the DOS prompt: irl -1p stock.irl

Note: If you start an IRL program from the DOS prompt, you will return to the DOS prompt when you exit the program.

Closing the IRL Desktop To close the IRL Desktop, select Exit from the File menu and press

@.

7-5

Page 245

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

Exploring the IRL Desktop User Interface When you start the IRL Desktop, the main menu appears. In the menu bar, there are two menus, File and About. The contents of the File menu appear automatically. File This menu lets you transfer files, change directories, review file statistics, run an IRL program, and exit the IRL Desktop. About This menu displays information about the reader and its configuration, including the amount of RAM and disk space available, the current paths for IRL files, the version of IRL, and the communications protocol configured for each COM port. The File menu contains these commands: Run

Runs the IRL program you select.

Resume Resumes running an IRL program with all the status registers and variables reset to the values from when the program was halted. Directory Lists all IRL files in the current directory.

IRL File

About

Run... Resume... Directory... Change Dir... File Stats... Clear Data... Receive... Transmit... Exit...

?

Change Dir Changes the path for the data files and programs.

2020U.196

File Stats Indicates if a data file is dimensioned or undimensioned and the number of records entered. If the file is dimensioned, it lists the dimensions. Clear Data Deletes all IRL data files with the default filename format: {IRL-0}.IRD, {IRL-A}.IRD to {IRL-Z}.IRD. Does not delete IRL data files with customized names (such as NEW.IRD). Receive Receives a file through the designated COM port and stores the file under the selected filename. This command is equivalent to scanning an IRL File, Receive bar code. Transmit Transmits the selected file through the designated COM port. This command is equivalent to scanning an IRL File, Transmit bar code. Exit

7-6

Exits the IRL Desktop.

Page 246

NF

BC Working With IRL

7

The About menu contains these commands: Statistics Displays information about the amount of memory and disk space available, and lists the path for data files and programs. Version Displays the version of IRL running on the reader.

IRL File

About

Statistics... Version... Ports...

2020U.197

Ports Displays the communications protocol configured for each port. If you have not configured a protocol for a port or loaded a protocol handler, the port is not listed.

Selecting Menus and Commands

B or D to select a menu name from the IRL Desktop main menu. Then @ to display the commands in the selected menu. Press C or E to select a command from a menu, and then press @ to execute

Press press the command.

You can scan the bar code labels to move the cursor through the IRL Desktop menus instead of pressing keys on the keypad. For help, see “Scanning Bar Codes to Select Menu Options” in Appendix C. Note: You can press

G to display the online help screen for a menu or command.

Moving the Cursor Through the Screen Some screens list the options for each command or list filenames for you to choose. You need to move the cursor through the fields to the OK and Cancel buttons. Task

Description

To move forward through the screen.

Press

E or H. To move backward through the screen. Press C or I. If the screen contains a list of filenames, press E, C, H, or I until the file is highlighted. Then press @ to select the file.

7-7

Page 247

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

Exiting a Screen When you exit a screen, you can save or discard your changes. Task

Description

To exit a screen and save the changes. To exit a screen and discard the changes.

ECH I

@. Select Cancel and press @ . Or press ? . Select OK and press

Usually, you can press , , , or to select the OK and Cancel buttons. On some screens, such as the Change Directory screen, you must press or .

I

H

Practicing With the IRL Desktop User Interface You can follow the step-by-step instructions in “Specifying the Path for Programs and Data Files” later in this chapter to become more familiar with the keystrokes required by the IRL Desktop user interface.

Executing Commands in the IRL Desktop You can execute commands in the IRL Desktop by:

7-8

• selecting the command from the IRL Desktop main menu.

• sending the command from the host computer. You must be running a communications application on the host computer, and the IRL Desktop must be open on your reader.

• scanning a Code 39 or Code 93 bar code label that contains the command. For bar code labels to scan, see the IRL commands in Chapter 11, “Reader Command Reference.”

Page 248

NF

7

BC Working With IRL

Running an IRL Program You can start an IRL program using any of the methods described next. Note: You cannot execute IRL programs over an Interlnk connection. •

At the DOS prompt, type this command to start the IRL Desktop and immediately start running an IRL program: irl [filename] where filename is the name of the IRL program to run. •

From the IRL Desktop, choose the Run command in the File menu. The desktop lists the program files in the current directory. Use and to select the program you want to run and press .

@

C

E

•

When you download an IRL program from the host computer to the reader, append the Run command (//) to the end of the program. The program begins running when the download is complete.

•

Using a communications application on the host computer, send the Run command to the reader. The command runs {IRL-1}.IRL, the default program.

•

Scan this bar code label with the reader to run {IRL-1}.IRL, the default program: Run IRL Program

*//* *//*

The IRL Desktop checks the syntax of the program before it runs the program. If the program contains syntax errors, the reader emits three low pitched beeps and the desktop displays the line number(s) of the errors along with a message describing the error(s). Correct the program and run it again. During a syntax check, OK and Cancel buttons are displayed along with any error messages. Choose OK to continue the syntax check. Choose Cancel to terminate it. If the IRL Desktop finds no syntax errors, it displays the amount of memory the program and symbol table use, and the amount of memory remaining. Then the program begins executing at the first program statement.

Pausing an IRL Program

L

You can press to turn the reader off and place it in Suspend mode while an IRL program is running. When you press again to turn the reader back on, the IRL program resumes running.

L

You can also exit an IRL program and resume running it later. For help, see “Resuming IRL Programs” later in this chapter.

7-9

Page 249

JANUS 2020 Hand-Held Computer User’s Manual (4MB) NFBC

Exiting an IRL Program You can exit an IRL program using any of the methods described next. Note: If you started the IRL program by typing a command at the DOS prompt, you will return to the DOS prompt when you exit the IRL program. Otherwise, if you started an IRL program from inside the IRL Desktop, you will return to the IRL Desktop when you exit the IRL program. •

Include the IRL Exit command (E) with a modifier in the program statements. When IRL reaches the command in the program, the program will exit.

•

Send the Exit IRL command (/$) from the host computer.

•

Scan this bar code label with the reader: Exit IRL Program

*/$* */$*

The program completes any housekeeping functions, such as closing files, and returns to either the IRL Desktop or DOS. •

Press the application break sequence from the reader’s keypad to break out of an IRL program that is locked in an infinite loop. For help, see “Breaking Out of an Application” in Chapter 9.

Downloading an IRL Program To download an IRL program, send a Start of Program (SOP) character followed by the program to be downloaded from the host computer. You can set the SOP character in the reader’s configuration. The default is <SI>. For help, see “IRL SOP” in Chapter 12. Note: When you download a program, the IRL Desktop should be at the main menu, with no commands selected. Also, you must make sure that the appropriate communications protocol has been configured and activated, and that the corresponding protocol handler has been loaded. The IRL Program, Download command downloads the program you specify from the host computer to the reader. The command renames the program to {IRL-1}.IRL and copies it to the directory specified by the program path. If the program path is on a nonwritable drive, the program is copied to the data path. If there is an {IRL-1}.IRL program already in the directory, it is overwritten. The command also compiles the program without displaying a “Compiling” message. If an error occurs during the compile, an error message appears and control returns to the IRL Desktop.

7-10

Page 250

NF

BC Working With IRL

7

You can also use PC-IRL, Collect, DCM, DFM, or Interscan to download IRL programs. For help, see the product’s manual.

Transmitting IRL Files You can transmit an IRL program or data file using any of these methods when the IRL Desktop is open: •

Choose the Transmit command from the File menu. A transmit screen lists the program files in the current directory. Use and to select the program you want to transmit and press .

@

•

C

E

Send an IRL Transmit file command from the host computer: %%filename where filename is the number or letter designation of the file: 0, 1, or any character from A to Z. •

Scan this bar code label with the reader: Transmit IRL File

*%%* *%%*

C

E

A transmit screen lists all of the files. Use and to select the program to transmit and press . For help, see the IRL Programming Reference Manual.

@

Receiving IRL Files You can receive a file from the host computer and store it under a specified filename using any of these methods when the IRL Desktop is open: •

Choose the Receive command from the File menu.

•

Send an IRL Receive file command from the host computer: .%filename where filename is 0, 1, or any character from A to Z. A receive screen appears. Type the filename to be received and choose OK. For help, see the IRL Programming Reference Manual. •

Scan this bar code label with the reader: Receive IRL File

*.%* *.%*

A receive screen appears. Type the filename to be received and choose OK. For help, see the IRL Programming Reference Manual.

7-11