Set the position of all axes in a group with MC_GroupSetPosition
MC_GroupSetPosition is used to set the current position of all axes in an axis group. The Position input is an array of positions to set the axes positions to.
-
The position array entries correspond to the order of the axis ID (1-10).
-
LS_Connect and MC_GroupEnable must be executed before this function block.
-
The examples in this topic can be found in the XMC_AxisGroup_FBs.zip downloadable from Example Applications.

Element Name | Element Type | Description |
---|---|---|
Execute | Input | Edge detected request to execute the function block. |
AxesGroup | Input/Output | Set the group to execute the function block on. Group number 1-16. This must be an UINT variable. |
Position | Input | Specify the position of each axis in the group. |
Relative | Input |
0: Position value is an absolute position. 1: Position value is a relative position. |
ExecutionMode | Input |
0: apply position values immediately. 1: apply position values after currently running command is completed. |
Done | Output | Indicates the completion of the function block execution. |
Busy | Output | Indicates the function block is in operation. |
Active | Output | Indicates the function block is active controlling the axes. |
CommandAborted | Output | Indicates the function block execution was aborted. |
Error | Output | Indicates whether an error occurs or not. |
ErrorID | Output | Error Identification number. |

Position Array sets current position for axes in the group.

Before MC_GroupSetPosition
After MC_GroupSetPosition
LM708