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 24 of 31

9560 Transaction Manager User's Manual, pages 231 to 240

Pages 231 to 240 of 309

The original document is the PDF (1.1 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 9560

Page 231

Interactive Reader Language

9

The reader enters Command Line mode and displays the following prompt: IRL v2.1 >_ You can display the IRL editor on the terminal screen by scanning the Enter IRL Editor command label a second time.

Exiting the IRL Editor The method you use to exit the IRL editor depends on the mode you are working in and whether you want to compile and run the program. Choose the exit method you want from the following two tables and follow the steps in the table.

Exiting from Command Line Mode Input the Command

To Exit Without Compiling

To Exit and Compile

From the host or scanner

Send the /$ command or scan the Exit IRL Editor command label.

1. Exit IRL without compiling.

From the 9560 keypad

2. Send the E command or scan the Compile IRL Program label.

Exit IRL Editor

Compile IRL Program

*/$*

*E*

*/$*

*E*

1. Press Q at the editor prompt.

1. Press E at the editor prompt.

2. Press Enter.

2. Press Enter.

9-5

Page 232

9560 Transaction Manager User’s Manual

Exiting from Program Edit Mode Input the Command

To Exit Without Compiling

To Exit and Compile

From the host or scanner

1. Press Enter at the beginning of a new line. The editor prompt is displayed.

1. Exit IRL without compiling.

2. Send the /$ command or scan the Exit IRL Editor command label.

From the 9560 keypad

2. Send the E command or scan the Compile IRL Program label.

Exit IRL Editor

Compile IRL Program

*/$*

*E*

*/$*

*E*

1. Press Enter at the beginning of a new line. The editor prompt is displayed.

1. Press Enter at the beginning of a new line. The editor prompt is displayed.

2. Press Q at the editor prompt.

2. Press E at the editor prompt.

3. Press Enter.

3. Press Enter.

Creating and Running IRL Programs For a complete listing of the IRL program commands, refer to the IRL Programming Reference Manual (Intermec Part No. 048609). This section presents only those commands necessary to start, stop, and edit an IRL program.

Inserting a Program Statement Use the Insert command to enter program statements. This command displays the next available line number. If you type a program statement followed by Enter, the statement is added and a new line is displayed. To enter program statements 1. Enter the I command or scan the Insert Program Statement command label. Insert Program Statement

*I* *I*

2. Type the program statement and then press Enter.

9-6

Page 233

Interactive Reader Language

9

To exit the Insert mode and return to the IRL editor •

Press Enter at the beginning of a new program line.

Compiling a Program The E command exits the IRL editor, compiles the program, and stores the program in the reader’s memory. To compile an IRL program while in the IRL editor •

Enter the E command or scan the Compile IRL Program command label. Compile IRL Program

*E* *E*

To transmit a compiled IRL file to the host •

Enter the %%1 command or scan the Transmit command label. Transmit

*%%1* *%%1*

Running a Program The Run IRL command begins executing an IRL program at the first statement. The Resume IRL command resumes a previously run program at the point where it was interrupted. To run an IRL program 1. Exit the IRL editor. 2. Enter the // command or scan the Run IRL Program command label. Run IRL Program

*//* *//*

9-7

Page 234

9560 Transaction Manager User’s Manual

To resume an IRL program •

Enter the $. command or scan the Resume IRL Program command label. If the program is resumed after prompts have been displayed, the prompts are lost. Resume IRL Program

*$.* *$.*

IRL Bar Codes Enter IRL Editor

Exit IRL Editor/Program

*$$*

*/$*

*$$*

*/$*

Insert Program Statement

Compile IRL Program

*I*

*E*

*I*

*E*

Transmit

Run IRL Program

*%%1*

*//*

*%%1*

*//*

Resume IRL Program

*$.* *$.*

9-8

Page 235

Interactive Reader Language

9

Unique IRL Commands for the 9560 The 9560 uses standard IRL 2.1 commands plus the Function Output command for the sense inputs and relays.

IRL v2.1 and IRL v2.2 Differences IRL 2.1 does not support the following IRL 2.2 and later commands and operations: YMP.<filename> YMN.<filename>

File receive with protocol File receive without protocol

Q, G, and S commands with these conditional operations: >= <= <>

Greater than or equal to Less than or equal to Not equal to

If you use any of these commands, the IRL program will not compile or run on the 9560. Note: PC-IRL will compile these commands. If you create an IRL program in PC-IRL with these commands and download it to the 9560, the program will not run on the 9560.

Function Output Command You use the enhanced Function Output command (F) to control the relays and determine the sense input status. This command is also known as the LED/Relay Control command. The F command performs the following functions: •

Controls the LEDs on a 9191 Satellite Wand Station, if connected

•

Controls the 3 output relays

•

Returns the status of the 3 sense inputs to the #0 register in the following format: The #0 register contains a 3-digit binary string A 1 indicates a signal was detected; a 0 indicates no signal was detected

9-9

Page 236

9560 Transaction Manager User’s Manual

The digits correspond to the inputs as shown below:

01 1 Third input J3

Register #0 First input J1

Second input J2 9560-40U

For example, if the #0 register contains 011, it would indicate a signal at the first and second inputs, but none at the third input. •

Clears the sense inputs

For a complete description of the command syntax, see “LED/Relay Control” in Chapter 8. For a description of commands for the magnetic card reader, see “Magnetic Card Reader Commands” later in this chapter.

Sample Program 1 In this example, the 9560 controls access to a restricted area. If the user scans a badge with an authorized number, the 9560 responds by actuating a relay that may be connected to a door lock. An invalid badge number does not unlock the door. This program is appropriate for a configuration where the 9560 is not connected to a host computer. Instead, the IRL program contains a list of all valid badge numbers that are sequentially checked against the scanned badge. You can use this programs as is, line by line, with or without the comments.

Program Listing #1: Controlling Access to a Restricted Area .START :Label for start of loop. D$0="" :Initialize register for badge number. P"ENTER BADGE" :Prompt user to scan badge. A :Accept input. G.CHECK :Go verify badge number. :********************************************************************** :If the badge is valid, this subroutine opens the door. * :********************************************************************** : .GOOD P"VALID BADGE" :Tell user the badge is valid. P"ENTRY ALLOWED" W1 :Wait 1 second. FXXXX1000 :Actuate relay to open door.

9-10

Page 237

Interactive Reader Language

9

W2 :Leave door open for 2 seconds. FXXXX0000 :Lock door. G.START :Return to beginning. :********************************************************************** :This subroutine compares the scanned badge with the valid badge * :numbers. * :********************************************************************** : .CHECK G$0="B00280".GOOD G$0="B00314".GOOD G$0="B00313".GOOD B101010 :If the badge is invalid, respond with beep and P"NOT A VALID BADGE":message. P"ENTRY DENIED" W2 :Wait 2 seconds. G.START :Return to beginning. E

Sample Program 2 This program performs the same functions as Sample 1, with the following exceptions: •

The 9560 is connected to a host computer that stores the “valid” badge numbers.

•

The sense inputs are monitored. If the alarm input is high, access is denied.

•

If you hold the door open, the 9560 beeps and prompts you to close it.

You can use this programs as is, line by line, with or without the comments.

Program Listing #2: Controlling Access to a Restricted Area with a Host and Sense Inputs .START :Label for start of loop. D$0="" :Initialize register for badge number. P"ENTER BADGE" :Prompt user to scan badge. P"" :Move previous line to top of display. A;3000 :Accept input; wait up to 30 seconds. G$0=".HOUSKEP" :If no input, do housekeeping. :********************************************************************** :This subroutine prepares the input and sends it to the host. * :********************************************************************** : .BADGE I$0"--" :Add end of badge marker. TA :Append time to badge number. P"WAITING FOR HOST" :Give feedback to user. XMP,$0;1000 :Transmit badge number to host.

9-11

Page 238

9560 Transaction Manager User’s Manual

G#0=0.GOODSND :If the transmission is good, wait for response. :********************************************************************** :The subroutine executes the following statements if the host does * :not respond. * :********************************************************************** : .BADHOST P"HOST NOT RESPONDING" :Inform user if host does not respond. P"ACCESS DENIED" W5 :Wait 5 seconds for message to be read. G.START :Return to beginning. :********************************************************************** :These statements accept the response from the host. * :********************************************************************** : .GOODSND D$0="" :Clear the badge string and set up for response. YMP;1000 :Wait up to 10 seconds for the host response. #0=0.GOODREC :If reception from host is valid, go check :response. G.BADHOST :********************************************************************** :This subroutine acts on whether the host says the badge is valid or * :invalid. * :********************************************************************** : .GOODREC G$0="VALID".OPENDOR :If the badge is valid, open the door. P"INVALID BADGE NUMBER" :Otherwise, inform user. P"ACCESS DENIED" W5 :Wait 5 seconds for the message to be read. G.START :Return to beginning. :********************************************************************** :Open the door and allow the user time to enter before locking the * :door. * :********************************************************************** : .OPENDOR P"WELCOME TO WORK" :Greet the user. FXXXX1 :Actuate relay to open door. W10 :Leave door open for 10 seconds. FXXXX0 :Lock door. G.START :Return to beginning. :********************************************************************** :If there is no input on the badge scanner, the program goes to this * :subroutine. The sense inputs are checked and evaluated. * :********************************************************************** : .HOUSKEP D#0=0 :Initialize to no alarms/door closed FX :Read the sense inputs.

9-12

Page 239

Interactive Reader Language

9

G#0=0.START :Nothing at the sense inputs, return to beginning. C$0=#0 :Convert the input to string for test. D#1=[$0] :Determine the string length. G#1=2.ALARM :If second bit is set, an alarm is detected. G#1=1.DOROPEN :If first bit is set, the door is open. G.FAULT :If any other bit is set, the unit faulted. :********************************************************************** :This subroutine handles an alarm signal. * :********************************************************************** : .ALARM P"ALARM SIGNAL DETECTED" :Inform user of the alarm. P"ACCESS DENIED" D$0="ALARM --" :Prepare message for host. TA :Append time to message. XMP,$0 :Transmit alarm message to host. G.HOUSKEP :Continue testing for alarm. :********************************************************************** :If the door is held open too long, the program prompts the user to * :close it. * :********************************************************************** : .DOROPEN B01010101 :Beep at the user. P"DOOR OPEN" :Prompt user to close door. P"PLEASE CLOSE" W5 :Wait 5 seconds for the message to be read. G.HOUSKEP :Continue testing for open door. :********************************************************************** :This subroutine handles any fault detection. * :********************************************************************** : .FAULT B11110000 :Beep at the user. P"FAULT" :Inform user of the fault P"INVALID SENSE INPUT" W5 :Wait 5 seconds for the message to be read. G.HOUSKEP :Continue testing for fault. E

9-13

Page 240

9560 Transaction Manager User’s Manual

Sample Program 3 This program enables the 9560 to read data from the magnetic card reader. You must use this program or a similar program to control the internal magnetic card reader. If you ordered the 9560 with the internal magnetic card reader, you already have this program in two places. It is installed on the 9560 at the factory, and your package includes a disk with this program on it. The disk is Intermec Part No. 061795, and the program name is MAGDRVR.IRL. You can use this program as is, line by line, with or without the comments.

Magnetic Card Reader Specifications The 9560 reads track 2 from the card reader. Track 2 meets the ANSI/ISO standards described in these publications: •

ANSI X4.13-1983 Specifications for Credit Cards

•

ANSI X4.16-1983 Financial Transaction Cards

•

ISO 7811/2 THRU 5 Identification Cards Track 1 Thru 3

Note: The magnetic card reader does not function when the 9560 is using the Japanese Katakana character set. Katakana requires 8-bit characters, but the magnetic card reader only supports 7-bit characters.

Communications Settings The magnetic card reader requires specific host and terminal communications settings. Make sure that you configure the 9560 to match these settings: Baud

9600

Data bits

7

Stop bits

1

Parity

Even

Terminal

Buffered, Transparent

If you are using User-Defined or Point-to-Point protocol, set the terminal to buffered or transparent. For information on configuring the 9560, see Chapter 6, “Configuring the 9560,” and Chapter 7, “Configuration Commands.”

9-14