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 |
-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 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:
- Fast Homing Example with the Pipe Network Motion Engine Axis Pipe Block
- Fast Homing Example with the PLCopen Motion Engine
- Fast Inputs with Pipe Network Motion
- Pipe Network Registration and Fast Homing
- Registration Position Capture Example 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