Garage Door Opener for ProLogix
Here is the garage door opener example in ProLogix. This is a fairly simple program. I'm not going to explain too much here since the code comments explain everything. In the real world this should have a 5th input for detecting if something is in the way of the door.
*Note: Some of you may be wondering how to know when the door is ajar when their is no door ajar switch. Just think about it for a bit. A door ajar is really when door open switch is still closed but closed door switch is still open. :)
Inputs:
*Note: Some of you may be wondering how to know when the door is ajar when their is no door ajar switch. Just think about it for a bit. A door ajar is really when door open switch is still closed but closed door switch is still open. :)
Inputs:
- Open Button
- Close Button
- Door Open Switch
- Door Closed Switch
Outputs:
- Motor Up
- Motor Down
- Door Opening Light
- Door Closing Light
- Door Ajar Light
This is a good practice in PLC programming to assign I/O to internal program variables
The logic for the controls in a Controller
Finally in Main call the subroutines
Comments
Post a Comment