Technology instructions
9.3 Motion control
9.3.5.2
MC_Power (Release/block axis) instruction
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 Enable input parameter has
retained the value TRUE during this process.
Table 9- 28
MC_Power instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
In the SCL example, "MC_Power_DB" is the name of the instance DB.
2
Table 9- 29
Parameters for the MC_Power instruction
Parameter and type
Axis
IN
Enable
IN
StopMode
IN
456
SCL
"MC_Power_DB"(
Axis:=_multi_fb_in_,
Enable:=_bool_in_,
StopMode:=_int_in_,
Status=>_bool_out_,
Busy=>_bool_out_,
Error=>_bool_out_,
ErrorID=>_word_out_,
ErrorInfo=>_word_out_);
Data type
Description
TO_Axis_1
Axis technology object
Bool
FALSE (default): All active tasks are aborted according to the
•
parameterized "StopMode" and the axis is stopped.
TRUE: Motion Control attempts to enable the axis.
•
Int
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
•
axis is disabled without deceleration. Pulse output is stopped
immediately.
2: Emergency stop with jerk control: If a request to disable the axis is
•
pending, the axis brakes at the configured emergency stop
deceleration. If the jerk control is activated, the configured jerk is
taken into account. The axis is disabled after reaching standstill.
Description
The MC_Power motion control instruction enables
or disables an axis. Before you can enable or
disable the axis, ensure the following conditions:
The technology object has been configured
•
correctly.
There is no pending enable-inhibiting error.
•
The execution of MC_Power cannot be aborted by
a motion control task. Disabling the axis (input
parameter Enable = FALSE) aborts all motion
control tasks for the associated technology object.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG