Relative direct positioning
With relative positioning, the specified target position in the scCtrlCoordinatedMotion.alrSetPosDist[1..12] input corresponds to the distance to be moved. The drive therefore moves exactly the specified distance from the current actual position. The target position is approached via point-to-point motion.
Prerequisite
-
The axis group and the axes are enabled (xReadyForMotion = TRUE).
-
The axes are referenced (xIsHomed = TRUE).
Execution
A rising edge (FALSEรคTRUE) at the scCtrlCoordinatedMotion.xMoveDirRelExecute input starts a move to the target position with the scCtrlCoordinatedMotion.alrSetPosDist[1..12] path corner in the eCoordSystem coordinate system according to the parameters for the motion profile (see table below). The technology module changes to the MOVELINREL state.
With the setting of the input eCoordSystem the selection of coordinate system is defined. Depending on the selection of the coordinate system, the index in the array for setting the relative target position scCtrlCoordinatedMotion.alrSetPosDist[1..12] is assigned differently.
|
eCoordSystem |
Index |
|
|---|---|---|
|
WCS (World Coordinate System) MCS (Machine Coordinate System) PCS_1 ... PCS_16 (Product Coordinate System (1 ... 16))
|
1 x-axis 2 y-axis 3 z-axis 4 a-axis 5 b axis 6 c axis |
7 Aux1 8 Aux2 9 Aux3 10 Aux4 11 Aux5 12 Aux6 |
|
ACS (Axes Coordinate System) |
1 A1 axis 2 A2 axis 3 A3 axis 4 A4 axis 5 A5 axis 6 A6 axis |
7 Aux1 8 Aux2 9 Aux3 10 Aux4 11 Aux5 12 Aux6 |
To reach the target position, the axis is guided to standstill via the lrPathDec parameter. The axis group comes to a standstill exactly in the target position.
After reaching the target position, the system switches back to the STANDBY state (scCtrlCoordinatedMotion.xMoveDirRelExecute = FALSE).
The absolute target position cannot be changed during travel.
A positioning can be interrupted via xGroupAbort, xGroupHalt or xQSPApplication. Via xFinishPositioning the positioning can be continued and finished again, if the status xPathHold = TRUE is set.
Parameters to be set in scPar
-
lrPathVel, initial value: 3600 units/s
-
lrPathAcc, initial value: 36000 units/s2
-
lrPathDec, initial value: 36000 units/s2
-
lrPathJerk, initial value: 0 units/s3
For the calculation of the trajectory, the limitations of the Cartesian axes (x, y, z, a, b and c) AXIS_REF are also taken into account.