Example Program; Normal Mode; High Speed Mode - Mitsubishi Electric MELSEC FX Series User Manual

Programmable logic controllers
Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FX communication
5.3

Example Program

5.3.1

Normal Mode

The ON/OFF status of the inputs X000 to X007 in the master station is output to Y000 to Y007 in
the slave station (#). When the calculation result (D0+D2) in the master station is 100 or less,
Y010 in the slave station is turned on ($). The ON/OFF status of M0 to M7 in the slave station is
output to Y000 to Y007 in the master station ((). The value of D10 in the slave station is set to
the timer (T0) in the master station ()).
Master station
M8000
FNC 12
MOV
M8000
FNC 20
ADD
M8000
FNC 12
MOV
X010
5.3.2

High Speed Mode

When the calculation result (D0+D2) in the master station is 100 or less, Y010 in the slave station
is turned on (#). The value of D10 in the slave station is set to the timer (T0) in the master station
($).
M8000
M8000
FNC 20
ADD
X010
Note;
In the normal mode, "FNC 81 PRUN" instruction can be used for #.
However, this instruction is only supported for FX
programmable controller.
M8070
x
K2X000
K2M800
y
D0
D2
D490
z
K2M900
K2Y000
{
T0
D500
END
M8070
M8162
x
D0
D2
D490
y
T0
D500
END
Slave station
M8000
FNC 12
K2M800
MOV
M8000
FNC 10
D490
CMP
M10
M8000
FNC 12
K2M0
MOV
X010
FNC 12
D10
MOV
Slave station
M8000
M8000
FNC 10
D490
CMP
M10
X010
FNC 12
D10
MOV
, FX
, FX, FX
1S
1N
Parallel link 5
M8071
x
K2Y000
y
K100
M10
Y010
z
K2M900
{
D500
END
M8071
M8162
x
K100
M10
Y010
y
D500
END
, FX
, FX
2C
2N
5-4
2NC

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rs-232cRs-422Rs-485

Table of Contents