8 APPLICATION INSTRUCTION
8.21 Check Code
645
8
Operation error
• 8-bit conversion mode (while SM8161 is ON)
With regard to (n) data points starting from (s), the addition data and horizontal parity data of only low-order 8 bits are stored to (d) and (d)+1 respectively.
SM8161 is shared with the RS2, ASCI(P), HEX(P), and CRC(P) instructions. SM8161 must always be on in the 8-bit mode.
SM8161 is cleared when the CPU module mode is changed from RUN to STOP.
In the following program, conversion is executed as follows:
Error code
(SD0/SD8067)
Description
2820H
The device range specified by (s) or (d) exceeds the corresponding device range.
3405H
The value specified by (n) is outside the following range.
1 to 32767
(s)
D100
K100 = 0 1 1 0 0 1 0 0
K111 = 0 1 1 0 1 1 1
D105
D106
D107
D109
D108
D101
K100 = 0 1 1 0 0 1 0 0
K 98 = 0 1 1 0 0 0 1 0
D102
D103
D104
K123 = 0 1 1 1 1 0 1
K 66 = 0 1 0 0 0 0 1 0
K100 = 0 1 1 0 0 1 0 0
K 95 = 0 1 0 1 1 1 1
K210 = 1 1 0 1 0 0 1 0
K 88 = 0 1 0 1 1 0 0 0
K1091
1 0 0 0 0 1 0
CCD D100 D0 K10
SM400
SM8161
X10
0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1
D0
0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1
D1
Example of data contents
(1)
(1)
(1)
Total
Horizontal parity
(1)
8-bit conversion mode
When the number of "1" is odd, the horizontal parity is "1".
When the number of "1" is even, the horizontal parity is "0".
1091 in BCD.
Horizontal parity
Ignored
Low-order 8 bits
16 bits
Source data
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......