Fnc 02 - Sret / Subroutine Return - Mitsubishi FX3G Series Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
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
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.
226
Series
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
C D R U \G
V
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
Z Modify K H
E
→ Refer to Section 8.2.
Pointer
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents