ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 20 of 52
3.14. ACR120_Power
Turns the antenna power on or off.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_Power(INT16 hReader,
INT8 State);
Parameters
Description
hReader
Handle to the reader returned by AC_Open()
State
Turn OFF (0) or ON (1)
Return Value
INT16
Result code. 0 means success.
Table 15
: ACR120_Power Command Description
Low Level Frame Structure:
Command: From PC to Reader (5 bytes)
Command Code
(1 byte)
Command Data Length
(1 bytes)
Instruction Code
(1 byte)
Data Length
(1 byte)
E0h
02h
12
(if State=0)
or 13
(if State=1)
00h
Response: From Reader to PC (6 bytes) <<Success or Fail>>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 bytes)
Response Data
(1 byte)
E1h
INT16
0001h
StateStored
Note:
The Response Data (StateStored) is used for comparison only.