71 of 135
(4) Write Data (
WTDT
)
Command
WTDT(S)
MemoryBank
(S)
DataPointer
(S)
WriteData
(S)[
options...
]<LF>
MemoryBank
: Memory Bank
DataPointer
: Data Pointer
WriteData
; Data to be written
Response
WTDT[RC](S)[CNT](S)[ITM1]<LF>
[RC]: Response Code
[CNT]: Tag Count
[ITM1]: Items indicated by TIF option. Items are delimited by a comma.
Note:
・
If EPC/PEP/PER are specified for TIF option, EPC data shall be the data before
rewrite. If data length is zero during EPC specification, data shall become ”*”.
*(S) Space Character
Example 1) When [Memory bank; 0, Start address(=Data pointer); 0, Data; 0x1234 (one word)] is specified,
other setting are default and then the write process has been succeeded:
[Tx] WTDT 0 0 1234<LF>
[Rx] WTDT0000 001<LF>
Example 2) When [Memory bank;1, Start address(=Data pointer); 3, Data; 0x1234567890ABCDEF12345678,
Antenna; 2 and 3, Timeout; 200,
Tag information; antenna id
] is specified:
[Tx] WTDT 1 3 1234567890ABCDEF12345678 -ant 23 -tmo 200 –tif ANT<LF>
[Rx] WTDT0000 001 2<LF>
* In this case, the response code has an antenna ID which is used in writing process.
Example 3) When specified address is not supported:
[Tx] WTDT 1 8 12345678<LF>
[Rx] WTDT0000 000<LF>
* No count response is returned.
Example 4) When specified address is locked:
[Tx] WTDT 0 0 AAAAAAAA<LF>
[Rx] WTDT0000 000<LF>
* No count response is returned.
Example 5) When [Memory bank; 1, Start address=(Data pointer); 2, Data; 0xABCDEFGH] is specified and a
format error has occurred:
[Tx] WTDT 1 2 ABCDEFGH<LF>
[Rx] WTDT1412<LF>
* The error code [Code:1412] is returned.
Example 6) When an error occurred during communication process:
[Tx] WTDT 1 32 1234567890ABCDEF12345678 -ant 23<LF>
[Rx] WTDT7011<LF>
* The error code [Code:7011 (in this case)] is returned.