SatanJnr73 Posted August 16, 2014 Report Posted August 16, 2014 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. Quote
Sleepy Wombat Posted September 8, 2014 Report Posted September 8, 2014 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 Quote
Crossbow Posted September 8, 2014 Report Posted September 8, 2014 Compare against the hour value of the real time clock, and when it equals zero, one shot a reset to your counter. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.