top of page
4.1. Jog movement
/**
* @brief Jog movement
* @param [in] refType 0-joint jog, 2-base coordinate jog, 4-tool coordinate jog, 8-workpiece coordinate jog
* @param [in] nb 1-joint 1 (or x-axis), 2-joint 2 (or y-axis), 3-joint 3 (or z-axis), 4-joint 4 (or rotation about x-axis), 5-joint 5 (or rotation about y-axis), 6-joint 6 (or rotation about z-axis)
* @param [in] dir 0-negative direction, 1-positive direction
* @param [in] vel Speed percentage, [0~100]
* @param [in] acc Acceleration percentage, [0~100]
* @param [in] max_dis Maximum angle per jog movement in [°] or distance in [mm]
* @return Error code
*/
int StartJOG(int refType, int nb, int dir, double vel, double acc, double max_dis);
4.2. Jog deceleration stop
/**
* @brief Jog deceleration stop
* @param [in] stopType 1-joint jog stop, 3-base coordinate jog stop, 5-tool coordinate jog stop, 9-workpiece coordinate jog stop
* @return Error code
*/
int StopJOG(int stopType);
4.3. Jog immediate stop
/**
* @brief Jog immediate stop
* @return Error code
*/
int ImmStopJOG();
4.4. Robot jog control code example
public static int TestJOG(Robot robot)
{
for (int i = 0; i < 6; i++)
{
robot.StartJOG(0, i + 1, 0, 20.0, 20.0, 30.0);
robot.Sleep(1000);
robot.ImmStopJOG();
robot.Sleep(1000);
}
for (int i = 0; i < 6; i++)
{
robot.StartJOG(2, i + 1, 0, 20.0, 20.0, 30.0);
robot.Sleep(1000);
robot.ImmStopJOG();
robot.Sleep(1000);
}
for (int i = 0; i < 6; i++)
{
robot.StartJOG(4, i + 1, 0, 20.0, 20.0, 30.0);
robot.Sleep(1000);
robot.StopJOG(5);
robot.Sleep(1000);
}
for (int i = 0;