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.

Interactive Reader Language<br />

G#0=0.START :Nothing at the sense inputs, return to beginning.<br />

C$0=#0 :Convert the input to string for test.<br />

D#1=[$0] :Determine the string length.<br />

G#1=2.ALARM :If second bit is set, an alarm is detected.<br />

G#1=1.DOROPEN :If first bit is set, the door is open.<br />

G.FAULT :If any other bit is set, the unit faulted.<br />

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

:This subroutine handles an alarm signal. *<br />

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

:<br />

.ALARM<br />

P"ALARM SIGNAL DETECTED" :Inform user of the alarm.<br />

P"ACCESS DENIED"<br />

D$0="ALARM --" :Prepare message for host.<br />

TA :Append time to message.<br />

XMP,$0 :Transmit alarm message to host.<br />

G.HOUSKEP :Continue testing for alarm.<br />

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

:If the door is held open too long, the program prompts the user to *<br />

:close it. *<br />

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

:<br />

.DOROPEN<br />

B01010101 :Beep at the user.<br />

P"DOOR OPEN" :Prompt user to close door.<br />

P"PLEASE CLOSE"<br />

W5 :Wait 5 seconds for the message to be read.<br />

G.HOUSKEP :Continue testing for open door.<br />

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

:This subroutine handles any fault detection. *<br />

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

:<br />

.FAULT<br />

B11110000 :Beep at the user.<br />

P"FAULT" :Inform user of the fault<br />

P"INVALID SENSE INPUT"<br />

W5 :Wait 5 seconds for the message to be read.<br />

G.HOUSKEP :Continue testing for fault.<br />

E<br />

9<br />

9-13

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

Saved successfully!

Ooh no, something went wrong!