AnotherOne
Active Member
Okay, I'm trying to come up with a concise set of rules to send alternating text strings every 3 seconds for 10 minutes. Right now I have 5 rules, 4 which are "every 1 second" tests.
I started this whole mess off by setting an output on for 10 minutes and setting a counter to 1, triggered by f5 on a keypad.
Then I have a "every one second" rule that if the counter is not 0, increment the counter.
Then another "one second" rule that tests to see if the counter is 4 and if so, send text-1.
Then another "one second" rule to see if the counter is greater than 6 and if so, send text-2 and set the counter to 1.
And finally, when the output that was on for 10 minutes goes off, set the counter to 0 and send the terminate text string.
Could this be written better and more efficiently, not sure what the effect of "every one second" rules has on the M1 processor.
I started this whole mess off by setting an output on for 10 minutes and setting a counter to 1, triggered by f5 on a keypad.
Then I have a "every one second" rule that if the counter is not 0, increment the counter.
Then another "one second" rule that tests to see if the counter is 4 and if so, send text-1.
Then another "one second" rule to see if the counter is greater than 6 and if so, send text-2 and set the counter to 1.
And finally, when the output that was on for 10 minutes goes off, set the counter to 0 and send the terminate text string.
Could this be written better and more efficiently, not sure what the effect of "every one second" rules has on the M1 processor.