[DC2+PK] RFID Data Log Return Request (UHF) [NX/LX]
HEX code
| DC2 | <12>16 |
|---|---|
| PK |
<50>16<4B>16 |
Parameter
None
Default value
None
Valid range and term of command
| When turning off the power switch | - |
| Valid range | - |
| Printer operation in progress | The command cannot be received during printing 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. |
Function
The <IP0> command returns the result of writing to the RFID tag and the specified memory.
Format
[DC2]PK
[DC2]PK return data format (normal)
[STX]a...a,b,c,d...d[CR][LF][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 delimiter comma between parameters a and b, and ETX are not included. |
Data size from the first write result status to before [ETX] Maximum 5 digits |
| b |
Write result status |
0: Write failure 1: Write success * Text format |
| c | Error symbol |
N: No error E: EPC write error T: TID read error S: USER memory write error P: PC/AFI write error O: Parameter setting errors other than EPC, TID, USER memory, PC/AFI A: All errors Note: Specified in text format |
| d | Memory return data |
Refer to [EPC/TID/USER/PC/AFI return data] as below * Text format |
Error Symbols when RFID Errors Occur
Errors related to RFID are displayed on the following error screen. Error messages are displayed at the top center of the screen, and error icons are displayed to the left of the screen center. The error number is displayed to the right of the error icon, and below the icon is a description of the error and an explanation of what to do about it.

* Example of CL4NX/CL6NX screen.
| Error No | Error display | Error print | Error symbols |
|---|---|---|---|
| 1114 |
Tag Not Found |
TAG NOT FOUND | A: All errors |
| 1115 |
Write Tag Error |
WRITE TAG ERROR |
E: EPC error S: USER error P: PC/AFI error |
| 1116 |
Failed to read the tag data |
READ TAG ERROR |
E: EPC error T: TID error S: USER error P: PC/AFI error |
| VERIFY UID ERROR | O: Other error | ||
| 1117 |
Write Tag Error |
PROTECT TAG ERR | O: Other error |
| 1118 |
Write/Read values are not consistent |
VERIFY TAG ERR |
E: EPC error S: USER error P: PC/AFI error O: Other error |
| 1119 |
Failed to lock the data |
LOCKING ERROR | O: Other error |
| 1120 |
Wrong tag UID is read |
WRONG TID ERROR | O: Other error |
| 1121 |
Multiple tags are detected |
MULTI TAGS ERROR | O: Other error |
| 1123 |
Write Tag Error |
READ ONLY ERROR |
E: EPC error S: USER error P: PC/AFI error O: Other error |
| 1124 |
Wrong Tag type |
DIFFER TAG KIND | O: Other error |
| 1125 |
Internal Error |
LOST HANDLE ERR | O: Other error |
| 1126 |
Not enough power |
POWER NOT ENOUGH | O: Other error |
| 1129 |
Unsupported tag error |
UNSUPPORTED TAG | O: Other error |
| 1131 |
Exceed address error |
ADDRESS EXCEED | O: Other error |
Format of EPC/TID/USER/PC/AFI return data
"Specify memory" + ":" + "Data " + "Line feed (0DH, 0AH)"
ee:f...f(,gg:h...h)[CR][LF]
Specifying the memory to be record
For memory specification settings, refer to DATA_TO_RECORD in the [RFID] section of the list of configuration items.
A setup example of [DC2]PA is shown below.
[DC2]PA,24,IF,18,DATA_TO_RECORD:0[CR][LF]
To configure the above settings in the settings menu, go to "Interface"->"RFID"->"RFID Log"->"Data to Record".
EPC/USER/TID/PC/AFI return data
| Symbol | Parameter name | Valid range |
|---|---|---|
| e(g...) | Specify memory |
BOTH: EPC / TID EP: EPC ID: TID EP_ID: EPC / TID US: USER EP_US: EPC / USER ID_US: TID / USER EP_ID_US: EPC / TID / USER PC: PC/AFI EP_PC: EPC / PC/AFI ID_PC: TID / PC/AFI EP_ID_PC: EPC / TID / USER US_PC: USER / PC/AFI EP_US_PC: EPC / USER / PC/AFI ID_US_PC: TID / USER / PC/AFI EP_ID_US_PC: EPC / TID / USER / PC/AFI |
| f(h...) |
Data * Text format |
Maximum 2280 digits EPC: 124 digits TID: 24 digits USER: 2048 digits(Warranty Coverage: 512 digits) PC/AFI: 4 digits LA: Logging Start Address(USER memory) LS: Logging Size(USER memory) |
Return data format (when a command error occurs)
[NAK]<15>16
Exception processing
| Parameter name | Exception condition: A value outside the range is specified |
Exception condition: The specified size and received size are different |
|---|---|---|
| Identifier | Command error | Identifier |
| Terminology | Description |
|---|---|
| Command error | The data received after a command error is determined is not considered as a parameter of this command. |
| Invalid receive data | The data corresponding to Byte 2 and thereafter of the identifier is ignored. |
Coding Sample
<A>
<RU>01
<IP0>e:h,epc:E0123456789ABCDEF0123456;
<XM>E0123456789ABCDEF0123456
<Z>
<RU>,01 sequence
- Most common commands such as <A>, <Z> are not described in the above diagram.
- EPC and TID are set for RFID data recording.
- The returned data is an example. Actual values vary depending on the tag.
Some possible samples of [DC2]PK response
- Data To Record: EPC / TID
- Success
- EPC write failure TID unread(*1)
1,N,EP:30352BD364424CA0103672AF,ID:E200341401310100103672AF0,A,EP:,ID: - Data To Record: EPC
- Success
- EPC write failure
1,N,EP:30352BD364424CA0103672AF0,E,EP: - Data To Record: TID
- Success
- TID read was not done(*1)
1,N,ID:E200341401310100103672AF0,T,ID: - Data To Record: USER
- Success
- USER memory write failure
1,N,US:1111222233334444,LA:0,LS:160,S,US:,LA:0,LS:16 - Data To Record: PC/AFI
- Success
- PC/AFI write failure
1,N,PC:30000,P,PC:
- Firmware will not read TID if it fails to write to EPC/USER/PC/AFI.
Supplementary Explanation
- For RFID data logging, select "Log RFID Data" and "Data To Record" and "Logging Start Address" and "Logging Size" in "Interface" > "RFID" > "Log RFID Data".
- When Log RFID Data is enabled, up to 100 RFID data log storage areas that store all of the EPC/TID/USER/PC/AFI will be stored in the printer's RAM to store the data log. When all buffers are filled with data logs, new data logs are stored overwriting the oldest data logs.
- Log RFID Data is enabled, log data is returned in order of oldest to oldest upon receipt of a [DC2]PK. All buffers are cleared after the data is returned.
- If Log RFID Data is disabled, only one RFID data log is returned. The RFID data log is not cleared after it is returned due to the reception of [DC2]PK.
- The printer operation for <RK> command is to write data to the tag, followed by reading EPC/TID/USER/PC/AFI. Therefore, the write result, EPC/TID/USER/PC/AFI are returned when [DC2]PK is received after RFID writing is completed.
- Since data writing and EPC/TID/USER/PC/AFI reading are performed separately, even if writing succeeds, if EPC/TID/USER/PC/AFI reading fails, the data will be returned with no data.
- The returned EPC/TID/USER/PC/AFI data must be within 2280 characters.
- If <RU>,00 is set, the entire log buffer is cleared.
- When only RFID writing is performed without printing data, the RFID data log is not recorded.
- All RFID data logs are lost when the printer is turned off.
- If the RFID data log contains personal information, please handle it carefully to avoid security issues.