
Ivan2020 (Customer) asked a question.
I would like to know why my RTC is not changing to the new values that I am trying to apply in code.
I have a subroutine called SetDateTime and it copies a new hour value and a new 4 digit year value into SD34 and SD29. The I set the coils SC55 and SC53 to true. When I set SC55 and SC53 to true I thought my SD34 and SD29 values from the RTC_New_Hour and RTC_New_Year would automatically be copied over to SD24 and SD19 but SD24 and SD19 are not taking the new value. What am I missing?
Hi Ivan2020,
Your program is setting the time for every scan of the plc. This must be toggled.
Here is an example of setting the RTC for DST.
https://accautomation.ca/click-plc-real-time-clock/
I hope this helps you out.
Regards,
Garry
https://accautomation.ca/series/click-plc/