FX
3S
/FX
3G
/FX
3GC
/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 - 82
Programming using the "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 DDRVI
instruction.
The M8029 will function
as the "instruction
execution complete" flag
of the lower DDRVA
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
M8029
M8029
Compl-
etion of instruction execution
M1
Program for upper DDRVI
instruction
Program for DSW
instruction
Upper DDRVI instruction
Lower DDRVA 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 DDRVI instruction.
The M8029 will function
as the "instruction
execution complete"
flag of DDRVA instruction.
Good
example:
Abnormal
completion of
instruction execution
M0
Y005
RST
RST
Completion
of instruction
execution
M8329
M1
RST
Abnormal
completion of
instruction execution
FNC158
DDRVI
K100000 K50000 Y000 Y004
FNC159
DDRVA
K10000 K30000 Y001 Y005
Downloaded from ManualsNet.com search engine