APIs, concepts, guides, and more

◆ NetworkStart() [3/4]

void NetworkStart ( RSINetworkStartMode startMode,
RSINetworkStartupMethod startupMethod,
uint32_t timeoutMilliseconds )

Start the EtherCAT Network to PREOPERATIONL or OPERATIONAL state, with our without discovery, using a timeout. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Warning
This overload does NOT Refresh() after starting the network, which might be necessary if your topology has changed.
Note
This assumes you have ENI File (EtherCAT.xml) in the same folder as the RMP and RMPNetwork files. Check NetworkStateGet() and, if errors, LastNetworkStartErrorGet(), NetworkLogMessageCountGet to determine the result of starting the network. This method can take several seconds to execute. After starting, if the state is operational, some overloads internally call Refresh() so all RapidCode objects must be recreated.
See also
Create, NetworkStateGet, LastNetworkStartErrorGet, NetworkLogMessageCountGet, Refresh
Parameters
startModecan be either PREOPERATIONAL or OPERATIONAL
startupMethodRSINetworkStartupMethod
timeoutMillisecondscustom timeout before you get an error message.