Apex programming question

  • Thread starter Thread starter Miller535
  • Start date Start date
  • Tagged users Tagged users None

Miller535

Valuable Member
View Badges
Joined
Dec 11, 2019
Messages
2,207
Reaction score
1,891
Location
Pittsburgh, Pennsylvania
Rating - 0%
0   0   0
I built my own apex io with toggles and momentary push buttons. I would like to use one of the momentary push buttons to turn on Feedmode A. My push botton is named VFeed. Would the following command work.

If VFeed closed then Feedmode A on


I just want the push button to initiate the Feedmode A, that way when feedmode is over, everything goes back on.

Thanks.
 
Thanks @SuncrestReef. So going by your article if I did something like:

If VFeed closed then off
Defer 010:00 then on

Would that work?
Beware, I had to use the real, original io name, sw2, in my case or it didn't work.
And it can take up to a 5 second press hold to be read/recognized.
 
Thanks @SuncrestReef. So going by your article if I did something like:

If VFeed closed then off
Defer 010:00 then on

Would that work?
If VFeed is the name of your button, then yes, your code will work.

You may run into a bit of confusion if discussing this topic with others because "VFeed" is typically the name of a virtual output most people use as shown in my tutorial, rather than a breakout box button. But it will still work.
 
If VFeed is the name of your button, then yes, your code will work.

You may run into a bit of confusion if discussing this topic with others because "VFeed" is typically the name of a virtual output most people use as shown in my tutorial, rather than a breakout box button. But it will still work.

It did work, thanks. I still have to program the other 5 switches. 1 of them is an emergency stop button that will turn EVERYTHING off in case something really bad it happening. And 4 toggle switches to turn things off for maintenance. Now on the toggle switch commands, I have one named "Re_Swi", this is for the return pump. I want it to turn off and stay off as long as that switch is closed.

So I would obviously use a command like:

If Re_swi is closed then off

Do I also need to write, "If Re_swi is open then on"?

Thanks
 

TOP 10 Trending Threads

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 38 53.5%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 33 46.5%
Back
Top
Home
Post thread…
Market
What's new