Car In
Part of the Analog and Sequences section of Coddy's PLC Programming journey. Lesson 12 of 17.
The last project is a car wash. A car drives into the bay, the wash runs soap, brush, rinse and dryer in turn, then a lamp lets the car out. It is a sequence, so it gets a step number:
- 0: idle
- 1: soap
- 2: brush
- 3: rinse
- 4: dryer
- 5: exit
CarIn is a sensor that is TRUE while a car stands in the bay. Start must do nothing without it: soap and water sprayed into an empty bay are wasted. Press Car on the machine to drive a car in.
Challenge
Medium- create an INT tag
Step - in step 0,
Startmoves 1 into Step, only whileCarInis TRUE - in step 1, turn
Soapon
Try it yourself
{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[]}]}All lessons in Analog and Sequences
Practice on your own: PLC playground