Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
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
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;

NY-series Instructions Reference Manual (W560)

Initial value
0
0
0
2 Instruction Descriptions
2
2-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents