The relevant FUB CfgSetDefaultGateway() takes the specific interface the setting should be applied to as an optional input parameter. However, the Help Explorer suggests this only triggers a check if DHCP is deactivated for the specific interface.
In the next sentence, it is mentioned that the FUB then writes I.E. a global parameter. Does this example only apply to CPUs with one interface or to all CPUs including the X20CP1584 we use?
Hi,
as I know the default gateway is a system global setting (independent of the number of ethernet devices), and the function block changes this global parameter.
Best regards!
There can only be one gateway in any network system as far as I know. The gateway is used for traffic that is outside the PLCs subnet. The PLC has no knowledge about what is beyond its own subnetwork so it sends all that data to the gateway which then handles the traffic from there on.
Stephan