Skip to main content

Redundancy

Cable redundancy

The SDK supports EtherCAT cable redundancy: the primary port and the redundant port form a ring, both sides transmit frames at the same time, and the receiving end merges them as needed. When a cable in the middle breaks, the slaves at the break close their ports and the frames from each side travel as far as the break; the SDK merges the two results, so every slave still on the ring remains accessible. Branch slaves on the ring are covered by the same protection.

In redundancy mode both NICs are working ports: the primary port sends primary frames and the redundant port sends secondary frames, and each slave processes whichever frame arrives first. Each side covers part of the slaves; the SDK merges the WKC of both sides into the number of slaves that really completed the exchange in the current cycle — when the merged WKC equals the expected WKC, the network is intact, and a low WKC on a single port is not a fault in that case.

To see whether the secondary port really is transmitting, read the secondary transmit frame counter in the redundancy status (C# SDK: SecondaryTxFrames); during normal operation the counter keeps increasing with every cycle — frames are not sent only after a cable break.

FAQ​

What hardware does redundancy mode require?​

Two separate NICs and slave wiring that supports a ring topology (the output port of the last slave connects to the second NIC).

Do I need to reconfigure after a cable break is repaired?​

No. After the cable is reconnected, the master detects the restored ring automatically and bidirectional communication returns to normal automatically.

Does redundancy mode affect the PDO cycle?​

Under normal conditions the cycle keeps running. At the moment of a cable break, WKC may fluctuate for 1-2 cycles, and zero frame loss is not guaranteed; PDO cycles may be skipped or contain gaps, so judge by the actual WKC.

Are branch slaves on the ring protected by redundancy?​

Yes. In a ring-with-branches topology, branch slaves count towards the expected value of the merged WKC; when the main ring breaks, branch slaves remain accessible from whichever side reaches their attachment point, so they do not drop together with the main ring.

The branch segment itself has no second path, so main-ring redundancy cannot cover the following two failures:

  • The branch cable is disconnected from the coupler at its attachment point.
  • A slave on the branch loses power or is unplugged.

In both cases the SDK reports the branch as unreachable, exactly as it is: the lost-slave count rises and the branch slaves are marked offline, while the ring state is still reported as healthy. When you troubleshoot, do not treat this as a ring break and go looking at the main ring cables.

Two NICs do not mean redundancy protection

A pure line topology (folded back at the end, no ring) has only one path, so a single break loses the whole segment. During normal operation the master transmits on both the primary and the redundant port, but a line topology has no return path: the redundant port's leg reaches no slave and therefore carries no protection path. Whether protection exists depends on the topology (line / ring / ring with branches), not on whether both NICs are connected.