- 1 -
Galil Motion Control, Inc.
·
3750 Atherton Road
·
Rocklin, CA 95765 USA
·
800-377-6329
·
Ph: 916-626-0101
·
Fax: 916-626-0102
·
www.galilmc.com
Application Note #2321
Variable Length ECAM Motion
Set up the ECAM function so that X is the master and Y is the follower. The ECAM
profile will be set up to move the Y axis at the beginning of the ECAM cycle. Then
the Y axis will wait for the X axis to 'roll over', and the cycle will start again. To cut
different lengths, stop the ECAM cycle, change the length of the X axis rollover, then
engage the ECAM mode again.
Here is a sample program:
Assumptions:
1) X length is 600 counts or greater
2) 4000 encoder counts per Y revolution
#INIT
Execute this code only once at beginning
EAX
Set X as ECAM master
EM length, 4000
Sets the roll over point of X and Y
EP 100,0
Set interval for table for 100 master counts
ET[0]=,0
Enter ECAM table values
ET[1]=,1000
Y will start moving
ET[2]=,2000
ET[3]=,3000
ET[4]=,4000
Y stops moving a full revolution later
LOOP=5
#B
ET[LOOP]=,4000
Fill in table with the end position
loop=loop+1
JP#B,loop<255
EN
#START
To start ECAM motion
EB1
Enable
ECAM
EG,0
Engage
ECAM