Configuration

The integration and configuration of the "TCP/UDP RT" object is described here, starting from an existing TwinCAT project.

Configuration 1:

The "TCP/UDP RT" object is instantiated and configured. The configuration essentially consists of assigning the network card to be used.

Configuration 2:

Windows Firewall

The Windows firewall cannot be used, since the TF6311 is directly integrated in the TwinCAT system.

The "TCP/UDP RT" object also contributes some parameters, which are documented here.

“TCP/UDP RT” module configuration

Notice Variable names relating to TCP are used here. They have to be substituted accordingly.

1. Create the “TCP/UDP RT” module under the RT Ethernet adapter by selecting “Add Object(s)…” in the context menu.
Configuration 3:
2. Then select the “TCP/UDP RT” module:
Configuration 4:
The TCP/UDP RT object is created under the adapter.
Configuration 5:
3. Parameterize the previously created instance of the module (here: Module1) under “Interface Pointer” “TcpProt” with the OID of the created “TCP/UDP RT” object: Configuration 6:
4. For PLC projects this configuration is also done at the instance, under the tab “Symbol Initialization”:
Configuration 7:
The configuration is thus completed
Configuration 8:

Disconnection by the operating system in Promiscuous mode

If Promiscuous mode is active at the RT Ethernet adapter in the “Adapter” tab, any TCP connection attempts are blocked by the operating system, since it does not recognize a port opened in the TCP/UDP RT object.