MAX

MAX

PROGRAM MAX_DEMO
   VAR
     REAL1,REAL2,REAL3: REAL;
    END_VAR
 REAL3:= MAX(IN1:=REAL1, IN2:=REAL2);
END_PROGRAM

Returns the maximum value from all the inputs. The number of inputs may be 2 and higher.

InputType Description
IN1 ANY_ELEMENTARYInput value
IN2 ANY_ELEMENTARYInput value
OutputType Description
ANY_ELEMENTARYOutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024