Operator ‘MAX’ΒΆ

This IEC operator is used for the maximum function. It yields the largest value of two values.

OUT := MAX(IN0, IN1)

Permitted data types: all

Examples

ST:

Result: 90

Var1 := MAX(30,40);

Var1 := MAX(40,MAX(90,30));

FBD:

Result: 90