Installation guide

Following for MX2000 version 4.0 209
8.1.6 - Following program Template
The following template can be used as a guideline
for writing a follower program.
‘****** Follower Parameter initialization *********
#DEFINE FOLLOWER 1
#DEFINE MASTER 2
FOLTRIG(FOLLOWER)=0
FOLSTARTDIST(FOLLOWER)=0
FOLACCDIST(FOLLOWER)=expression
FOLDCCDIST(FOLLOWER)=expression
FOLRATIO(FOLLOWER)=1
FOLRATIOINC(FOLLOWER)=10
FOLMAXRATIO(FOLLOWER)=2
FOLMINRATIO(FOLLOWER)=0
‘ *** Follower and Master definitions (chose one) ***
FOLINPUT(FOLLOWER)=variable
FOLINPUT(FOLLOWER)=ACTSPD(MASTER)
FOLINPUT(FOLLOWER)=ENCSPD(MASTER)
FOLINPUT(FOLLOWER)=ANALOG(b0n)*expression
‘ ********** advance/recede motion *************
FOLJOG(FOLLOWER)==1
DO
LOOP UNTIL FOLSYNC(FOLLOWER)=1
DO
FOLSYNCDIST(FOLLOWER)=expression
FOLOFFSETDIST(FOLLOWER)=expression
FOLOFFSET(FOLLOWER)=expression
DO
LOOP UNTIL MOTIONSTATE(FOLLOWER)=32
‘cut material statements (in synchronization)
DO
LOOP UNTIL MOTIONSTATE(FOLLOWER)<>32
LOOP UNTIL EXIN(100)=1
DO : LOOP UNTIL FOLSYNC(FOLLOWER)=1
STOP(FOLLOWER)
WAITDONE(FOLLOWER)
‘ *********** Follower move cycle *************
FOLMOVE(FOLLOWER)=expression
WAITDONE(FOLLOWER)
‘ ******* Follower mark registration cycle ********
REGLIMIT(FOLLOWER)=expression
FOLMOVEREG(FOLLOWER)=expression
WAITDONE(FOLLOWER)
8.1.7 – Distance Measurements
The distance between items can be measured by
using the combination of the CAPTURE, CAPPOS
and DELTACAPPOS commands. These commands
can be helpful when uniform spacing between items
is required.
The CAPTURE command arms a position capture
cycle or returns the current capture status. The
captured position can be read via the CAPPOS
command. The distance between capture positions
can be read via the DELTACAPPOS command.
Command Syntax:
CAPTURE(axis)=exp
CAPTURE=exp1, … , exp8
CAPTURE(axis, … , axis)=exp, … , exp
CAPTURE(axis) – used in an expression
axis specifies the number of the axis.
exp specifies the trigger condition.
Command Syntax:
CAPPOS(axis) – used in an expression
axis specifies the number of the axis.
Command Syntax:
DELTACAPPOS(axis) – used in an expression
axis specifies the number of the axis.