I have been using the CTS variable to create timers in my PLC code. The manual defines CTS as;
CTS Current total seconds since 1/1/2000 (based on local clock)
It would seem that CTS is based on the PLC using SNTP to define the current time. When the PLC is initially powered up, how long do I need to wait before CTS is accurate? I currently use a "DELAY 5000" in my initialization code, but have no idea what is required!
CTS Current total seconds since 1/1/2000 (based on local clock)
It would seem that CTS is based on the PLC using SNTP to define the current time. When the PLC is initially powered up, how long do I need to wait before CTS is accurate? I currently use a "DELAY 5000" in my initialization code, but have no idea what is required!