RFID - RFID Gen2 Operation
Plain English
Dispatches an RFID Gen2 tag operation. The first word after RFID picks the action — READ pulls data out of a memory bank, WRITE encodes data into a bank, LOCK applies a Gen2 lock policy, KILL irreversibly disables the tag, and PERMALOCK irreversibly locks a bank. The bank selector (in quotes) is one of "EPC", "USER", "TID", or "RESERVED". This command only works on TSPL2 printers with an RFID head fitted (e.g. TSC TTP-247R, TTP-2410MT, MH-241).
When to use
Whenever you need to encode, read, or secure RFID tag memory as part of a label print job. Pair with normal print commands (TEXT, BARCODE) to print a human-readable tag alongside encoding.
Syntax
RFID <sub-action> "<bank>"[, <args...>]
Parameters
| Parameter | Description |
|---|---|
sub-action | The Gen2 operation to dispatch (case-insensitive).
|
bank | Quoted Gen2 memory bank (omit for KILL — which takes only a password).
|
args | Sub-action-specific arguments — offset/length for READ, offset/data for WRITE, password/policy for LOCK, password for KILL, password for PERMALOCK |
Example
SIZE 100 mm, 50 mm CLS RFID WRITE "EPC", 0, "E2801160600002054E5F8B41" TEXT 50,30,"3",0,1,1,"Encoded" PRINT 1
Encode a 96-bit EPC into the tag's EPC bank, print a confirmation label