Mitsubishi Electric MELSEC FX3U Programming Manual page 488

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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
and low-order 8 bits are stored to
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.
M8000
Command
input
FNC 84
CCD
Example of 16-bit conversion
In the following program, conversion is executed as follows:
M8000
X010
FNC 84
CCD
S
Low-order 8 bits of D100
High-order 8 bits of D100
Low-order 8 bits of D101
High-order 8 bits of D101
Low-order 8 bits of D102
High-order 8 bits of D102
Low-order 8 bits of D103
High-order 8 bits of D103
Low-order 8 bits of D104
High-order 8 bits of D104
Total
Horizontal parity
D 0
0
0
0
0
0
0
D 1
486
S
and
D
M8161
S
D
M8161
D100
D0
K10
Example of data contents
K100
= 01100100
K111
= 0110111 (1)
K100
= 01100100
K 98
= 01100010
K123
= 0111101 (1)
K 66
= 01000010
K100
= 01100100
K 95
= 0101111 (1)
K210
= 11010010
K 88
= 01011000
K1091
1000010 (1)
0
0
1
0
0
0
1
0
0
0
0
0
0
1
0
0
, the addition data and horizontal parity data of high-order 8 bits
+1 respectively.
D
16-bit mode
n
16-bit 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".
0
0
0
1
1
0
0
1
0
1
16 External FX Device – FNC 80 to FNC 89
16.5 FNC 84 – CCD / Check Code
"1091" in BCD
Horizontal parity

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents