Create Programs For The Slave Stations - Mitsubishi MELSEC iQ-F FX5 User Manual

Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

Create programs for the slave stations

Create programs for the slave stations.
Arbitrarily create programs for reading and writing link devices.
The following program is for the slave station of station number 1. Program for station number 2 and later are similar.
Data transfer
sequence error in
slave station No. 0
SM9040
Data transfer
sequence error in
slave station No. 2
SM9042
Data transfer
processing
SM9056
X0
X2
M10
RUN monitor
SM400
MOV
MOV
Y0
Y1
Y10
M4064
M4065
M4066
K4M100 K4M4070
D0
D1010
Program for indicating link errors
This program is required to indicate the N:N Network
status. Create this step for each connected slave
station.
When a link error occurs in the station No. 0, Y0 is
set to ON.
When a link error occurs in the station No. 2, Y1 is
set to ON.
While the N:N Network is executed, Y10 remains
ON.
Program for writing link devices
(slave station → master or slave station)
This program is required to write information from a
slave station to the master station or another slave
station.
The information from X0 is written to M4064 (link
device).
The information from X2 is written to M4065 (link
device).
The information from M10 is written to M4066 (link
device).
The information from M100 to M115 is written to
M4070 to M4085 (link devices).
The information from D0 is written to D1010 (link
device).
* In pattern 0, bit devices cannot be used. Use the
word devices instead.
2
2 N:N NETWORK
33
2.7 Programming

Advertisement

Table of Contents
loading

Table of Contents