Skip to main content

NRC_ServoEnable()

Press the deadman key

Press the deadman key to power on the robot

After powering on using this interface, you can automatically stop the robot's current operation and then power it off by calling the corresponding interface NRC_ServoDisable()

This interface is only available in teach mode, and it is recommended to use this interface in teach mode

Before calling this function, please switch the servo ready status to servo ready, you can call the NRC_SetServoReadyStatus(int status) function to switch the servo status

Warning: After successfully calling this function, the servo will be in the power-on enable state. Please pay attention to safety

Type

int=>Press the deadman key

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

None

Sample code

NRC_ServoEnable();//Press the deadman key