17.08.2013 Views

9560 Transaction Manager User's Manual - Intermec

9560 Transaction Manager User's Manual - Intermec

9560 Transaction Manager User's Manual - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>9560</strong> <strong>Transaction</strong> <strong>Manager</strong> User’s <strong>Manual</strong><br />

Sample Program 1<br />

9-10<br />

The digits correspond to the inputs as shown below:<br />

Third input<br />

J3<br />

0 1 1 Register #0<br />

Second input<br />

J2<br />

First input<br />

J1<br />

<strong>9560</strong>-40U<br />

For example, if the #0 register contains 011, it would indicate a signal at the<br />

first and second inputs, but none at the third input.<br />

• Clears the sense inputs<br />

For a complete description of the command syntax, see “LED/Relay Control”<br />

in Chapter 8. For a description of commands for the magnetic card reader, see<br />

“Magnetic Card Reader Commands” later in this chapter.<br />

In this example, the <strong>9560</strong> controls access to a restricted area. If the user scans a<br />

badge with an authorized number, the <strong>9560</strong> responds by actuating a relay that<br />

may be connected to a door lock. An invalid badge number does not unlock the<br />

door.<br />

This program is appropriate for a configuration where the <strong>9560</strong> is not<br />

connected to a host computer. Instead, the IRL program contains a list of all<br />

valid badge numbers that are sequentially checked against the scanned badge.<br />

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

Program Listing #1: Controlling Access to a Restricted Area<br />

.START :Label for start of loop.<br />

D$0="" :Initialize register for badge number.<br />

P"ENTER BADGE" :Prompt user to scan badge.<br />

A :Accept input.<br />

G.CHECK :Go verify badge number.<br />

:**********************************************************************<br />

:If the badge is valid, this subroutine opens the door. *<br />

:**********************************************************************<br />

:<br />

.GOOD<br />

P"VALID BADGE" :Tell user the badge is valid.<br />

P"ENTRY ALLOWED"<br />

W1 :Wait 1 second.<br />

FXXXX1000 :Actuate relay to open door.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!