Posted 2 September Hello all, Does the TIME_OF_DAY date type not work on HMI like it does on NX? I'm trying to setup a modify value on HMI that set TOD to current time, Thanks for the help Share this post Link to post Share on other sites
Posted 3 September No, the HMI doesn't recognize TOD. To work with TOD you convert seconds to TOD. If you're referring to the PLC clock it's the DATE_AND_TIME datatype that you need - use SecToDt to convert seconds to DATA_AND_TIME. The instruction reference will guide you - I think I have some FBs laying around that do it for you - I'll check Share this post Link to post Share on other sites
Posted 4 September (edited) @Squirrel Not sure if you are just wanting to pull the Current time-of-day from the HMI system clock or you are wanting to make changes to the system clock. To pull time of day there are a couple ways you can do this. First put the Current time in a holding variable of type Date. Then you can strip just the TOD (HH:MM:SS) out of it and put it into a string variable. To edit you can use the integrated keypad to edit the holding variable DateTime and update the "TOD" variable as needed. You can trim the Keypad to just allow edit only to the hour/min/Sec components if desired. Program file is too large to attach but could be something like below Edited 4 September by Str8jCkt Share this post Link to post Share on other sites
Posted 6 September That is basically what I was stuck on, I was trying to make the HMI editable through TOD. But I forgot to make it a variable to a TOD, it's for a auto on/off PLC start up. I didn't want to have be only one knowing how to modify a variable, but thanks for the information! Share this post Link to post Share on other sites