Fnc 02 - Sret / Subroutine Return - Mitsubishi Electric MELSEC FX3U Programming Manual

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
8.3
FNC 02 – SRET / Subroutine Return
Outline
This instruction returns the program execution from a subroutine to the main program.
1. Instruction format
FNC 02
SRET
2. Set data
Operand type
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
Explanation of function and operation
When CALL instruction in the main program is executed, the program execution jumps to a subroutine.
SRET instruction returns the program execution to the main routine.
Mnemonic
Independent Inst.
1 step SRET
There is no set data.
Digit Specification
Operation Condition
This instruction is the independent type, and
Continuous
does not require drive contact.
Operation
Description
Word Devices
Special
System User
Unit
V Z Modify K H
There are no applicable devices.
8 Program Flow – FNC 00 to FNC 09
8.3 FNC 02 – SRET / Subroutine Return
Data type
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
→ Refer to Section 8.2.
1
2
3
4
Pointer
P
5
6
7
8
9
10
239

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents