MC_Power
Motion control instructions Chapter 17
MC_Power controls the power stage (ON or OFF).
MC_Power operation
• After axis power On completes, the axis Homed status is reset to 0 (not homed).
• The Enable_Positive input and the Enable_Negative input of the
MC_Power function block are both level triggered; they are checked when the Enable input changes from OFF to ON. The on-the-fly change for the
Enable_Positive input and the Enable_Negative input without Enable input toggling is not checked.
• If power fails during operation (when Servo ready has been detected) the axis state goes to ErrorStop.
• If the MC_Power function block with Enable set to True is called while the axis state is Disabled, the axis state goes to StandStill if there is not an error, or the axis state goes to ErrorStop if there is an error.
• Only one MC_Power function block should be issued per axis. Using a different MC_ Power function block to control the same axis simultaneously will be rejected by the Motion Engine.
• When there is a Power On/Off state switch for an axis, the absolute axis position is not reset.
• If the MC_Power function block with Enable set to False is called, the axis state goes to Disabled for every state including ErrorStop. The MC_Power function block can do the following:
• Power on the axis if Enable is set to True; Power off the axis if Enable is set to False.
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 473
Chapter 17 Motion control instructions
Parameter
EN
AxisIn
Enable
Enable_Positive
Enable_Negative
ENO
Axis
Status
Busy
Active
Error
ErrorID
Input
Input
Input
Output
Output
Output
Output
Output
Tip:
If you import a project created in CCW 7 into CCW 8 the Mc_Power new input parameter __DTI_AxisIn shows. If a Build error occurs, reselect the instruction and rebuild.
Arguments
Parameter type
Input
Input
Output
Output
Data type Description
BOOL
BOOL
BOOL
UINT
BOOL
AXIS_REF
FB_AXIS_REF
BOOL
BOOL
BOOL
BOOL
AXIS_REF
BOOL
Function block enable.
When EN = TRUE, execute current MC_Power computation.
When EN = FALSE, there is no computation.
Applies only to LD programs.
See also AXIS_REF data type on page 433 .
See also FB_AXIS_REF data type on page 434 .
When TRUE, power is ON.
When TRUE, motion direction is positive only.
When TRUE, motion direction is negative only.
Enable out.
Applies only to LD programs.
Axis output is read-only in LD programs.
See also AXIS_REF data type on page 442 .
State of the power stage:
• When TRUE, drive power on is done
When TRUE, the function block is not finished.
When TRUE, indicates that the function block has control on the axis.
When TRUE, an error is detected.
Error identification.
See also Motion control function block error IDs on page 440 .
474 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
MC_Power function block language examples
Function Block Diagram (FBD)
Motion control instructions Chapter 17
Ladder Diagram (LD)
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 475
Chapter 17 Motion control instructions
Structured Text (ST)
Results
476 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015