EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-61
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Sequence Control Instructions
2
RETURN
RETURN
The RETURN instruction ends a function or function block and returns processing to the calling instruc-
tion.
None
The RETURN instruction ends a function or function block and returns processing to the calling instruc-
tion.
The following figure shows a programming example. When the RETURN instruction is executed in the
example, the SR instruction that follows it is not executed.
Observe the following precautions if you use this instruction in a ladder diagram.
Use this instruction only in functions and function blocks. If you use it in a program, a building error
will occur.
Always connect this instruction directly to the left bus bar.
Before you execute this instruction set the return values, output variables, and ENO value of the
POU.
If you use this instruction too often, the flow of processing will be difficult to understand. Use it with
caution.
Instruction Name FB/FUN Graphic expression ST expression
RETURN Return FUN RETURN;
Variables
Function
Precautions for Correct Use
RETURN
EN ENO
RETURN;
LD ST
B
A
abc
SR
Set1 Q1
Reset
SR_instance
SR_instance(A, B, abc);
RETURN
EN ENO

Table of Contents

Related product manuals