Use of the Direction input with MC_MoveDirect movements
In the case of movements in the axis space (MC_MoveDirect), the planning and interpolation of the movement is carried out on the drive axes of the ACS. For ACS axes parameterised as Modulo (usually A1 ... A6), from library version 3.13.1.x onwards it is possible to influence the direction of the interpolation by the FB input and "Direction".
The following sequence diagram shows how the target position for the ACS axes is calculated as a function of the FB type (absolute position or relative distance) and the coordinate system parameterised at the FB.
The following applies:
- Movements exceeding one revolution of an ACS axis are only possible if the target position (or distance) is specified in the ACS coordinate system.
- Movements exceeding one revolution of an ACS axis are only possible with "Limited" axes.
- A target orientation programmed in the WCS is not necessarily obtained with an MC_MoveDirect movement. (See examples further below)
- The same applies to the programming in the MCS and PCS.
Sample movements at the Scara_4dof axes group
The starting position is as follows for all examples (Cartesian position values rounded):
|
A1 |
A2 |
A3 |
A4 |
X |
Y |
Z |
C |
|---|---|---|---|---|---|---|---|
|
10° |
15° |
0 mm |
30° |
362.45 mm |
103.33 mm |
0 mm |
-55° |
Example 1: MC_MoveDirectAbsolute , ACS axes "Limited", target position specified in the ACS
The following target position is specified in the ACS:
|
A1 |
A2 |
A3 |
A4 |
|---|---|---|---|
|
39° |
-310° |
0 mm |
80° |
A target position specified in the ACS in the case of the "Limited" axis type is always approached in an absolute fashion, if necessary over several drive axis revolutions.
Example 2: MC_MoveDirectAbsolute , ACS axes "Modulo", target position specified in the ACS
The following target position identical with example 1 is specified in the ACS, the direction of movement being preselected with mcShortestWay for all axes:
|
A1 |
A2 |
A3 |
A4 |
|---|---|---|---|
|
39° |
-310° |
0 mm |
80° |
The target positions specified in the ACS are calculated in the "Modulo" and are then approached by the shortest path.
Example 3: MC_MoveDirectAbsolute , ACS axes "Limited", target position specified in the WCS
The conversion from a Cartesian coordinate system (here WCS) to the axis space (ACS) is not unambiguous:
- Ambiguity of the kinematics, to be controlled by the aiTargetConfiguration FB input at the corresponding blocks
- For all rotary axes, an optional number of solutions is provided, which are offset by 360° in each case.
The following applies to the case of "Limited" axes: for the conversion of the target position to the ACS, for each ACS axis always the solution is selected within which, starting from the starting position, not one of the positions {..., -540°, -180°, 180°, 540°, ...} has to be overtravelled.
The following target positions are specified in the WCS:
|
|
X |
Y |
Z |
A |
B |
C |
|---|---|---|---|---|---|---|
|
Position 1 |
300 mm |
50 mm |
0 mm |
180° |
0° |
45° |
|
Position 2 |
300 mm |
50 mm |
0 mm |
180° |
0° |
405° |
On the basis of the starting position, the identical target position in the ACS is calculated for both positions. For position 2 this means that the programmed position of the C axis is not reached, since it would have to overtravel the position +180° in this case and would extend the positioning process to more than one full revolution. Both is not possible when programming MC_MoveDirect movements in a Cartesian coordinate system.
Example 4: MC_MoveDirectAbsolute , ACS axes "Modulo", target position specified in the WCS
The following applies to "Modulo" axes: except for the different robot configurations, there is no ambiguity when converting the specified Cartesian position to the axis space.
The following target position identical to example 3 is specified in the WCS:
|
|
X |
Y |
Z |
A |
B |
C |
|---|---|---|---|---|---|---|
|
Position 1 |
300 mm |
50 mm |
0 mm |
180° |
0° |
45° |
In the modulo cycle, this position corresponds to a target position of the ACS axes (rounded):
|
A2 |
A3 |
A4 |
||
|---|---|---|---|---|
|
15° |
0 mm |
30° |
||
|
75.65° |
0 mm |
258.43° |
The following relative distances of the ACS axes are traversed as a function of the Direction FB input:
|
|
A1 |
A2 |
A3 |
A4 |
|---|---|---|---|---|
|
Distance with mcShortestWay |
-29.08° |
+60.65° |
0 mm |
-131.57° |
|
Distance with mcPositiveDirection |
+330.92° |
+60.65° |
0 mm |
+228.43° |
|
Distance with mcNegativeDirection |
-29.08° |
-299.35° |
0 mm |
-131.57° |
The mcShortestWay selection for all ACS axes results in the following movement:
The mcPositiveDirection selection for all ACS axes results in the following movement:
The mcNegativeDirection selection for all ACS axes results in the following movement:
The mcShortestWay selection for all ACS axes results in the following movement: