Posted 12 Jan 2022 Hi. I want to get the full date and time into the plc, where i want to calculate when current step and full sequence is expected to finish and then later present it back on the screen. I tried to map the _HMI_DateTime to the controller, but it does not get added to the controller. Share this post Link to post Share on other sites
Posted 12 Jan 2022 The PLC already has a clock variable. Can it be used instead? You should be able to create a variable in the PLC, map it in the HMI, then use a timed global event to copy the value from the HMI clock into that variable to send it back to the PLC. Share this post Link to post Share on other sites
Posted 12 Jan 2022 56 minutes ago, Crossbow said: then use a timed global event to Thanks, never looked into global events, and have been looking for a timer somewhere in the controls / toolbox. The PLC iirc ONLY have the time, but i need even date because there are some processes that can take a full day to complete. Share this post Link to post Share on other sites
Posted 13 Jan 2022 (edited) I have used the "GetTime" function previously. It outputs a variable with a DATE_AND_TIME data type that includes both date and time. It is based on the clock in the PLC, which does track date and time. I then used DT_TO_DATE & DT_TO_TOD to split up the date and time, but that was because I needed them to be separate for some CSV fields. This was using an NX102 CPU. Edit: Screenshot didn't upload, apparently I can't upload JPEG files Edited 13 Jan 2022 by BE Share this post Link to post Share on other sites
Posted 13 Jan 2022 14 hours ago, BE said: Edit: Screenshot didn't upload, apparently I can't upload JPEG files It seems that attachments are not functioning again, we have made the site owners aware. Share this post Link to post Share on other sites