chopin Member C Join Date May 2012 Location Milton Keynes Posts 210 Mar 16, 2020 #1 In CodeSys is it possible to change PLC IP from the user program level?
kallileo Lifetime Supporting Member K Join Date Jun 2008 Location Thessaloniki, Macedonia, Hellas Posts 353 Mar 16, 2020 #2 It seems that it's possible. https://help.codesys.com/webapp/_en...Adapter_Configuration_Editor;version=3.5.15.0 Check the SysSocket library FUNCTION SysSockSetIPAddress : RTS_IEC_RESULT Set IP address of the specified ethernet device. Is not available on all platforms! Use SysSockSetIpAddressAndNetMask() instead. It seems that it's working only on Windows but still could be a start. Last edited: Mar 16, 2020
It seems that it's possible. https://help.codesys.com/webapp/_en...Adapter_Configuration_Editor;version=3.5.15.0 Check the SysSocket library FUNCTION SysSockSetIPAddress : RTS_IEC_RESULT Set IP address of the specified ethernet device. Is not available on all platforms! Use SysSockSetIpAddressAndNetMask() instead. It seems that it's working only on Windows but still could be a start.
chopin Member OP C Join Date May 2012 Location Milton Keynes Posts 210 Mar 17, 2020 #3 Thanks kallileo I am using Bosch platform - Indraworks in particular I went through the library and managed to find some GetIP/SetIP functions
Thanks kallileo I am using Bosch platform - Indraworks in particular I went through the library and managed to find some GetIP/SetIP functions