
Elatec GmbH
Page 47 of 65
7.6.7
Read GPIO „ir‟
Use this command to read a specified GPIO. The GPIO is switched to input prior reading.
Command:
‘ir[GPIONumber]’
Answer
Answer
Description
Data<CR><LF>
Status of specified GPIO: 00 means Low; 01 means High.
Example
Command
Description
‘ir02’
Returns status of GPIO2.
7.6.8
Write GPIO „iw‟
Use this command to write a specified GPIO. The GPIO is switched to output prior writing. Please
consider the reader‟s maximum current source and sink capability!
Command:
‘iw[GPIONumber][Status]’
Answer
Answer
Description
Data<CR><LF>
Status of specified GPIO: 00 means Low; 01 means High.
Example
Command
Description
‘iw0201’
Sets GPIO2 to logical state High
‘iw0300’
Sets GPIO3 to logical state Low
7.6.9
Read GPIO1 „pr‟
Use this command to read GPIO1. GPIO1 is switched to input prior reading. The command has the
same effect as command
‘ir01’
. It has been implemented in order to adhere backward compatibility.
Command:
‘pr’
Answer
Answer
Description
Data<CR><LF>
Status of GPIO1: 00 means Low; 01 means High.
7.6.10
Write GPIO1 „pw‟
Use this command to write GPIO1. GPIO1 is switched to output prior writing. Please consider the
reader‟s maximum current source and sink capability! The command has the same effect as command
‘iw010X’
. It has been implemented in order to maintain backward compatibility.
Command:
‘pw[Status]’
Answer
Answer
Description
Data<CR><LF>
Status of GPIO1: 00 means Low; 01 means High.