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

IRL Programming Reference Manual, pages 101 to 110

Pages 101 to 110 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 101

5 Using IRL With JANUS Readers

Page 102

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

Page 103

Using IRL With JANUS Readers

5

This chapter highlights the IRL version 4.1 features for the JANUS family of readers. Use this chapter as a quick reference for programming your JANUS reader.

IRL Version 4.X If you have a JANUS reader, you have IRL version 4.X software. IRL version 4.X takes advantage of the many enhancements in the DOS-based JANUS readers. IRL version 4.1 software is included with JANUS software version 2.1 or higher. Older JANUS readers run IRL version 4.0 software. This chapter covers these topics: •

IRL Desktop

•

Setting DOS environment variables for IRL

•

Working with IRL files

•

Resuming an IRL program

•

Increasing available memory

•

JANUS-specific IRL features

•

Differences between 944X and JANUS readers

•

IRL reader commands

5-3

Page 104

IRL Programming Reference Manual

IRL Desktop The IRL operating environment on the JANUS reader is called the IRL Desktop. The IRL Desktop is a menu-driven application that helps you run, download, transmit, and receive IRL programs. For detailed information on using the IRL Desktop, see your JANUS user’s manual. To open the IRL Desktop •

Type this command at the DOS prompt and press irl e

:

Or scan this bar code:

*IRL* *IRL*

To exit the IRL Desktop •

Select Exit from the File menu and press e

.

Setting DOS Environment Variables for IRL You can use DOS environment variables to make the JANUS reader more closely emulate how a TRAKKER runs IRL programs. This section explains what varaibles you can set and how each works. To learn more about environment variables, see your DOS user's manual. You can set environment variables at the DOS prompt or with a batch file. If you add these commands to AUTOEXEC.BAT, the environment variables are set every time you boot the reader. To manage your memory more efficiently, you can add the commands to the start of a batch file (such as IRL.BAT) and then clear the commands at the end of the batch file. For example, add this DOS command to IRL.BAT before the command to run IRLDESK.EXE: set IM_IRL_STAT=1

Then add this DOS command to the end of IRL.BAT to clear the variable: set IM_IRL_STAT=

For most environment variables, you can use any value; the value itself has no significance. The only exception is IM_IRL_TIMEOUT, which must be set from 0 to 65 to indicate the number of seconds in the timeout.

5-4

Page 105

Using IRL With JANUS Readers

5

Note: If you do not set any of these environment variables, IRL programs will run on the JANUS reader as they always have. Set these environment variables only if you need to make the JANUS reader emulate a TRAKKER. You can set these IRL environment variables: •

IM_IRL_NO_SECONDS

•

IM_IRL_NUM

•

IM_IRL_SEPARATE_EOF

•

IM_SILENT

•

IM_IRL_STAT

•

IM_IRL_TIMEOUT

•

IM_IRL_YXN

IM_IRL_NO_SECONDS Purpose:

On the TRAKKER you can enable or disable including seconds in the timestamp. By default, the JANUS readers always include seconds in the time. Set this environment variable to disable including seconds on the JANUS.

Syntax:

set IM_IRL_NO_SECONDS=n

Parameters:

When n is a number, the variable is set (do not include seconds). When n is omitted, the variable is cleared (include seconds).

Default:

Include seconds.

5-5

Page 106

IRL Programming Reference Manual

IM_IRL_NUM Purpose:

The maximum value for numeric registers on the TRAKKER is 9,999,999. The maximum value on the JANUS reader is 999,999,999. Set this environment variable to use the same maximum on the JANUS.

Syntax:

set IM_IRL_NUM=n

Parameters:

When n is a number, the variable is set (maximum = 9,999,999). When n is omitted, the variable is cleared (maximum = 999,999,999).

Default:

Maximum value of numeric registers is 999,999,999.

IM_IRL_SEPARATE_EOF Purpose:

Both the TRAKKER and JANUS reader append the EOF character to the last record of a file being transmitted. Set this environment variable if you want the EOF character to be transmitted as a separate record, which is transmitted last.

Syntax:

set IM_IRL_SEPERATE_EOF=n

Parameters:

When n is a number, the variable is set (append EOF to last data record). When n is omitted, the variable is cleared (send EOF as separate record).

Default:

5-6

Append EOF character to last record.

Page 107

Using IRL With JANUS Readers

5

IM_SILENT Purpose:

When you start an IRL program, the sign-on screen is displayed. Set this environment variable if you do not want the sign-on screen displayed when you start an IRL program.

Syntax:

set IM_IRL_SILENT=n

Parameters:

When n is a number, the variable is set (do not display sign-on screen). When n is omitted, the variable is cleared (display sign-on screen).

Default:

Display sign-on screen.

IM_IRL_STAT Purpose:

The TRAKKER sets the status register (#0) to 0 or 1 for the A, K, N, and U commands. The JANUS reader sets #0 for the A, K, N, and U commands to the same values as the V command. The status for the V command is the same on both TRAKKER and JANUS reader. Set this environment variable for the JANUS to use the same status values as the TRAKKER for the A, K, N, and U commands.

Syntax:

set IM_IRL_STAT=N

Parameteres:

When n is a number, the variable is set (use TRAKKER values, 0 or 1). When n is omitted, the variable is cleared (use the V command values).

Default:

The return status codes for the A, K, N, and U commands are the same as they are for the V command.

5-7

Page 108

IRL Programming Reference Manual

IM_IRL_TIMEOUT Purpose:

When an IRL program terminates, IRLXDESK returns to the DOS prompt When you are downloading files to the JANUS, an Abort Program command (/$) causes the IRL program to terminate. Instead of returning to DOS, IRLXDESK needs to determine if the abort was received prior to a file being downloaded. You can set a delay with this environment variable. If IRLXDESK detects that a file is being received before the timeout occurs, it will continue to receive the file and not return to DOS. This varaible has no effect on IRL programs run without IRLXDESK.EXE.

Syntax:

set IM_IRL_TIMEOUT=time

Parameters:

When time is an integer from 0 to 65, it indicates the number of seconds to wait. When time is omitted, this variable is cleared (return immediately to DOS).

Default:

3 seconds.

IM_IRL_YXN Purpose:

The JANUS reader returned a single character on a YxN command if no termination character was specified. The TRAKKER returned all characters currently in the receive buffer. If there were no characters in the buffer, this command returned as soon as a single character was received.

Syntax:

set IM_IRL_YXN=1

Usage:

Set this environment variable if you want the JANUS reader to return all characters currently in the receive buffer like the TRAKKER does.

Default:

Return a single character regardless of how many characters are in the buffer.

5-8

Page 109

Using IRL With JANUS Readers

5

Working With IRL Files You can store multiple IRL programs and data files on the JANUS reader. The size of data files is limited by disk space, not by internal memory. If the reader does not have enough disk space to open the specified data files when the program is compiled, an error message appears and the program terminates. This table shows the default filenames for IRL programs and data files. Filename

Description

{IRL-1}.IRL

Default IRL program file, called File 1

{IRL-0}.IRD

Default IRL data file, called File 0

{IRL-A}.IRD

IRL data file A

• • •

• • •

{IRL-Z}.IRD

IRL data file Z

Note: The braces { } are part of the filename as shown in the table above.

Naming IRL Files You can give IRL programs and data files descriptive names that conform to DOS conventions. For example, CHECKIN.IRL and PUTAWAY.IRL are valid program filenames. ORDERS.IRD and PARTS.IRD are valid data filenames. For the IRL Desktop to recognize your files, you must follow these two rules: •

IRL program filenames must end with the .IRL extension.

•

IRL data file filenames must end with the .IRD extension.

Note: Choose the names for your data files carefully. You can refer to a data file in multiple programs. If more than one program uses a data file, your data may be overwritten by another program.

Referring to IRL Data Files in a Program Within an IRL program, every IRL data file has a number or letter designation: 0, or A through Z. IRL uses the number or letter name to identify the file. File 0 is the default data file. You assign the letter designation for a data file when you create the file with the IRL O (Open) command. The following table shows examples.

5-9

Page 110

IRL Programming Reference Manual

Opening the Data File

How IRL Refers to the File

How DOS Refers to the File

OB(100,50)

B

{IRL-B}.IRD in the current directory

OC"new.ird"(50,8)

C

NEW.IRD in the current directory

OD"e:\sales\order.ird"(10,5)

D

ORDER.IRD in the E:\SALES directory

OU"partno.ird"

U

PARTNO.IRD in the current directory

Each data file is stored on the JANUS reader under its DOS filename. However, when you refer to a data file in an IRL command, you do not use its DOS filename. Instead, you refer to the file by its letter name. For example, to append “data” to the NEW.IRD file listed above, execute this IRL command: IC"data" where: I is the Insert command. C is the letter designation for NEW.IRL. data is the data to be appended to the file.

Dimensioned and Undimensioned Data Files IRL version 4.X recognizes dimensioned and undimensioned data files. When you open a dimensioned data file, you specify the exact size of the data to be saved in the file. For example, this command opens file C with 10 records of 15 characters each: OC(10,15)

IRL expects the data to conform to the dimensions of the file. If the data is shorter than 15 characters, IRL fills the rest of the record with blanks. If the data is longer than 15 characters, IRL truncates the extra characters. Note: If an IRL program attempts to open a dimensioned data file, and there is another dimensioned file in the directory with the same name but different dimensions, the compile fails and the Dimension Error message appears. An undimensioned IRL data file holds up to 65,535 records of any size, provided that the reader has enough disk space available. Even if there is great variation in the size of each data record, IRL does not add blanks or truncate extra characters. The default data file, {IRL-0}.IRD, is an undimensioned file.

5-10