ACM1281U-C7
– Reference Manual
Version 1.02
www.acs.com.hk
Page 21 of 44
www.acs.com
.hk
5.1.3.5.
Value Block Operation (Increment, Decrement, Store)
This command is used to manipulate value-based transactions (e.g., increment a value block, etc.).
Command
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)
Value Block to be manipulated
VB_OP
(1 byte)
Value block operation
00h
= Store
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 blocks.
02h
= Decrement the value of the value block by the
VB_Value
.
This command is only valid for value blocks.
VB_Value
(4 bytes)
The value used for manipulation. The value is a signed long integer.
Example 1:
Decimal - 4 = { FF FF FF FCh }
VB_Value
MSB
LSB
FFh
FFh
FFh
FCh
Example 2:
Decimal 1 = { 00 00 00 01h }
VB_Value
MSB
LSB
00h
00h
00h
01h
Response
Response
Data Out
Result
SW1
SW2
Where:
SW1 SW2
= 90 00h means the operation was completed successfully.
= 63 00h means the operation failed.