Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Hello, struggling with finding a way to change the target's IP address from within the PLC runtime. This is a feature that has always been available from WAGO on CoDeSys 2.3 and e!Cockpit Is there a TCP/IP config library or Linux command line block that will accomplish this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, struggling with finding a way to change the target's IP address from within the PLC runtime. This is a feature that has always been available from WAGO on CoDeSys 2.3 and e!Cockpit Is there a TCP/IP config library or Linux command line block that will accomplish this?
Hi,
for me it works with adding the setting (add the Interface which you want to set)
[SysSocket]
Adapter.0.Name="ethX2"
Adapter.0.EnableSetIpAndMask=1
in /etc/CODESYSControl.cfg
and set the IP by adding the 'Ethernet Connector' to your project and set 'Change Operation System setting' see screenshot
BR
Edwin
CheckLicensePFC200.project [79.32 KiB]