Programming sample loop for input

Describe your system and processes, and post your config file.
Post Reply
gbrewer
Posts: 264
Joined: Wed Feb 11, 2009 8:20 pm
Bot?: No
Contact:

Programming sample loop for input

Post by gbrewer »

How do I program a loop in the system which will allow me to test out some water measurements using my float switch. I am using my float switch as DIN 0.

I need to create a loop which will turn on pump 1 when DIN 0 = off. When DIN 0 = on, I need pump to turn off. I want this to be a test loop so I don't need to access the laptop to start anything over. Just run until I stop the process.

If I add more water to the system, I need pump to turn on automatically without manually doing anything to the system.
User avatar
ECC
Posts: 676
Joined: Fri Sep 12, 2008 12:29 pm
Bot?: No
Contact:

Re: Programming sample loop for input

Post by ECC »

http://www.embeddedcontrolconcepts.com/ ... e_System_3

You could do something similar to the Fly Sparge example, sounds like you only need 2 of those states. Re-reading the example, it looks like the float switch on/off is backwards though (it would be correct for a NC switch)
Post Reply