Menu
CoddyTech

The Full Wash

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

Two things finish the car wash. The BusyLamp on the entry sign tells the next driver to wait. It lights from Start until the car has left: in every step except 0.

And like every sequence, it needs a safe stop: while Stop is pressed, move 0 into Step, on a rung between the transitions and the outputs. Every output follows a step, so they all turn off at once. The emergency stop itself stays wired outside the PLC.

challenge icon

Challenge

Hard
  • light BusyLamp while Step is not 0
  • add a safe stop: while Stop is pressed, move 0 into Step

Then wash two cars, and stop one halfway.

Try it yourself

{"v":1,"lang":"ld","tags":[{"name":"Step","type":"INT"},{"name":"T1","type":"TON"},{"name":"T2","type":"TON"},{"name":"T3","type":"TON"},{"name":"T4","type":"TON"}],"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":"TON","inst":"T1","pt":"T#2s"},{"t":"move","src":2,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":2},{"t":"TON","inst":"T2","pt":"T#2s"},{"t":"move","src":3,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":3},{"t":"TON","inst":"T3","pt":"T#2s"},{"t":"move","src":4,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":4},{"t":"TON","inst":"T4","pt":"T#2s"},{"t":"move","src":5,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":5},{"t":"nc","tag":"CarIn"},{"t":"move","src":0,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":1},{"t":"coil","tag":"Soap"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":2},{"t":"coil","tag":"Brush"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":3},{"t":"coil","tag":"Rinse"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":4},{"t":"coil","tag":"Dryer"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":5},{"t":"coil","tag":"ExitLamp"}]}]}
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Analog and Sequences

Practice on your own: PLC playground