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.
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
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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now