I thought I had it. Why didn't this APEX code work?

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

RussC

Active Member
View Badges
Joined
Dec 3, 2017
Messages
231
Reaction score
87
Location
South MS
What state or country do you live in
Mississippi
Rating - 0%
0   0   0
Forgot to put the SET OFF command when I originally wrote this code so I ended up overdosing the aquarium for ALK. Finally got the DKH back to where I want it. Today I turned on the doser with the "correct command" added to the code. When it came tine to come on it worked fine. But after three minutes, it still had not turned off. Now, put this in context. I have it dosing 2.2 ml every other hour. That is a 2 minute window using BRS 1.1 ml/minute dosers. It came on at 4:00 pm and was set to go off at 4:02 pm. At 4:03 it had failed to turn off. So I manually turned it off. What's going on?

I've reset everything by first turning on the outlet, hearing it come on, then moving to auto. Next dose is at 6:00 pm. It is supposed to turn off at 6:02. And I"m using the recommended outlet 4 on the energy bar 832.

Here is the code. What's going on?

Fallback OFF
Set OFF
If Time 00:00 to 00:02 Then ON
If Time 02:00 to 02:02 Then ON
If Time 04:00 to 04:02 Then ON
If Time 06:00 to 06:02 Then ON
If Time 08:00 to 08:02 Then ON
If Time 10:00 to 10:02 Then ON
If Time 12:00 to 12:02 Then ON
If Time 14:00 to 14:02 Then ON
If Time 16:00 to 16:02 Then ON
If Time 18:00 to 18:02 Then ON
If Time 20:00 to 20:02 Then ON
If pH > 8.00 Then OFF
 
Forgot to put the SET OFF command when I originally wrote this code so I ended up overdosing the aquarium for ALK. Finally got the DKH back to where I want it. Today I turned on the doser with the "correct command" added to the code. When it came tine to come on it worked fine. But after three minutes, it still had not turned off. Now, put this in context. I have it dosing 2.2 ml every other hour. That is a 2 minute window using BRS 1.1 ml/minute dosers. It came on at 4:00 pm and was set to go off at 4:02 pm. At 4:03 it had failed to turn off. So I manually turned it off. What's going on?

I've reset everything by first turning on the outlet, hearing it come on, then moving to auto. Next dose is at 6:00 pm. It is supposed to turn off at 6:02. And I"m using the recommended outlet 4 on the energy bar 832.

Here is the code. What's going on?

Fallback OFF
Set OFF
If Time 00:00 to 00:02 Then ON
If Time 02:00 to 02:02 Then ON
If Time 04:00 to 04:02 Then ON
If Time 06:00 to 06:02 Then ON
If Time 08:00 to 08:02 Then ON
If Time 10:00 to 10:02 Then ON
If Time 12:00 to 12:02 Then ON
If Time 14:00 to 14:02 Then ON
If Time 16:00 to 16:02 Then ON
If Time 18:00 to 18:02 Then ON
If Time 20:00 to 20:02 Then ON
If pH > 8.00 Then OFF
First why turn it off if the ph is greater then 8? Secondly I’m sure if you don’t need any else statement after each if
 
I programed the ph as a safe guard. Remember, I had a crisis earlier. It turned on and ran for three hours before I noticed it. My PH stays around 7.5-7.9. I could move it up slightly. But its there as a safety net. I want to know why it wouldn't turn off. Any thoughts?
 
I think you need an else off statement with each of but not sure. Apex language is not normal
 
F It came on at 4:00 pm and was set to go off at 4:02 pm. At 4:03 it had failed to turn off. So I manually turned it off. What's going on?

I

00:00 to 00:02 will run until 00:02:59 - 3 minutes total. Try programming it 00:00 to 00:01 and see if it runs for 2 min.

You could hold a cup under the alk solution to keep from overdosing your tank during testing.
 

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