Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 21

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

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
1. Program containing many flags (Example of instruction execution complete flag M8029)
If you program the instruction execution complete flag M8029 twice or more together for two or more
sequence instructions which actuate the flag M8029, you cannot judge easily by which sequence instruction
the flag M8029 is controlled. In addition, the flag M8029 does not turn ON or OFF correctly for each
corresponding sequence instruction.
Refer to the next page when you would like to use the flag M8029 in any position other than the position just
under the corresponding sequence instruction.
Good example
M8029 works as
a flag to indicate
that execution of
DSW is completed.
M8029 works as
a flag to indicate
that execution of
DPLSY is
completed.
Bad example
M8029 works as
a flag to indicate
that execution of
DPLSY (on the
lower side) is
completed.
M8029 works as
a flag to indicate
that execution of
DSW is completed.
M8029 works as a
flag to indicate that
execution of DPLSY
(on the upper side)
is completed.
M8000
EN
X010
s1
1
s2
M8029
EN
Execution is
D0
s1
completed.
10
s2
X000
M0
EN
1000
s1
Number of
s2
output pulses
M8029
Execution is
completed.
M8029
Execution is
completed.
M8000
EN
X010
s1
1
s2
X000
M0
EN
1000
s1
Number of
s2
output pulses
M8029
EN
Execution is
D0
s1
completed.
10
s2
M1
EN
1000
s1
Number of
s2
output pulses2
1.3 Cautions on Creation of Fundamental Programs
DSW
ENO
d1
Y010
d2
D0
MUL
ENO
d
Number of output pulses
M0
S
DPLSY
ENO
d
Y000
M0
R
M0
R
Program for DPLSY (on the upper side)
DSW
ENO
d1
Y010
d2
D0
M0
S
DPLSY
DPLSY(on the upper side)
ENO
d
Y000
MUL
Program for DSW
ENO
d
Number of output pulses
DPLSY
DPLSY(on the lower side)
ENO
d
Y001
1 Outline
1
2
3
4
5
6
A
19

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents