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 value | Description |
---|---|
0 | The function is called successfully |
-101 | Invalid input parameter |
-102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
-103 | The target object is currently in an inoperable state |
Parameter Option
Parameter | Type | Description |
---|---|---|
type | string | Return 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