MAX

The IEC operator is used for the maximum function. It returns the largest of the transferred input values.

Syntax: OUT := MAX(IN0, IN1,<further inputs>)

Permitted data types: all

Samples:

Result: nVar is 90.

ST:

nVar := MAX(40,30,90,77);

FBD:

MAX 1: