The attached sample is a basic example of how to access the System Time in the PAC (provided in UTC seconds) and convert to Time/Date format. The example also shows how to display and change those values via an Embedded Xpress example. Select the project that matches your version of Parker Automation Manager:
PAM1.4: PAC_System_Time_Access_Example_PAM1.4
PAM1.2: PAC_System_Time_Access_Example_PAM1.2
Notes:
The example adds the SysTime library to the Library Manager.
The utilities used are functions, not function blocks, so are not declared in the variable declaration section.
Documentation on these utilities is only available inside of the Library Manager itself, not the overall PAM help system.
The time provided is in UTC seconds and the example then uses some conversion functions to convert into a SYSTIMEDATE structure to get the year, month, day, etc.
There is a minimum UTC seconds value that the function SysTimeRtcSet allows and that is 1000000000 (9/9/2001). The maximum UTC seconds value that the function SysTimeRtcSet allows is 2147483647 (1/19/2038).
glh 1/2016
31OCT18 JD