208 Rockwell Automation Publication 5069-UM002A-EN-P - January 2019
Chapter 9 Develop Motion Applications
Example
In this example, a simple ladder diagram that homes, jogs, and moves an axis.
If Initialize_Pushbutton = on and the axis = off (My_Axis_X.ServoActionStatus = off), the MSO instruction turns on the axis.
If Home_Pushbutton = on and the axis hasn’t been homed (My_Axis_X.AxisHomedStatus = off), the MAH instruction homes the axis.
If Jog_Pushbutton = on and the axis = on (My_Axis_X.ServoActionStatus = on), the MAJ instruction jogs the axis forward at 8 units/second.
If Jog_Pushbutton = off, the MAS instruction stops the axis at 100 units/.second
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), the MAM instruction moves the axis. The axis moves to the position of
10 units at 1 unit/second.