Jog group

Jog group moves a group continuously at the specified velocity. After you send a Jog command, the group will accelerate to the specified velocity and keeps moving at that speed, until you stop it.

Functions

JogGroup: moves a group at a specified velocity without a target or distance. The group keeps moving until it is stopped.

GetAGroupVelocity: displays the velocity of a group. For further details, see Get and set group values.

GetAGroupPosition: displays the end position of a group. For further details, see Get and set group values.

Stop a Jog move

You can use HaltGroup or StopGroup to stop a Jog move. For more information about how to use these functions, see Stop a group movement.

Code

In GroupMotion.cpp, add the following code:

Copy
JogGroup
VOID GroupJog(int Group)
{
    RtPrintf("Make a jog group move.\n\n");

    const int LENGTH = 3;   //The length of the Velocity array.
    double Velocity[LENGTH] = { 3000, 3600, 3200 };

    //Start a jog move.
    KsCommandStatus jogMove = JogGroup(Group, LENGTH, Velocity, MAXIMUM_ACCELERATION,
        MAXIMUM_DECELERATION, MAXIMUM_JERK, mcAxisCoordSystem);

    //Let the axis moves for a while.
    Sleep(5000);

    GetAGroupVelocity(Group);

    RtPrintf("End positions:\n\n");
    GetAGroupPosition(Group);
}

 

Output: