Mitsubishi FX2N-32CCL User Manual page 53

Cc-link interface block
Table of Contents

Advertisement

FX
-32CCL CC-Link Interface Block
2N
Example of communication program in station No. 2
The contents equivalent to those in the station No. 1 described above are to be programmed as a communi-
cation status read program.
M7
Link being
executed
M300
(RY00)
M363
(RY3F)
M7
FNC78
K0
K0
K4M300
FROM
FNC78
K0
K8
D50
FROM
FNC12
K50
MOV
FNC12
D57
MOV
(RX00)
(RX3F)
FNC12
K30
MOV
FNC12
D100
MOV
FNC79
K0
K0
K4M100
TO
FNC79
K0
K8
D10
TO
Read of remote output
and register
Read of remote output
BFM #3 to #0 (RY3F to RY00) → M363 to M300
K4
Read of remote register
BFM #15 to #8 (RWw7 to RWw0) → D57 to D50
K8
Utilization of read result
D
D
Write of remote input
and register
M100
M163
Program determining the ON/OFF status of remote
input and the remote register value to be written
D10
D17
Write of remote input
M163 to M100 → BFM #3 to #0 (RX3F to RX00)
K4
Write of remote register
D17 to D10 → BFM #15 to #8 (RWr7 to RWr0)
K8
Programming Examples 6
6-13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents