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

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Function
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.
Value of In
In < MN
MN ≤ In ≤ MX
MX < In
The following example is for when MN is INT#−10 and MX is INT#20.
LD
EN
INT#−10
MN
abc
In
INT#20
MX
MN=INT#−10
Precautions for Correct Use
• 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.
Value of In
+∞
2-340
Value of Out
In − MN
0
In − MX
ST
Band
ENO
def
Out=def
In=abc
MX=INT#20
Value of MN
Value of MX
+∞
+∞
−∞
+∞
−∞
−∞
def:=Band(INT#−10, abc, INT#20);
Value of Out
0
Error
0
+∞

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents