Trigger

Name

Description

MLTrigClearFlag

Clears the flag of an initiated Trigger block.

MLTrigInit

Initializes a Trigger object for use in a PLC program.

MLTrigIsTrigged

Checks if the selected block has been triggered.

MLTrigReadDelay

Returns the time the trigger block uses to compensate the delay of the sensor that captures the triggering signal.

MLTrigReadPos

Returns the position 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.

Purpose

Parameters

Example: Trigger Functions

Associated Data

  • OutputValue: Output value of the data flows.
  • TRIG_POS: interpolated position calculated when the time event was triggered (reserved for debugging purposes).
  • TRIG_TIME: time when the event was triggered (reserved for debugging purposes).
  • DELTA_TRIG_TIME: reserved for debugging purposes.