MLTrigReadTime

Pipe Network motion icon

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

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Trigger object.

Outputs

Output

Data Type

Range

Unit

Description

Time

LREAL

No range

Microseconds

Returns the time the Trigger Block's selected Fast Input was triggered.

Remarks

  • This value is only valid when TrigIsTrigged() returns TRUE.
    • The output is computed from the timestamp of a Fast Input time event.
  • Once triggered, a block has to be reset before it can be triggered again.
    • All events sent to a block while in a triggered state are ignored.
    • The position and time information is lost.
  • Previous Function Name: MLTrigGetTime

Fast Homing - Inputs

See these topics for more information:

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Save time when Fast Input event occurs
Trig_Time := MLTrigReadTime( PipeNetwork.TRIGGER );

See Also