Mitsubishi Electric MELSEC FX3U Programming Manual page 240

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Example for resetting held outputs (countermeasures)
1) Program example
X000
X001
X002
X000
P0
2) Timing chart
Execution of P0 is
triggered by X000
X001
Current
value of C0
Counter is reset (part
RST
A in above program).
C0
Y007
X002
238
FNC 01
CALLP
C0
RST
FNC 06
FEND
RST
M8001
RST
RUN monitor
(normally OFF)
Y007
FNC 02
SRET
Subroutine is
executed.
3
2
1
1
Counter reset instruction is deactivated
(part B in above program).
Y007 is reset.
P0
K10
Y007
Y007 is reset at an arbitrary timing.
C0
A
B
C0
The preceding RST C0 instruction is
deactivated in the subroutine.
4
3
2
8 Program Flow – FNC 00 to FNC 09
8.2 FNC 01 – CALL / Call Subroutine

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents