MC_MoveAbsolute
Absolute positioning is carried out with the function block MC_MoveAbsolute.
VAR_INPUT
VAR_INPUT
Execute : BOOL;
Position : LREAL;
Velocity : LREAL;
Acceleration : LREAL;
Deceleration : LREAL;
Jerk : LREAL;
END_VAR
Execute : The command is executed with rising edge.
Position : Absolute target position to be used for positioning.
Velocity : Maximum travel velocity (>0).
Acceleration : Acceleration (≥0). If the value is 0, the standard acceleration from the axis configuration in the System Manager is used.
Deceleration : Deceleration (≥0). If the value is 0, the standard deceleration from the axis configuration in the System Manager is used.
Jerk : Jerk (≥0). If the value is 0, the standard jerk from the axis configuration in the System Manager is used.
VAR_OUTPUT
VAR_OUTPUT
Done : BOOL;
CommandAborted : BOOL;
Error : BOOL;
ErrorID : UDINT;
END_VAR
Done : Becomes TRUE once the target position is reached. More Information…
CommandAborted : Becomes TRUE, if the command could not be fully executed. The reason may be an error, a stop, or a superimposed travel command.
Error: Becomes TRUE, as soon as an error occurs.
ErrorID : Supplies the error number when the Error output is set.
VAR_IN_OUT
VAR_IN_OUT
Axis : NCTOPLC_AXLESTRUCT;
END_VAR
Axis : Axis structure.
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
TwinCAT v2.8 | PC (i386) | TcMC.Lib |