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

../_images/25d1dafbcb879cc2c0a8640e003e737a