Skip to main content

NRC_SetSyncJointNum(int syncGroupNum, std::vector<int> syncGroupType)

Set the number of robot external axes

Please set this parameter when the servo is stopped or in a ready state

After modification, you must restart the controller for the changes to take effect!!!

Type

int=>Set the number of robot external axes

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
syncGroupNumintThe number of external axis groups to be set, parameter range: 0 <= syncGroupNum <= 3
syncGroupTypestd::vector<int>The type of each axis group of the external axis to be set, 1: single-axis positioner, 2: dual-axis positioner, 3: ground rail

Sample code

int syncGroupNum = 2;
std::vector`<int>` syncGroupType={2,1,0};
NRC_SetSyncJointNum(syncGroupNum,syncGroupType);//Set the number of robot external axes