Installation guide
Following for MX2000 version 4.0 217
8.1.10 - Gear Box Following Example
This type of application only requires a ratio between 2 axes that must be synchronized.
Program Example
This example simulates a gearbox with a 5:1 reduction.
#DEFINE MASTER 1
#DEFINE FOLLOWER 2
‘******* initialize master axis and follower parameters **********
ACCEL(MASTER)=50 ‘ master axis acceleration = 50 units/sec
2
DECEL(MASTER)=50 ‘ master axis deceleration = 50 units/sec
2
SPEED(MASTER)=5 ‘ master axis speed = 5 units/sec
PROFILE(MASTER,FOLLOWER)=16,16 ‘ profile set to S Curve with a setting of 16
ABSPOS(MASTER,FOLLOWER)=0,0 ‘ set position to 0
FOLRATIO(FOLLOWER)=0.2 ‘ follows at 20% of master velocity
FOLSTARTDIST(FOLLOWER)=0 ‘ no delay distance
FOLACCDIST(FOLLOWER)=0 ‘ no acceleration distance
FOLDCCDIST(FOLLOWER)=0 ‘ no deceleration distance
FOLTRIG(FOLLOWER)=0 ‘ no following trigger required
‘********* define and activate follower axis ***********************
FOLINPUT(FOLLOWER)=ACTSPD(MASTER) ‘follower cycle definition
FOLJOG(FOLLOWER)=1 ‘ start follower axis
‘******** Execute main program *******************************
DO
‘ Program statements
LOOP UNTIL EXIN(100)=1 ‘ wait for program end
STOP(FOLLOWER) ‘ motion stops
WAITDONE(FOLLOWER) ‘ wait for FOLLOWER axis to stop
END










