Power up the motion axis – Rockwell Automation 2080-LC50 Getting Started with Motion Control Using a Simulated Axis User Manual

Page 64

Advertising
background image

54

Publication 2080-QS001A-EN-E - January 2013

Chapter 5 Execute Your Motion Control Function Blocks

Power Up the Motion Axis

The MC_Power function block controls the power stage of the axis, whether ON or OFF. The MC_Reset function block
transitions the axis state from ErrorStop to StandStill by resetting all internal axis-related errors. The outputs of the
function block instances are not changed.

The Axis_PowerUp variable has an initial value of TRUE so the axis powers up as soon as the controller enters RUN mode.
When the axis is powered up, the DriveEnable output is TRUE.

The SWReset variable is set to initial value of False so that the MC_Reset function block does not execute until
thePanelView Component sets it to True (or SWReset is set to True in Debug mode in Connected Components
Workbench using the Variable Monitor). Setting the SWReset variable to True clears any errors.

To use this sample project with the PanelView Component, you can download the PanelView Component program code
for the project from the following link:

http://www.rockwellautomation.com/go/scmicro800

Advertising
This manual is related to the following products: