Configuration of the Subscriber

In the TwinCAT System Manager, a new box is added for the Subscriber under the RT Ethernet device.

Adding a Subscriber box and linking the network variables

A Subscriber box must be added under the RT Ethernet device.

Configuration of the Subscriber 1:
Creation of an RT-Ethernet device
Configuration of the Subscriber 2:
Creation of a Subscriber Box (“Box 1”)

A network variable is then created under the Subscriber box.

Configuration of the Subscriber 3:
TwinCAT tree with “Box 1” Subscriber Box
Configuration of the Subscriber 4:
Create network variable with right click

The link to a Publisher variable can be created automatically. First, you need to find the Publisher computer. All variables of this Publisher are then shown in a list.

Configuration of the Subscriber 5:
Searching for Publisher computer

Inputs and outputs were created under the added variable.

Configuration of the Subscriber 6:
Created in/outputs of the inserted variables

The FrameState input and the FrameCtrl output underneath the box give information about the current status or control of the received Ethernet Frames. FrameState and FrameCtrl are reserved and are currently not supported.

The VarState input and the VarCtrl output under the network variable indicate the current status (or control) of the received network variable. VarState and VarCtrl are reserved and are currently not supported.

Quality of the network variables

The quality of a network variable is assessed on the Subscriber side. Two input variables are available for this purpose under the network variable. The Quality variable provides a counter with a resolution of 100 µs. The counter value indicates the variable delay. The sample below shows the online value of Quality when the network connector is unplugged (counter increases) and reconnected (counter value 0).

Configuration of the Subscriber 7:
Time diagram (Online value) of the Quality variables

In addition to the Quality variables, the CycleIndex variable is incremented in each Publisher cycle.

Configuration of the Subscriber 8:
Time diagram (Online value) of the CycleIndex variables