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 PLCClosed Programmable Logic Controller - A digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events. ProgramClosed The act of performing a sequence of instructions or commands..

MLCompReadRef

Returns the reference positionClosed Position means a point in space which is described by different coordinates. Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation. In ACS there can be even more than six coordinates. If the same position is described in different coordinate systems the values of the coordinates are different. 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.