446
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.5 FNC 84 – CCD / Check Code
3. 8-bit conversion mode (while M8161 is ON)
(M8161 is used also for the RS, ASCI, HEX and CRC instructions.)
With regard to "n" data starting from
, the addition data and horizontal parity data of only low-order 8
bits are stored to
and
+1 respectively.
M8161 is also used for the RS, ASCI, HEX and CRC instructions. When using the 8-bit mode, set M8161 to
normally ON. M8161 is cleared when the PLC mode is changed from RUN to STOP.
Example of 8-bit conversion
In the following program, conversion is executed as follows:
Example of data contents
D 100
K100
= 01100100
D 101
K111
= 0110111 (1)
←
D 102
K100
= 01100100
D 103
K 98
= 01100010
D 104
K123
= 0111101 (1)
←
D 105
K 66
= 01000010
D 106
K100
= 01100100
D 107
K 95
= 0101111 (1)
←
D 108
K210
= 11010010
D 109
K 88
= 01011000
Total
K1091
Horizontal parity
1000010 (1)
←
When the number of "1" is odd, the horizontal parity is "1".
When the number of "1" is even, the horizontal parity is "0".
S
D
D
M8161
M8000
FNC 84
CCD
n
S
Command
input
D
8-bit mode
Ignored
Low-order 8 bits
16 bits
Source data
M8161
M8000
FNC 84
CCD
D100
D0
K10
X010
8-bit mode
S
1
1
0
0
0
0
1
0
0
0
1
0
0
0
0
0
D 0
"1091" in BCD
1
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
D 1
Horizontal parity