Browse FAQs

Is there an example on how to Sync the time between an HMISTU and M241?

Published date: 30 September 2019

Issue:
When using the HMISTU and M241 PLC, is there a way to read the time information from the M241 PLC and use that to synchronize the HMISTU's internal clock?

Product Line:
Vijeo Designer, SoMachine, Magelis HMI, XBTGT, XBTGK, HMISTO, HMISTU, HMIGTO, HMIGTU, HMIGK

Resolution:
In order to synchronize the HMI time with the M241 time, you must make use of a few libraries in SoMachine.

You will need to use the following:
SysTimeRtcGet -> This gets the controller's time
SysTimeRtcConvertUtcToDate -> This will convert the controller's UTC info to a readible date
SYSTIMEDATE -> This will store all the date and time information in tags that can be used by the HMI in Vijeo Designer.

For a complete setup of an example of how to get and set the PLC time, please see the example in the attached file.

Was this helpful?

What can we do to improve the information ?

Can't find what you are looking for?

Reach out to our customer care team to receive information on technical support, assistance for complaints and more.