Mitsubishi Electronics FX3U Coffeemaker User Manual


 
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Positioning Control Edition
Built-in Positioning Functions
4 Before Programming
4.7 Items To Be Observed in Programming
B - 73
A
Common Items
B
Built-in
Positioning
Functions
Apx.
Example
Connection
Programming using "Instruction execution complete" flag and "Instruction execution abnormal end"
flag:
1) If two or more positioning instructions are used in a program, the "Instruction execution complete" flag
(M8029) or "Instruction execution abnormal end" flag (M8329) will be turned on or off after execution of
each instruction. However, if the "Instruction execution complete" flag (M8029) and "Instruction execution
abnormal end" flag are used together for a program, it is difficult to determine which instruction turns them
ON/OFF and the "Instruction execution complete" flag will not be turned on for the intended instruction.
To use a positioning instruction at a position other than just below the instruction, refer to the
example shown on the next page.
Bad
example:
The M8029 will function
as the "instruction
execution complete" flag
of the lower DSW
instruction.
The M8029 will function
as the "instruction
execution complete" flag
of the upper DPLSV
instruction.
The M8029 will function
as the "instruction
execution complete" flag
of the lower DPLSV
instruction.
RST
M0
FNC 22
MUL
D0 K10 D20
M8000
X10 Y10 D0
Completion of
instruction
execution
FNC 72
DSW
K1
X000
M0
SET
M0
K1000 Y002 Y006
FNC157
DPLSV
M8029
M8029
Compl-
etion of instruction execution
M1
K1000 Y001 Y005
FNC157
DPLSV
Program for upper DPLSV
instruction
Program for DSW
instruction
Upper DPLSV instruction
Lower DPLSV instruction
M0
FNC158
DDRVI
K100000 K50000 Y000 Y004
M0
M8029
Completion
of instruction
execution
M1
FNC159
DDRVA
K10000 K30000 Y001
RST
M1
M8029
M8329
The M8029 will function
as the "instruction
execution complete"
flag of DRVI instruction.
The M8029 will function
as the "instruction
execution complete"
flag of DRVA instruction.
Good
example:
Abnormal
completion of
instruction execution
M0
Y005
RST
RST
Completion
of instruction
execution
M8329
M1
RST
Abnormal
completion of
instruction execution