Chapter 3 Motion Control Instructions Motion diagram: 3_ - When M2( Execute ) changes to True, the first MC_MoveVelocity controls the axis to reach the specified target velocity 500. When it reaches 500, M20( InVelocity ) changes to True. - If the M3( Execute ) changes to True, M20( InVelocity ) will change to False and M21( CommanAborted ) will change to True while the second MC_MoveVelocity is executed. - The second MC_MoveVelocity will decelerate the axis to the velocity 300. When 300 is reached, M30( InVelocity ) will change to True and remain in this status as long as the velocity is not changed. - When M2( Execute ) changes to False, M21( CommanAborted ) will change to False.
- If the first MC_MoveVelocity is started again by M2( Execute ) changes to True, the axis will abort the second MC_MoveVelocity and accelerate toward the velocity 500. - If the sencod MC_MoveVelocity M3( Execute ) changes to False and and set on again, the sencod instrution aborts the first MC_MoveVelocity. In this case, the axis decelerates again without reaching the target velocity 500 of the first MC_MoveVelocity. - If MC_MoveVelocity M3( Execute ) changes to False after reaching the target velocity. M30( InVelocity ), M31( Busy ) and M32( Active ) remain True. Supported Products − AH Motion Controller CPU: AHxxEMC-5A − AH series motion control modules:
AHxxEMC-5A 3-87 Velocity 500 300 Time MC MoveVelocity 1 _ _ M2(Execute) M20(InVelocity) M21(Busy) M22(Active) M23(CommandAborted) M24(Error) MC MoveVelocity 2 _ _ M3(Execute) M30(InVelocity) M31(Busy) M32(Active) M33(CommandAborted) M34(Error) MC MoveVelocity 2 _ _ M3(Execute) M30(InVelocity) M31(Busy) M32(Active) M33(CommandAborted) M34(Error) MC MoveVelocity 1 _ _ M2(Execute) M20(InVelocity) M21(Busy) M22(Active) M23(CommandAborted) M24(Error)