Menu
CoddyTech

Soap

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

Each wash step is timed. Soap needs a moment to soak in: give it 2 seconds, then move on to the brush.

Soap turns off by itself when the step changes, because its rung only passes power in step 1.

The machine records how long each step ran on each car. A car counts as washed only if every step ran at least 1 second, in order.

challenge icon

Challenge

Medium

In step 1, time 2 seconds with a TON, then move 2 into Step.

Try it yourself

{"v":1,"lang":"ld","tags":[{"name":"Step","type":"INT"}],"rungs":[{"els":[{"t":"cmp","op":"EQ","a":"Step","b":0},{"t":"no","tag":"Start"},{"t":"no","tag":"CarIn"},{"t":"move","src":1,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":1},{"t":"coil","tag":"Soap"}]}]}

All lessons in Analog and Sequences

Practice on your own: PLC playground