[DC2+PK] RFID Data Log Return Request (ISO/IEC14443 TypeA) [SX]

CL4-SXR CL6-SXR

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

Returns the status of RFID tag write by <RK> command and UID.

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 in f…f(k…k)

aa:bb…bb[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...)

Return 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 from parameter c to e

c(h...) Issued date and time

YYYYMMDDHHMM

d(i...)

Write result status

0: Write failure

1: Write success

* Text format.

e(j...) Error symbol

N: No error

D: UID read error

A: All error

* Text format.

f(k...) UID return data
aa

Memory specification

UD: UID

bb

Data

* Text format

Maximum 14 digits

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
<RK>2,D13,4912345678904
<XM>4912345678904
<Z>
                    

Sample of status reply

  1. When a tag with UID 04123456789ABC is used for writing, the returned data will be:
    • Write succeeded (UID read succeeded)
    • [STX]39,36,202402281715,1,N,UD:04123456789ABC[CR][LF][ETX]
    • Write succeeded (UID read failed)
    • [STX]25,22,202402281715,1,D,UD:[CR][LF][ETX]
    • Write failed (UID read failed)
    • [STX]25,22,202402281715,0,D,UD:[CR][LF][ETX]
  2. When the results of two writes are returned:
    • Write succeeded (UID read succeeded)
    • [STX]78,36,202402281715,1,N,UD:04123456789ABC[CR][LF]
      36,202402281716,1,N,UD:04123456789ABD[CR][LF][ETX]
  3. 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

  1. The write result & UID are returned when [DC2]PK is received after RFID writing has been performed.
  2. Since data writing and UID reading are performed separately, if UID reading fails even after a successful write, the data will be returned as empty.
  3. If only code write is performed without accompanying print data, no return data containing logs will be generated.
  4. The log will be deleted after the data is returned.