Setting up a Logix5000 PLC¶
Requirements
- Allen-Bradley Edition or Ultimate Edition
- Compatible Logix5000 PLC with Ethernet connection
- RSLogix 5000
Sample Project
This tutorial gives you step-by-step instructions on how to use a CompactLogix to control Factory I/O. Although this guide exemplifies with a CompactLogix, the same steps apply to a ControlLogix PLC.
Setting up communication between PC and PLC¶
-
Connect the PLC to the network.
-
Assign an IP address to the PLC.
To complete this step you should refer to the CompactLogix Controllers User Manual 1769-UM011, which describes methods to assign an IP address to the controller.
-
Start RSLinx and open the driver configuration dialog by selecting Communications > Configure Drivers from the menu.
-
Add an EtherNet/IP driver.
-
You should now be able to find the controller under the newly added driver.
Connecting Factory I/O to the PLC¶
-
In Factory I/O click on FILE > Driver Configuration to open the Driver Window.
-
Select Allen-Bradley Logix5000 from the driver drop-down list.
-
Open the driver Configuration Panel by clicking on CONFIGURATION.
-
Insert the controller's IP address into the Host field. On this panel, you can also define how many I/O Points to use, as well as the controller's tags they reference.
Each I/O point name (e.g. BOOL_IN_0) represents an existent PLC tag. It is defined by setting a Prefix (1) and an Offset (2) index which will be added to the prefix for each point created (e.g. BOOL_IN_3). Count defines the number of I/O points to use for each data type. You may choose any prefix you wish, as long as each I/O point has a matching tag defined on the PLC.
-
Press Esc to return to the Driver Window. Now, click on CONNECT to connect to the PLC. A successful connection is indicated by a green icon next to the selected driver, as well as next to the driver's name displayed on the status bar.
When connected to a PLC, non-existent tags or tags with an error are grayed out. Hover the mouse cursor over a grayed-out point to get relevant information about the error.
Creating Tags in RSLogix 5000¶
-
Open a project in RSLogix 5000.
-
Right-click on Controller Tags and select Edit Tags.
-
Add a new tag with BOOL_IN_0 as name, and BOOL as a data type. Continue adding tags until each one has a matching input I/O point in Factory I/O.
A fast way to complete this step is to copy and paste the previously added tag. RSLogix will automatically increment the index.
-
Now repeat the same process and add BOOL_OUT_0 up to BOOL_OUT_15. These will match the output I/O points of Factory I/O.
-
Select Communications > Download to send the new program to the PLC.