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 "Servostar 300 drive" See Servo Drive in Glossary). |
Data type |
DINT |
|
Range |
[0, 1] |
|
Unit |
N/A |
|
Default |
— |
|
edge |
Description |
Configures the Inputs as 0= Disabled, 1=Rising Edge A rising edge is the transition of a digital signal from low to high. It is also called positive edge, 2=Falling 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 a Timestamp. |
Data type |
DINT |
|
Unit |
microseconds |
Related Functions
Example
Structured Text
MLAxisTimeStamp(PipeNetwork.Axis1, 0, 1 ) ;
|
Ladder Diagram
Function Block Diagram