Installation guide
Following for MX2000 version 4.0 211
8.1.8.1 - Cut to Length Program Example
#DEFINE MASTER  1 ‘master axis number
#DEFINE FOLLOWER  2 ‘follower axis number
#DEFINE SYNC_DIST_FLAG  32 ‘wait for Sync distance
#DEFINE CUT_LENGTH  11 ‘material cutting length
#DEFINE IN_SYNC_DIST  1 ‘distance master travels in sync with follower
‘********* initialize follower parameters ************************
ABSPOS(MASTER,FOLLOWER)=0,0 ‘ set starting position to 0
PROFILE(FOLLOWER)=16  ‘ profile set to S Curve with setting of 16
FOLRATIO(FOLLOWER)=1.0 ‘ follow at 100% of master velocity
FOLTRIG(FOLLOWER)=0 ‘ no trigger required
FOLSTARTDIST(FOLLOWER)=0 ‘ no delay distance
FOLACCDIST(FOLLOWER)=1  ‘ master travels 1 unit before follower matches master velocity
FOLDCCDIST(FOLLOWER)=1 ‘ master travels 1 unit before follower stops
FOLSYNCDIST(FOLLOWER)=IN_SYNC_DIST ‘distance master travels in sync with follower
FOLMINRATIO(FOLLOWER)=-1.5 ‘ offset velocity allowed to reverse up to 150% of master
SPEED(MASTER)=1 ‘ master velocity 1 units/sec
‘******** define and activate follower axis **********************
JOG(MASTER)=1 ‘ start master axis
FOLINPUT(FOLLOWER)=ACTSPD(MASTER)
FOLJOG(FOLLOWER)=1 ‘ follow in the same direction as master source
DO : LOOP UNTIL FOLSYNC(FOLLOWER)=1 ‘wait for initial velocity synchronization
‘******** perform cut to length cycle ***************************
DO
FOLOFFSETDIST(FOLLOWER) = CUT_LENGTH – IN_SYNC_DIST ‘ setup offset cycle
FOLOFFSET(FOLLOWER) = -CUT_LENGTH   ‘ command offset cycle
‘***** wait for offset cycle in synchronization portion to begin *****
DO : LOOP UNTIL MOTIONSTATE(FOLLOWER) = SYNC_DIST_FLAG
 ‘ Material cutting statements
‘***** wait for offset portion of cycle to begin *********
DO : LOOP UNTIL MOTIONSTATE(FOLLOWER) <> SYNC_DIST_FLAG
LOOP UNTIL EXIN(101)=1 ‘ exit on stop request
‘****** cut to length cycle termination requested *******
‘****** wait for velocity synchronization *****
DO : LOOP UNTIL FOLSYNC(FOLLOWER) = 1
‘******* stop follower and wait for motion stopped **********************
‘******* follower moves FOLSYNCDIST before deceleration occurs ********
STOP(FOLLOWER)
WAITDONE(FOLLOWER)
‘******* stop master and wait for motion stopped **********************
STOP(MASTER)
WAITDONE(MASTER)
‘******** move to starting position of follower ***********************
POSMODE(FOLLOWER)=1
MOVE(FOLLOWER)=0
WAITDONE(FOLLOWER)
END










