Description
The "MC_MoveAbsolute" Motion Control instruction starts an axis positioning motion to move it to an absolute position.
Requirements
-
The positioning axis technology object has been configured correctly.
-
The axis is enabled.
-
The axis is homed.
Override response
The MC_MoveAbsolute command can be aborted by the following Motion Control commands:
-
MC_Home command Mode = 3
-
MC_Halt command
-
MC_MoveAbsolute command
-
MC_MoveRelative command
-
MC_MoveVelocity command
-
MC_MoveJog command
-
MC_CommandTable command
The new MC_MoveAbsolute command aborts the following active Motion Control commands:
-
MC_Home command Mode = 3
-
MC_Halt command
-
MC_MoveAbsolute command
-
MC_MoveRelative command
-
MC_MoveVelocity command
-
MC_MoveJog command
-
MC_CommandTable command
Parameters
|
Parameter |
Declaration |
Data type |
Default value |
Description |
|
|---|---|---|---|---|---|
|
Axis |
INPUT |
TO_PositioningAxis |
- |
Axis technology object |
|
|
Execute |
INPUT |
BOOL |
FALSE |
Start of the command with a positive edge |
|
|
Position |
INPUT |
REAL |
0.0 |
Absolute target position Limit values: -1.0E12 ≤ Position ≤ 1.0E12 |
|
|
Velocity |
INPUT |
REAL |
10.0 |
Velocity of axis This velocity is not always reached on account of the configured acceleration and deceleration and the target position to be approached. Limit values: Start/stop velocity ≤ Velocity ≤ maximum velocity |
|
|
Direction |
INPUT |
INT |
1 |
Motion direction of the axis Is only evaluated with "modulo" enabled. "Technology object > Configuration > Extended parameters > Modulo > Enable Modulo" Parameter is ignored with PTO axes. |
|
|
0 |
The sign for the velocity ("Velocity" parameter) determines the motion direction. |
||||
|
1 |
Positive direction (Target position is approached in a positive direction) |
||||
|
2 |
Negative direction (Target position is approached in a negative direction) |
||||
|
3 |
Shortest distance |
||||
|
Done |
OUTPUT |
BOOL |
FALSE |
TRUE |
Absolute target position reached |
|
Busy |
OUTPUT |
BOOL |
FALSE |
TRUE |
The command is being executed |
|
CommandAborted |
OUTPUT |
BOOL |
FALSE |
TRUE |
During execution, the command was aborted by another command. |
|
Error |
OUTPUT |
BOOL |
FALSE |
TRUE |
An error occurred during execution of the command. The cause of the error can be found in parameters "ErrorID" and "ErrorInfo". |
|
ErrorID |
OUTPUT |
WORD |
16#0000 |
Error ID for parameter "Error" |
|
|
ErrorInfo |
OUTPUT |
WORD |
16#0000 |
Error info ID for parameter "ErrorID" |
|
See also
MC_Power: Enable, disable axis as of V6 (S7-1200)
MC_Reset: Acknowledge fault, restart technology object as of V6 (S7-1200)
MC_Home: Home axes, set reference point as of V6 (S7-1200)
MC_Halt: Stop axis as of V6 (S7-1200)
MC_MoveRelative: Relative positioning of axis as of V6 (S7-1200)
MC_MoveVelocity: Move axis at set velocity as of V6 (S7-1200)
MC_MoveJog: Move axis in jog mode as of V6 (S7-1200)
MC_CommandTable: Run axis commands as motion sequence as of V6 (S7-1200)
MC_ChangeDynamic: Change dynamic settings of axis as of V6 (S7-1200)
MC_ReadParam: Continuously read motion data of a positioning axis as of V6 (S7-1200)
MC_WriteParam: Write tag of positioning axis as of V6 (S7-1200)