Basics of Collision Avoidance

All objects (CA Group and all axes) must be created, parameterized and linked (see "Configuration", "CA Group Parameterization").
This example uses the default values for all gap control parameters and 10 axes in the group. All axes are mounted on a closed rail (XTS) with a length of 3000 mm. The position of the axes (movers) is arbitrary, the default gap which is parameterized in the group is not observed:
Basics of Collision Avoidance 1:
1. All axes must be added to the group (see examples in MC_AddAxisToGroup).
The order of the axes for the collision avoidance is determined by their actual position on the rail.
If the positions of the axes are equal (e.g. for simulation axes), the order in that the axes are added to the group is essential. In this case, the axis that was added last is the first axis in the group.
The "IdentInGroup" has no relevance for the order used for collision avoidance.
2. Enable Group (see MC_GroupEnable).
The GroupState is now mcGroupStateStandby (see MC_GroupReadStatus or Cyclic Group Interface), the GroupAxesCount is 10 (see Cyclic Group Interface).
The position of the axes (movers) has not changed, the gap is still not observed.
3. Issue "MC_MoveAbsoluteCA" for all axes (movers) to the same position (2500 mm).
The first mover that is the mover with the largest absolute position, here mover 1, reaches the target position at 2500 mm. The other movers line up, each keeping the gap to its forerunner. The forerunner of the first mover is the last one (since the group parameter Rail Is Ring is set to TRUE).
Basics of Collision Avoidance 2: