I am writing a basic code to set WAN configuration from PLC. For the testing purposes, the network setup tags are stored in EWON memory (NOT from PLC) as indicated in the figure below.
I can change IP address, subnet mask and DHCP/static successfully. However, when I change the gateway address, the basic program returns an error:
Operation failed (28): SETSYS COM, “save”
The backup of EWON is attached (excluding supporting files) so you can restore and give a test.WAN Configuration.tar (76 KB). The network configuration tags can be found on page “System”.
My hypothesis is that COM parameter “EthGW” could mean LAN gateway or WAN gateway so it may cause LAN/WAN connection conflict.
Thank you for your advice,