This is done with the program:
INSTRUCTION INTERPRETATION
#RUN
Label
EB1
Enable cam
PA,500
starting position
SP,5000
Y speed
BGY
Move Y motor
AM
After Y moved
AI1
Wait for start signal
EG,1000
Engage slave
AI - 1
Wait for stop signal
EQ,1000
Disengage slave
EN
End
Command Summary - Electronic CAM
Command Description
EA p
Specifies master axes for electronic cam where:
p = X,Y,Z or W or A,B,C,D,E,F,G,H for main encoder as master or M or N a for virtual axis
master
EB n
Enables the ECAM
EC n
ECAM counter - sets the index into the ECAM table
EG x,y,z,w
Engages ECAM
EM x,y,z,w
Specifies the change in position for each axis of the CAM cycle
EP m,n
Defines CAM table entry size and offset
EQ m,n
Disengages ECAM at specified position
ET[n]
Defines the ECAM table entries
EW
Widen Segment (see Application Note #2444)
EY
Set ECAM cycle count
Operand Summary - Electronic CAM
Command Description
_EB
Contains State of ECAM
_EC
Contains current ECAM index
_EGx
Contains ECAM status for each axis
_EM
Contains size of cycle for each axis
_EP
Contains value of the ECAM table interval
_EQx
Contains ECAM status for each axis
_EY
Set ECAM cycle count
Example - Electronic CAM
The following example illustrates a cam program with a master axis, Z, and two slaves, X and Y.
Chapter 6 Programming Motion ▫ 95 DMC-40x0 User Manual