Min (Get Minimum) And Max (Get Maximum) Instructions - Siemens S7-1200 System Manual

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

Advertisement

Basic instructions
7.5 Math functions
7.5.7

MIN (Get minimum) and MAX (Get maximum) instructions

Table 7- 53
MIN (get minimum) and MAX (get maximum) 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:
At least one input is not a real number (NaN).
The resulting OUT is +/- INF (infinity).
234
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
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents