CODESYS Communication
Insofar as multiple Ethernet adapters exist on the controller, it is generally recommended to separate the CODESYS communication (project download, monitoring, etc.) and the fieldbus communication (here: PROFINET). In particular, this applies to the PROFINET Device, which also controls the IP settings of the adapter. A change to the IP address (for example, by a DCP set command or when starting the application) then leads to an unpleasant termination of the CODESYS communication. After that, the IDE has to reconnect.
The easiest way to separate communication is to disable the Ethernet adapter for CODESYS communication which is used by the fieldbus. This is done with the following entry in the configuration file (*.cfg
) of the CODESYS runtime:
[CmpBlkDrvUdp] itf.0.AdapterName=eth0 itf.0.DoNotUse=1