445
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
11
FN
C30-
FN
C39
R
o
ta
tion and
Sh
ift
12
FNC
4
0
-FNC49
D
a
ta
Op
e
ra
tio
n
13
FNC5
0
-FNC5
9
H
igh Speed
Pr
ocessi
ng
14
FM
C6
0
-F
NC6
9
H
and
y
In
st
ru
cti
o
n
15
FNC7
0
-FNC7
9
Ex
te
rn
a
l F
X
I
/O
D
evi
ce
16
FNC8
0
-FNC8
9
Ext
e
rnal
FX
D
evi
ce
17
F
N
C1
00
-F
NC
10
9
Da
ta
Tr
ansf
e
r 2
18
FN
C
110-FN
C
13
9
Fl
oat
ing P
o
in
t
19
FN
C
140-FN
C
149
Da
ta
O
per
at
io
n
2
20
FN
C
15
0-F
N
C
159
P
o
si
tioni
ng
C
ont
ro
l
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
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......