126 Rockwell Automation Publication MOTION-RM002H-EN-P-February 2018
example, 1.345) or Slave Counts to Master Counts (for example, 1:3). The MAG
instruction supports specification of the gear ratio in one of two different formats,
Real or Fractional, as determined by the Ratio Format input selection. The
direction of Slave Axis motion relative to the Master Axis is defined by a very
flexible Direction input parameter. The gearing direction may be explicitly set as
the Same or Opposite or set relative to the current gearing direction as Reverse or
Unchanged.
Tip:
The value for Ratio is sign sensitive. The Master Reference selection allows gearing input to be derived from either
the Actual or Command position of the Master Axis. When the instruction’s Clutch capability is activated the
gearing instruction commands the slave axis to accelerate or decelerate at a controlled rate before Locking on to
the master axis using the instructions Acceleration value much like the clutch of a car.
Available Languages
Ladder Diagram
Function Block
This instruction is not available in function block.
Structured Text
MAG(SlaveAxis,MasterAxis,MotionControl,Direction,Ratio,SlaveCounts,Maste
rCounts,MasterReference,RatioFormat,Clutch,AccelRate,AccelUnits);