MC_MoveSuperImposed
Element Name | Element Type | Description |
---|---|---|
Execute | Input | Edge detected request to execute the function block. |
Axis | Input/Output | Axis reference variable. This can not be a constant. |
ContinuousUpdate | Input | Specify the update setting of the input value. This is explained in section 6.1.5 of the XMC user manual. |
Distance | Input | Specify the target distance. |
VelocityDiff | Input | Specify the added velocity. |
Acceleration | Input | Specify the added acceleration. |
Deceleration | Input | Specify the added deceleration. |
Jerk | Input | Specify the added change in rate of acceleration/deceleration. |
Done | Output | Indicates the specified distance was reached. |
Busy | Output | Indicates the function block is currently being executed. |
Active | Output | Indicates the function block is controlling the axis. |
CommandAborted | Output | Indicates the function block was aborted. |
Error | Output | Indicates whether an error occurs or not. |
ErrorID | Output | Error Identification number. |
CoveredDistance | Output | Indicates the distance moved with MC_MoveSuperImposed function block. |

MC_MoveRelative is executed before MC_MoveSuperImposed

//Set axis reference
Axis1 := 1;
IF (_AX01_RDY) AND (_AX01_SV_ON) THEN
//Example MC_MoveSuperImposed fb
INST_MOVESUPERIMPOSED(Execute:=Execute_SuperImposed, Axis:=Axis1,
ContinuousUpdate:=0, Distance:=INST_MOVESUPERIMPOSED.Distance,
VelocityDiff:=INST_MOVESUPERIMPOSED.VelocityDiff,
Acceleration:=INST_MOVESUPERIMPOSED.Acceleration,
Deceleration:=INST_MOVESUPERIMPOSED.Deceleration,
Jerk:=INST_MOVESUPERIMPOSED.Jerk,
ErrorID=>INST_MOVESUPERIMPOSED.ErrorID,
CoveredDistance=>INST_MOVESUPERIMPOSED.CoveredDistance);
END_IF;
LM522-1