Brush
Part of the Analog and Sequences section of Coddy's PLC Programming journey. Lesson 14 of 17.
The brush scrubs the dirt loose. Order matters: a brush on a dry car scratches the paint, so it must never run before the soap.
A step sequence makes the order safe by itself. The brush has its own step, and the only way into step 2 is through the end of step 1.
Each timer box needs its own instance, so step 2 uses T2.
Challenge
Medium- in step 2, turn
Brushon - after 2 seconds in step 2, move 3 into
Step
Try it yourself
{"v":1,"lang":"ld","tags":[{"name":"Step","type":"INT"},{"name":"T1","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":1},{"t":"coil","tag":"Soap"}]}]}All lessons in Analog and Sequences
Practice on your own: PLC playground