Motion Library - Trigger

Name

Description

Return type

MLTrigClearFlag

Clears the flag of an initiated Trigger block

BOOL

MLTrigInit

Initializes a Trigger object

BOOL

MLTrigIsTrigged

Checks if the selected block has been triggered

BOOL

MLTrigReadDelay

Returns the time that the trigger block uses to compensate the delay of the sensorClosedA sensor is 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

None

MLTrigReadPos

Returns the position of the block at the moment when it was triggered

None

MLTrigReadTime

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

None

MLTrigSetEdge Sets the edge configuration for a Trigger object BOOL

MLTrigWriteDelay

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

BOOL

Usage example of Trigger Functions

When you call the MLTrigClearFlag function, the flag for trigger is reset 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.

Trigger Functions Usage

Figure 8-116: Trigger Functions Usage

Go back to the top of the page [Top]