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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Interactive Reader Language<br />

W2 :Leave door open for 2 seconds.<br />

FXXXX0000 :Lock door.<br />

G.START :Return to beginning.<br />

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

:This subroutine compares the scanned badge with the valid badge *<br />

:numbers. *<br />

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

:<br />

.CHECK<br />

G$0="B00280".GOOD<br />

G$0="B00314".GOOD<br />

G$0="B00313".GOOD<br />

B101010 :If the badge is invalid, respond with beep and<br />

P"NOT A VALID BADGE":message.<br />

P"ENTRY DENIED"<br />

W2 :Wait 2 seconds.<br />

G.START :Return to beginning.<br />

E<br />

Sample Program 2<br />

9<br />

This program performs the same functions as Sample 1, with the following<br />

exceptions:<br />

• The <strong>9560</strong> is connected to a host computer that stores the “valid” badge<br />

numbers.<br />

• The sense inputs are monitored. If the alarm input is high, access is denied.<br />

• If you hold the door open, the <strong>9560</strong> beeps and prompts you to close it.<br />

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

Program Listing #2: Controlling Access to a Restricted Area with a Host and Sense Inputs<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 />

P"" :Move previous line to top of display.<br />

A;3000 :Accept input; wait up to 30 seconds.<br />

G$0=".HOUSKEP" :If no input, do housekeeping.<br />

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

:This subroutine prepares the input and sends it to the host. *<br />

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

:<br />

.BADGE<br />

I$0"--" :Add end of badge marker.<br />

TA :Append time to badge number.<br />

P"WAITING FOR HOST" :Give feedback to user.<br />

XMP,$0;1000 :Transmit badge number to host.<br />

9-11

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

Saved successfully!

Ooh no, something went wrong!