MLTrigReadTime
Function - Returns the time of the moment where the block was triggered in milliseconds.
Inputs
|
Input |
Data Type |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
BlockID |
DINT |
1 to 1024 |
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 function or function block returns cached data.
See Program a Multi-Core Controller.
- 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.
- Previous Function Name: MLTrigGetTime
Fast Homing - Inputs
See these topics for more information:
- Example: Fast Homing with the Pipe Network Motion Engine Axis Pipe Block
- Example: Fast Homing with the PLCopen Motion Engine
- Fast Inputs with Pipe Network Motion
- Pipe Network Registration and Fast Homing
- Example: Registration Position Capture with Pipe Network Trigger Block
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







