Trigger

Name

Description

MLTrigClearFlag

Clears the flag of an initiated Trigger block.

MLTrigInit

Initializes a Trigger object 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..

MLTrigIsTrigged

Checks if the selected block has been triggered.

MLTrigReadDelay

Returns the time the trigger block uses to compensate the delay of the sensorClosed A type of transducer that converts one type of energy into another for various purposes including measurement or information transfer. that captures the triggering signal.

MLTrigReadPos

Returns the 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 the block at the moment when it was triggered.

MLTrigReadTime

Returns the time of the moment where the block was triggered in milliseconds.

MLTrigSetEdge

Sets the edge configuration for a trigger block (e.g., rising, falling, etc.)

MLTrigWriteDelay

Sets the time the trigger block uses to compensate for the delay introduced by the sensor that captures the triggering signal.

Example: Trigger Functions

When you call the MLTrigClearFlag function, the flag for trigger is resetClosed New start of the microprocessor. to False.

When a Fast Input is set, the MLTrigIsTriggered function returns TRUE.

Then you can call the MLTrigReadPos and MLTrigReadTime functions to get more details.

Figure 1: Trigger Functions Usage