Gearing Operation with MC_GearIn, MC_GearInEx, and MC_GearOut
MC_GearIn is used to synchronize the speed of the master and slave axes using the set gear ratio. RatioNumerator and RatioDenominator set the ratio of the slave’s speed to the master’s speed. If the RatioNumerator value is set to a negative number, the slave will move in the opposite direction of the master.
The MasterValueSource input is used to set the synchronization to master commanded or current position. The slave axis will enter SynchronizedMotion state while this function block is executing.
-
ContinuousUpdate allows changing of RatioNumerator, RatioDenominator, Acceleration and Deceleration.
-
MC_GearInEx is the same as MC_GearIn except RatioNumerator is a DINT and RatioDenominator is a UDINT.
-
MC_GearOut is used to disengage the gearing operation and should be executed on the slave axis.
-
The slave axis will enter speed control with the speed of the axis at the time the gearing was disengaged.
-
MC_Stop or MC_Halt should be used to bring the slave axis to a stop.
-
LS_Connect and MC_Power/MC_PowerAll must be executed before these function blocks can be used.
-
The examples covered in this topic can be found in the XMC_MultiAxis_FBs.zip downloadable from Example Applications.
LM605