PL question

Fishie Nut

Premium Member
I put this in another thread re Programmable Logic, but no response; therefor, I'm repeating it here. Please help.

How would I use the programmable logic to do the following:

If Con1 is less than 1.025, then I want Doser 3 to turn on to top off the tank and add more saltwater; therefore, I want Level 1 off. This will increase my kg/l to 1.025.
If Con1 is 1.025 or above, then Level 1 is used to top off tank.

so...

IF con1 is > 1.025 AND Level 1- THEN Doser 3 ON AND Water 1 OFF
IF Con1 is < 1.025 Level 1- THEN Water 1 ON

Right now I set the following:
G1 to AND Cond 1 Increase/Doser 3 -- set PL to Doser 3
G2 to AND Cond 1 Decrease/Water1 -- set PL to Water 1

but it doesn't take into consideration that if Cond 1 >1.025 then Doser 3 is off and Water 1 takes over -- does it?

Logic was ont my strong suit, LOL. :)
 
Reason for no response is that matthias (the logic man) is away for a few days. And I as yet have not got my hands on to advise myself

Answer by Monday i am sure
 
Something like that:

The programmable logic:
logic 1 = Cond1 Increase AND Water 1
logic 2 = Cond2 Decrease AND Water 1

The socket functions:
Socket x = logic 1
Socket y = logic 2
(depends on where your doser or solenoid is)
 
Matthias, just for clarification.
What you have written does the following:
Cond1 Increase to use Doser3 for level control (you have Water1)
Cond1 Decrease to use Water1 for level control

That's what I wish to accomplish. I can control the kg/l by using saltwater in Doser3 to do top off and increase the salinity that way; or use RO/DI via Water1 if the salinity is on par.

Confused Fishie...
 
Water 1 is in this case an INPUT for the logic gate, not the direct function of the socket.

If the level sensor 1 is too low the socket Water 1 would be activated. But now you want to combine this and the actual conductivity value.
That's why you must define a logic with = Water 1 AND Cond. 1 (up or down)

Then you use the function "logic 1" and no more "Water 1" for your powerbar.


If you would try my suggestion you would see it works...
 
The above works well.

I have another question.
When my Doser2 is on, I want Doser1 to be off. (Doser1 is my saltwater out function)

So I"ve done the following:

G3= Doser1 or Doser2
G4= Doser2 PL3 (inverted)
Insert G4 at the Doser1 socket

I tried to figure this out from another PL thread.

I am I close?
 
Back
Top