![background image](http://html1.mh-extra.com/html/omron/cj-12-2004/cj-12-2004_manual_740789089.webp)
70
Data Check
Section 5-7
turn ON. If they are not the same, the Error End Flag (word (n + 7), bit 02) in
Unit Status will turn ON, and the Status Flag (word (n + 8), bit 04) in the
Results Information will turn ON as a warning.
Application Method
After writing the data, the Data Check command is executed with a Calcula-
tion processing specification to calculate and write the check code. Before
reading the data, the Data Check command is executed with a Verification
processing specification to verify the check code. This enables detecting inter-
nal data corruption that might occur in the Data Carrier when the data is not
being accessed.
Application Example
The following example checks the data in addresses 0010 (hex) to 0012 (hex).
1,2,3...
1.
Assume that the following data is initially in memory.
2.
The Data Check command is executed to calculate the check code for
5 bytes beginning with address 0010 (hex). The CRC Code 5CD6 (hex)
Data written
Check code calculated
Check code verified
Data read
Write stage
Read stage
Address
7
0
000F
0010
1
2
0011
3
4
0012
5
6
0013
0014
0015
(hex)
Bit
Bit
Summary of Contents for CJ - 12-2004
Page 2: ...SYSMAC CS CJ Series ID Sensor Units Operation Manual Revised December 2004...
Page 3: ...iv...
Page 11: ...xii...
Page 55: ...36 Connections and Wiring Section 3 4...
Page 69: ...50 I O Data Allocations Section 4 3...
Page 91: ...72 Data Check Section 5 7...
Page 141: ...122 Sample Programming Appendix B...
Page 147: ...128 Revision History...