Menu
CoddyTech

Fill to High

Part of the Analog and Sequences section of Coddy's PLC Programming journey. Lesson 1 of 17.

This is a mixing tank. Fill opens the inlet valve, Drain the outlet valve, Mixer turns the paddle and Heater warms the liquid. With Fill on, the level rises 5 % a second.

Two level switches hang inside the tank. Each is a float that closes a contact when the liquid reaches it. Low is TRUE at 20 % and above, High at 80 % and above. A switch only says yes or no: the liquid is up to it, or it is not.

To stop a fill at High, put a normally closed contact on High in the fill rung. It passes power while the liquid is below the switch, and breaks the seal-in the moment the liquid reaches it.

challenge icon

Challenge

Easy

This program fills the tank from Start but never stops, so the tank spills. Add a normally closed contact on High to the fill rung, so Fill turns off at 80 %.

Press Run, press Start, watch the level, then Check.

Try it yourself

{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[{"t":"par","branches":[[{"t":"no","tag":"Start"}],[{"t":"no","tag":"Fill"}]]},{"t":"no","tag":"Stop"},{"t":"coil","tag":"Fill"}]}]}

All lessons in Analog and Sequences

Practice on your own: PLC playground