NRC_GetEthercatIOConfig(int& sum, std::string& type1, std::string& type2)
Get EtherCAT IO configuration
Type
int =>Get EtherCAT IO configuration
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 |
---|---|---|
sum | int& | Return the number of EtherCAT IO boards, parameter range: 0 <= sum <= 2 |
type1 | std::string& | Return the EtherCAT IO type: NULL (empty IO), MECAT1000 (Motrotech), ITEGVA, STEP, INEXBOT_IO_R1 (iNexBot R1), INEXBOT_IO_R1_PWM (iNexBot PWM) |
type2 | std::string& | Return the EtherCAT IO type |
Sample code
int sum;
string type1;
string type2;
NRC_GetEthercatIOConfig(sum,type1,type2);