Comparator

Name

Description

MLCompCheck

Verifies if the reference of a comparator Pipe Block has been crossed.

MLCompInit

Initializes a comparator Pipe Block with user-defined settings for use in a PLC Program.

MLCompReadRef

Returns the reference position of a comparator block.

MLCompReset

Clears the Transition Flag of a comparator Pipe Block.

MLCompWriteRef

Sets the reference position of a comparator block.

Comparator Functions Examples

When you call the MLCompWriteRef function, the output for MLCompCheck becomes TRUE as soon as the input value reaches the reference.

The same function can also be called for a cyclic input value.

When the THROUGH_ZERO parameter is set to YES, the output for MLCompCheck becomes TRUE as soon as the input value reaches the reference, but not before it has passed through zero.