Is this good apex code for a BRS 1.1ml/minute doser for alk?

OP
OP
glb

glb

7500 Club Member
View Badges
Joined
May 12, 2013
Messages
8,129
Reaction score
3,364
Location
Miami
Rating - 0%
0   0   0
The first number is the minutes and seconds from top top of the hour. So if your code said:
OSC 030:00/000:45/029:15 Then ON
the doser would start on the 30 min mark, rum for 45 sec and then off for 29:15 and then off for 30 more minutes to get to the bottom of the hour. Now if you only want to dose at night you could add a second line:
IF Time 08:00 to 20:00 then OFF
So you would only dose between 20:01 and 07:59.
Try the calculator it’s fantastic or fusion.community. Great people there too for all your programming needs
Thanks! I dose less than the calculator allows, but I found a workaround.
 
OP
OP
glb

glb

7500 Club Member
View Badges
Joined
May 12, 2013
Messages
8,129
Reaction score
3,364
Location
Miami
Rating - 0%
0   0   0
So this is the code the calculator put out. I adjusted the time on to match the amount I want to dose:
54032B42-835A-46F6-B62C-C884C78A9AAA.png

So 1900 came and went and it didn’t come on. Any guess as to why? It’s supposed to run twice in a 4 hour period. I got nothing on solving this at this point.
 
OP
OP
glb

glb

7500 Club Member
View Badges
Joined
May 12, 2013
Messages
8,129
Reaction score
3,364
Location
Miami
Rating - 0%
0   0   0
I left the room and when I came back I could tell the pump had run. I think maybe at 8pm? If I tell it to run twice between 7pm and 1am, will it run say at 8 and 11? Any help is appreciated!
 

davejep

Active Member
View Badges
Joined
May 18, 2013
Messages
233
Reaction score
168
Rating - 0%
0   0   0
Just curious why you are so set on dosing at a particular time?
Seems like you are trying to complicate things.
Have it dose twice a day and forget about it.
 
OP
OP
glb

glb

7500 Club Member
View Badges
Joined
May 12, 2013
Messages
8,129
Reaction score
3,364
Location
Miami
Rating - 0%
0   0   0
Just curious why you are so set on dosing at a particular time?
Seems like you are trying to complicate things.
Have it dose twice a day and forget about it.
That’s a good point. I guess I wanted to be able to watch it to make sure I programmed it right. :rolleyes:
 

Ferrell

Valuable Member
View Badges
Joined
Jul 25, 2017
Messages
2,403
Reaction score
2,401
Location
Kentucky
Rating - 0%
0   0   0
By your code it will run at 19:00 21:00 23:00 and 01:00
ON at top of hour/RUN 0:22/OFF 119:38
I’m no expert. RussM is the expert in Fusion community
 

davejep

Active Member
View Badges
Joined
May 18, 2013
Messages
233
Reaction score
168
Rating - 0%
0   0   0
Try the

Fallback OFF
OSC 000:00/000:30/719:30 Then ON
If pH > 8.35 Then OFF

Have it run into a cup and you will be able to see that it is working without being there. Should work at midnight and noon
 

Hammer100

Active Member
View Badges
Joined
Jun 27, 2016
Messages
304
Reaction score
240
Location
Durham NC
Rating - 0%
0   0   0
anybody have trouble triggering the dosers to start? i thought i read somewhere they might not turn on/off correctly using an Apex outlet. I am considering doing the same setup.
 

davejep

Active Member
View Badges
Joined
May 18, 2013
Messages
233
Reaction score
168
Rating - 0%
0   0   0
anybody have trouble triggering the dosers to start? i thought i read somewhere they might not turn on/off correctly using an Apex outlet. I am considering doing the same setup.

Use the two outlets on the far right #4 & #8

EB8 outlets 4 and 8 are activated with mechanical relays. These have a distinct "click" whenever they switch on/off. Mechanical relays (think light switch in your house) have been around for a long time, are inexpensive and very reliable. They handle both high and low current devices equally well.

EB8 outlets 1-3 and 5-7 are TRIAC (TRIode for Alternating Current) solid state outlets. They are completely silent. An example of a TRIAC switch can be found on your Christmas tree lights. They are very, very fast and can switch in fractions of a second and do that all day long without wearing out like a mechanical switch/relay would.
 

GK3

Valuable Member
View Badges
Joined
Jan 16, 2017
Messages
1,852
Reaction score
1,339
Location
Cincinnati
Rating - 100%
2   0   0
I finally hooked up my doser for alk. This is the Program I wrote for it:
8D2C9FF0-F1E6-49CC-A228-3029E07000C6.png

I want it to come on at 6pm, stay on for one minute, then go off. I also want it to turn off if the ph gets to 8.35. I saw some code online that started with OSC but I have no clue what it means or if I need it. The doser is plugged into one of the 4 outlets of the Apex, Jr., which is the right kind of outlet. Did I do this right? Any help is greatly appreciated!

Remember apex executes top down. So you should do:

Fallback off
Set off
Time 18:00 to 18:01 then on
Ph > 8.35 then off

This way it is alway off. Comes on at 6 PM but if at 6 PM the ph is too high, it won’t turn on. It stays on for 1 minute, then sets back to off.

OSC is basically on/off/on repeat. If you really just want it on for 1 minute a day, you don’t need osc. If you wanted it to come an and do a repeated cycle for a while, then turn off, use OSC. Check here:

https://forum.neptunesystems.com/showthread.php?6456-OSC-and-SET-Command-for-dummies-Like-me

For what your original post described, I think you just need the set command.
 

GK3

Valuable Member
View Badges
Joined
Jan 16, 2017
Messages
1,852
Reaction score
1,339
Location
Cincinnati
Rating - 100%
2   0   0
The

If time XX to XX then

Function only does hours and minutes, it cuts off seconds. So 18:00 to 18:01 is going to go from 18:00:000 to 18:01:590 which is basically two minutes. If you want just 1 minute, or 59 seconds. Then it’s just 18:00 to 18:00. I just did it in my system to check and 18:00 to 18:00 is definitely a valid time.
 

SteadyC

Active Member
View Badges
Joined
Jun 9, 2015
Messages
312
Reaction score
245
Rating - 0%
0   0   0
That’s a good point. I guess I wanted to be able to watch it to make sure I programmed it right. :rolleyes:
Enable logging on outlet, and look at the logs, shows when it turned on, and when it turned off. ;). No reason to watch it. ;)
 

GK3

Valuable Member
View Badges
Joined
Jan 16, 2017
Messages
1,852
Reaction score
1,339
Location
Cincinnati
Rating - 100%
2   0   0
The

If time XX to XX then

Function only does hours and minutes, it cuts off seconds. So 18:00 to 18:01 is going to go from 18:00:000 to 18:01:590 which is basically two minutes. If you want just 1 minute, or 59 seconds. Then it’s just 18:00 to 18:00. I just did it in my system to check and 18:00 to 18:00 is definitely a valid time.

While it is valid. It appears to have odd behavior, not sure why. Sorry, I spoke to soon on it working, even though the apex will take it.
 
OP
OP
glb

glb

7500 Club Member
View Badges
Joined
May 12, 2013
Messages
8,129
Reaction score
3,364
Location
Miami
Rating - 0%
0   0   0
While it is valid. It appears to have odd behavior, not sure why. Sorry, I spoke to soon on it working, even though the apex will take it.
I tried that one but it didn’t work for me either.
 

Ariton

Active Member
View Badges
Joined
Oct 26, 2015
Messages
190
Reaction score
65
Location
Chicago
Rating - 0%
0   0   0
I believe this may work

Fallback OFF
If Time 18:00 to 18:01 Then ON
If time 18:01 Then OFF
If PH > 8.35 Then OFF

AS SOON AS 18:01 hits should turn at off
 
OP
OP
glb

glb

7500 Club Member
View Badges
Joined
May 12, 2013
Messages
8,129
Reaction score
3,364
Location
Miami
Rating - 0%
0   0   0
I believe this may work

Fallback OFF
If Time 18:00 to 18:01 Then ON
If time 18:01 Then OFF
If PH > 8.35 Then OFF

AS SOON AS 18:01 hits should turn at off
That might work. I ended up using an OSC code because I needed to schedule it for seconds, and the time codes are only as accurate as minutes. But if you needed to run it for a minute, I think that could work.
Thanks!
 

Ferrell

Valuable Member
View Badges
Joined
Jul 25, 2017
Messages
2,403
Reaction score
2,401
Location
Kentucky
Rating - 0%
0   0   0
I believe, correct me if I’m wrong, but on the two min run time I think you can use a defer statement of 01:30 to get down to 30 sec. think I readin manual or in community
 

Making aqua concoctions: Have you ever tried the Reef Moonshiner Method?

  • I currently use the moonshiner method.

    Votes: 43 21.0%
  • I don’t currently use the moonshiner method, but I have in the past.

    Votes: 3 1.5%
  • I have not used the moonshiner method.

    Votes: 149 72.7%
  • Other.

    Votes: 10 4.9%
Back
Top