Sign in to follow this  
Followers 0
SatanJnr73

Time of day reset

3 posts in this topic

Hi Just starting out in the programming world and need some advice. Looking to reset a counter in an Omron CQM1H PLC at midnight everyday. had a quick look at thought maybe the right function was the =DT(341)??? Wondered if anyone can just simplify its operation for a novice or if theres a better way to do this. Any advice is greatly appreciated.

Share this post


Link to post
Share on other sites
what plc? with cqm1h - pretty sure has real time clock, the clock data is stored in memory areas ( can't remember area off hand, either AR or SR.. in the manual under memory areas. the structure would have for example ARx = DDHH (Day of month Hour of day) then ARx+1= MMSS (Seconds Min) Extract the HH and Min Parts compare the hr and Min to 0000 ... reset counter

Share this post


Link to post
Share on other sites
Compare against the hour value of the real time clock, and when it equals zero, one shot a reset to your counter.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0