F_GetLocalSystemtimeEx
Returns the system time of a device with AMS-NetID, taking into account the time zone. Is suitable for creating system time-related timestamps.
Syntax:
FUNCTION F_GetLocalSystemtimeEx : ULINT
Inputs
Name | Type | Description |
---|---|---|
sNetID | T_AmsNetID | Net-ID of the system to be read |
Outputs
Name | Type | Description |
---|---|---|
F_ GetLocalSystemtimeEx | ULINT | System time, based on the definition of T_FILETIME |
Possible events
ID | Description | Alarm/Message |
---|---|---|
30x | Error when retrieving the local system time | Message |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT >= v3.1.4024.54 (recommended) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.8.1.0) |