Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 72
READGPI, REPEAT, Possible Values Returned for a Reader With 2 General Purpose Outputs
View all Intermec IV7 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 72 highlights
Chapter 4 - BRI Commands This command only include tags where the AFI bits equal hexadecimal 0x95. READGPI Purpose: This command returns a value that indicates the current state of all the general purpose (GP) input lines available on a specific reader. The value returned is an integral representation of the bit field corresponding to the output pins available on the reader device. The READGPIO command is the same as the READGPI command, and has been included to maintain backwards compatibility with previous versions of the BRI. For details, see the documentation that shipped with the reader. Note that regardless of the hardware, the BRI will return the following when all of the inputs on a reader are active: Syntax: Examples: READGPI 0 OK> READGPI Example 1: In this example, a reader has 2 general purpose outputs. The following table describes the possible values returned by the BRI for the READGPI and the associated states of each of the inputs. Possible Values Returned for a Reader With 2 General Purpose Outputs BRI Value 0 1 2 3 Pin 1 State Active Active Inactive Inactive Pin 2 State Active Inactive Active Inactive Example 2: Use this command to check the state of all GP input lines in a reader: READGPI The response is formatted as follows for a reader with four GP input lines: 15 OK> The code indicates that all four inputs are ON. REPEAT Purpose: This command causes the last READ or WRITE command to be executed again. When a READ or WRITE command is executed by the BRI, all command line parameters are stored in the reader. If a complex command has been sent, the REPEAT command provides a shortcut method of executing the command multiple times without sending the entire command sequence. 60 Basic Reader Interface Programmer Reference Manual