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:
Insert a Subscriber box under the RT Ethernet device
Configuration of the Subscriber 2:
"Insert Box" dialog - selecting and naming the Subscriber box (Box1)

A network variable is then created under the Subscriber box.

Configuration of the Subscriber 3:
Creating the network variable under the Subscriber box
Configuration of the Subscriber 4:
Adding a network variable

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:
"Import Network Variable" dialog - display of Publisher variables

Inputs and outputs were created under the added variable.

Configuration of the Subscriber 6:
Display of created inputs and outputs

The FrameState input and the FrameCtrl output under the box indicate 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 example 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:
Online value of Quality after unplugging and reconnecting of the network connector.

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

Configuration of the Subscriber 8:
Incrementing of the CycleIndex variables