[DC2+PJ] RFID Read (UHF)
HEX code
| DC2 | <12>16 |
|---|---|
| PJ |
<50>16<4A>16 |
Parameter
,aa(,bb)(,cc)(,NO)
Default Value
None
Command Valid Range and Period
| When power switch is turned off | - |
| Valid range | - |
| Printer operation in progress | The command cannot be received during the printer operation. ([NAK] return) |
| Error | Commands can be received even if an error is occurring. |
| Unauthentication | Commands can be received even if authentication is not in progress using the [DC2+PS] command. |
Command Valid Range and Period [CL4-SXR/CL6-SXR]
| When turning off the power switch | - |
| Valid range | - |
| Printer operation in progress | The command cannot be received during printing operation. ([NAK] return) |
| Error | The command cannot be received during error occurrence. ([NAK] return) |
| When the settings screen is displayed | The command cannot be received when the settings screen is displayed. |
| Unauthentication | Commands can be received even if authentication is not in progress using the [DC2+PS] command. |
Function
Reads information of Gen2 (Class1Generation2) compatible tags and IC chip manufacturer extended specification tags (UHF band).
Format
Basic format
[DC2]PJ,aa(,aa)(,aa)(,aa),bb
Format when option identifier is not required
[DC2]PJ,aa(,aa)(,aa)(,aa),NO
Format for using "TO", "TP", or "LG" for option identifier bb
(CL4NX/CL6NX 1.15.6 or later / CT4-LX 6.7.4 or later / S84NX/S86NX 8.2.1 or later)
[DC2]PJ,aa(,aa)(,aa)(,aa),bb(,cc)(,cc)(,cc),NO
Parameter
| Symbol | Parameter name | Valid range | Description |
|---|---|---|---|
| a |
Identifier
2 characters fixed acquisition * Multiple designations possible (1 to 4) |
U1: EPC area | Add EPC area to read out. |
| U2: TID area | Add TID area to read out. | ||
| U3: USER area | Add USER area to read out. The response for USER area will be returned only for the number of digits that could be read. If U3 is specified for a tag that does not implement USER memory, the reply will be uniformly "EPC_Tag_Error". | ||
| U4: PC/AFI area | Add PC/AFI area to read out. | ||
| b |
Option identifier
2 characters fixed acquisition * Multiple specifications not allowed (exactly 1) |
RS: RSSI | Add radio signal strength value. Unit is dBm |
| MT: Module temperature | Add RFID module temperature. Unit is degrees Celsius. | ||
| AS: Data output format(ASCII) | Only in EPC and USER areas, the reply data will be in ASCII format. | ||
| HX: Data output format(HEX) | UHF band uses HEX format as default, so specifying this does not change the reply data. |
*If you do not need to specify bb (option identifier), place "NO" in bb.
Format for using "TO", "TP", or "LG" for option identifier bb
(CL4NX/CL6NX 1.15.6 or later / CT4-LX 6.7.4 or later / S84NX/S86NX 8.2.1 or later)
| Symbol | Parameter name | Valid range | Description |
|---|---|---|---|
| a |
Identifier
2 characters fixed acquisition * Multiple designations possible (1 to 4) |
U1: EPC area | Add EPC area to read out. |
| U2: TID area | Add TID area to read out. | ||
| U3: USER area | Add USER area to read out. The response for USER area will be returned only for the number of digits that could be read. If U3 is specified for a tag that does not implement USER memory, the reply will be uniformly "EPC_Tag_Error". | ||
| U4: PC/AFI area | Add PC/AFI area to read out. | ||
| b |
Options identifier
2 characters fixed acquisition * Multiple specifications not allowed (One only) |
TO: After transporting the tag the offset amount and reading it, it returns to the original position and transmits the reading result. | It does not work during printing and offline operation, and [NAK] reply is returned. |
| TP: After transporting the tag offset amount and reading it, the remaining labels are transported and the reading result is sent after stopping at the next label. | It does not work during printing and offline operation, and [NAK] reply is returned. | ||
| LG: Acquisition of RFID operation log. | If you send this command with this option specified after setting <RU>,02, it will trigger acquisition of the RFID operation log. | ||
| c |
Options identifier 2
2 characters fixed acquisition * Multiple designations possible (up to 3) |
RS: RSSI | Add radio wave strength value. Unit is dBm |
| MT: Module temperature | Add RFID module temperature. Unit is degrees Celsius. | ||
| AS: Data output format(ASCII) | Only in EPC and USER areas, the reply data will be in ASCII format. | ||
| HX: Data output format(HEX) | UHF band uses HEX format as default, so specifying this does not change the reply data. |
*Please add "NO" to the end of Option identifier 2. "NO" is required even if Option identifier 2 is not specified.
Return data format (Success case)
[STX]a…a,b…b(,c…c)(,c…c)[ETX]
Return data
| Symbol | Parameter name | Valid range |
|---|---|---|
| a |
Total number of data byte * This is the total number of bytes after parameter b. The delimiting comma between parameters a and b, and the ETX are not included. |
Data size from the first memory data item until before [ETX] Maximum 4 digits |
| b | Memory data | Refer to [Reply status/format] below. |
| c |
Option data ("Option identifier" + ":" + "Data") dd:e…e Data example) RS:-50 |
Options identifier RS: RSSI
MT: Module temperature Data Maximum 3 digits Fixed 3 digits (CL4-SXR/CL6-SXR) |
Return status/Format
- Output format in HEX
dd:g…g(,dd:g…g)
Symbol Parameter name Description d Identifier EP: EPC area (HEX)
TI: TID area (HEX)
UD: USER area (HEX)
PC: PC/AFI area (HEX)
2 bytes (fixed size)
g Data Read OK: String (HEX)
Read Error: String - "EPC_Tag_Error"
Max. 512 bytes
Up to 2048 bytes (CL4-SXR/CL6-SXR)
- Output format in ASCII
dd:effff,g…g(,dd:effff,g…g)
Symbol Parameter name Description d Identifier ep: EPC area (ASCII)
ud: USER area (ASCII)
2 bytes (fixed size)
e Status code 1: Read OK
0: Read Error
1 byte (fixed size)
f Size information The size of the string data that follows.
(String in 4 digit decimal)
g Data Read OK: String (ASCII)
Read Error: "EPC_Tag_Error" (String)
Max. 256 bytes
Max. 1024 bytes (CL4-SXR/CL6-SXR)
Return data format (Error case)
Exception processing
| Error Code | Error Name | contents |
|---|---|---|
| [NAK](0x15) | Command error | If a command error is detected due to an out-of-range value being specified, any subsequent received data will not be considered as parameters for this command. |
| Warning when displaying menu | If this command is executed in the "Menu display state" setting mode, an error will occur. | |
| Warning when offline |
(CL4NX/CL6NX 1.15.6 or later / CT4-LX 6.7.4 or later / S84NX/S86NX 8.2.1 or later) If executed when using "TO" or "TP" an error will occur. |
|
| '0' (0x30) | Other errors (*1) |
(CL4NX/CL6NX 1.15.6 or later / CT4-LX 6.7.4 or later / S84NX/S86NX 8.2.1 or later) When "TO" or "TP" is used and a mechanical error occurs in label transfer, a failure status is returned. *1: '0': If other errors occur, use [DC2+PG] (Get Printer Status Information) to obtain detailed error factors. *2: only on S84NX/S86NX |
| '1' (0x31) | Head open | |
| '2' (0x32) | Paper end | |
| '3' (0x33) | Ribbon end | |
| '4' (0x34) | Media error | |
| '5' (0x35) | Sensor error | |
| '6' (0x36) | Head error | |
| '7' (0x37) | Cover open | |
| '8' (0x38) | RFID Tag Error | |
| '9' (0x39) | Label Sensor Cover Open (*2) |
Coding sample
| Send Command | Explanation |
|---|---|
| [DC2]PJ,U1,NO | Specify EPC area readout |
| [DC2]PJ,U2,RS | Specify RSSI to TID area readout and option |
| [DC2]PJ,U1,U2,NO | Specify EPC and TID area readout |
| [DC2]PJ,U3,U4,MT | Read USER and PC/AFI area and specify module temperature option |
| [DC2]]PJ,U1,U2,U3,U4,AS | Reads EPC area, TID area, USER area, and PC/AFI area, and specifies ASCII as the data output format in the option. Even if the order of specification is changed, the order of the returned data does not change. |
Sample of status reply 1
- When EPC data "E0123456789ABCDEF0123456" is on Gen2 supported tag
[STX]27,EP: E0123456789ABCDEF0123456[ETX]
Sample of status reply 2
- When TID data "E200680612345678" is on Gen2 supported tag and RSSI is -50dBm
[STX]26,TI:E200680612345678,RS:-50[ETX]
Sample of status reply 3
- When EPC data "012345678901234567890123" is on Gen2 supported tag and temperature of module is 30 degrees Celsius.
[STX]34,EP:012345678901234567890123,MT:030[ETX]
Sample of status reply 4
- When USER data "3132333435363738" and PC/AFI data "0C00" are recorded on a Gen2 tag,
and the module temperature is 30 degrees, and USER, PC/AFI, and module temperature are read.
[STX]34,UD:3132333435363738,PC:0C00,MT:030[ETX]
Sample of status reply 5
- To get both EPC and TID when EPC data "E0123456789ABCDEF123456" and TID data "E200680612345678" are recorded.
[STX]47,EP:E0123456789ABCDEF0123456,TI:E200680612345678[ETX]
Sample of status reply 6
- When EPC data "0123", TID data "E280117020000042E0400A2B", USER data "32323232",
and PC/AFI data "0C00" are recorded on a Gen2 tag (EPC data and USER data are ASCII)
[STX]61,ep:10002,#,TI:E280117020000042E0400A2B,ud:10004,2222,PC:0C00[ETX]
Sample of status reply 7
- When failed to read EPC data that supports Gen2 tag
[STX]13,EPC_Tag_Error[ETX]
Supplemental explanation
- This command cannot be specified between the Start Code <A> and the Stop Code <Z>.
- Send this command when the printer stops printing and the printing items are not available in the printer.
- It takes about 5 seconds to return all return status to the host after sending this command. If the port is disconnected before all statuses are returned to the host, RFID tag information will not be correctly returned and the data other than return status format is returned.
- After sending this command, do not send the next command or data until all status replies are returned to host.
- When this command turns into an error, it will return "EPC_Tag_Error" in ASCII.
-
This command is available when printer is in continuous mode and cutter mode (motion 1), and dispenser mode (motion 1).
It is not available when in tear-off mode, cutter mode (motion 2) and dispenser mode (motion 2).
This command is available when printer is in continuous mode and dispenser mode (motion 1) and Dispense & Print Mode. It is not available when in dispenser mode (motion 2).(S84NX/S86NX)
(The following are supported by CL4NX/CL6NX 1.15.6 or later / CT4-LX 6.7.4 or later / S84NX/S86NX 8.2.1 or later)
However, if the TO/TP/LG option is used, reading processing is also possible in tear-off mode, cutter (motion 2), and dispenser (motion 2)
TO/TP/LG option is available in continuous mode and dispenser mode (motion 1). In Dispense & Print Mode, TO/TP/LG option is not available. (S84NX/S86NX)
- This command will not work properly when tag offset is set anywhere other than default position.
- In case where lower power consumption mode is valid, [NAK] is returned until printer does wake up.
-
This command can be received in "Online" or "Offline" mode. This command cannot be received in the "Menu Display Status" setting mode.
(The following are supported by CL4NX/CL6NX 1.15.6 or later / CT4-LX 6.7.4 or later / S84NX/S86NX 8.2.1 or later)
However, if "TO" or "TP" parameters are used while offline, an error occurs.
Sequence
About [DC2+PJ] Parameter "Option identifier": "TO," "TP," "LG"
(CL4NX/CL6NX 1.15.6 or later / CT4-LX 6.7.4 or later / S84NX/S86NX 8.2.1 or later)
Detailed information of option identifier TO/TP/LG is described below.
If "TO option: feed a label by tag-offset distance, read it, and return the label to the initial position" is specified.
Feeds a label by tag-offset distance, reads it, and returns the label to the initial position.
This mode works when both "Normal Action" and "Feed Action" is specified for encoding. For both "Normal Action" and "Feed Action" is specified, tag offset will be below range and this mode can be used within that range.
| Printer | Tag offset valid range |
|---|---|
| CL4NX/CL6NX/S84NX/S86NX | -15mm~15mm (*1) |
| CT4-LX | -25mm~25mm (*1) |
- Only positive values unless the operation mode is continuous.
Supplementary explanation
- Assume the sequence of surface printing after encoding RFID labels.
- Ensure to get return data before issuing ESC command for surface printing and RFID encoding.
- If "Normal Action" is specified for encoding mode, error will be returned if the tag offset value exceeds CL4NX/CL6NX/S84NX/S86NX: 15mm / CT4-LX: 25mm ([NAK] response).
- In order to avoid print pause every time RFID tag error occurs, set "release" for RFID retrial mode and enter big enough value for RFID re-print time. The max value is "9" times. In this case, if tag error occurs nine times in a row, the process stops at the tag error screen. As sequence process of surface printing and RFID encoding expected after reading RFID label, retry process must be prohibited.
- Return code of refusal response of this command [NAK](15H) but if mechanical trouble occurs with label feeding when TO option is used, the status code will be returned according to [return data format(abnormal time)].
- Even in an environment where external signals are enabled, the start of processing operation of this command TO option cannot be controlled by the print start (PRIN) signal. Also, the completion of the processing operation of this command TO option cannot be reflected in the output of the print end (PREND) signal. (CL4NX/CL6NX)
- Even in an environment where external signals are enabled, the start of processing operation of this command TO option cannot be controlled by the print start (PRIN) signal. If print done signal (PREND) state is set to "TYPE3" or "TYPE4", and PREND Type3/4 is set to "Motion", print done signal (PREND) is output during forward feed. (S84NX/S86NX)
- Data readout reflecting tag offset is possible even when the print mode is cut & print. (However, CL4NX/CL6NX: 0mm~15mm / CT4-LX: 0mm~25mm)
Use example of option identifier "TO"
Below figure shows an example for continuous printing when "Feed Action" is specified for encoding mode, with minus tag offset.

If "TP: option: feed a label by tag-offset distance, read it, and feed the rest of the label to" is specified
According to tag offset, feed the RFID label by the tag offset value to read the RFID data.
The rest of the label will be fed and the process stops at the next label. RFID data will be returned when the process stops.
This mode works when both "Normal Action" and "Feed Action" is specified for encoding and valid for reading only.
| Printer | Encoding Action=Normal Action | Encoding Action=Feed Action |
|---|---|---|
| CL4NX/CL6NX/S84NX/S86NX | -15mm~240mm (*1) | -15mm~15mm (*1) |
| CT4-LX | -25mm~240mm (*1) | -25mm~25mm (*1) |
- Only positive values unless the operation mode is continuous.
Supplementary explanation
- Ensure to get return data before issuing ESC command for surface printing and RFID encoding.
- When performing log-accumulation process via <RU>, if read process is performed by this command option, the log will be accumulated in sync with the label feeding.
- Return code of refusal response of this command [NAK](15H) but if mechanical trouble occurs with label feeding when TP option is used, the status code will be returned according to [return data format(abnormal time)].
- In an environment where external signals are enabled, the start of processing operation of this command TP option can be controlled by the print start (PRIN) signal. In addition, the completion of the processing operation of this command TP option is reflected in the print end (PREND) signal output. (CL4NX/CL6NX/S84NX/S86NX)
- When the print mode is "cut & print", the data is read out as 0mm even if the tag offset is set.
Use example of option identifier "TP"
Below figure shows an example for continuous printing when "Feed Action" is specified for encoding mode, with minus tag offset.

To get logs by adding LG option
LG option can be used together with <RU>,02 to get log data in the compatible format with reply format of [DC2+PJ].
It is a command option to trigger of getting log data, and label feeding is not restricted like the aforementioned TO, TP option.
By sending <RU>,02 before using this command, log data will be acquired and accumulated per label issuance. By specifying RFID data type after RFID items is issued and sending the data with this LG option added, log data will be acquired in the replay format of [DC2+PJ].
If Gen2 tag without USER memory is used, ensure not to include USER at the "RFID data record" option under RFID menu.
Supplementary explanation
- Ensure to get return data before issuing ESC command for surface printing and RFID encoding.
- When using tags without USER memory or when USER memory logging is not required, select the item that does not include USER in "Interface" -> "RFID" -> "Log RFID Data" -> "Data To Record" Incorrect selection may result in reduced throughput or issuance failure.
- When acquiring logs, set the memory area elements specified by this command to match the memory area elements selected in "Interface" -> "RFID" -> "Log RFID Data" -> "Data To Record". If this selection is inappropriate, necessary data will be missing from the log data.
- Log acquisition of USER memory data specified by the LG option is performed according to the "Logging Start Address" and "Logging Size" in "Interface" -> "RFID" -> "Log RFID Data". These values are inserted into the log data in a 4-digit fixed format with 0 padding, accompanied by the identifiers "LA:" and "LS:".
-
When acquiring RFID operation logs specified by LG options, the difference in data return operations based on the "Log RFID Data" enable/disable setting in "Interface" -> "RFID" -> "Log RFID Data" is basically the same as when collecting logs with the <RU>,01 and [DC2+PK] commands.
If "Log RFID Data" is enabled: up to 100 logs of the latest RFID log for the issued RFID items, and acquired log data will be scrapped.
If "Log RFID Data" is disabled: only one log data of the last issued RFID item will be accumulated, and one log of the latest data will be acquired if this LG option is added and sent. The last issued log data will be retained after the data is acquired and can be repeatedly read.
If the printer has not accumulated any RFID logs, the following return data will be sent. For details of the return data, refer to "Return data" format for the [DC2+PK] command.
[STX]6,0,A,[CR][LF][ETX]- Log data acquired via the LG option appends [CR][LF] to the end of each entry. If RFID logs are retrieved when two entries have accumulated, the following response will be returned.
[STX]58,EP:E0123456789ABCDEF0123456[CR][LF] EP:E0123456789ABCDEF0123457[CR][LF][ETX]
Coding example
*When "EPC/TID/USER/PC/AFI" is set at "RFID data record" under RFID menu, 0 for "Logging start address", 8 for "Logging size".
<A>
<RU>,02
<IP0>e:h,epc:E0123456789ABCDEF0123456,usr:12345678;
<XM>E0123456789ABCDEF0123456
<z>
Use example of option identifier "LG"
Below figure shows an example for continuous printing when "Feed Action" is specified for encoding mode, with minus tag offset.

| Send command | Return status |
|---|---|
| [DC2]PJ,U1,U2,U3,U4,LG,RS,MT,NO | [STX]99,
EP:E0123456789ABCDEF0123456,
TI:E200680612345678,
UD:12345678,
PC:3000,
MT:046,
RS:-36,
LA:0000,
LS:0008
[CR][LF][ETX]
* By making LG the first option, subsequent extended options RS, MT can be specified, and termination with NO is required |