AH Motion Controller – Motion Control Instructions Manual Motion diagram: _3 - When M2( Execute ) changes to True, MC_MoveRelative drives the axis to the target position. A relative distance of 5000 is added to current position 2000, and the commanded position becomes 7000(2000+5000). When M3( Execute ) changes to True at the position 4,500, the MC_MoveRelative instruction is aborted and M23( CommandAborted ) changes to True. - Meanwhile, the MC_MoveAdditive instruction is executed and adds a relative distance of 6500 to the previous commanded position 7000, and results the new commanded position 13500. - When the axis reaches 13,500, M30( Done ) changes to True.
- When M3( Execute ) changes to False, M30( Done ) changes to False. 3-68 Velocity 500 300 Time Position 13500 4500 2000 Time MC MoveRelative _ M2(Execute) M20(Done) M21(Busy) M22(Active) M23(CommandAborted) M24(Error) MC MoveAdditive _ M3(Execute) M30(Done) M31(Busy) M32(Active) M33(CommandAborted) M34(Error) MC MoveAdditive _ M3(Execute) M30(Done) M31(Busy) M32(Active) M33(CommandAborted) M34(Error) MC MoveRelative _ M2(Execute) M20(Done) M21(Busy) M22(Active) M23(CommandAborted) M24(Error)