Minimum And Maximum Instructions - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

7.5.7

Minimum and Maximum instructions

Table 7- 53
MIN and MAX instructions
LAD / FBD
SCL
out:= MIN(
out:= MAX(
For LAD and FBD: Click the "???" and select a data type from the drop-down menu.
1
Table 7- 54
Data types for the parameters
Parameter
Data type
IN1, IN2
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal, Constant
[...IN32]
OUT
SInt, Int, DInt, USInt, UInt, UDInt, Real, LReal
The IN1, IN2, and OUT parameters must be the same data type.
1
To remove an input, right-click on an input stub for one of the existing IN parameters (when
there are more than the original two inputs) and select the "Delete" command.
Table 7- 55
ENO status
ENO
Description
1
No error
0
For Real data type only:
One or more inputs is not a real number (NaN).
The resulting OUT is +/- INF (infinity).
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
in1:=_variant_in_,
in2:=_variant_in_
[,...in32]);
in1:=_variant_in_,
in2:=_variant_in_
[,...in32]);
1
To add an input, click the "Create" icon or right-click on an input stub for one of
the existing IN parameters and select the "Insert input" command.
Description
The MIN instruction compares the value of two parameters IN1
and IN2 and assigns the minimum (lesser) value to parameter
OUT.
The MAX instruction compares the value of two parameters IN1
and IN2 and assigns the maximum (greater) value to parameter
OUT.
Description
Math operation inputs (up to 32 inputs)
Math operation output
100BBasic instructions
7.5 Math
191

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents