Rockwell Automation Publication MOTION-UM003K-EN-P - January 2019 317
Out of Box Configuration for PowerFlex Drives Appendix B
Example Motion Control Program
This figure is an example of Ladder Logix that homes, jogs, and moves an axis.
If Initialize_Pushbutton = on and the axis = off (My_Axis_X.ServoActionStatus = off) then
the MSO instruction turns on the axis.
If Home_Pushbutton = on and the axis hasn’t been homed (My_Axis_X.AxisHomedStatus = off) then
the MAH instruction homes the axis.
If Jog_Pushbutton = on and the axis = on (My_Axis_X.ServoActionStatus = on) then
the MAJ instruction jogs the axis forward at 8 units/s.
If Jog_Pushbutton = off then
the MAS instruction stops the axis at 100 units/s
2
.
Make sure that Change Decel is Yes. Otherwise, the axis decelerates at its maximum speed.
If Move_Command = on and the axis = on (My_Axis_X.ServoActionStatus = on) then
the MAM instruction moves the axis. The axis moves to the position of 10 units at 1 unit/s.