User's Guide Part 2

CHAPTER 5 READER-HOST PROTOCOL
External I/O Commands
These commands allow you to configure and retrieve current data regarding the
reader’s external output functions.
S
ET EXTERNALOUTPUT
G
ET EXTERNALOUTPUT
The reader controls four external output pins, which can subsequently be used to
control external devices such a doors/gates, security lights. etc. Please refer to
Chapter 1, Specifications section in this document for pinout diagrams.
With this command you can set the external output pin values. The command
takes a single parameter that represents the bit mask settings of the external
pins.
Bit 0 represents the state of pin 0, and Bit 1 represents the state of pin 1, Bit
2 is state of pin 2 and Bit 3 is state of pin 3.
For example, to set pin 1 to high and pin 0 on low, use the bit mask of
10
binary
which translates to 2
decimal
NOTE: Changes made with this command will take effect immediately.
Example
Command
Response
>Set ExternalOuput = 2
>ExternalOutput = 2
Command
Response
>Get ExternalOuput
>ExternalOutput = 2
GET EXTERNALINPUT
The reader also monitors four external input pins, which can subsequently be
controlled by external proximity detectors and other input devices such as
“magic-eyes” and magnetic switches. This command allows these external input
pin values to be obtained.Please refer to Chapter 1, Specifications section in this
document for pinout diagrams.
The command returns a single byte result that represents the bit mask
settings of the external pins. Bit 0 represents the state of pin 0, and Bit 1
represents the state of pin 1, Bit 2 is state of pin 2 and Bit 3 is state of pin 3.
NOTE: Changes made with this command will take effect immediately.
Example
Command
Response
>Get ExternalInput
>ExternalInput = 2 (i.e., binary 10)