Electromechanical Engineering Technology

Unit A exercises

RSLogix 500 Tutorial 1:
This tutorial guides you to the creation of a ladder logic diagram in RSLogix 500 that controls pilot lights. The ladder diagram to be created is shown as follows:

Input/Output list Component PB1 (PUSH_BUTTON) PB2 (PUSH_BUTTON) PL0 (PILOT_ LIGHT 1) Input/Output Number I0:0/1 I0:0/2 O0:0/0

ELMT-1301 Basic Programmable Logic Controllers

pg.1 of 10

Electromechanical Engineering Technology Unit A exercises Creating a new file 1. The RSLogix window appears as shown in Figure 1. On the dialog box.2 of 10 . or click File. Click New on the icon bar. (The screen does not have to be an exact match) Figure 1. ELMT-1301 Basic Programmable Logic Controllers pg. RSLogix 500 window. 1762 MicroLogix 1200 Series A" and click OK. scroll through the processor list and select: "Bul. The Select Processor Type dialog box appears. 3. On your Start menu. New. select 2.

ELMT-1301 Basic Programmable Logic Controllers pg. This means that these rungs have not yet been verified and compiled. At this point. The letter e should disappear once the file is compiled and no errors have been detected. To insert an instruction on a rung. Results pane.3 of 10 . then. The menu contains options to execute an action on the folder or file. In order to know what each of the icons do. click its icon on one of the toolbars. Ladder view. select Insert Rung from the menu that appears. It displays instruction mnemonics in tabbed categories. The new program file contains only an End rung. It contains all the folders and files contained in your project. You can also view several program files at the same time. Icon bar. Figure 2. Status bar. Online bar. Select functionality from the menus that appear as you click each selection on this bar. simply move your cursor to the icon and a floating ToolTip window will appear indicating the icon’s function.Electromechanical Engineering Technology Unit A exercises The RSLogix window contains the following: Menu bar. click on the Examine if Closed icon . NOTE: Rungs under edit have the lower-case letter e in the margin to the left of the left rail. You can click on any instruction to insert it in your ladder program. Creating the first rung 1. This is where you edit your ladder logic. 2. A normally open contact appears on the rung. Click the rung number of the End rung (0000) to from the instruction toolbar (Figure 2). the instruction toolbar provides you with instructions for that category. It displays the results of a Find All search or a verification procedure. NOTE: You can place several instructions on a rung sequentially by clicking the icons one after another. You can select it and then select the New Rung icon also insert a new rung by selecting the End rung number and clicking the right mouse button. Most of the icons in the tree offer a menu applying only to itself by selecting the icon and clicking the right mouse button. It contains several functions that you will use repeatedly as you develop and test your logic program. Instruction toolbar. Project tree. The instructions are placed from left to right. It provides you with ongoing status information or prompts as you use the software. Instruction toolbar. A new rung appears above the End rung. You can also place instructions by dragging and dropping the icons until a green rectangle appears in the desired location. It indicates the operational mode and lets you see whether you have online edits or forces installed at a glance. Each time you select a category tab.

The address for this instruction should be identical to the OTL address that originally set the bit. The bit must be reset with an OTU instruction.Output Unlatch Sets the specified bit when rung continuity is achieved (rung goes true). If it is ON. Stores the state of output terminals for the controller. and slash. Functions about the same as OTE except that once a bit is set with an OTL.Output Energize OTL . If it is ON. Delimiters include the colon. Functions as an input or storage bit.Examine continuity and outputs if Closed will be energized. The following table shows the default file types: File # File Type O0 Output I1 Input S2 Status B3 Stores internal relay logic. where X is the data file type. Stores the state of input terminals for the controller. we will assign an address to the instruction so that RSLogix can identify it.Electromechanical Engineering Technology Unit A exercises The following list describes some of the instructions from the User toolbar shown in Figure 2: Instruction Icon Name Description Functions as an input or storage bit.Output Latch OTU . it will allow rung XIC . period.4 of 10 . File Description ELMT-1301 Basic Programmable Logic Controllers pg. (for this tutorial. An address is usually in the form X:Y/Z. it will not allow XIO . these files store information about controller operation. Next.Examine rung continuity and if Open outputs on the rung will be de-energized. Y is the number of the control box that the instruction is connected. It unlatches a latched bit which was set by an OTL instruction. there is only one controller so the variable will always be 0). OTE . Stores controller operation information useful for troubleshooting controller and program operation. it is "latched" on. Addresses are made up of alphanumeric characters separated by delimiters. Moreover. Data files contain the status information associated with external I/O and all other instructions you use in your ladder program files. and Z can be a number or a word identifying the number of the external I/O or other instructions used.

For more information about branching. 4. right-click the normally open contact added to the rung. 3. Stores the timer accumulator and preset values and status bits. if your cursor is on an instruction. If your cursor is on the rung number.5 of 10 . To assign the data file type to it. The same symbol cannot be applied to different addresses. Next. A menu prompts and then select Edit Symbol. To assign a symbol to the instruction. the branch is placed first on the rung. a menu prompts with editing options for the selected element. Stores the counter accumulator and preset values and status bits. and status bits for specific instructions such as shift registers and sequencers.Electromechanical Engineering Technology Unit A exercises Bit T4 Timer C5 Counter R6 Control N7 Integer Used to store numeric values or bit information. The instruction just placed is an input. Click the right leg of the branch and drag the leg to the right of the "PB1" contact. please refer to the section "Branching". 5. Enter "PB1" and then hit the Enter key on the keyboard. pointer position. . A new branch NOTE: When placing a branch. NOTE: Anytime you right-click any element in the ladder diagram. All instructions having the same address automatically have the same symbol. ELMT-1301 Basic Programmable Logic Controllers pg. 6. we will assign a symbol to the instruction that can be used as a substitute for an address so that the instruction can be easily identified. Symbols can be up to 20 characters in length. A valid release point will be shown as a green rectangle on the ladder display. double-click on the normally open contact placed and enter "I1:0/1". the branch is placed immediately to the right of the instruction. Stores the length. A symbol is unique. Click the first rung number (0000) and then click the Rung Branch icon appears.

To assign a symbol to the instruction. If your file has any mistakes. ELMT-1301 Basic Programmable Logic Controllers pg. . Click the File. type tutor 1 under File Name: 2. Double- 8. There is an OFFLINE list box on the upper left corner of the RSLogix window. 9. Save. Saving the file 1. right-click the normally open contact added to the rung. If your program does not have any mistakes. Click the right leg of the branch and then click on the Output Energize icon appears. Your ladder diagram should look as follows: Verifying the file 1. the Verify Results output window displays and gives you information about mistakes or omissions occurred in your program. . then the lower left corner of the RSLogix window states: "Verify has completed. To assign a symbol to the instruction. 11.Electromechanical Engineering Technology Unit A exercises 7. Testing the file 1. right-click the normally open contact added to the rung. no errors found". A menu prompts and then select Edit Symbol. Click on the arrow on the right and select Download…(See Figure below). Double-click the output and enter the address "O0:0/0". Click on Save. Enter "PL0" and then hit the Enter key on the keyboard. Click on the lower left leg of the branch and then click the Examine if Closed icon click this contact and enter the address "I1:0/2". Verify File from the menu bar.6 of 10 . An output load 10. Click the Verify File icon or click Edit. A menu prompts and then select Edit Symbol. Enter "PB2" and then hit the Enter key on the keyboard.

Click Yes. The following dialog box appears: 5.7 of 10 .Electromechanical Engineering Technology Unit A exercises 2. RSLogix will download your program so it can be tested on the testing board located on your left. The following two dialog boxes appear: ELMT-1301 Basic Programmable Logic Controllers pg. Click OK. The following dialog box appears: 3. Click Yes. 4.

If your program works fine. On the Print window. Test your program by pressing PB1 and PB2 and observe what happens to PL0 on your plc trainer. Now. ELMT-1301 Basic Programmable Logic Controllers pg. close your program. Click Yes on both dialog boxes. make the necessary modifications to your program and test it again. your program is on the REMOTE RUN mode as shown on the upper left corner of the RSLogix window. 7.Electromechanical Engineering Technology Unit A exercises 6. 8. click OK. NOTE: You have to be on the OFFLINE mode in order to make any modifications to your program. click on the arrow on the right of REMOTE RUN (as shown in the figure below) and select Go Offline. Click File. NOTE: Your program has to be on the REMOTE RUN mode in order to be tested on the testing board.8 of 10 . Otherwise. Printing the file 1. 2. When you are done testing. Print View.

How do you turn OFF PL3? ELMT-1301 Basic Programmable Logic Controllers pg.9 of 10 . Add the logic as shown in the ladder diagram below: Questions 1. Why is PL3 ON if PB5 is not ON? 3. When does PL0 turn ON? 2.Electromechanical Engineering Technology Unit A exercises Practice 1. Why do PL1 and PL2 turn on simultaneously? 5. When does PL2 turn ON? 4.

click on a rung or instruction in your logic and click Paste from the right mouse menu to insert the rung structure. Click on the left edge of the branch leg you want to copy . Copying the entire branch structure. the branch is places first on the rung. Nested branches. then click the right mouse button. Click the Rung Branch icon on the instruction toolbar to place a branch in your ladder logic. Next. then click Copy from the right mouse menu. Click the upper left corner of a branch leg . the branch is placed immediately to the right of the instruction. then click the right mouse button. If the cursor is on the rung number. Copying a branch leg.Electromechanical Engineering Technology Unit A exercises Branching The following are instructions for dealing with branches: Adding a branch. to move the entire branch structure to Expand a branch. Parallel branches. Click the right leg of the branch structure . Deleting a branch. Moving a branch. ELMT-1301 Basic Programmable Logic Controllers 10 pg. then drag the leg to the right or left. Click the right leg of the branch . Then click the right mouse button and select Copy. Simply click at any location on the branch and select Delete from the right mouse menu. click on a rung or instruction in your logic and click Paste from the right mouse menu to insert the rung leg.10 of . Click the bottom left corner of a branch leg . and select Append New Branch to place another branch structure within the original branch structure. All valid release points are shown in green color on the ladder display. Next. and select Extend Branch Leg Up or Extend Branch Leg Down. If the cursor is on an instruction. Click on the upper left corner of a branch another location in your ladder logic program.

Sign up to vote on this title
UsefulNot useful