APIs, concepts, guides, and more

◆ NetworkNodeCountGet()

int32_t NetworkNodeCountGet ( )
Description:
NetworkNodeCountGet returns the number of EtherCAT nodes (SubDevices) that were discovered during network startup and configured in the ENI topology. This is a static count set at network initialization and does not change during operation.
Returns
(int32_t) The number of nodes in the network topology.
Note
This returns the configured/discovered node count, not the number of nodes currently responding. To check how many nodes are actively communicating, use NetworkStatusGet() and examine the ActiveNodeCount field.
See also
NetworkNodeGet, NetworkStatusGet, NetworkStatus::ActiveNodeCount