Apex programming question

Miller535

Valuable Member
View Badges
Joined
Dec 11, 2019
Messages
2,203
Reaction score
1,939
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.
 
The Feed cycles cannot be triggered through programming. They can only be activated by clicking the Feed A/B/C/D button on the dashboard.

However, you can simulate a Feed cycle through programming as I explain in my Apex Feed Cycles tutorial:
 
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
 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top