SysTimeRtcConvertHighResToDate (FUN) ¶ FUNCTION SysTimeRtcConvertHighResToDate : RTS_IEC_RESULT <description>Convert a high resolution timestamp to a structure format. Time values are always UTC!</description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcConvertHighResToDate RTS_IEC_RESULT Inout pTimestamp SYSTIME <param name=”pTimestamp” type=”IN”>Milliseconds since 1.1.1970 00:00:000 UTC</param> pDate SYSTIMEDATE <param name=”pDate” type=”OUT”>Structure format</param>
High Resolution ¶ SysTimeRtcConvertDateToHighRes (Function) SysTimeRtcConvertHighResToDate (Function) SysTimeRtcConvertHighResToLocal (Function) SysTimeRtcConvertLocalToHighRes (Function) SysTimeRtcHighResGet (Function) SysTimeRtcHighResSet (Function)
SysTimeRtcConvertHighResToLocal (FUN) ¶ FUNCTION SysTimeRtcConvertHighResToLocal : RTS_IEC_RESULT <description> Convert a high resolution timestamp [UTC] to a structure format [Localtime] </description> <errorcode name=”RTS_RESULT Result” TYPE=”ERR_OK”>Timestamp can be converted</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_FAILED”>Timestamp failed to convert</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_NOTIMPLEMENTED”>Conversion is not available on the target</errorcode> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcConvertHighResToLocal RTS_IEC_RESULT Inout pTimestamp SYSTIME <param name=”pTimestamp” type=”IN”>Milliseconds since 1.1.1970 00:00:000 [UTC]</param> pDate SYSTIMEDATE <param name=”pDate” type=”OUT”>Structure format [Localtime]</param>
SysTimeRtcConvertLocalToHighRes (FUN) ¶ FUNCTION SysTimeRtcConvertLocalToHighRes : RTS_IEC_RESULT <description> This function converts the time given by time structure [Localtime] into a High Resolution Time of format SysTime [UTC]. </description> <errorcode name=”RTS_RESULT Result” TYPE=”ERR_OK”>DATE can be converted</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_FAILED”>Date failed to convert</errorcode> <errorcode name=”RTS_RESULT Result” type=”ERR_NOTIMPLEMENTED”>Conversion is not available on the target</errorcode> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result> InOut: Scope Name Type Comment Return SysTimeRtcConvertLocalToHighRes RTS_IEC_RESULT Inout pDate SYSTIMEDATE <param name=”pDate” type=”IN”>Structure format [Localtime]</param> pTimestamp SYSTIME <param name=”pTimestamp” type=”OUT”>Milliseconds since 1.1.1970 00:00:000 [UTC]</param>
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 03.07.2018, 10:35:37 companyName string 3S-Smart Software Solutions GmbH libraryFile SysTime23.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP13 contentFile SysTime23.clean.json version version 2.0.0.0 ProjectInformation Released bool True Support32BitOnly True LastModificationDateTime date 03.07.2018, 10:35:37 LibraryCategories library-category-list System|SysLibs23 Author string 3S - Smart Software Solutions GmbH Company System Description See: Description Placeholder SysTime23 Project SysTime23 Title SysTime23 Version version 3.5.13.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. SysTimeCore ¶ Library Identification ¶ Placeholder: SysTimeCore Default Resolution: SysTimeCore, * (System) Namespace: SysTimeCore Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTimeCore SysTimeRtc ¶ Library Identification ¶ Placeholder: SysTimeRtc Default Resolution: SysTimeRtc, * (System) Namespace: SysTimeRtc Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTimeRtc
SysTimeCore Library Documentation ¶ Company System Title SysTimeCore Version 3.5.17.0 Categories System|SysLibs Author 3S - Smart Software Solutions GmbH Placeholder SysTimeCore Description 1 ¶ Library provides access to high resolution time routines for time calculations. Contents: ¶ SYSTIME (Alias) SysTimeGetMs (Function) SysTimeGetNs (Function) SysTimeGetUs (Function) Indices and tables ¶ 1 Based on SysTimeCore.library, last modified 20.04.2021, 16:11:44. LibDoc 4.4.0.0-b.27 The content file SysTimeCore.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 20.04.2021, 16:11:44.
SYSTIME (ALIAS) ¶ TYPE SYSTIME : ULINT High resolution time datatype to hold ticks
SysTimeGetMs (FUN) ¶ FUNCTION SysTimeGetMs : UDINT <SIL2/> Returns a monotonic rising millisecond tick. This tick can be used for timeout and relative time measurements. NOTE: The realtime clock is not influencing this tick! RETURN: Returns the millisecond tick InOut: Scope Name Type Return SysTimeGetMs UDINT
SysTimeGetNs (FUN) ¶ FUNCTION SysTimeGetNs : RTS_IEC_RESULT <SIL2/> Returns a monotonic rising nanosecond tick. This tick can be used for very high resolution time measurements NOTE: The realtime clock does not influences this tick! RETURN: Returns the runtime system error code (see CmpErrors.library) InOut: Scope Name Type Comment Return SysTimeGetNs RTS_IEC_RESULT Inout pUsTime SYSTIME Time tick result in nanoseconds