WTFSUNELECSUP
Member
Hi,
I'm required to turn on a Pump once a week, Friday morning at 9am for 10 minutes, and then allow a week to past and repeat again the next friday morning at 9am.
Current, I have a N7, tied to the S:40 status bit, everytime the S:40 goes past 0 (midnight) it counts that as one day. On the 5 day (friday) it activates the output and on the 7th day it resets.
Can I do this using the status (S2) bits ad a SQO or BCD (TOD)Instruction, if so how, would I set it up? I'd like to keep track of the days, instead of the hours, setting it off at 9am using the status bits is easy, but I'm hung up on tracking the days.
I'm required to turn on a Pump once a week, Friday morning at 9am for 10 minutes, and then allow a week to past and repeat again the next friday morning at 9am.
Current, I have a N7, tied to the S:40 status bit, everytime the S:40 goes past 0 (midnight) it counts that as one day. On the 5 day (friday) it activates the output and on the 7th day it resets.
Can I do this using the status (S2) bits ad a SQO or BCD (TOD)Instruction, if so how, would I set it up? I'd like to keep track of the days, instead of the hours, setting it off at 9am using the status bits is easy, but I'm hung up on tracking the days.