DOS vFeed code to run multiple profiles in series

Evaninme

New Member
View Badges
Joined
Jun 28, 2019
Messages
13
Reaction score
5
Rating - 100%
1   0   0
Any ideas on simplifying the code?

Objective is to have vfeed virtual outlet that easily allows me to schedule/modify DOS feedings of refridgerated liquid food mixture. This specific food mixture will settle, so I want to mix
it by spinning the DOS in reverse at high speed to introduce air bubbles to mix things up before pulling food mixture into display. Having multiple DOS profiles (dos_bubbles and Mysis_in) to run in series was a little difficult for me to get working, and I think I made it more complicated than it needs to be and is a little clunky, but it works.


Timing of using DOS to feed Mysis from Mini Fridge
1. Mysis_vfeed turns on at 19:00 and stays on for 2 minutes
2. Return pump and skimmers turn off when Mysis_vfeed is on and stay off long enough with their own defer statements to let feeding finish
3. Mysis_Start and Mysis_Stop both start when Mysis_vfeed turns on, but defer different times leaving a 2 minute difference.
4. Mysis_Run is ON in the 2 minute differential betweend Mysis_Start and Mysis_Stop
5. Mysis_Add
a. defaults to Mysis_Out profile which runs DOS in reverse at high speed to clear the line of food
b. When Mysis_vfeed is on, but before Mysis_Run is on, the DOS profile dos_bubbles runs in reverse at high speed which will put bubles into food resevoir to stir up food
c. When Mysis_Run is on the DOS profile Mysis_In runs to pull food from resevoir
d. After the Mysis_In profile has finished, the output reset to the begining which is set to run the Mysis_Out profile to clear the line


[Mysis_vfeed]
Set OFF
If Time 19:00 to 19:01 Then ON
Defer 001:00 Then OFF

[Mysis_Start]
Set OFF
If Output Mysis_vFeed = ON Then ON
Defer 001:00 Then OFF

[Mysis_Stop]
Set OFF
If Output Mysis_vFeed = ON Then ON
Defer 003:00 Then OFF

[Mysis_Run]
Set OFF
If Output Mysis_Stop = ON Then ON
If Output Mysis_Start = ON Then OFF

[Mysis_Add]
Fallback OFF
Set Mysis_Out
If Output Mysis_vFeed = ON Then dos_bubles
If Output Mysis_Run = ON Then Mysis_In

TIA
Larry
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • 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%
Back
Top