ACR1255U-J1 – Reference Manual info@acs.com.hkVersion V1.07 www.acs.com.hkPage 57 of 77Where:Block Number 1 byte. The starting block to be updated.Number of bytes to update 1 byte• Maximum 16 bytes for MIFARE Classic (1K/4K) or 4bytes for MIFARE Ultralight• Maximum 48 bytes for MIFARE Classic 1K. (MultipleBlocks Mode; 3 consecutive blocks)• Maximum 240 bytes for MIFARE Classic 4K. (MultipleBlocks Mode; 15 consecutive blocks)Block Data Multiple of 16 + 2 bytes, or 6 bytes. The data to be writteninto the binary block/blocks.Example 1: 10h (16 bytes). The starting block only. (Single Block Mode)Example 2: 30h (48 bytes). From the starting block to starting block +2. (Multiple BlockMode)Note: For safety reasons, the Multiple Block Mode is used for accessing data blocks only.The Trailer Block is not supposed to be accessed in Multiple Blocks Mode. Please use SingleBlock Mode to access the Trailer Block.Update Binary Block Response Codes (2 bytes)Results SW1 SW2 MeaningSuccessful 90h 00h The operation is completed successfullyError 63h 00h The operation is failedExamples:// Update the binary block 04h of MIFARE Classic (1K/4K) with Data {00 01 .. 0Fh}APDU = FF D6 00 04 10 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0Fh// Update the binary block 04h of MIFARE Ultralight with Data {00 01 02 03h}APDU = FF D6 00 04 04 00 01 02 03h6.5.5. Value Block Operation (INC, DEC, STORE)This command manipulates value-based transactions (e.g., increment a value of the value block).Value Block Operation APDU Format (10 bytes)Command CLA INS P1 P2 Lc Data InValue BlockOperation FFh D7h 00h BlockNumber 05h VB_OPVB_Value(4 bytes){MSB .. LSB}Where:Block Number 1 byte. The value block to be manipulated.VB_OP 1 byte00h = Store the VB_Value into the block. The block will then be