FB_ALY_GetSystemTime
Gets the local system time in resolution of 1ns. The accuracy of this time is 100ns. The value is updated by the Call()-method.
Syntax
Definition:
FUNCTION_BLOCK FB_ALY_DateTime
tSystemTime : ULINT;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
tSystemTime | ULINT | Current system time. |
Methods
Name | Definition location | Description |
---|---|---|
Call() | Local | Method for recording the current system time. |
Sample
VAR
fbSystemTime : FB_ALY_GetSystemTime;
tSystemTime : ULINT;
END_VAR
// Gather current system time
fbSystemTime.Call();
// Allocate system time
tSystemTime := fbSystemTime.tSystemTime;
Requirements
Development environment | Target platform | Plc libraries to include |
---|---|---|
TwinCAT v3.1.4024.0 | PC or CX (x64, x86) | Tc3_Analytics |
Further Information