MLAxisTimeStamp
Description
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.
-
- This function or function block returns cached data. See Programming a Dual Core Controller for more information.
Arguments
Input
|
En |
Description |
Enables execution |
|
Data type |
BOOL | |
|
Unit |
n/a |
|
|
Default |
— |
|
|
ID |
Description |
ID Name of the Axis block |
|
Data type |
DINT |
|
|
Range |
— |
|
|
Unit |
n/a |
|
|
Default |
— |
|
|
InputID |
Description |
ID of the triggered Fast input of an axis, 0=first , 1=second (ie IN1 and IN2 on S300 |
|
Data type |
DINT |
|
|
Range |
[0, 1] |
|
|
Unit |
n/a |
|
|
Default |
— |
|
|
edge |
Description |
Configures the Inputs as 0= Disabled, 1=Rising Edge |
|
Data type |
DINT |
|
|
Range |
[0, 2] |
|
|
Unit |
n/a |
|
|
Default |
— |
Output
|
OK |
Description |
Returns true when function successfully executes. |
|
Data type |
BOOL |
|
|
Unit |
n/a |
|
|
Q |
Description |
Returns the time stamp value. This value is explained in How to interpret the timestamp. |
|
Data type |
DINT |
|
|
Unit |
microseconds |
Related Functions
Example
Structured Text
|
MLAxisTimeStamp(PipeNetwork.Axis1, 0, 1 ) ;
|
Ladder Diagram
Function Block Diagram
|
Copyright © 2018 Kollmorgen |
|
[Top]






