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-27
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
ST Statement Instructions
2
IF
This example assigns INT#0 to variable def if the value of variable abc is less than INT#0. It assigns
INT#1 to variable def and INT#2 to variable ghi if the value of variable abc is INT#0. It assigns INT#3 to
variable def if the value of variable abc is none of the above.
Sample Programming
IF (abc<INT#0) THEN
def:=INT#0;
ELSIF (abc=INT#0) THEN
def:=INT#1;
ghi:=INT#2;
ELSE
def:=INT#3;
END_IF;
abc
def
ghi
0
0
0
INT
INT
INT
Variable
Data type
Initial value

Table of Contents

Related product manuals