Disable an Ethernet Port with an MSG Instruction
You can use a
CIP™
Generic MSG with a Path of THIS to execute this option. You cannot use this MSG instruction to disable an Ethernet port on another controller.- Add an MSG instruction to your program.This message only has to execute once, it does not need to execute with every program scan.IMPORTANT:You cannot add an MSG instruction to your program if the controller switch is in Run mode, or if theFactoryTalk® Securitysettings deny this editing option.
- Configure the Configuration tab on the Message Configuration dialog box as described in the table below.
IMPORTANT:These values are stored to non-volatile controller memory in such a way that the MSG instruction is not required to execute each time the controller powers up.Disable the Ethernet PortFieldDescriptionMessage TypeCIP GenericService TypeSet Attribute SingleInstance1 to disable the Ethernet port on controllers with a single Ethernet port, or disable Port A1 on controllers with two Ethernet ports.2 to disable Port A2 on controllers with two Ethernet ports.Classf6Attribute9Source ElementController tag of SINT data type.Source Element Tag Data:- 1 = Enable port
- 2 = Disable Port
In this example, the controller tag is name Port_Configuration.Source Length1 - Configure the Communication tab to use a Path of THIS.IMPORTANT:Messages to THIS must be unconnected messages.

- Before you enable the MSG instruction, verify that the Source Element tag value is 2.IMPORTANT:You can re-enable an Ethernet port after it is disabled.To re-enable the port, complete the steps that are described in this section. Before you enable the MSG instructions, however, make sure that the Source Element tag value is 1.
Provide Feedback