pdxmonkeyboy Posted May 15, 2021 Share Posted May 15, 2021 Float switch on roller mat. Want it to turn motor on, run for 3 seconds, then turn off. i want it to stay off until the float switch opens and then eventually closes again. Quote Link to comment Share on other sites More sharing options...
SuncrestReef Posted May 15, 2021 Share Posted May 15, 2021 I’m not 100% sure of this code (I had my 2nd vaccine shot today and it’s kicking my butt, so my mind is a little cloudy). But I think this will require a couple of virtual outputs to act as timers: [Roller] Set OFF If Float CLOSED Then ON If Output Roller_Timer = ON Then OFF [Roller_Timer] — virtual output If Output Roller = ON Then ON If Output Float_Reset = OFF Then OFF Defer 000:03 Then ON [Float_Reset] — virtual output Set ON If Float OPEN Then OFF (Replace “Float” with the actual name of your float switch) Quote Link to comment Share on other sites More sharing options...
SuncrestReef Posted May 15, 2021 Share Posted May 15, 2021 After 12 hours of sleep and putting more thought into this, I think it can be simplified: [Roller] Set OFF If Float CLOSED Then ON If Output Roller_Timer = ON Then OFF [Roller_Timer] — virtual output If Output Roller = ON Then ON If Float OPEN Then OFF Defer 000:03 Then ON (Replace “Float” with the actual name of your float switch) Quote Link to comment Share on other sites More sharing options...
pdxmonkeyboy Posted May 15, 2021 Author Share Posted May 15, 2021 Much thanks. The reset or "arming" of the float switch was really the crux. Did you get the moderna shot? I get my second on monday, i know of several people that said it was a but kicker. Thanks again! Quote Link to comment Share on other sites More sharing options...
SuncrestReef Posted May 15, 2021 Share Posted May 15, 2021 13 minutes ago, pdxmonkeyboy said: Much thanks. The reset or "arming" of the float switch was really the crux. Did you get the moderna shot? I get my second on monday, i know of several people that said it was a but kicker. Thanks again! I got Pfizer. It's been about 18 hours since my shot and I feel fine now. But last night was rough. Quote Link to comment Share on other sites More sharing options...
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.