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

ParameterDescription
sub-action
The Gen2 operation to dispatch (case-insensitive).
  • READ - Read N bytes from a memory bank at a given offset
  • WRITE - Encode bytes into a memory bank at a given offset
  • LOCK - Apply a Gen2 access-policy lock to a memory bank
  • KILL - Irreversibly disable the tag (requires the kill password)
  • PERMALOCK - Irreversibly lock a memory bank (cannot be reversed)
bank
Quoted Gen2 memory bank (omit for KILL — which takes only a password).
  • "EPC" - Electronic Product Code bank
  • "USER" - User memory bank
  • "TID" - Tag Identifier bank (typically read-only)
  • "RESERVED" - Reserved bank (access/kill passwords)
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

Try it in the playground View all TSPL commands