Basic Compactlogix and Rslogix 5000 Tutorial: 5.1.1 Setup The Physical Hardware
Basic Compactlogix and Rslogix 5000 Tutorial: 5.1.1 Setup The Physical Hardware
Software and Hardware needed, RSLogix 5000 RSLinx Classic L32E compact logix processor based control system misc IO cards
Name: Relay_outputs 4. At this point all of the I/O values are defined. Next we can define our tags (Variable names). To do this double click on Controller Tags then Scope and Main Program. Select Edit Tags (a tab on the bottom). Add A under tag names then choose aliases for. Expand local:1:I under Description for local:1:I.0. Enter A. define A as input local:1:I.0 define X as output local:2:O.0 define Y as output local:2:O.1 5. At long last we are now ready to write our first program. Enter the following ladder logic under the Main Program by double clicking on Main Routine and then download it to the processor. You will find the icons for contacts, outputs, and new rungs neat the top center of the screen. 6. In the upper right hand of the screen find the Path: line. To the right there is a small icon with yellow boxes and a blue line. Click on this to open a dialog box. Expand AB_ETHIP-1. Ethernet to see devices connected by the network. The Processor will contain 1769-L32E, expand this this and then expand Backplane. Click on CompactLogix Processor and the option buttons on the right should turn black. Click Download and then download the program to the PLC. (aside) Some common problems are; If the PLC is not in rem mode turn the key to allow remote programming and mode changes. If there is a flashing red fault light you may need to clear the fault. If the PLC run light is not green then you will need to select Communications at the top of the screen and then put it in Run Mode. 7. Once downloaded, check the processor and verify that the Run and IO lights are on steadily. This will indicate that the program is running. The lights on the face of the Ethernet IO rack should also be green. (note: red is bad, as is a flashing green I/O). Test the program by activating the input A on the rack. (aside) When you try to run the program you might get a flashing green IO light that turns red to indicate a fault. If this is the case look at the IO cards on the bottom left. The properties of those with yield signs should be changed (right click) so that the compatibility is set to disable keying so that they do not check card versions. You can clear the fault under the communications tab. Downloading the cards should result in a solid IO light and the program will run as expected. 8. Go offline and double click on Program Tags. Go to Edit Tags and add the variables below. Then return to the main program and add the ladder logic. Download and test the four rung program. When the new input is active for two seconds the output should turn on. B is local:1:I.1 Z is local:2:O.2 tag T1 of type timer 9. To see the mnemonics go back to the ladder logic window and right click on the left of the ladder run and select Edit Rung. The mnemonics for the rung will appear in a bar above. It can be modified and accepted, or rejected. Clicking in the ladder window will make it disappear.