Skip to main content

NRC_GetEthercatIOConfig(int& sum, std::string& type1, std::string& type2)

Get EtherCAT IO configuration

Type

int =>Get EtherCAT IO configuration

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
sumint&Return the number of EtherCAT IO boards, parameter range: 0 <= sum <= 2
type1std::string&Return the EtherCAT IO type: NULL (empty IO), MECAT1000 (Motrotech), ITEGVA, STEP, INEXBOT_IO_R1 (iNexBot R1), INEXBOT_IO_R1_PWM (iNexBot PWM)
type2std::string&Return the EtherCAT IO type

Sample code

int  sum;
string type1;
string type2;
NRC_GetEthercatIOConfig(sum,type1,type2);