RFID WRITE - RFID Write Bank
Plain English
Encodes `<hex-data>` into `<bank>` starting at byte `<offset>` (TSPL2 PG §RFID WRITE p114). `<hex-data>` is a hex-character string — each pair of hex chars = 1 byte. EPC bank typically takes 24 hex chars for the 96-bit SGTIN-96 encoding. If `<data>` length doesn't match the bank's word boundary, the write is padded or truncated per the Gen2 spec. Note: the TID bank is factory-locked and not writable — the engine emits a warning when targeting it.
When to use
The core "print-and-encode" command: write the EPC (or any other bank) at the moment of label print, so the printed barcode/text and the encoded chip stay in lockstep.
Syntax
RFID WRITE "<bank>", <offset>, "<hex-data>"
Parameters
| Parameter | Description |
|---|---|
bank | Quoted Gen2 memory bank (writable subset).
|
offset | Byte offset within the bank (0-based). |
hex-data | Quoted hex string. Each pair of hex chars = 1 byte (e.g. 24 chars = 12 bytes = 96-bit EPC). |
Example
SIZE 100 mm, 50 mm CLS RFID WRITE "EPC", 0, "112233445566778899AABBCC" TEXT 50,30,"3",0,1,1,"Encoded" PRINT 1
Encode a 96-bit EPC into the EPC bank and print a confirmation label