Skip to main content

Operator: MAX

The IEC operator is used for the maximum function. It yields the greatest value of all inputs.

OUT := MAX(IN0,IN1,IN2,...)

Permitted data types: all

Example 123. Examples

Result: 90

ST

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

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

FBD

_cds_img_max.png