Using the Jump Task

You can add this instruction to your task. You can also create this instruction in the Import Robot Programs command when importing Motoman robot programs and this can translate into Motoman robot programs in the Create Robot Programs command.


Before you begin: In the Resource section, have a robot that has a few tasks.
Note: Only the Motoman translator can handle the Jump task. Jump task calls can be cyclic, they can jump to a task that has jumped to this task. A Jump task instruction can jump to another task inside the same behavior (same robot) you cannot jump to a service task of another resource.

Previously Motoman JUMP task instructions were imported as a run instruction. Now they are imported as jump task instructions.

See Also
About the Sequencing Editor
  1. Right-click TaskA and select properties to verify Spawnable. Then you can call the task from a jump instruction.


    The Jump task instruction can be defined to jump to any Spawnable robot task except the current one. A Jump task instruction can jump to another task inside the same behavior (same robot) you cannot jump to a service task of another resource.

    Jump task: an instruction that starts a new robot task, and when that task finishes the execution ends. With a normal run instruction, control returns to the calling task and execution continue with the instruction following the run.

    Cyclic calls: Jump instructions can be cyclic. TaskA jumps to TaskB. Then the TaskB can have a jump instruction to start TaskA again.

    Call stack: The active stack of tasks tracking the tasks that have been run and where they have been run from.

    For example, if you have these 3 tasks:



    Running TaskA, when RobotMotion.3 is executing, the call stack contains:



    Another example is that a task in the current call stack cannot be the target of a Jump task instruction. If TaskA runs TaskB, then TaskB cannot jump to TaskA (or to itself).

    But if TaskA jumps to TaskB this is allowed. This is because the call stack is cleared when the Jump executes.

  2. In the Sequencing tab, double-click TaskB.


    The Sequential Editor opens.

  3. Select the RobotMotion.2.
  4. In the Sequential Panel, select Jump task .
    The Jump dialog box appears. The jump:TaskA appears.

  5. If required, type in a Display Name, GotoLabel, and select the Task from the Jump to Task section and OK.
    The Jump, jump:TaskA then appears in the Sequential Editor.

Result: