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
Содержание CJ - 12-2004
Страница 2: ...SYSMAC CS CJ Series ID Sensor Units Operation Manual Revised December 2004...
Страница 3: ...iv...
Страница 11: ...xii...
Страница 55: ...36 Connections and Wiring Section 3 4...
Страница 69: ...50 I O Data Allocations Section 4 3...
Страница 91: ...72 Data Check Section 5 7...
Страница 141: ...122 Sample Programming Appendix B...
Страница 147: ...128 Revision History...