The Remote Button
Part of the Latches, Edges and Interlocks section of Coddy's PLC Programming journey. Lesson 20 of 20.
The Remote in the car has one button. One press:
- door closed: it opens
- door open: it closes
- door moving: it stops
- door stopped part way: nothing, so use Open or Close
Like the toggle, it needs a rising edge in a memory bit. Then each rung reads that bit with a limit switch:
A pulse with the door closed starts MotorUp; a pulse with the door open starts MotorDown. A pulse while the door moves breaks its seal-in, so the door stops.
Challenge
HardGive Remote its three jobs: from closed it opens the door, from open it closes it, and while the door moves a press stops it. Keep the beam, the limits and Stop as they are.
Try it yourself
{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[{"t":"par","branches":[[{"t":"no","tag":"Open"}],[{"t":"no","tag":"MotorUp"}],[{"t":"nc","tag":"Beam"}]]},{"t":"no","tag":"Stop"},{"t":"nc","tag":"UpLimit"},{"t":"nc","tag":"MotorDown"},{"t":"coil","tag":"MotorUp"}]},{"els":[{"t":"par","branches":[[{"t":"no","tag":"Close"}],[{"t":"no","tag":"MotorDown"}]]},{"t":"no","tag":"Stop"},{"t":"no","tag":"Beam"},{"t":"nc","tag":"DownLimit"},{"t":"nc","tag":"MotorUp"},{"t":"coil","tag":"MotorDown"}]}]}This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Latches, Edges and Interlocks
4Project: Garage Door
The Door OpensThe Door ClosesThe Door InterlockStop the DoorThe Safety BeamThe Remote ButtonPractice on your own: PLC playground