68
Sec
tion 4
Data Carr
ier Memor
y
Ch
eck
F
unction
RFID System
Operation Manual
Section 4
Function
Data Carrier Memory Check Function
A memory check can be made using the MANAGEMENT DATA CHECK/CALCULATE commands (MDC/
MDK). A CRC (Cyclic Redundancy Check) code calculation, overwrite, and comparison are made, using the
check block unit specified by the user. The CRC code is calculated from the generated polynomial expression
x
16
+ x
12
+ x
5
+ 1.
The calculation area is the portion of the check block
specified by the start address and the number of bytes
excluding the last two bytes. The last two bytes are the
check code area.
When check code write is specified (transaction code:
K), the CRC of the calculation area data is calculated
and written to the check code area. When data
comparison is specified (transaction code: C), the
CRC of the calculation area data is calculated and a
comparison made with the check code area data. If
they coincide, end code 00 is returned, indicating
normal transmission, and if they do not coincide, end
code 76 is returned as a warning.
For details on the command format, refer to
MANAGE-
MENT DATA CHECK/CALCULATE (MDC/MDK)
.
■
Example Using MANAGEMENT DATA CHECK/CALCULATE (MDC/MDK)
In the following example, the data in addresses 0010H to 0012H is checked.
1. In this example, the following data already
exists in the memory.
2. Execute MDK1001005 (CRC calculated).
The CRC code 5CD6 calculated from the data
123456 is written to addresses 0013H and
0014H.
3. Execute MDC1001005 (CRC compared).
The normal response MD75 will be returned if
the data coincides.
If a data error occurs, MD76 (a data error
warning) will be returned.
Area start
address
Number of
check block bytes
Check code area
(2 bytes)
Address
0000
0001
CRC upper di
g
it
CRC lower di
g
it
Check code calculation area
(Number of check block
bytes - 2)
0010
0011
0012
0013
0014
34
H
12
H
56
H
0010
0011
0012
0013
0014
34
H
12
H
56
H
5C
H
D6
H
34
H
12
H
56
H
5C
H
D6
H
0010
0011
0012
0013
0014
0010
0011
0012
0013
0014
34
H
00
H
56
H
5C
H
D6
H
Data error
Summary of Contents for V600 Series
Page 50: ...48 Section 2 Wiring RFID System Operation Manual Section 2 Installation and Wiring MEMO ...
Page 72: ...70 Section 4 Write Command Memory RFID System Operation Manual Section 4 Function ...
Page 138: ...136 Section 5 End Codes RFID System Operation Manual Section 5 Communications MEMO ...