Mitsubishi Electronics FXCPU Welding System User Manual


 
1 Outline
1.3 Cautions on Creation of Fundamental Programs
19
FXCPU Structured Programming Manual
(Application Functions)
1
Outline
2
Function List
3
Function
Construction
4
How to Read
Explanation of
Functions
5
Applied
Functions
6
Standard
Function Blocks
A
Correspondence
between Devices
and Addresses
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.
M8000
M8029
Execution is
completed.
M8029 works as
a flag to indicate
that execution of
DSW is completed.
Good example
D0
10
Bad example
M8029 works as a
flag to indicate that
execution of DPLSY
(on the upper side)
is completed.
M8029 works as
a flag to indicate
that execution of
DPLSY (on the
lower side) is
completed.
M8000
X000
M0
M8029
M8029
M1
Program for DPLSY (on the upper side)
Program for DSW
DPLSY(on the upper side)
M0
X000
M0
S
1000 Y000
DPLSY
EN
s1
ENO
d
s2
M8029
M0
R
X010
1
DSW
EN
s1
ENO
d1
Y010
s2 d2
D0
D0
10
MUL
EN
s1
ENO
d
s2
1000 Y000
DPLSY
EN
s1
ENO
d
s2
1000 Y001
DPLSY
EN
s1
ENO
d
s2
M0
S
DPLSY(on the lower side)
M0
R
MUL
EN
s1
ENO
d
s2
Number of output pulses
X010
1D0
DSW
EN
s1
ENO
d1 Y010
s2 d2
M8029 works as
a flag to indicate
that execution of
DPLSY is
completed.
Execution is
completed.
Number of
output pulses
M8029 works as
a flag to indicate
that execution of
DSW is completed.
Execution is
completed.
Number of output pulses
Number of
output pulses
Execution is
completed.
Number of
output pulses2