# PROFINET PLC Configuration

In-Sight 3D EasyBuilder supports PROFINET, an industrial communications protocol that maps the inputs and outputs of the In-Sight vision system into the process memory of Siemens PLCs. Once the system establishes inputs and outputs, they are synchronized at an interval defined by the update rate of the PROFINET IO system. PROFINET IO describes a device model, which consists of insertion places (slots) and groups of I/O channels (subslots). An XML-based GSD (General Station Description) file describes the technical characteristics of the field devices.

PROFINET IO distinguishes the following three device types:

- IO-Controller: The vision system on which the automation program is running.
- IO-Device: A remotely assigned field device, which is assigned to an IO-Controller.
- IO-Supervisor: A programming device (PC), which runs commissioning and diagnostic functions.

## Enable the PROFINET protocol

Note: The Enable Traffic Control is a setting that allows PROFINET without a QoS switch to run better on busy networks, if you use FTP (File Transfer Protocol) for images, have WebHMI connections and In-Sight EasyBuilder attached with the In-Sight vision system. When using Enable Traffic Control, user interface updates such as WebHMI and In-Sight EasyBuilder become slower, but PROFINET does not disconnect.
Tip:

- If you are already connected to a vision system, and have the In-Sight 3D EasyBuilder adapter open, click the Home button at the top left corner of the application window to switch to the In-Sight Vision Suite interface. After that, select the vision system you want to configure and open the Network Settings dialog as described above.
- You cannot configure vision systems that you are already connected to (in other words, for which the In-Sight 3D EasyBuilder adapter window is already open). The available utilities (including the Network Settings utility) are enabled only if you are not connected to that device.

1. Launch In-Sight Vision Suite. Select the vision system you want to configure on the Device Pane (1), then click the Industrial Ethernet button in the Utilities tab (2).

   The Industrial Ethernet Configuration dialog appears.

2. Select PROFINET from the dropdown list. The protocol-specific settings then appear. Configure the connection according to the local network properties. See the Industrial Ethernet – PROFINET Configuration topic of the In-Sight Vision Suite Help for more information.

   Tip: If you are changing this setting from another protocol (such as Ethernet/IP) to PROFINET, the dialog may prompt you to restart the vision system.

3. Install the preferred PLC configuration software (for example, SIMATIC Manager, or TIA Portal) on the same PC as the In-Sight Vision Suite.

4. You can configure the PLC using a configuration software.
   1. In case of using the SIMATIC Manager configuration software:
      1. Select the SIMATIC 300 or SIMATIC 400 node, then double-click on the Hardware node in the object list. The HW Config tool opens.
      2. Ensure that the PROFINET IO interface on the CPU has been assigned a subnet address. To verify this, double-click the PROFINET IO module on the CPU. If the Networked status of the PROFINET IO module indicates No then click the Properties button and add a new subnet.
      3. Once the PROFINET IO interface on the CPU has been assigned a subnet, add a PROFINET IO system to the hardware configuration diagram by right-clicking the PROFINET IO module in the PLC configuration and selecting Insert PROFINET IO System.
   2. In case of using the TIA Portal configuration software:
      1. Create a new project.
      2. Add the PLC to the project by clicking Add new device, and then select the correct PLC type.
      3. Double-click on Devices & networks, select Network view on the top, then click on the PLC CPU symbol. Select General on the bottom and click on PROFINET interface. Set the IP address, subnet mask and gateway for the CPU as applicable.

5. If this is the first Cognex vision system which you want to add to the PROFINET network, install the Cognex-supplied GSD file.

   1. In case of using the SIMATIC Manager configuration software:
      1. From the HW Config tool, select Options > Install GSD Files from the menu.

      2. Click the Browse button and select the following folder:

             C:\Program Files\Cognex\In-Sight\In-Sight Vision Suite Editors\In-Sight\In-Sight 24.4.1\FFP\GSD

      3. Click the Select All button, then click the Install button to install the hardware description.
   2. In case of using the TIA Portal configuration software:
      1. Click Options > Install general station description file (GSD).

      2. Press the Browse button and select the following folder:

             C:\Program Files\Cognex\In-Sight\In-Sight Vision Suite Editors\In-Sight\In-Sight 24.4.1\FFP\GSD

      3. Check the box in front of the GSDML file, then click Install.
6. Browse to the corresponding node of the Hardware Catalog to add your vision system to the PROFINET network.
   1. In case of using the SIMATIC Manager configuration software:

      1. In the Catalog, search for the following node:

             Other field devices > PROFINET IO > Controllers > Cognex Corp. > Cognex Vision Controllers > <In-Sight Vision System>.

      2. Drag and drop an instance of the desired vision system to the PROFINET-IO-System of the HW Config.

      3. Right-click on the PROFINET-IO-System and select Object Properties. Uncheck the Use name in IO device / controller setting if it is checked, then click OK.

      4. Right-click on the vision system in the HW Config, then select Object Properties. Type the same name for Device name that was configured for Station Name in In-Sight Vision Suite.

   2. In case of using the TIA Portal configuration software:

      1. Double-click on Devices & networks on the left pane of TIA Portal, and select the Network view tab on the top of the screen. If the GSD file is already imported, the In-Sight vision system needs to already be presented in the Catalog on the right side of the window in the following location:

             Other field devices > PROFINET IO > Controllers > Cognex Corp. > Cognex Vision Controllers > <In-Sight Vision System>.

      2. Drag and drop the In-Sight vision system next to the PLC in the Network View.

      3. Establish a connection between the PLC and the vision system by connecting the small green boxes in the PLC and the In-Sight symbols while holding the left mouse button.

      4. Click the In-Sight symbol, then select General on the bottom and click on PROFINET interface [X1]. Tick IP address is set directly at the device option and uncheck the box in front of Generate PROFINET device name automatically. Type the same name for the PROFINET device name that was configured for Station Name in In-Sight Vision Suite.

7. Once you add the vision system to the hardware configuration, download it to the PC.
   1. In case of using the SIMATIC Manager configuration software:

      1. Click the Station menu in the HW Config window, and then selecting Save and Compile.

      2. Click the PLC menu and select Downloadto start the download procedure.

   2. In case of using the TIA Portal software:

      1. Save the project, click on the PLC CPU symbol, and then on the Online symbol. Select Download to device to start the download procedure.

      2. If the download is performed for the first time, then the Extended download to device window comes up. Select the PG/PC interface there. After that, click the Start search button to show the available devices. Select the PLC from the list and click the Load button.

      3. TIA Portal then starts compiling the configuration. Once it is done, click on Load and then on the Finish button on the pop-up windows.

      4. After the download is finished, click on the Go online icon on the top of the window. If the PROFINET connection is working fine between the PLC and the vision system, a green sign needs to be visible in the left top corner of the devices.

      5. If the connection is not established properly, then right-click on the In-Sight symbol and select Assign device name from the context menu.

      6. Select the vision system from the list and click Assign name.