Function - Get the maximum of two values.

Inputs

Hint: The function block can be resized. Define the amount of desired inputs if wanted.

Input

Data type

Description

IN1

ANY

First input.

IN2

ANY

Second input.

Outputs

Output

Data type

Description

Q

ANY

IN1 if IN1 > IN2; IN2 otherwise.

Remarks

In LD language, the input rung (EN) enables the operation, and the output rung keeps the state of the input rung.

ST Language

Q := MAX (IN1, IN2);

FBD Language

Fixed_Image

LD Language

The comparison is executed only if EN is TRUE.
ENO has the same value as EN.

Fixed_Image

Fixed_Image See also

MIN  LIMIT  MOD  ODD

 


Created with the Personal Edition of HelpNDoc: Effortlessly Convert Your Word Doc to an eBook: A Step-by-Step Guide