I’m sorry i forgot to explain that. Yes Network.Data.Device is IF3 of my eth device.
I just know that i can see the plc address on my physical view but the default gateway is in PLC ($root), i just tried to change the address in root but it won’t work.
error code 29009 just means, that the default gateway isn’t configured at all.
Do you use static IP settings? If yes, is a default gateway set inside the project? Because if a DHCP client setting is used, the default gateway is transferred automatically by the DHCP server, but if using static IP addressing, the default gateway has to be set explicitely by the user in the project, or by software using CfgSetDefaultGateway().
Either the device name of the real Ethernet device must be used or ‘0’. If you use the Ethernet device it is just an additional check if this device exists and if this in the right mode.
Hello Matteo,
I suppose the function block is mentioning 29009 due to the fact that your Gateway IP is wrong.
You use an IP adress of 192.168.128.50 with a subnet of 255.255.255.0
Your gateway IP on the other hand is 192.168.100.254 which does not fit to your network.
Basically the Gateway IP is the adress where all packets are sent which do not belong to the network IP range you define. The Gateway (most likely a router or VLAN switch) then forwards the telegram to a different network where it hopefully fits
In your case your network is from 192.168.128.1 to 192.168.128.254 → your gateway does not fit into this range and the IP stack of the PLC could not send any packet not belonging to its range to the gateway as it is also in a non valid range.
Please try (for testing) to set a Gateway IP of 192.168.128.254 and try again. I would expect that it then works