Establish the Connection Using the EDS Generated Profile
Perform the following steps to establish a network connection with your In-Sight vision system.
-
Open the RSLogix 5000 and load the PLC's project.
Note: The PLC must be Offline. -
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.
-
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 must be selected.
-
In the New Module dialog, enter the In-Sight vision system's name and IP address.
-
Click the Change... button to open the Module Definition dialog and configure the size of the connection.
-
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 CopyRung.L5X file and click the Import... button.
-
In case of using In-Sight D900 Series Vision Systems, the file is located in the following folder:
C:\Program Files\Cognex\In-Sight\In-Sight Vision Suite Adapters\In-Sight ViDi1.3.0\FFP\In-Sight D9xx\RSLogix
-
In case of using an In-Sight ViDi PC device, the file is located in the following folder:
C:\Program Files\Cognex\In-Sight\In-Sight Vision Suite Adapters\In-Sight ViDi1.3.0\FFP\In-Sight ViDi PC\RSLogix
-
-
In the Import Configuration dialog, select Tags and change the names of the created tags to match the configuration.
-
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.