Integrate tags from CoDeSys

This task describes how to add a CoDeSys 2.x or CoDeSys 3.x project as a tag integration source in your IWS project.

Before you begin this task, you must do the following:
  • Configure your CoDeSys project to generate a new symbol file with the correct variables. The symbol file is like an index of the CoDeSys tags that you want to integrate into your IWS project. For more information, see either Configuring your CoDeSys 3.x project or Configuring your CoDeSys 2.x project.
  • Rebuild your CoDeSys project and send it to the PLC.
  • Make sure the PLC is running and available on your network, and note its IP address and/or runtime address.

If you want to be able to browse the CoDeSys tags offline — that is, when the PLC is not running — then you must also copy the new symbol file to your IWS project folder ([…]DocumentsInduSoft Web Studio v7.1 Projectsprojectname).

  1. On the Project tab of the ribbon, in the Settings group, click Communication. The Project Settings dialog is displayed, with the Communication tab selected.
    Figure 1. Communication tab of the Project Settings dialog
    Web Studio Help dialog projectsettings communication CoDeSys

  2. In the Tag Integration area, click Add. The Tag Integration Source dialog is displayed.
    Figure 2. Tag Integration Source dialog
    Web Studio Help dialog tagintegrationsource twincat CoDeSys

  3. In the Type list, click Integrated.
  4. In the Provider list, click CoDeSys.
  5. In the Name box, type an appropriate name for this tag integration source. Note that the name will be used as a prefix on names of the integrated tags.
  6. Click Add. The CoDeSys Tag Integration dialog is displayed.
  7. From the Runtime version list, select either CoDeSys 3.x or CoDeSys 2.x, depending on the version of your CoDeSys project.
  8. If you selected CoDeSys 3.x, configure the corresponding settings.
    Figure 3. CoDeSys Tag Integration dialog for CoDeSys 3.x
    Web Studio Help dialog tagintegration addsource codesys3 CoDeSys

    1. In the Gateway IP and Port boxes, type the IP address and port number of the device that is actually running your CoDeSys project.
    2. In the Runtime Address box, type the specific address of your CoDeSys project on the device. This address is can be found when you open the CoDeSys project in the CoDeSys development application. A typical address is 0194.
  9. If you selected CoDeSys 2.x, configure the corresponding settings.
    Figure 4. CoDeSys Tag Integration dialog for CoDeSys 2.x
    Web Studio Help dialog tagintegration addsource codesys2 CoDeSys

    1. In the PLC IP Address and Port boxes, type the IP address and port number of the device that is actually running your CoDeSys project.
    2. If the device is located behind a network gateway, select Gateway IP and then type the IP address of the gateway.
    3. From the Level list, select the network protocol to communicate with the device. In most cases, you should select L4.
  10. If you also want to browse the CoDeSys tags when the PLC is not running, then enable offline browsing and locate the symbol file that you copied to your IWS project folder.
    1. Select Symbol file browsing (offline).
    2. Click Browse, and then locate the symbol file.
  11. Click OK to finish the configuration.
If the configuration is successful, then the CoDeSys tags will be immediately available in the Object Finder.

CoDeSys