Chapter 12 Troubleshooting
1
and BufferMode. The master axis can be a real axis, virtual axis or encoder axis. The salve axis can
be a real axis or virtual axis.
2. In the instruction execution, the slave axis need be enabled and the master axis can be enabled or
disabled.
3. If the MC_GearIn instruction is executed when the e-gear relationship between two axes has not
been built yet, the velocity of the slave axis will reach the target velocity according to the values of
RatioNumerator, RatioDenomenator, Acceleration, Deceleration and Jerk specified by the
instruction.
After the e-gear relationship between two axes has been built (when InGear of the instruction
changes to TRUE), the relationship among the velocity of the slave axis, gear ratio numerator, gear
ratio denominator and the velocity of the master axis is shown as below.
4. E-gear ratio
If the e-gear ratio is a positive number, the motion directions of the slave axis and master axis are
same.
If the e-gear ratio is a negative number, the motion directions of the slave axis and master axis are
opposite.
Programming Example
Below is the example of execution of MC_GearIn instructions.
1. The variable table and program
GearIn1_Bsy BOOL
Accelera tion (or Deceleration)o f Slave axis Acce lerati on (or Deceleration) of M aster axis=
x
RatioNumerator
RatioDenominator
Target velocity of Slave axis Velocity of Master axis= x
Gear ratio n umeberator
Gear ratio denominator
E gear ratio- =
RatioNum erator
RatioDenominator
11-131