ACR1255U-J1 – Reference Manual
Version V1.01
www.acs.com.hk
Page 47 of 73
6.4.5.
Value Block Operation (INC, DEC, STORE)
This command is used for manipulating value-based transactions (e.g., increment a value of the value
block).
Value Block Operation APDU Format (10 bytes)
Command
Class
INS
P1
P2
Lc
Data In
Value Block
Operation
FFh
D7h
00h
Block
Number
05h
VB_OP
VB_Value
(4 bytes)
{MSB .. LSB}
Where:
Block Number
1 byte. The value block to be manipulated.
VB_OP
1 byte.
00h = Store the VB_Value into the block. The block will then be
converted to a value block.
01h = Increment the value of the value block by the VB_Value. This
command is only valid for value block.
02h = Decrement the value of the value block by the VB_Value. This
command is only valid for value block.
VB_Value
4 bytes. The value used for value manipulation. The value is a signed
long integer (4 bytes).
Example 1:
Decimal –4 = {FFh, FFh, FFh, FCh}
VB_Value
MSB
LSB
FFh
FFh
FFh
FCh
Example 2:
Decimal 1 = {00h, 00h, 00h, 01h}
VB_Value
MSB
LSB
00h
00h
00h
01h
Value Block Operation Response Format (2 bytes)
Response
Data Out
Result
SW1
SW2
Value Block Operation Response Codes
Results
SW1
SW2
Meaning
Success
90h
00h
The operation is completed successfully.
Error
63h
00h
The operation is failed.