MLAxisTimeStamp
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 timestamp A timestamp is a sequence of characters, denoting the date and/or time at which a certain event occurred of the triggered axis.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
En |
BOOL |
No range |
N/A |
No default |
Enables execution. |
ID |
DINT |
No range |
N/A |
No default |
ID Name of the Axis block. |
InputID |
DINT |
0, 1 |
N/A |
No default |
ID of the triggered Fast input of an axis.
|
edge |
DINT |
0, 2 |
N/A |
No default |
Configures the Inputs as:
|
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
OK |
BOOL |
|
|
Returns TRUE when the function successfully executes. |
Q |
DINT |
|
Microseconds |
Returns the time stamp value. See Interpret a Timestamp for more information. |
Remarks
-
-
This function or function block returns cached data.
See Program a Multi-Core Controller for more information.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
MLAxisTimeStamp(PipeNetwork.Axis1, 0, 1 ) ;
See Also