SetMoveMode#
As discussed in Section 1.4, the timeline of a position-mode robot movement
command (e.g., MoveLin, MoveJoints, and MovePose) can
be determined by specifying either the desired velocities or the desired duration.
The choice between these two “submodes” is made using the motion-queue command
SetMoveMode.
The command SetMoveDurationCfg specifies what happens when a move command
cannot meet the desired duration set by the SetMoveDuration command, in
time-based move mode.
Syntax#
SetMoveMode(m)
Arguments#
m: submode, where
0 selects the velocity-based submode, meaning the commands
SetJointVel,SetCartLinVel, andSetCartAngVelaffect all subsequent position-mode movement commands.1 selects the time-based submode, meaning the command
SetMoveDurationaffects all subsequent position-mode movement commands, exceptMoveJump.
Default#
By default, m = 0.
Usage restrictions#
This command is added to the robot’s motion queue and can only be executed when the robot is ready for motion, not in an error state and when no safety signal conditions are present. Otherwise, the robot will report one of the following:
[1005][The robot is not activated.]
[1006][The robot is not homed.]
[1011][The robot is already in error.]
Cyclic protocols#
In cyclic protocols, the SetMoveMode command is represented by
MotionCommandID 49. See Section 3.2 for more details.