ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 33 of 52
5.3. ACR120_ReadValue
Reads a value.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_ReadValue( INT16 hReader,
UINT8 Block,
INT32* pValueData);
Parameters
Description
hReader
Handle to the reader returned by AC_Open()
Block
Block number
pValueData
Contains the value read. It is 32 bit signed integer.
Return Value
INT16
Result code. 0 means success.
Table 22
: ACR120_ReadValue Command Description
Low Level Frame Structure:
Command: From PC to Reader (6 bytes)
Command Code
(1 byte)
Command Data Length
(1 byte)
Instruction Code
(1 byte)
Data Length
(1 byte)
Data
(1 byte)
E0h
03h
07h
01h
Block
Response: From Reader to PC (9 bytes) <<Success>>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 bytes)
Response Data
(4 bytes)
E1h
INT16 (>=0)
0004h
pValueData
Or
Response: From Reader to PC (5 bytes) << Fail>>
Response Code
(1 byte)
Response Status
(2 bytes)
Response Data Length
(2 byes)
E1
INT16 (<0)
0000