Need help with an apex code

WhatCouldGoWrong71

TheDryReef
View Badges
Joined
May 19, 2023
Messages
3,713
Reaction score
2,728
Location
Memphis
Rating - 100%
4   0   0
I’m feeling like I am doing something stupid. I am not sure why this is only dosing 200 mil every 30 minutes.

- DOS QD
- Set to refill my ATO reservoir
- In the picture, the 3 optical sensors from the bottom up are called ATOON, ATOOFF and E-ATO (Emergency Off, with alarm)

It will not go any faster than what you see. My kalk which is on the other side goes at 250 mil a minute. What could I be doing wrong? It’s only doing 400 mil an hour who is only 9600 mil a day, I don’t get it.

IMG_8056.png IMG_8057.png IMG_8058.png IMG_8059.jpeg
 
Do you have any additional code Accidently included in the advance section. That may be overriding the table.
 
Here is the advanced section (I think this is it). What’s bizarre is what happened next. I have an auxiliary method to fill my ATO reservoir, so I turned that on. Once the water went above the first optical sensor (ATOON) it started adding 586 mil every 11 minutes. Trust me when I tell you that I dropped the sensor in the ATO to see what would happen if the ATOON sensor was closed.

This is very similar code that I had previously. I just switched from an A2 to an A3 Pro, so I am having to redo everything. I can tell you that there are for sure some sublet changes. And one not so subtle. On my A2 I could name (for example) all my floor sensors the same name. This way I only had to type one out. I can’t do that on this unit.
 

Attachments

  • IMG_8070.png
    IMG_8070.png
    97.2 KB · Views: 23
  • IMG_8068.png
    IMG_8068.png
    122 KB · Views: 21
The trouble is

If ATOON Open then On

It turns the dos on.... Not following the table

Just like if you slid the slider over to on, instead of auto
When the Dos is ON.... it just pumps 25ML/min indefinitely.
 
Last edited:
So I think this is what I would try.

Forget the wizard.... and the tdata. Start over.

Make a profile.... for example DOS_250

set it for 250 mL per minute, forward.... with a bunch of doses

Then you could modify your DOS code to look like this:

Fallback OFF
If ATOON = ON Then DOS_250
If ATOOF Closed Then OFF
If E-ATO Closed Then OFF


I'm no expert.... but I think it would work.
 
So I think this is what I would try.

Forget the wizard.... and the tdata. Start over.

Make a profile.... for example DOS_250

set it for 250 mL per minute, forward.... with a bunch of doses

Then you could modify your DOS code to look like this:

Fallback OFF
If ATOON = ON Then DOS_250
If ATOOF Closed Then OFF
If E-ATO Closed Then OFF


I'm no expert.... but I think it would work.
Good point. That explains the split speed. I’ve never done a profile. This is new, cool. Already see other uses. I’m going to go play. Thanks. I’m going to play with this later this morning.
 
Good point. That explains the split speed. I’ve never done a profile. This is new, cool. Already see other uses. I’m going to go play. Thanks. I’m going to play with this later this morning.
Profile are great I recently started using them with a mxm to time my light to sunset schedules.
 
So I think this is what I would try.

Forget the wizard.... and the tdata. Start over.

Make a profile.... for example DOS_250

set it for 250 mL per minute, forward.... with a bunch of doses

Then you could modify your DOS code to look like this:

Fallback OFF
If ATOON = ON Then DOS_250
If ATOOF Closed Then OFF
If E-ATO Closed Then OFF


I'm no expert.... but I think it would work.
OK, I’m this old and just discovered profiles. Nothing to see here folks… keep movin’…
 
So I think this is what I would try.

Forget the wizard.... and the tdata. Start over.

Make a profile.... for example DOS_250

set it for 250 mL per minute, forward.... with a bunch of doses

Then you could modify your DOS code to look like this:

Fallback OFF
If ATOON = ON Then DOS_250
If ATOOF Closed Then OFF
If E-ATO Closed Then OFF


I'm no expert.... but I think it would work.
@petcellar should it be “If ATOON = ON Then DOS_250” or “If ATOON closed Then DOS_250” it’s a optical sensor. Or, is state irrelevant?
 
So, I can get rid of the schedule and switch it to strictly advanced mode with the code. The DOS_QD_250 will dictate what happens when the lowest optical switch is in the open state.

Ahhh me just saying that made me realize why you have it that way. If it’s written in “open” it will never fill to the first off optical sensor. By using “ON”, it’s on till it is off. Got it.
 
(Writing this out in case others are doing the same).

On won’t work, only open works. I guess that open activates the profile. The profile is set to do a predetermined amount of doses. I guess it doesn’t matter that the sensor will be closed shortly after it starts. I’ll find out in a day or two when my reservoir gets low. I turned my fans on to promote evap, it’s insane to me how much water I can forcibly evap from my system (also have a whole house dehumidifier in my fish room).
 
So I think this is what I would try.

Forget the wizard.... and the tdata. Start over.

Make a profile.... for example DOS_250

set it for 250 mL per minute, forward.... with a bunch of doses

Then you could modify your DOS code to look like this:

Fallback OFF
If ATOON = ON Then DOS_250
If ATOOF Closed Then OFF
If E-ATO Closed Then OFF


I'm no expert.... but I think it would work.
@petcellar should it be “If ATOON = ON Then DOS_250” or “If ATOON closed Then DOS_250” it’s a optical sensor. Or, is state irrelevant?
I am sorry - you are correct. It should be open, not on. My bad.
 

TOP 10 Trending Threads

Back
Top
Home
Post thread…
Market
What's new