Setting SNTP IP Address with Program Variable to AC500-eCo CPU
I'd like to know if it is possible to set the SNTP IP Address using a program variable in CoDeSys. I'm using a PM554-TP-ETH as my CPU.
My final goal is to be able to set the SNTP IP address via Modbus RTU, so I'd need to have a function that can write the SNTP IP. I have not seen one yet; is it possible?
Voted best answer
You can't override the SNTP server address via CoDeSys Coding.
Alternative way is to use the FlexConfig.
Predefine few Server IP address, then used the FlexConfig to load the selected configuration. After load the new config, PLC will restart.
For details, please refer to the Automation Builder online help.