ACR1281U-C8 – Application Programming Interface
Version 1.00
www.acs.com.hk
Page 39 of 52
5.9. ACR120_Copy
Copies a value block to another block of the same sector.
High Level API
:
DLLAPI INT16 AC_DECL
ACR120_Copy( INT16 hReader,
UINT8 srcBlock,
UINT8 desBlock,
INT32* pNewValue);
Parameters
Description
hReader
Handle to the reader returned by AC_Open()
srcBlock
Source block number
tgtBlock
Target block number
pNewValue
Updated value of the desBlock after copy
Return Value
INT16
Result code. 0 means success.
Table 28
: ACR120_Copy Command Description
Low Level Frame Structure:
Command: From PC to Reader (7 bytes)
Command Code
(1 byte)
Command Data length
(1 byte)
Instruction Code
(1 byte)
Data length
(1 byte)
Data
(1 byte)
(1 byte)
E0h
04h
11h
02h
srcBlock
tgtBlock
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
pNewValue
Or
Response: From Reader to PC (5 bytes) << Fail>>
Respons
e Code
(1 byte)
Response Status
(2 bytes)
Response Data
length
(2 byes)
E1h
INT16 (<0)
0000h