ACR128 Dual Interface Smart Card Reader7.5 Value Block Related CommandsThe data block can be used as value block for implementing value-based applications.7.5.1 Value Block OperationThe Value Block Operation command is used for manipulating value-based transactions, e.g.,increment a value of the value block, etc.Table 26-a: Value Block Operation APDU Format (10 Bytes)Command Class INS P1 P2 Lc Data InValueBlockOperationFF D7 00 BlockNumber05 VB_OP VB_Value(4 Bytes){MSB .. LSB}where:Block Number: 1 Byte. The value block to be manipulated.VB_OP: 1 Byte.0x00 = Store the VB_Value into the block. The block will then be converted to a value block.0x01 = Increment the value of the value block by the VB_Value. This command is only valid forvalue block.0x02 = Decrement the value of the value block by the VB_Value. This command is only valid forvalue block.VB_Value: 4 Bytes. The value of this data, which is a signed long integer (4 bytes), is used for valuemanipulation.Example 1: Decimal - 4 = {0xFF, 0xFF, 0xFF, 0xFC}VB_ValueMSB LSBFF FF FF FCExample 2: Decimal 1 = {0x00, 0x00, 0x00, 0x01}VB_ValueMSB LSB00 00 00 01Table 26-b: Value Block Operation Response Format (2 Bytes)Response Data OutResult SW1 SW2Table 26-c: Value Block Operation Response CodesResults SW1 SW2 MeaningSuccess 90 00 The operation is completed successfully.Error 63 00 The operation failed.Page 31 of 36ACR128 APIVersion 1.7 May 2008