Instruction Interpretation
#SETUP Label
EAA Select A as maste
EM 2000,1000 Cam cycles
EP 20,0 Master position increments
n = 0 Index
#LOOP Loop to construct table from equation
= n∗3.6 Note 3.6 = 0.18
20
s = @SIN [P]
*
100 Define sine position
= n
*
10+s Define slave position
ET [n] =, b Define table
n = n+1 Update Counte
JP #LOOP, n<=100 Repeat the process
EN End Progra
Step 9. Create program to run ECAM mode
Now suppose that the slave axis is engaged with a start signal, input 1, but that both the
engagement and disengagement points must be done at the center of the cycle: A = 1000 and
B = 500. This implies that B must be driven to that point to avoid a jump.
This is done with the program:
Instruction Interpretation
#RUN Label
EB1 Enable ca
PA,500 starting position
SP,5000 B spee
BGB Move B moto
AM After B move
AI1 Wait for start signal
EG,1000 Engage slave
AI - 1 Wait for stop signal
EQ,1000 Disengage slave
EN En
Command Summary - Electronic CAM
Command Description
EA
S
ecifies master axes for electronic cam where:
EB n Enables the ECAM
EC n ECAM counter - sets the index into the ECAM table
EG a
b
c
En
a
es ECAM
EM a
b
c
S
ecifies the chan
e in
osition for each axis of the CAM c
cle
EP m
n Defines CAM table entr
size and offset
E
m
n Disen
a
es ECAM at s
ecified
osition
ET
n
Defines the ECAM table entries
EW Widen se
ment
see A
lication Note #2444
98 • Chapter 6 Programming Motion DMC-2X00