V1=0
Variable to stop ecam motion
N=0
Variable for indexing into ecam
table
O=0
Variable for indexing into ecam
table
DP 0,0
Define position zero for X and Y
axis
EAX
Set X axis as master axis
EM4800,0
Master cycle 4800 & 0 change for
slave
EP20,0
Ecam table increments of master
ET[0]=,0
First ecam table entry of position 0
#LOOPAB
Loop for first part of ecam table
N=N+1
Update Variable
ET[N]=,((4800)*((1-@COS[(N*2)]))/2)
Calculate Ecam table entries
JP#LOOPAB,N < 90
Loop for 90 entries of ecam table
#LOOPBC
Loop for second part of ecam table
N=N+1
Update Variable
ET[N]=,4800
Set ecam table value
JP#LOOPBC,N<120
Loop for 30 entries of ecam table
#LOOPCD
Loop for third part of ecam table
N=N+1
Update Variable
O=N-120
Update Variable
ET[N]=,4800+((-4800)*((1-
@COS[(O*2)]))/2)
Set ecam table value
JP#LOOPCD,N < 210
Loop for 90 entries of ecam table
#LOOPDE
Loop for second part of ecam table
N=N+1
Update Variable
ET[N]=,0
Set ecam table value
JP#LOOPDE,N<240
Loop for 30 entries of ecam table
EB1
Enable Ecam mode
JG 6000
Set Jog Speed of Master Axis to
6000
EG,0
Begin slave at 0 of master