Evaluate the Node Table

Download: https://github.com/Beckhoff/TF6230_Samples/tree/main/TcPrpNodeTableSample

Building on the previous sample, the "Node Table" with the TcPrpNodeEntry structure is also queried here. The table of nodes in the network is read from the TwinCAT PRP module using ADS Read (see FB_TcPrpAdapter.GetNodeTable) and a specific node in the list is searched for and evaluated on the basis of a defined MAC address (see FB_TcPrpAdapter.GetNodeIndexByMac and FB_TcPrpAdapter.GetNodeEntry).

The various values from the "Node Entry" are summarized using LAN-A and LAN-B to determine whether communication to the node has been interrupted. If no frames from the respective LAN were received by this node for more than two seconds, this is recognized as a "Timeout" (see FB_TcPrpNode.bTimeout{A,B}). If neither frames on LAN-A nor on LAN-B are detected, this is indicated as "Disconnect" (see FB_TcPrpNode.bDisconnect).

Evaluate the Node Table 1: