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-305
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Selection Instructions
2
Band
The Band instruction controls the value of data to control In according to the maximum value, MX, and
the minimum value, MN. The value of processing result Out is as shown below.
The following example is for when MN is INT#10 and MX is INT#20.
In, MN, MX, and Out may be different data types, but observe the following precaution.
Set the valid range of Out to include the valid ranges of In, MN, and MX.
If the value of In is nonnumeric data, the value of Out is nonnumeric data.
If the value of In, MN, or MX is positive infinity or negative infinity, the value of Out is as shown below.
Function
Value of In Value of Out
In < MN In MN
MN In MX 0
MX < In In MX
Precautions for Correct Use
Value of In Value of MN Value of MX Value of Out
+
+
+
0
−∞
Error
−∞
+
0
−∞ +
def:=Band(INT#10, abc, INT#20);
LD ST
INT#20
INT#10
abc
def
Band
EN ENO
MN
In
MX
Out=def
In=abc
MX=INT#20
MN=INT#
10

Table of Contents

Related product manuals