MLTrigReadTime
Function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - 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 |
Remarks
-
-
This function or function block A function block groups an algorithm and a set of private data. It has inputs and outputs. 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 A sequence of characters, denoting the date and/or time at which a certain event occurred. of a Fast Input time event.
- Once triggered, a block has to be reset New start of the microprocessor. before it can be triggered again.
- All events sent to a block while in a triggered state are ignored.
- The position Position means a point in space which is described by different coordinates.
Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation.
In ACS there can be even more than six coordinates.
If the same position is described in different coordinate systems the values of the coordinates are different. and time information is lost.
- 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