Fnc 02 - Sret / Subroutine Return - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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
8.3 FNC 02 – SRET / Subroutine Return
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
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
231

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents