In_Range (Value Within Range) And Out_Range (Value Outside Range) Instructions - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

7.4.2
IN_Range (Value within range) and OUT_Range (Value outside range)
instructions
Table 7- 31
Value within Range and value outside range instructions
LAD / FBD
SCL
out := IN_RANGE(min,
val, max);
out := OUT_RANGE(min,
val, max);
For LAD and FBD: Click the "???" and select the data type from the drop-down list.
1
Table 7- 32
Data types for the parameters
Parameter
Data type
MIN, VAL, MAX
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal,
Constant
The input parameters MIN, VAL, and MAX must be the same data type.
1
● The IN_RANGE comparison is true if: MIN <= VAL <= MAX
● The OUT_RANGE comparison is true if: VAL < MIN or VAL > MAX
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
1
Description
Tests whether an input value is in or out of a specified value range.
If the comparison is TRUE, then the box output is TRUE.
Description
Comparator inputs
Basic instructions
7.4 Comparator operations
227

Advertisement

Table of Contents
loading

Table of Contents