# Establish the Connection Using the EDS Generated Profile

1. Open the RSLogix 5000 and load the PLC's project.

   Note: The PLC must be Offline.

2. Add a connection to your Ethernet Communications Card. Under the I/O Configuration node, select the Ethernet Node under the Ethernet Module, right-click on the icon and select New Module from the menu.

3. In the Select Module Type dialog, select the type of In-Sight vision system that will be connected to the PLC and click Create.

   Note: After loading the new EDS files, new module types will show up and the appropriate module should be selected.

4. In the New Module dialog, enter the In-Sight vision system's name and IP address.

5. Then click the Change... button to open the Module Definition dialog to configure the size of the connection.

6. After adding the vision system to the RSLogix project, the L5X rung import file can be used to create structured data for the connection. Within the MainProgram, right-click on an empty rung and select the Import Rungs... option. Navigate to the ISD9XX_CopyRung.L5X file and click the Import... button. The default location for the ISD9XX_CopyRung.L5X file is: C:\Program Files\Cognex\In-Sight\In-Sight Vision Suite 8.2.0\Adapters\In-Sight ViDi 1.2.0\FFP\In-Sight D9xx\RSLogix.

7. In the Import Configuration dialog, select Tags and change the names of the created tags to match the configuration.

8. Click the OK button of the Import Configuration dialog to close it. A rung will be added to the project, which includes the copy instructions for copying the data between the generic connection data and the structured data types included in the imported rung file.

   When writing your ladder program, reference the elements in the structured data variables; the copy rung above will automatically move the data to and from the structured data instances to the EtherNet/IP connection.