The text of a manual · part 18 of 42
JANUS 2050 Vehicle-Mount Computer (4MB) User's Manual, pages 171 to 180
Pages 171 to 180 of 419
The original document is the PDF (2.0 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 J2050
Page 171
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB) 39 nugget A
Using Commands in the IRL Desktop In addition to choosing a command from the desktop, you can also scan a bar code label or download the command from the host computer. You must be in the IRL Desktop to execute the commands listed in the following pages.
Starting an IRL Program To run an IRL program from the IRL Desktop, do one of the following: •
Choose the Run command from the File menu. The Run dialog box displays a list of program files in the current directory. Use the h j keys to highlight the program you want to run and press e .
•
End an IRL program download with the RUN command (//) from the host computer.
•
Enter the RUN command from the host computer, or scan the bar code label. From the host computer, enter the command: //
Or, scan the following label: Run Program
*//* *//*
The program begins at the first program statement. The IRL Desktop executes the default file named {IRL-1}.IRL when you scan the Run bar code or enter the Run command from the host computer. Note: If you need more memory to run your IRL program, you can execute an IRL program without the IRL Desktop using IRLXDESK.EXE. To use IRLXDESK, you need to load it on one of the JANUS 2050 drives from companion disk 3. Once it is loaded on the JANUS 2050, enter the following command to begin executing your IRL program: irlxdesk filename
When you execute IRLXDESK, none of the protocol handlers are automatically loaded.
7-8
Page 172
39 nugget A Working With IRL
7
If there are any syntax errors, the JANUS 2050 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 you switch the JANUS 2050 off when an IRL program is running, it will resume running when the JANUS 2050 is turned on again.
Exiting an IRL Program To exit an IRL program when the IRL desktop is open, do one of the following: •
Include the IRL Exit command (E) with a modifier in the program statements.
•
Enter an Exit IRL command (/$) from the host computer.
•
Scan the following label: Exit IRL Program
*/$* */$*
The program completes any housekeeping functions, such as closing open files, and returns to the calling function whether it is the IRL Desktop or DOS. •
Enter the application break sequence from the keypad to break out of an IRL program that is locked in an infinite loop. 1. Press the q button to turn off the JANUS 2050. 2. Press n - 2 - g simultaneously. 3. Press 1 to set the application break bit in the JANUS 2050. 4. Press the q button to turn on the JANUS 2050. The program will not resume running. You can resume normal operation.
7-9
Page 173
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB) 39 nugget A
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. The <SOP> character can be set in the JANUS 2050’s configuration. The default is <SI>. The file is stored as the default IRL program named, {IRL-1}.IRL. If there is an {IRL-1}.IRL program already in the same directory, it is overwritten. If an error is detected, an error message is displayed and control is returned to the IRL Desktop. You can also use PC-IRL, Collect, DCM/2, DFM, or Interscan to download IRL programs. For more information on downloading IRL programs from the host computer to the JANUS 2050, see the PC-IRL Reference Manual.
Transmitting IRL Files To transmit an IRL program or data file, do one of the following: •
Choose Transmit from the IRL Desktop File menu.
•
Enter an IRL Transmit File command from the host computer, or scan the bar code label. From the host computer, enter the command: %%filename where filename can be any character from A to Z, 0, or 1. Or, scan the following label: Transmit File
*%%* *%%*
The Transmit dialog box displays a list of all of the files. Select the file to be transmitted and press e . For more information on transmitting IRL programs and files from the host computer to the JANUS 2050, see the PC-IRL Reference Manual.
7-10
Page 174
39 nugget A Working With IRL
7
Receiving IRL Files To receive a file from the host computer and store it under a specified filename, do one of the following: •
Choose Receive from the IRL Desktop File menu.
•
Enter an IRL Receive File command from the host computer, or scan the bar code label. From the host computer, enter the command: .%filename where filename can be any character from A to Z, 0, or 1. Or, scan the following label: Receive File
*.%* *.%*
The Receive dialog box is displayed. Enter the filename to be received. For more information on receiving IRL files from the host computer, see the PC-IRL Reference Manual.
Clearing IRL Files To delete one or all of the IRL data files with default filenames {IRL-0}.IRD and {IRL-A}.IRD to {IRL-Z}.IRD when the IRL Desktop is open, do one of the following: •
Choose Clear Data from the IRL Desktop File menu. A message stating the data files will be deleted is displayed. Press e to delete the files.
•
Enter an IRL Clear File command from the host computer: .$filename where filename can be any character from A to Z, or 0. If you do not include a filename, all files are deleted.
7-11
Page 175
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB) 39 nugget A
•
Or, scan one of the following labels: Clear All IRL Data Files
*.$*
Clear {IRL-0}.IRD
*.$0*
*.$*
*.$0*
Clear{IRL-A}.IRD
Clear{IRL-B}.IRD
*.$A*
*.$B*
Clear {IRL-C}.IRD
Clear {IRL-D}.IRD
*.$A*
*.$C* *.$C*
*.$B*
*.$D*
*.$D*
Note: You can create bar code labels to delete {IRL-E}.IRD through {IRL-Z}.IRD. When you scan the Clear All IRL Data Files command, a message lists the data files to be deleted as well as the directory where the files are located. Choose OK to delete the data files. If you choose to clear one data file, IRL deletes the file without displaying the message or prompt. Caution When the clear file command is sent from the host without data, all data is cleared and all files are deleted. Conseil Lorsque la commande d'effacement de fichier (clear file) est envoyée de l'hôte sans préciser les données à effacer, toutes les données sont effacées et tous les fichiers sont supprimés.
Types of Error Messages When an error occurs, the JANUS 2050 responds by emitting an error beep and displaying an error message. Press e to clear the message and continue. The types of messages are: Receive error This error occurs when the JANUS 2050 is receiving a message or protocol characters from the host. Transmit error This error occurs when the JANUS 2050 is transmitting a message or protocol characters to the host.
7-12
Page 176
39 nugget A Working With IRL
7
Syntax error This error occurs when the JANUS 2050 does a syntax check on a program before running the program. If a program statement is invalid, the error message lists the program statement and the problem. Edit the program for syntax errors and run it again. Runtime error This error occurs when the JANUS 2050 is executing a program. The program ignores nonfatal errors. If it is a fatal error, the JANUS 2050 exits the program and returns to the IRL Desktop or DOS prompt. The following table lists the error beep sequences and their meanings. Sequence
Meaning
LLL
Syntax or compile error
LHL
Nonfatal runtime error
HHH
Fatal runtime error
L=low beep H=high beep
Resuming IRL Programs You can exit an IRL program, perform other functions with your JANUS 2050, and then resume the IRL program exactly where you left off. Other functions you can perform before resuming the program include executing DOS commands, running other IRL programs, and putting the JANUS 2050 in suspend mode.
Exiting a Program So You Can Resume It Later You will be able to resume an IRL program later if you exit it using one of these methods: •
The Exit IRL command
•
An application break sequence
•
The ED command (The E command has a D modifier, which instructs IRL to exit to DOS.)
You can exit multiple programs that can all be resumed later. IRL creates a separate FILENAME.RSM file in the current data path directory for each program (where FILENAME is the corresponding program name). The .RSM file contains parameters that allow IRL to resume the program exactly where you left off. The .RSM file is deleted when you run or resume the program. IRL also saves the name of the last program that was exited as described previously into the {LATEST}.RSM file. Every time IRL saves the filename to this file, it overwrites the last filename; therefore, the file always identifies the last IRL program that can be resumed. This file is deleted when you run or resume the program.
7-13
Page 177
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB) 39 nugget A
Exiting Directly to DOS The E command has a modifier, D. that is used to exit an IRL program, bypass the IRL Desktop, and go directly to DOS. IRL sets the exit code to a nonzero value if the ED command caused the program to exit to DOS. IRL sets the exit code to zero if the program is terminated normally. You can create a batch file using the exit code to determine if the JANUS 2050 exited an IRL program and returned to DOS. The Exit IRL command and the application break sequence return to the IRL Desktop. You can resume the program from the DOS prompt or from the IRL Desktop as described next.
Resuming a Program From the DOS Prompt To resume an IRL program from the DOS prompt, type a command that follows this syntax: irl -rX filename where -r instructs IRL to resume, X is the value to be placed into the status register (#0), and filename is the name of the program. Note: Make sure there is no space between the -r and X, or the value will not be placed into the status register (#0). You can omit parts of the irl -rX filename command: •
If you do not include the -r argument, IRL starts the program from the beginning and deletes the .RSM file.
•
If you do not supply an X value for the status register, IRL sets the register to 0. If the value you supply is invalid, IRL sets the register to 999999999. IRL sets the status register only when the ED command is issued.
•
If you do not specify a filename and you do include the -r, IRL resumes the last program exited, as identified in the {LATEST}.RSM file.
Resuming a Program From the IRL Desktop You can choose the Resume command from the File menu and select a program to resume. You can also scan the IRL Program, Resume command ($.) from the IRL Desktop: IRL Resume
*$.* *$.*
7-14
Page 178
39 nugget A Working With IRL
7
Using the IRL Z Command To execute JANUS 2050 commands from an IRL program, use the IRL Z command. When the IRL program reaches a Z command, it is executed and the program continues with the next program statement. If the Z command is not valid, nothing will happen. The JANUS 2050 commands that can be executed in IRL are shown in the following table. Command
IRL Z Command
Change configuration
Z"$+command"
Backlight control
Z"%.data"
Laser on
Z"/."
Laser off
Z"/%"
Protected field
Z"\x09message"
Set clock
Z"/+ time"
Descriptions of these commands are included in Chapter 9, “Command Reference.” The change configuration command allows you to change any of the JANUS 2050 configuration settings. For example, if you wanted to set the beep volume to high (BV4) in an IRL program, the command is: Z"$+BV4"
Note: $- is not required but is supported at the end of change configuration commands for backward compatibility. For a description and syntax of the configuration commands that the JANUS 2050 supports, see Chapter 10, “Configuration Commands.” Note: U and V without an Edit (E) modifier do not parse for JANUS 2050 commands. The two exceptions are when Set Clock or Exit Program are sent from the host computer.
7-15
Page 179
JANUS 2050 Vehicle-Mount Computer User’s Manual (4MB) 39 nugget A
IRL File, Clear Purpose:
Delete one or all of the IRL data files with default filenames: {IRL-0}.IRD and {IRL-A}.IRD to {IRL-Z}.IRD.
From host:
.$filename where filename is 0 or any character from A to Z. If you do not include a filename, all IRL data files (0, A to Z) are deleted. Caution
CAUTION
When the clear file command is sent from the host computer without data, all data is cleared and all files are deleted. Conseil Lorsque la commande d’effacement de fichier (clear file) est envoyée de l’hôte sans préciser les données à effacer, toutes les données sont effacées et tous les fichiers sont supprimés.
Keypad:
Use the Clear Data option on the File menu.
IRL command:
Not supported
Scan:
Or, scan one of the following labels. Clear All IRL Data Files
*.$*
Clear {IRL-0}.IRD
*.$0*
*.$*
*.$0*
Clear{IRL-A}.IRD
Clear{IRL-B}.IRD
*.$A*
*.$B*
Clear {IRL-C}.IRD
Clear {IRL-D}.IRD
*.$A*
*.$C* *.$C*
*.$B*
*.$D*
*.$D*
Note: You can create bar code labels to delete {IRL-E}.IRD through {IRL-Z}.IRD.
7-16
Page 180
39 nugget A Working With IRL
7
When you scan the Clear All IRL Data Files command, a message lists the data files to be deleted as well as the directory where the files are located. Choose OK to delete the data files. If you choose to clear one data file, IRL deletes the file without displaying the message or prompt.
IRL File, Receive Purpose:
Accepts a file from the host computer and saves it under the specified filename. If the filename is not included, the JANUS 2050 will display the Receive screen, which allows you to select a COM port and a filename.
From host:
.% filename
Keypad:
Use the Receive option on the File menu.
IRL command:
Not supported
Scan:
Receive IRL File
*.%* *.%*
IRL File, Transmit Purpose:
Sends the specified file to the host computer. If the filename is not included, the JANUS 2050 will display the Transmit screen, which will list all .IRL and .IRD files in the current directory.
From host:
%% filename
Keypad:
Use the transmit option on the File menu.
IRL command:
Not supported
Scan:
Transmit IRL File
*%%* *%%*
7-17