Skip to main content

NRC_GetIOTypeConfig(std::string& type)

Get the type of extended IO

If it is an EtherCAT extended IO, set the type to "none" and the controller will automatically recognize it

If a non-EtherCAT extended IO is connected, setting the type to "custom" will not take effect

After setting the parameter, you need to restart the controller for the changes to take effect

Type

int =>Get the type of extended IO

Return valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
typestringReturn extended IO type; "none": no extended IO; "ethercat": EtherCAT extended IO; "custom": custom extended IO

Sample code

std::string iotype;
NRC_GetIOTypeConfig(iotype);//Get the type of extended IO