[DC2+PJ] RFID Read (ISO/IEC14443 TypeA)
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
The data of the RFID tag corresponding to ISO/IEC14443 Type A is sent back to the host.
Format
Basic format
[DC2]PJ,aa(,aa),bb
Format when there is no particular need for data modification
[DC2]PJ,aa(,aa),NO
Format for using "TO", "TP", or "LG" for option identifier bb
(CL4NX 1.15.6 or later / CT4-LX 6.7.4 or later)
[DC2]PJ,aa(,aa),bb(,cc),NO
Parameter
| Symbol | Parameter name | Valid range | Description |
|---|---|---|---|
| a |
Identifier
2 characters fixed acquisition * Multiple designations possible (up to 4) * Multiple designations possible (up to 2) |
N1: USER Data | Add USER data to read out. |
| N2: UID Data | Add UID data to read out. | ||
| NA: All data (USER data+UID data) |
Add All data to read out. | ||
| b |
Option identifier
2 characters fixed acquisition * Multiple specifications not allowed (One only) * Only one can be specified. |
AS: Data output format (ASCII) | You can specify "AS" data output. However, since the ASCII format is the default for the HF band, specifying this does not change the reply data. |
| HX: Data output format (HEX) | Only in USER data, the reply data will be in HEX format. When the user data is sent back,it is reflected. |
*If you do not need to specify *bb (option identifier), place "NO" in bb.
Format when using "TO", "TP", or "LG" in Option identifier bb
(CL4NX 1.15.6 or later / CT4-LX 6.7.4 or later)
| Symbol | Parameter name | Valid range | Description |
|---|---|---|---|
| a |
Identifier
2 characters fixed acquisition * Multiple designations possible (1 to 2) |
N1: USER Data | Add USER data to read out. |
| N2: UID Data | Add UID data to read out. | ||
| NA: All data (USER data+UID data) |
Add All data to read out. Not available when "LG" is specified |
||
| b |
Option identifier
Two characters fixed acquisition. * Multiple specifications not allowed (One only) |
TO: After transporting by tag offset amount and reading, returns to original position and sends reading result. | It does not work during printing and offline operation, and [NAK] reply is returned. |
| TP: After transporting by tag offset amount and reading, performs remaining label transport and sends reading result after stopping at next label. | It does not work during printing and offline operation, and [NAK] reply is returned. | ||
| LG: Request for RFID operation log | When this command with this option specified is sent after setting <RU>,02, it becomes a trigger for acquiring RFID operation log according to this command's reply format. | ||
| c |
Option identifier 2
Fixed acquisition of two characters * Two characters fixed acquisition.(One only) * Only one can be specified. |
AS: Data output format (ASCII) | Since ASCII format is the default for the HF band, specifying it will not change the reply data. |
| HX: Data output format (HEX) | Only in USER data, the reply data will be in HEX format. |
*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[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 input and output form is which case of ASCII or HEX, but, as for the unit, the value becomes same for a byte. |
Data size from first memory data to before [ETX] Maximum 4 digits |
| b | Memory data | Refer to [Reply status/format] below. |
Return status format
Current inlay type+","+RFID data
| Description | |
|---|---|
| Current inlay type |
01: ISO/IEC14443 TypeA 06: RFID tag none/reading error |
| RFID data | Refer to "Data format of RFID data" below. |
RFID Data Format
-
When the command is issued specifying "N1" (user data) for the identifier
cc:d…d,e…e
Symbol Parameter name Description c Identifier UD: USER data (ASCII)
ud: USER data (HEX)
d Bytes of data Data input and output form is which case of ASCII or HEX, but, as for the unit, the value becomes same for a byte. e Data Refer to [Maximum Reply Data] below. -
When the command is issued specifying "N2" (UID data) for the identifier
cc:e…e
Symbol Parameter name Description c Identifier UI: UID data e Data Refer to "Maximum return data" below.
Maximum return data
| Command identifier | Current inlay type | Return number of bytes |
|---|---|---|
| N1: USER data | 01: ISO/IEC14443 TypeA |
2048 (ASCII) 4096 (HEX) |
| N2: UID data | 01: ISO/IEC14443 TypeA | 14 (HEX) |
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 during offline |
(CL4NX 1.15.6 or later / CT4-LX 6.7.4 or later) If executed when using "TO" or "TP" an error will occur. |
|
| '0' (0x30) | Other errors (*1) |
(CL4NX 1.15.6 or later / CT4-LX 6.7.4 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. |
| '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 |
Sample of "Coding and status reply" 1 (format set to ASCII)
When '4912345678904' is recorded in the RFID tag of NTAG210 of "04 04 01 00 01 D9 CA", UID :.
| Send Command | Return Status |
|---|---|
| [DC2]PJ,N1,AS | [STX]22,
01,
UD:13,4912345678904[ETX]
|
| [DC2]PJ,N1,N2,AS | [STX]20,
01,
UD:13,4912345678904,
UI:0404010001D9CA[ETX]
|
Sample of "Coding and status reply" 2 (format set to HEX)
When '4912345678904' is recorded in the RFID tag of MIFARE Ultralight of "04 07 00 00 2A C1 E2", UID:.
| Send Command | Return Status |
|---|---|
| [DC2]PJ,N1,HX | [STX]19,
01,
ud:13,34393132333435363738393034[ETX]
|
| [DC2]PJ,N1,N2,HX | [STX]20,
01,
ud:13,34393132333435363738393034,
UI:040700002AC1E2[ETX]
|
Sample of "Coding and status reply" 3
When '4912345678904' is recorded in the RFID tag of NTAG210 of "04 04 01 00 01 D9 CA", UID :.
| Send Command | Return Status |
|---|---|
| [DC2]PJ,N2,NO | [STX]22,
01,
UI:0404010001D9CA[ETX]
|
Sample of "Coding and status reply" 4 (format set to ASCII)
When there is not an RFID tag or when an RFID tag is bad.
| Send Command | Return Status |
|---|---|
| [DC2]PJ,N1,AS | [STX]2,
06[ETX]
|
| [DC2]PJ,N1,N2,AS | [STX]2,
06[ETX]
|
| [DC2]PJ,NA,AS | [STX]2,
06[ETX]
|
Supplemental explanation
- This command cannot be used in combination with commands other than <A> and <Z>.
-
When the issue operation of the printer only is a continuous, cutter (motion 1), and Dispense (motion 1), this command can be used.
It is not available in tear-off mode, cutter (motion 2) and dispenser (motion 2).
This command will not work properly when tag offset is set anywhere other than default position.
- Because this command cannot be received while printing it, information cannot be acquired in "Sequential number" and "Print Quantity" piece is specified.
- After this command is transmitted, it will take about five seconds by the time all the sending return status is sent back by the host. Tag information is not correctly sent back when the port is cut before all the sending return status is sent back by the host, data other than the sending return status format are sent back, and operate it, please after selecting data.
- Please do not transmit other commands and data until all the status of the defined size is received by the host after transmitting this command.
- Send this command when the printer stops printing and the printing items are not available in the printer.
-
Refer to the following chart if you want to specify the alphabet "A" in ASCII/HEX data formats.
Data input and output form Data: 'A' ASCII Mode 'A' (0x41) HEX Mode "41" (0x34,0x31) - If the printer is a low power consumption mode is enabled, until it wakes up will return a [NAK].
-
This command can be received in "Online" or "Offline" mode. This command cannot be received in the "Menu Display State" setting mode.
(The following are supported by CL4NX 1.15.6 or later / CT4-LX 6.7.4 or later)
However, if "TO", "TP" parameters are used while offline, an error occurs.
Sequence
About [DC2+PJ] Parameter "Option identifier": "TO," "TP," "LG"
(CL4NX 1.15.6 or later / CT4-LX 6.7.4 or later supported)
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 model | Tag offset valid range |
|---|---|
| CL4NX | -15mm~15mm (*1) |
| CT4-LX | -25mm~25mm (*1) |
- Only positive values unless 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: 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 signal (PRIN). Also, the completion of the processing operation of this command TO option cannot be reflected in the output of the print end signal (PREND). (CL4NX)
- Data readout reflecting tag offset is possible even when the print mode is cut & print. (However, CL4NX: 0mm~15mm/ CT4-LX:0mm~25mm)
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.

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 | -15mm~240mm (*1) | -15mm~15mm (*1) |
| CT4-LX | -25mm~240mm (*1) | -25mm~25mm (*1) |
- Only positive values unless 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 signal (PRIN). In addition, the completion of the processing operation of this command TP option is reflected in the print end signal (PREND) output. (CL4NX)
- 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].
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.
Coding example
*When "UID/USER" is set at "RFID data record" under RFID menu, 0 for "Logging start address," 8 for "Logging size."
<A>
<RU>,02
<RK>1,D13,4912345678904,ict:03
<XM>4912345678904
<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,NA,LG,AS,NO | [STX]52,
01,
UD:8,49123456,
UI:0404010001D9CA,
LA:0000,
LS:0008[ETX]
* By making LG the first option, subsequent extended options AS, HX can be specified, and termination with NO is required |