Mitsubishi Electronics FX3G User Manual

Page of 964
467
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.5 FNC 84 – CCD / Check Code
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
2. 16-bit conversion mode (while M8161 is OFF) 
(M8161 is also used for the RS, ASCI, HEX and CRC instructions.)
With regard to "n" data starting from 
, the addition data and horizontal parity data of high-order 8 bits and low-
order 8 bits are stored to 
 and 
+1 respectively.
M8161 is used also for the RS, ASCI, HEX and CRC instructions. When using the 16-bit mode, set M8161 to normally
OFF. M8161 is cleared when the PLC mode is changed from RUN to STOP.
Example of 16-bit conversion
In the following program, conversion is executed as follows:
Example of data contents
Low-order 8 bits of D100
K100
= 01100100
High-order 8 bits of D100
K111
= 0110111 (1)
Low-order 8 bits of D101
K100
= 01100100
High-order 8 bits of D101
K 98
= 01100010
Low-order 8 bits of D102
K123
= 0111101 (1)
High-order 8 bits of D102
K 66
= 01000010
Low-order 8 bits of D103
K100
= 01100100
High-order 8 bits of D103
K 95
= 0101111 (1)
Low-order 8 bits of D104
K210
= 11010010
High-order 8 bits of D104
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 ‚
16-bit mode
M8161
M8000
FNC 84
CCD
D100
D0
K10
X010
16-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