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.
Open the configuration file located at the following path:
/etc/codesyscontrol/CODESYSControl_User.cfgTip
The file uses the
INIformat.[SysSocket]section: Find or create a section named[SysSocket].In this section, set
Adapter.0.EnableSetIpAndMaskto 1 to permit the IP address to be set via PROFINET.Adapt the values according to your requirements.
Example: The network adapter
eth0can be used for the CODESYS PROFINET device and setting the IP address should be permitted.[SysSocket] Adapter.0.Name="eth0" Adapter.0.EnableSetIpAndMask=1