Mitsubishi Electric MELSEC FX3U Programming Manual page 489

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
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
bits are stored to
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.
M8000
Command
input
FNC 84
CCD
Example of 8-bit conversion
In the following program, conversion is executed as follows:
M8000
X010
FNC 84
CCD
S
D 100
D 101
D 102
D 103
D 104
D 105
D 106
D 107
D 108
D 109
Total
Horizontal parity
D 0
0
0
0
0
0
0
D 1
S
and
+1 respectively.
D
D
M8161
S
D
n
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
16 External FX Device – FNC 80 to FNC 89
, the addition data and horizontal parity data of only low-order 8
8-bit mode
Ignored
8-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
"1091" in BCD
0
0
1
0
1
Horizontal parity
16.5 FNC 84 – CCD / Check Code
16 bits
Low-order 8 bits
Source data
11
12
13
14
15
16
17
18
19
20
487

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents