Jump to content

Program apex to run for certain time then off.


Recommended Posts

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)

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...