Installation guide

216 Following for MX2000 version 4.0
8.1.9.3 - Rotating Knife Program Example 2 (recede cycle)
#DEFINE MASTER 1 ‘master axis number
#DEFINE FOLLOWER 2 ‘follower axis number
#DEFINE IN_SYNC 8
#DEFINE SYNC_DIST_FLAG 32 ‘wait for Sync distance state
#DEFINE CUT_LENGTH 2.2 ‘material cutting length in units
‘******* initialize follower parameters ************************
FOLSYNCDIST(FOLLOWER)=72/360 ‘ distance the master must travel for material to be cut
ABSPOS(MASTER,FOLLOWER)=0,0 ‘ set position to 0
PROFILE(FOLLOWER)=16 ‘ profile set to S Curve with a setting of 16
FOLRATIO(FOLLOWER)=1 ‘ follow at 100% of master velocity
FOLTRIG(FOLLOWER)=0 ‘ no trigger required
FOLSTARTDIST(FOLLOWER)=0 ‘ no delay distance
FOLACCDIST(FOLLOWER)=(144/360) * 2 ‘ align knife with cutting surface 144° from start
FOLDCCDIST(FOLLOWER)=(144/360) * 2 ‘ align knife at 12 o’clock
FOLMINRATIO(FOLLOWER)=0 ‘ offset cycle not allowed to reverse
SPEED(MASTER)=5 ‘ master velocity set to 5 units/sec
‘********* define and activate follower axis ***********************
JOG(MASTER)=1 ‘ start master axis
FOLINPUT(FOLLOWER)=ACTSPD(MASTER)
FOLJOG(FOLLOWER)=1 ‘ follower in the master direction
‘********* wait for initial velocity synchronization ******************
DO : LOOP UNTIL FOLSYNC(FOLLOWER)=1
‘********* perform rotary cutter cycle ****************************
DO
FOLOFFSETDIST(FOLLOWER)= CUT_LENGTH - FOLSYNCDIST(FOLLOWER) ‘setup offset cycle
FOLOFFSET(FOLLOWER)= 1 - CUT_LENGTH ‘command offset cycle
‘******** wait for offset cycle in synchronization portion to begin ********
DO:LOOP UNTIL MOTIONSTATE(FOLLOWER)=SYNC_DIST_FLAG
‘******** wait for offset portion of cycle to begin ************************
DO:LOOP UNTIL MOTIONSTATE(FOLLOWER) <> SYNC_DIST_FLAG
LOOP UNTIL EXIN(101)=1 ‘ wait for stop input
‘********* rotary cutter cycle termination request *********************
‘********* wait for velocity synchronization *************************
DO:LOOP UNTIL MOTIONSTATE(FOLLOWER)=IN_SYNC
‘******** stop follower and wait for motion to stop
‘******* follower moves FOLSYNCDIST before deceleration occurs ********
STOP(FOLLOWER)
WAITDONE(FOLLOWER)
‘******** stop master and wait for motion to stop
STOP(MASTER)
WAITDONE(MASTER)
END