Posted 11 Mar 2021 Hello, How to SET the RTC of the CP1L-EM40 PLC Using NB7Q-TW01 HMI. Is it any way to transfer the data of LW10000 to LW10005 (Which is RTC of HMI) to the Auxiliary area of PLC which stores the RTC of PLC ? Share this post Link to post Share on other sites
Posted 11 Mar 2021 Not directly no. In the PLC you need to use the DATE(735) instruction to set the PLC clock. 1 person likes this Share this post Link to post Share on other sites
Posted 11 Mar 2021 So basically to get your desired operation write the RTC from the HMI to some intermediate registers in the PLC. You will need to do some shuffling around of the data to get it in the right format for the DATE(735) instruction. You'll need all the values in BCD and then pack them into a few words using MOVD(083). The layout is outlined in the instruction help file for DATE(735). 1 person likes this Share this post Link to post Share on other sites
Posted 11 Mar 2021 In order to transfer the clock words from NB to PLC, use the Data Transmission object in NB-Designer. 1 person likes this Share this post Link to post Share on other sites
Posted 16 Mar 2021 Okay got it, only option is to use indirect registers. It's strange, PLC & HMI both have RTC but no direct sync option available. Share this post Link to post Share on other sites