Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-04-06 05:38 AM
Hi all,
Is it possible to read the system time from a HMIGTO2310/2315?
I have the PLC syncing the RTC time to the HMI using the 'Sys.setTime' function and I could just make the HMI display the last PLC variables used to write to that, however there's surely a simple way to read that time that's just been set directly from the HMI?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-04-11 03:07 AM
Hi,
There are system variables you can read: _Year4, _Year2, _Month, _Day, _Hours, _Minutes, _Seconds.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-04-16 07:13 AM
Hi @Fleo ,
Many thanks for replying, much appreciated.
Ok, so there's no singular system variable I can read to display the whole time in one go, I'll need to read the variables and combine them into the time format I want.
If that's correct, what is the syntax layout for combining the time variables and how can I force desired formats such as 12/24 hour and if the am/pm flag is shown? Same question for the date as well really.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.