EasyManua.ls Logo

Omron NJ Series - Page 273

Omron NJ Series
668 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...
6 Programming
6-86
NJ-series CPU Unit Software User’s Manual (W501)
Var1 := Var2;
You cannot make assignments to union variables. You must make the assignments to individual
members of the unions.
RETURN
Overview:
The following actions occur depending on where the ST statement is used.
ST
The ST program is ended during operation and the next program is executed.
ST in a Function Inside a Function Block Instance
The function or function block is ended during operation and the next instruction after the calling
instruction is executed.
Inline ST
The POU that contains inline ST with a RETURN statement is ended.
Reserved Words:
RETURN
Statement Structure:
Application:
Use this statement to force the current program, function, or function block to end.
IF with One Condition
Overview:
The construct executes the specified statement when a condition is met. If the condition is not met,
another statement is executed. The following expressions are used to specify whether the condition
is met.
TRUE: The condition is met.
FALSE: The condition is not met.
Reserved Words:
IF, THEN, (ELSE), END_IF
Note You can omit ELSE.
Construct Structure:
RETURN;
IF <condition_expression> THEN
<statement_1>;
ELSE
<statement_2>;
END_IF;

Table of Contents

Other manuals for Omron NJ Series

Related product manuals