EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

MAX

Overview

IEC selection operator performing a maximum function.

The MAX operator returns the greater of the 2 values.

OUT := MAX(IN0, IN1)

IN0, IN1 and OUT can be any type of variable.

Example in IL

Result is 90

LD     90
MAX    30
MAX    40
MAX    77
ST     Var1

Example in ST

Var1:=MAX(30,40); (* Result is 40 *)
Var1:=MAX(40,MAX(90,30)); (* Result is 90 *)

Example in FBD

G-SE-0024410.1.gif-high.gif