
adccommunitymod (AutomationDirect) asked a question.
P2000 Clock
Created Date: February 15,2017
Created By: mzuniga
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
Is there a real time clock I can use within my program to initiate different things throughout the 24 hours? For example turning lights on and off at different times of the day. I was wondering if there was a way to use the CPU Clock for this situation. Thank You
Created Date: February 15,2017
Created by: mzuniga
Is there a real time clock I can use within my program to initiate different things throughout the 24 hours?
For example turning lights on and off at different times of the day. I was wondering if there was a way to use the CPU Clock for this situation.
Thank You
Created Date: February 15,2017
Created by: OkiePC
Yes, there are system tags that contain the elements of the real time clock. You can use these with compare instructions:
They are named:
Clock Seconds
Clock Minutes
Clock Hours
Clock Day of Week
Clock Day
Clock Month