Momentary outlet

Users Who Are Viewing This Thread (Total: 1, Members: 0, Guests: 1)

Bob Lauson

Active Member
View Badges
Joined
Oct 31, 2017
Messages
432
Reaction score
757
Location
Ada, MI
Rating - 0%
0   0   0
I would like to command an outlet to turn on momentarily when I hit one of the feed cycles. I don’t want the outlet to stay on for the entire duration of the feed cycle but just the first 15 seconds or so. I am usually decent at programming my APEX but just can’t seem to figure out what is probably obvious. Thoughts?
 

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,212
Location
Oregon
Rating - 0%
0   0   0
(corrected below)
 
Last edited:

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,212
Location
Oregon
Rating - 0%
0   0   0
(corrected below)
 
Last edited:

SuncrestReef

That Apex guy
View Badges
Joined
Jan 18, 2018
Messages
4,214
Reaction score
9,212
Location
Oregon
Rating - 0%
0   0   0
OK, this should do it. You'll need a virtual output to act as the 15 second timer:

Output1
Set OFF
If FeedA 000 Then ON
If Output Delay15 = ON Then OFF

Delay15 (virtual output)
Set OFF
If FeedA 000 Then ON
Defer 000:15 Then ON

When you press Feed A, Output1 will turn on immediately. Delay15 will want to turn on, but the Defer timer forces it to wait 15 seconds. Once it finally turns on, then Output1 will turn Off.

See my tutorial on Virtual Outputs if you're not familiar with them: https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-5-virtual-outputs.703/
 
Back
Top