Skip to main content

NRC_JogMove(int axis, int dir)

Start jogging an axis

The robot will move in the "dir" direction of the "axis" axis in the NRC_GetCurrentCoord() coordinate system

Before calling this function, please enable the servo by calling the NRC_ServoEnable() function to power on the servo

During the jog operation, for safety purposes, this function needs to be called every 200ms. If it is not called within the timeout period, the robot will automatically stop jogging

During the jog operation, even if this function is called continuously, it will only be executed once. To perform the next jog, it is necessary to call this function again after stopping the current jog operation

After this function is successfully called, the robot will start moving. Please pay attention to safety.

Type

int=>Start jogging an axis

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
axisintThe axis to jog, with a value range of 1-6
dirintaxis motion direction

Sample code

NRC_JogMove(1,1);//Jog in the positive direction of axis 1