[DC2+PK] RFID Data Log Return Request (UHF) [SX]
HEX code
| DC2 | <12>16 |
|---|---|
| PK |
<50>16<4B>16 |
Parameter
None
Default value
None
Valid range and term of command [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 can 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 <IP0> command returns the results of writing to the RFID tag, as well as the EPC/TID/USER/PC/AFI.
Format
[DC2]PK
[DC2]PK return data format (normal)
[STX]a…a,b…b,cccccccccccc,d,e,f…f(g…g,hhhhhhhhhhhh,i,j,k…k)[ETX]
Format within f...f(k...k)
aa:bb…bb(,cc:dd…dd)[CR][LF]
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] |
||||||
| b(g...) |
Returned data byte count * This is the total number of bytes after parameter c. The delimiter comma between parameters b and c, and ETX are not included. |
Data size of parameters c to e |
||||||
| c(h...) | Issue date and time |
YYYYMMDDHHMM |
||||||
| d(i...) |
Write result status |
0: Write failed 1: Write succeeded * Text format. |
||||||
| e(j...) | Error symbol |
N: No error E: EPC write error T: TID read error A: All errors * Text format. |
||||||
| f(k...) | EPC/TID returned data
|
|||||||
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>
Some possible samples of [DC2]PK response
- When only TID is specified for return, and a tag with TID E200680612345678 is used for writing, the returned data will be:
- Write succeeded (TID read succeeded)
- Write succeeded (TID read failed)
- Write failed (EPC write failed)
[STX]41,38,202402281715,1,N,ID:E200680612345678[CR][LF][ETX][STX]25,22,202402281715,1,T,ID:[CR][LF][ETX][STX]25,22,202402281715,0,E,ID:[CR][LF][ETX] - When both EPC and TID are specified for return, and a tag with TID E200680612345678 is used for writing, the returned data will be:
- Write succeeded (TID read succeeded)
[STX]69,66,202402281715,1,N,EP:E0123456789ABCDEF0123456, ID:E200680612345678[CR][LF][ETX] - When both EPC and TID are specified for return, and the results of two writes are returned:
- Write succeeded (TID read succeeded)
[STX]154,74,202402281715,1,N,EP:12345678ABCD02115EFCE0F0, ID:E2801170200010F0DF9C0A2B[CR][LF]74,202402281716,1,N,EP:12345678ABCD02115EFCE0F1, ID:E2801170200010F0DF9C0A2C[CR][LF][ETX] - When no write was performed before sending [DC2]PK, the returned data will be:
- All errors
[STX]6,0,A, [CR][LF][ETX]
Supplemental explanation
- The write result & EPC/TID are returned when [DC2]PK is received after RFID writing has been performed.
- Since EPC/TID reading is performed separately from writing, if EPC/TID reading fails even after a successful write, the data will be returned as empty.
- If only code write is performed without accompanying print data, no return data containing logs will be generated.
- The memory specification to be returned can be changed as follows:
- [DC2]PA - Printer setting IF: RFID setting section parameter
DATA_TO_RECORD: The data to be read out changes depending on the setting value for RFID data recording.
"0": BOTH (returns both EPC and TID)
"1": EPC (returns only EPC)
"2": TID (returns only TID)
- Example of [DC2]PA setting
[DC2]PA,24,IF,18, DATA_TO_RECORD:0[CR][LF]
- Setting menu
Select "RFID" and set the same in "Data To Record".
- [DC2]PA - Printer setting IF: RFID setting section parameter
- The log will be deleted after the data is returned.