Setting up a Micro800 PLC¶
Requirements
- Allen-Bradley Edition or Ultimate Edition
- Compatible Micro800 PLC with Ethernet connection
- Connected Components Workbench
Sample Project
This tutorial gives you step-by-step instructions on how to use a Micro820 PLC to control Factory I/O. These same steps apply to Micro850.
Setting up communication between PC and PLC¶
-
Connect the PLC to the network.
-
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 Micro800 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 main driver window. Now, click on CONNECT to connect to the PLC. A successful connection is indicated by a green icon with a tick near the selected driver, as well as on the right side of 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 Connected Components Workbench¶
-
Open a project in Connected Components Workbench.
-
Open the global variables editor by Double Left-clicking on Global Variables in the Project Organizer.
-
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.
-
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 Device > Download... to send the new program to the PLC.