Robot Synchronization and Coordination Programming

You can synchronize and coordinate between different devices in a cell with multiple robots or devices.

This page discusses:

See Also
Using Custom Simulation Options
About Robot Synchronization and Coordination

About Robot Synchronization and Coordination

Robots can be run independently or in coordination/synchronization. There are two types of synchronization:

  • Task Synchronization - Synchronized Task Execution for two or more mechanisms
  • Motion Synchronization - Synchronized Motion Time for two or more mechanisms
There are several types of motion coordination/synchronization:
  • Independent - defines a motion relationship between robots or motion groups of a Robot running with no motion cooperation (synchronization and coordination) among them.
  • Synchronized - defines a motion cooperation relationship between robots or motion groups of a robot that is start and stop (and accelerate/decelerate) synchronized.
    Note: Motion time synchronization - Start and stop is the same for all synchronized motion instructions with the same ID.
  • Coordinated - defines a motion cooperation relationship between robots or motion groups by planning and executing motions relative to a moving coordinate frame moved by the leader.
  • Sync-Coordinated - defines a motion cooperation relationship between robots or motion groups of a robot that is both Synchronized and Coordinated.
There are several types of synchronization methods:
  • SyncTask – Allows for synchronization of multiple Tasks in a single control device.
  • SyncMove – Allows for motion synchronization / coordination of moves across multiple tasks (each controlling either a single motion group or multiple motion groups by means of an MCRS operation) in a single control device.
  • MCRS – Allows for motion synchronization / coordination of motion groups within a single task in a single control device.

Sync Task

From the Toolbox section in Teach, you can create a Sync Task. You cannot use Sync Task for the following types of sequence instructions: Move Along Activities, Drill-Rivet Sequences, and Surface Sequences.

You need to specify the following to create a Sync Task:

  • Display Name - name of the instruction
  • Lineup – contains all the resources that need to synchronize at this instruction
  • Sync ID – a string that you use to match sync task instructions across tasks
  • Time out (in secs) – amount of time to wait for other actors to reach the synchronization point
  • Waited on – number of devices to wait on to reach the same synchronization point before continuing the program

Simulation of Sync Task instructions:

During simulation, a Sync Task instruction waits for other robots or devices’ matching Sync Task instructions in their own tasks to be reached. Matching Sync Task instructions must all have the same Lineup and Sync ID. The wait time is determined by taking into account both the Time Out and the Waited On specifications set on the Sync Task instruction. Simulation of the Sync Task instruction completes when either the Time Out or the Waited On condition is satisfied. By default, Time Out and Waited On is blank, which causes the Sync Task instruction simulation to wait until all other members of the Lineup have reached their matching Sync Task instructions in their tasks.

Time Out for Infinite Wait
Time Out=blank or less than 0 means an infinite wait during simulation. This is assuming that the Waited On condition is set as such too.
Time Out for Finite Wait

Time Out=greater than or equal to zero means waiting for that amount of time during simulation before moving onto the instruction that follows that Sync Task instruction. This is assuming that the Waited On condition is set as such too. Time Out=0 means simulation immediately continues with the next instruction in the task without waiting for other devices to reach their matching Sync Task instructions. This is while signaling matching Sync Task instructions in the tasks’ of other members of the lineup that this robot/device has reached its matching Sync Task instruction.

Waited On

Waited On represents how many robots/devices in the Lineup (including the robot/device owning this Sync Task instruction) need to reach their matching Sync Task instructions during simulation of their tasks. This is before the Sync Task instruction’s simulation ends and simulation continues with the next instruction in the task. This assumes that the Time Out condition is set so as not to impact this decision.

Time Out and Waited On examples:

  • Time Out=<blank> and Waited On=<blank>: Sync Task instruction waits until other members of the Lineup have reached their matching Sync Task instruction.
  • Time Out=0 and Waited On=<blank>: Sync Task instruction does not wait and simulation continues with the next instruction in the task.
  • Time Out=2.5 and Waited On=<blank>: Sync Task instruction waits up to 2.5s. The simulation continues with the next instruction in the task until after a 2.5s wait or when other members of the Lineup reach their matching Sync Task instructions.
  • Time Out=<blank> and Waited On=2: Sync Task instruction waits until (2-1=) 1 other member of the Lineup reaches their matching Sync Task instructions.
  • Time Out=1.2 and Waited On=3: Sync Task instruction waits 1.2s or until (3-1=) 2 other members of the Lineup reach their matching Sync Task instructions.

Sync Move

Sync Move only supports the following move operation types: Robot Motions, Arc Operations, and Surface Operations. However, this is not available for the following types of sequence instructions: Move Along Activities, Drill-Rivet Sequences, and Surface Sequences.

In teach, you can Edit Sync Move for motion instructions.

You need to specify the following attributes:

  • Lineup – the Lineup contains all the resources that need to synchronize at this instruction
  • Sync ID – A string you use to match sync task instructions across tasks
  • Synchronization mode – Independent, Coordinated, Synchronized, Sync-Coordinated

Synchronized moves must have one to one correspondence in task motion instructions. This is identified by having the same Lineup and Sync ID. All robots and devices, part of the synchronized motion, must be directly under the same cell.

Simulation of SyncMove-enabled Instructions:
During simulation, a robot or device move can be independent, synchronized, coordinated, or both synchronized and coordinated. This is designated by the Synchronization Mode set on the move.
Simulation Behavior in Independent Mode

Independent moves are those that do not depend on the moves of other robots/devices and the moves are planned in the fixed world coordinate frame of the cell.

Simulation Behavior in Synchronized Mode

Robot/device Sync Moves that have Synchronization Mode=Synchronized or SyncCoordinated (that is, they are synchronized moves) will start and end their moves at the same time. This means robots/devices participating in such synchronized Sync Moves will wait for other participants to reach their corresponding Sync Moves in their own tasks so that all matching Sync Moves start their moves at the same time during simulation. Matching Sync Moves across multiple tasks must have the same Lineup and Sync ID. You can designate an MCRS operation in an MCRS task as matching a Sync Move in a non-MCRS task. You set its Sync Mode=Synchronized (or SyncCoordinated), Lineup. and Sync ID of all of its component moves to that set on the matching Sync Move in the non-MCRS task.

Simulation Behavior in Coordinated Mode

Robot/device Sync Moves that have Synchronization Mode=Coordinated (they are coordinated moves) have their moves planned in the (typically moving) coordinate frame of the part their target tag is attached to. Since there is no need to match Sync Moves across tasks in pure coordinated moves, no Lineup or Sync ID should be specified for such pure coordinated moves. In coordinated moves, the programmed speed and robot trajectory are relative to the moving part their target tag is attached to. Hence if Motion Type=Linear is set on such moves, the robot carries out a linear TCP trajectory when viewed from the moving part their target tag is attached to.

Simulation Behavior in Sync-Coordinated Mode

Robot/device Sync Moves that have Synchronization Mode=SyncCoordinated exhibits both synchronized and coordinated behavior (as described above) during simulation.

Debugging the Simulation

From the Simulation Options panel, to debug the simulation of sync tasks / sync moves, enable Sync Move / Sync Task Debug.

If you enable this, the information about each SyncTask and SyncMove that is simulated is logged in each device's simulation message window. The logged information includes:

  • When simulation reached the SyncTask/Move instruction and which other Lineup partners are waited on
  • When the SyncTask wait is done and simulation continues


Sync Task and Sync Move Special Cases

When simulating a subset of robots/devices that make up a Lineup you use in a Sync Task/Sync Move, only those Lineup member robots/devices you simulate will be considered in Sync Task/Sync Move simulation. Sync Task/Sync Move simulation does not get stuck if some robots/devices of the Lineup are not being simulated.

If there are no other matching Sync Tasks/Sync Moves with the same Lineup and Sync ID and all robots/devices of the Lineup are being simulated, the simulation gets stuck at that Sync Task/Sync Move. A message displays in the simulation output message window, describing the simulation getting stuck.

Simulation Behavior When Devices Are RRS Connected

SyncMove
When you connect the devices to an RRS-I RCS or RRS-II VRC module, the execution of the move is delegated to the RCS or VRC module. It is impossible to achieve task synchronization before starting the execution of a SyncMove and motion synchronization during SyncMove execution. This is only possible when you connect all devices in the SyncMove’s Lineup to the same RCS/VRC module and that module knows to emulate these moves internally as SyncMoves. Based on this, the following table describes what simulation action is taken depending on the presence of non-RRS, RRS-I, and RRS-II connected devices in the Lineup of a SyncMove operation.
Non-RRS Devices RRS-I Devices RRS-II Devices Simulation Result
Yes Yes No Simulation aborted and error message displayed
Yes No Yes Simulation aborted and error message displayed
Yes Yes Yes Simulation aborted and error message displayed
No Yes No Simulation happens but as a regular (nonsync) move [*]
No No Yes Simulation happens but as a regular (nonsync) move [*]
No Yes Yes Simulation aborted and error message displayed
[*] By doing this, the RRS-I RCS or RRS-II VRC module emulates the move as a SyncMove if it can.

SyncTask
If the SyncTask instruction’s Lineup includes RRS-II (or RRS-II like) VRC connected devices, the simulated task must not contain any SyncTask instruction. If it does, the simulation will get stuck on the SyncTask instruction if you program it to wait for other devices. Simulation is OK if the Lineup of such SyncTask instructions includes only non-RRS and RRS-I RCS connected devices.