20
ASCII Protocol - Reference Guide
May ’00
Example 1
Comment
PC --> Reader:
H
Reader --> PC:
H
PC --> Reader:
I2
Get Input status of port lines 0...3
Reader --> PC:
03<CR><LF>
Return Port status 0...3; in this example
I/O lines 0&1 of the I/O port 0...3 are set to 1
I/O lines 2&3 of the I/O port 0...3 are set to 0
Example 2
Comment
PC --> Reader:
H
Assuming, Open Collector outputs were
previously set to OC0=0 and OC1=1
Reader --> PC:
H
PC --> Reader:
O0400
Invert current output settings of the Open Col-
lector outputs. They are now set to OC0=1
and OC1=0
Reader --> PC:
<CR><LF>
Example 3
Comment
PC --> Reader:
H
Assuming, I/O port lines 0...7 are configured
to Output and previously set to 'A5'
Reader --> PC:
H
PC --> Reader:
O133F
Set outputs 0...7
Logical operation: XOR
Prior output status: A5
Port value: 3F
I/O 7
I/O 0
status
1 0 1 0 0 1 0 1
XOR
0 0 1 1 1 1 1 1
port value
1 0 0 1 1 0 1 0
new output status