A SERVICE OF

logo

227
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.2 FNC 01 – CALL / Call Subroutine
1
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
Example for resetting held outputs (countermeasures)
1) Program example
2) Timing chart
X000
X000
FNC 01
CALLP
RST C0
X002
P0
FNC 06
FEND
RST C0
FNC 02
SRET
P0
RST Y007
Y007 is reset at an arbitrary timing.
The preceding RST C0 instruction is
deactivated in the subroutine.
B
M8001
RUN monitor
(normally OFF)
A
Y007
X001
C0
K10
Execution of P0 is
triggered by X000
X001
Current
value of C0
1
2
3
Y007 is reset.
RST
C0
Y007
Subroutine is
executed.
1
2
3
4
X002
Counter reset instruction is deactivated
(part B in above program).
Counter is reset (part
A in above program).