Omron NJ501-1500 Reference Manual page 75

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

Sample Programming
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.
Variable
Data type Initial value
abc
INT
def
INT
ghi
INT
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;
NJ-series Instructions Reference Manual (W502)
0
0
0
2 Instruction Descriptions
2
2-27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents