Page 1 of 2

Float Switch Controlling Output

Posted: Wed Aug 28, 2019 7:37 am
by AndrewsBrewing
We are trying to kill elements if the fluid level gets below the float switch for any reason. We are having difficulty getting this to work.

Ladder Logic:

The above works fine if we do this.
IF DIN1 (Float Switch) AND PROC2 (process where we are using heating elements) THEN OUT5 (heating element)

It does not work correctly when we do this.
IF DIN1 (Float Switch) AND REG2 (asserted on a state where we are using heating elements) THEN OUT5 (heating element)

The OUT5 is no longer controlled by the DIN1 while in that state which asserts REG2.

I hope I was clear in explaining this.

Re: Float Switch Controlling Output

Posted: Tue Sep 03, 2019 7:40 am
by AndrewsBrewing
...anybody?

Re: Float Switch Controlling Output

Posted: Wed Sep 04, 2019 11:21 am
by oakbarn
Did you try reversing the REG to NC? I know I had some issues with the way Ladder Logic and the way REGs work a long time ago. I no longer use that so I am going from memory. It seems counter intuitive at the time.

Re: Float Switch Controlling Output

Posted: Wed Sep 04, 2019 6:25 pm
by JonW
Can you post a screenshot of your ladder logic?

Re: Float Switch Controlling Output

Posted: Thu Sep 05, 2019 4:30 am
by AndrewsBrewing
Annotation 2019-09-05 072720.png
Annotation 2019-09-05 072720.png (7.87 KiB) Viewed 37297 times
DIN1 (Float Switch)
REG2 (asserted on a state where we are using heating elements)
OUT5 (heating element)

I'll try Oakbarn's suggestion this morning.

Re: Float Switch Controlling Output

Posted: Thu Sep 05, 2019 5:13 am
by AndrewsBrewing
Oakbarn I tried changing the gender on the REG this morning and that is not the solution. Thank you though

Re: Float Switch Controlling Output

Posted: Thu Sep 05, 2019 9:02 pm
by JonW
I was looking to see all of your ladder logic. Precedence and grouping can affect your results.

Re: Float Switch Controlling Output

Posted: Fri Sep 06, 2019 3:22 am
by AndrewsBrewing
Here you go. The first two were me playing with another float sensor
Annotation 2019-09-06 062110.png
Annotation 2019-09-06 062110.png (24.1 KiB) Viewed 37278 times

Re: Float Switch Controlling Output

Posted: Fri Sep 13, 2019 1:10 pm
by AndrewsBrewing
For what it's worth, this doesn't work for me either. (Removing all the other rungs.)
Annotation 2019-09-13 160023.png
Annotation 2019-09-13 160023.png (11.91 KiB) Viewed 37252 times

Neither does this
Annotation 2019-09-13 160055.png
Annotation 2019-09-13 160055.png (10.94 KiB) Viewed 37252 times

Re: Float Switch Controlling Output

Posted: Fri Sep 13, 2019 1:11 pm
by AndrewsBrewing
Here are screen shots for reference
Annotation 2019-09-13 160224.png
Annotation 2019-09-13 160224.png (15.33 KiB) Viewed 37252 times
Annotation 2019-09-13 160159.png
Annotation 2019-09-13 160159.png (24.65 KiB) Viewed 37252 times
Annotation 2019-09-13 160124.png
Annotation 2019-09-13 160124.png (41.92 KiB) Viewed 37252 times