Description
The Motion Control instruction "MC_Power" enables or disables an axis.
Requirements
-
The positioning axis technology object has been configured correctly.
-
There is no pending enable-inhibiting error.
Override response
Execution of "MC_Power" cannot be aborted by a Motion Control command.
Disabling the axis (input parameter "Enable" = FALSE) aborts all Motion Control commands for the associated technology object in accordance with the selected "StopMode".
Parameters
|
Parameter |
Declaration |
Data type |
Default value |
Description |
|
|---|---|---|---|---|---|
|
Axis |
INPUT |
TO_Axis |
- |
Axis technology object |
|
|
Enable |
INPUT |
BOOL |
FALSE |
TRUE |
The axis is enabled. |
|
FALSE |
All current jobs are interrupted in accordance with the "StopMode" configured. The axis is stopped and disabled. |
||||
|
StopMode |
INPUT |
INT |
0 |
0 |
Emergency stop If a request to disable the axis is pending, the axis brakes at the configured emergency deceleration. The axis is disabled after reaching standstill. |
|
1 |
Immediate stop If a request to disable the axis is pending, this setpoint zero is output and the axis is disabled. The axis is braked depending on the configuration in the drive, and is brought to a standstill. With drive connection via PTO (Pulse Train Output):
|
||||
|
2 |
Emergency stop with jerk control If a request to disable the axis is pending, the axis brakes at the configured emergency deceleration. If the jerk control is activated, the configured jerk is taken into account. The axis is disabled after reaching standstill. |
||||
|
Status |
OUTPUT |
BOOL |
FALSE |
Status of axis enable |
|
|
FALSE |
The axis is disabled. The axis does not execute Motion Control commands and does not accept any new commands (exception: MC_Reset command). For drive connection via PTO (Pulse Train Output): The axis is not homed. Upon disabling, the status does not change to FALSE until the axis reaches a standstill. |
||||
|
TRUE |
The axis is enabled. The axis is ready to execute Motion Control commands. Upon axis enabling, the status does not change to TRUE until the signal "Drive ready" is pending. If the "Drive ready" drive interface was not configured in the axis configuration, the status changes to TRUE immediately. |
||||
|
Busy |
OUTPUT |
BOOL |
FALSE |
TRUE |
"MC_Power" is active. |
|
Error |
OUTPUT |
BOOL |
FALSE |
TRUE |
An error occurred in Motion Control instruction "MC_Power" or in the associated technology object. 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" |
|
|
Note If the axis is switched off due to an error, it will be enabled again automatically after the error has been eliminated and acknowledged. This requires that the input parameter "Enable" has retained the value TRUE during this process. |
Enabling an axis with configured drive interface
To enable the axis, follow these steps:
-
Check the requirements indicated above.
-
Initialize input parameter "StopMode" with the desired value. Set the input parameter "Enable" to TRUE.
The enable output for "Drive enabled" changes to TRUE to enable the power to the drive. The CPU waits for the "Drive ready" signal of the drive.
When the "Drive ready" signal is available at the configured ready input of the CPU, the axis is enabled. The output parameter "Status" and the tag of the technology object <Axis name>.StatusBits.Enable indicate the value TRUE.
Enabling an axis without configured drive interface
To enable the axis, follow these steps:
-
Check the requirements indicated above.
-
Initialize input parameter "StopMode" with the desired value. Set the input parameter "Enable" to TRUE. The axis is enabled. The output parameter "Status" and the tag of the technology object <Axis name>.StatusBits.Enable indicate the value TRUE.
Disabling an axis
To disable an axis, you can follow the steps described below:
-
Bring the axis to a standstill.
You can identify when the axis is at a standstill in the tag of the technology object <Axis name>.StatusBits.StandStill.
-
Set input parameter "Enable" to FALSE after standstill is reached.
-
If output parameters "Busy" and "Status" and tag of technology object <Axis name>.StatusBits.Enable indicate the value FALSE, disabling of the axis is complete.
See also
MC_Power: Function chart V4...5 (S7-1200)
MC_Reset: Acknowledge fault, restart technology object V4...5 (S7-1200)
MC_Home: Home axis, set home position V4...5 (S7-1200)
MC_Halt: Stop axis V4...5 (S7-1200)
MC_MoveAbsolute: Absolute positioning of axis V4...5 (S7-1200)
MC_MoveRelative: Relative positioning of axis V4...5 (S7-1200)
MC_MoveVelocity: Move axis at set velocity V4...5 (S7-1200)
MC_MoveJog: Move axis in jog mode V4...5 (S7-1200)
MC_ChangeDynamic: Change dynamic settings of axis V4...5 (S7-1200)
MC_CommandTable: Run axis commands as motion sequence V4...5 (S7-1200)
MC_ReadParam: Continuously read motion data of a positioning axis V4...5 (S7-1200)
MC_WriteParam: Write tag of positioning axis V4...5 (S7-1200)
S7-1200 Motion Control V1...3 (S7-1200)