How to Design and Run Simple Ladder Diagram of Industrial Garage Door Opener Using RSLogix 5000
Plan the layout of the design you're building. Use the PLC configuration and field device wiring illustrated. Create a new project named "Industrial Garage Door Opener". Find "Rockwell Software" on your computer. Click on "RSLogix 5000 Enterprise Series" to open a new controller file. Double-click on File to open a new file for the controller. The "File" button is located in the upper left-hand corner of the software. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/0\/07\/Tenneng-1.png\/460px-Tenneng-1.png","bigUrl":"https:\/\/www.wikihow.com\/images\/0\/07\/Tenneng-1.png","smallWidth":460,"smallHeight":134,"bigWidth":760,"bigHeight":221.56739811912226,"licensing":"
Image by: Uploader
\nLicense: Creative Commons<\/a>\n<\/p><\/div>"} Click and select the CPU type "1756-L62 ControlLogix 5562" from the list. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/5\/52\/Tenneng-003.png\/460px-Tenneng-003.png","bigUrl":"https:\/\/www.wikihow.com\/images\/5\/52\/Tenneng-003.png","smallWidth":460,"smallHeight":339,"bigWidth":760,"bigHeight":560.5,"licensing":"
Image by: Uploader
\nLicense: Creative
Commons<\/a>\n<\/p><\/div>"} Enter the project name "Industrial Garage Door Opener". Click and select the chassis type "1756-A7 7slot Controllogix 5562" from the list. Select the desired location for your file through Create In. Press OK to complete the project set-up.
Create the real-world input/output address configuration. Click on Data Types and then add a module to the "I/O configuration". Right click on "New Module" and then click on digital to highlights the modules. Add the Input Module. Click and select "1756-IB16I" from the list. Click OK to open "Input Module Window". {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/0\/0b\/Tenneng-04.png\/460px-Tenneng-04.png","bigUrl":"https:\/\/www.wikihow.com\/images\/0\/0b\/Tenneng-04.png","smallWidth":460,"smallHeight":283,"bigWidth":760,"bigHeight":467.6923076923077,"licensing":"
Image by: Uploader
\nLicense: Creative Commons<\/a>\n<\/p><\/div>"} Enter the name "Input_DC".
{"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/e\/e3\/Tenneng-005.png\/460px-Tenneng-005.png","bigUrl":"https:\/\/www.wikihow.com\/images\/e\/e3\/Tenneng-005.png","smallWidth":460,"smallHeight":306,"bigWidth":760,"bigHeight":505.27472527472526,"licensing":"
Image by: Uploader
\nLicense: Creative Commons<\/a>\n<\/p><\/div>"} Click and select Slot "3" from the list. Click and select "Compatible Keying". Click OK to complete. Add the Output Module. Click and select "1756-OB16I" from the list. Click OK to open "Output Module Window". {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/7\/75\/Tenneng-006.png\/460px-Tenneng-006.png","bigUrl":"https:\/\/www.wikihow.com\/images\/7\/75\/Tenneng-006.png","smallWidth":460,"smallHeight":278,"bigWidth":760,"bigHeight":459.61367013372956,"licensing":"
Image by: Uploader
\nLicense: Creative Commons<\/a>\n<\/p><\/div>"} Enter the name "Output_DC".
{"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/f\/f3\/Tenneng-07.png\/460px-Tenneng-07.png","bigUrl":"https:\/\/www.wikihow.com\/images\/f\/f3\/Tenneng-07.png","smallWidth":460,"smallHeight":266,"bigWidth":760,"bigHeight":439.3063583815029,"licensing":"
Image by: Uploader
\nLicense: Creative Commons<\/a>\n<\/p><\/div>"} Click and select Slot "5" from the list. Click and select "Compatible Keying". Click OK to complete.
Create a tag. There are multiple ways to create tags. Open either the "Controller" tags or "Main Program" tags window. Tags can be built one at a time as you program, or tags can be created in the Tag Editor. The Tag Editor enables you to create and edit tags using a spreadsheet-like view of the tags. Click on Main Program. Double-click on "Program Tag" and then click on "Edit Tags". Select the first cell and enter the "Tag Name". Select the second cell and enter the "Alias For".
Create a timer. Timers can be connected to each tag name. Setting timing parameters and address time data is necessary. Click and select on "Program Tag" and then click "Edit Tag". Select the first cell and enter "Timers".
See the "Ladder Diagram
Basic Instructions" icon located in the programming toolbar.
Create a ladder diagram for Rung 0. Create a rung that opens and closes the outside door and activates the top limit switch. . Double-click on MainRoutine and then a new window will pop up. The instructions icon is located on top of the new window. Click and drag the Rung instruction icon to the new window. Click and drag the XIC instruction icon into the rung. Highlight the instruction and type Open_Outside_Garage_Door and press ? Enter. Click and drag the XIO instruction icon into the rung. Highlight the instruction and type Stop_Outside_Door and press ? Enter. Click and drag the XIO instruction icon into the rung. Highlight the instruction and type Top_Limit_Switch and press ? Enter. Click and drag the OTE instruction icon into the rung. Highlight the instruction and type Motor_Up and press ? Enter. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/28\/Tenneng-3.png\/459px-Tenneng-3.png","bigUrl":"https:\/\/www.wikihow.com\/images\/2\/28\/Tenneng-3.png","smallWidth":460,"smallHeight":122,"bigWidth":760,"bigHeight":202.17948717948718,"licensing":"
Image by:
Uploader
\nLicense: Creative Commons<\/a>\n<\/p><\/div>"} .
Create a ladder diagram for Rung 1. Create a rung that closes and stops the door and activates the bottom limit switch. The photosensor is used to detect if an object blocks the door while it's closing; if so, it stops closing the door. Click and drag the XIC instruction icon into the rung. Highlight the instruction and type Close_Inside_Garage_Door and press ? Enter. Click and drag the XIO instruction icon into the rung. Highlight the instruction and type Stop_Inside_Door and press ? Enter. Click and drag the XIO instruction icon into the rung. Highlight the instruction and type Bottom_Limit_Switch and press ? Enter. Click and drag the XIO instruction icon into the rung. Highlight the instruction and type Stop_Inside_Door and press ? Enter. Click and drag the XIO instruction icon into the rung. Highlight the instruction and type Photo_Sensor and press ? Enter. Click and drag the OTE instruction icon into the rung. Highlight the instruction and type Motor_Down and press ? Enter. Click and drag the Branch instruction icon and then place it below Close _ Inside_Garage_Door. Highlight the branch instruction icon and type
Motor_Down and press ? Enter.
Create a ladder diagram of Rung 2. Create a rung that represents the green light ON while the door opens inside the garage; the light remains ON until the door is completely open and hits the top limit switch. Click and drag the XIC instruction icon into the rung. Highlight the instruction and type Motor_Up and press ? Enter. Click and drag the OTE instruction icon into the rung. Highlight the instruction and type Green_Light_Inside_Garage and press ? Enter. Click and drag the Branch instruction icon and then place it below Motor_Up. Highlight the branch instruction icon and type Timer_1_TT and press ? Enter.
Create a ladder diagram of rung 3. Create a rung that represents the timing (Time on Delay) of the green light to remain ON for extra 10 seconds until it hit the top limit switch. Click and drag the XIO instruction icon into the rung. Highlight the instruction and type Bottom_Limit_Switch and press ? Enter. Click and drag TON instruction icon into the rung. The TON is in Timer/Counter instruction. Highlight the TON "Timer" and type Timer_1 and press ? Enter. Highlight "Preset" and type 10,000 and press ? Enter.
Create a ladder diagram of Rungs 4 &
5. Create rungs that control the timing of red light flasher. Click and drag the XIO instruction icon into the rung 4 and highlight the instruction and type Timer_3.DN and then press ? Enter. Click and drag the TON instruction icon into the rung 4. The TON is in Timer/Counter instruction. Highlight TON "Timer" and type Timer_2 and press ? Enter. Highlight "Preset" and type 500 and press ? Enter. Click and drag the XIO instruction icon into the rung 5 and highlight the instruction and type Timer_2.DN and then press ? Enter. Click and drag TON instruction icon into the rung 5. The TON is in Timer/Counter instruction. Highlight TON "Timer" and type Timer_3 and press ? Enter. Highlight "Preset" and type 500 and press ? Enter.
Create a ladder diagram of Rung 6. This rung energizes the red-light flasher if there is an object detected; the light will keep flashing until the object is removed. Click and drag the XIC instruction icon into the rung. Highlight the instruction and type Photo_Sensor and press ? Enter. Click and drag the XIC instruction icon into the rung. Highlight the instruction and type Timer_2.TT and press ? Enter. Click and drag the OTE instruction icon into the rung.
Highlight the instruction and type Red_Light_Flasher and press ? Enter.
Test with emulator software to find problems before the software is used in the Control System or Off-Line Run Mode. Click on the Verify All icon to check your program for errors that would prevent the program from testing or running. Once your code is verified, the eee's will disappear from the left side of the rungs.
Click on Off-Line Run Mode located at the left top corner of the program.
Observe the outcome. When the run mode is activated, the processor transfers the status of all the real inputs into the input image table memory. The PLC then begins to scan each rung in the ladder program starting at rung 0. It compares each input element of each rung and sets that rung's output ON or OFF depending on the rung logic.
This set of instructions will allow electricians, technicians, and engineers with experience using RSLogix 500 controllers but little or no experience with Allen Bradley RSLogix 5000 programmable logic controllers to design and run a simple ladder diagram of an industrial garage door opener. Follow along closely so you don't have any problems testing or running your program.