Chapter 3 Motion Control Instructions Motion diagram: Position Slave position at PhaseShift = 10000 Slave position before the phase shift 120000 90000 100000 60000 70000 25000 35000 50000 10000 Velocity Time 300 600 900 1200 Time CoveredPhaseShift 3_ 10000 -10000 Time MC_PhasingRelative M2(Execute) M20(done) M21(Busy) M23(CommandAborted) M22(Active) M24(Error) - The gear relationship between master axis and slave axis is established after M10 ( InGear ) of MC_GearIn is True. The velocity ratio and position ratio between master axis and slave axis are both 1:2. - Suppose that master axis moves at a constant speed of 300 and D100 ( PhaseShift ) value is 10,000.
When M1( Execute ) of MC_PhasingAbsolute changes to True, the velocity, acceleration and deceleration and phase shift set in the instruction will be superimposed to the master axis. - The execution of MC_PhasingAbsolute does not affect the operation of master axis but the operation of slave axis according to gear relationship. As the diagram shows above, when M20 ( Done ) shifts to True at master position 25,000, the slave position can be obtained as below: Actual slave position after the phase shift = (Current master position - previous master position + PhaseShift value )* ( RatioNumerator / RatioDenominator) + previous slave position = (25,000-10,000+10,000)*2+20,000 = 70,000.
- When D100 ( PhaseShift ) is changed to -10,000 and M1 ( Execute ) changes to True again, the instruction will be executed again. As the diagram shows above, when M20 (Done ) changes to True at master position 50,000, the slave position can be obtained as below: Actual slave position after the phase shift = (Current master position - previous master position + PhaseShift value)* ( RatioNumerator / RatioDenominator) + original slave position = (50,000-35,000-10,000)*2+90,000 = 100,000. 3-205 Slave position after the phase shift Master position