Installation guide

240 Following for MX2000 version 4.0
Program answer:
‘********************* Follower will follow the Master axis speed at 100% ***************************
‘********************* Follower triggers when EVENT 1 is active **********************************
#DEFINE MASTER 2
#DEFINE FOLLOWER 1
SPEED(MASTER)=5 ‘ Master velocity is 5 units/sec
ACCEL(MASTER)=50 ‘ Master acceleration is 50 units/sec
2
DECEL(MASTER)=50 ‘ Master deceleration is 50 units/sec
2
DRVREADY(FOLLOWER,MASTER)=1,1 ‘ drives not required to run program
JOG(MASTER)=1 ‘START MASTER AXIS
DO : LOOP UNTIL ACTSPD(MASTER) >= 4.9 ‘WAIT FOR MASTER TO ACHIEVE SPEED
‘******* initialize the follower parameters ********************************************************
FOLRATIO(FOLLOWER)=1.0 ‘ following ratio is 100%
FOLTRIG(FOLLOWER) = 1 ‘ follower triggers on event1 going active
FOLACCDIST(FOLLOWER) = 1 ‘ follower catches master in 1 unit of travel of the master
FOLDCCDIST(FOLLOWER) = 1 ‘ follower stop in 1 unit of travel of the master
FOLMAXRATIO(FOLLOWER) = 2.0 ‘ offset maximum velocity limit is 200% of master
FOLMINRATIO(FOLLOWER) = 0 ‘ offset minimum velocity limit is 0% of master
FOLSTARTDIST(FOLLOWER) = 1 ‘ delay 1 unit of travel of the master before motion
‘******* define follower & master axes **********************************************************
FOLINPUT(FOLLOWER) = ACTSPD(MASTER)
‘******* request for motion start of follower axis
FOLJOG(FOLLOWER) = 1
FOLSYNCDIST (FOLLOWER) = 1 ‘ distance master travels during in sync portion of offset
FOLOFFSETDIST(FOLLOWER) = 1 ‘ distance master travels after in sync portion of offset
FOLOFFSET(FOLLOWER) = 1 ‘ offset cycle request to advance follower 1 unit
‘****** wait for in sync portion of offset cycle to begin *********************************************
DO : LOOP UNTIL MOTIONSTATE(FOLLOWER) = 32
‘****** wait for offset portion of cycle to begin
DO : LOOP UNTIL MOTIONSTATE(FOLLOWER) <> 32
FOLSYNCDIST (FOLLOWER) = 1 ‘ distance master travels during in sync portion of offset
FOLOFFSETDIST(FOLLOWER) = 1 ‘ distance master travels after in sync portion of offset
FOLOFFSET(FOLLOWER) = -1 ‘ offset cycle request to recede follower 1 unit
‘****** wait for offset cycle to finish ************************************************************
DO : LOOP UNTIL FOLSYNC(FOLLOWER) =1
WAIT=1 ‘ optional wait before stopping
STOP(FOLLOWER) ‘ follower axis stop
WAITDONE(FOLLOWER) ‘ wait for follower axis done
STOP (MASTER) ‘ master axis stop
WAITDONE(MASTER) ‘ wait for master axis done
END