Skip to main content

Configuring a CODESYS PROFINET device

Linux-based CODESYS Control SL products can be used with CODESYS PROFINET devices. In order to do this, permission must be granted so that the PROFINET protocol can be used to set the IP address of the network adapter used by the CODESYS PROFINET device.

This is done in the [SysSocket] section of the configuration file for Linux-based CODESYS Control SL products. Adapt this section to the device names.

  1. Open the configuration file located at the following path:

    /etc/codesyscontrol/CODESYSControl_User.cfg

    Tip

    The file uses the INI format.

  2. [SysSocket] section: Find or create a section named [SysSocket].

  3. In this section, set Adapter.0.EnableSetIpAndMask to 1 to permit the IP address to be set via PROFINET.

    Adapt the values according to your requirements.

    Example: The network adapter eth0 can be used for the CODESYS PROFINET device and setting the IP address should be permitted.

    [SysSocket]
    Adapter.0.Name="eth0"
    Adapter.0.EnableSetIpAndMask=1