User`s manual

Using the Electronic CAM Feature
GFK-1742A Chapter 16 Using the Electronic CAM Feature 16-11
16
Interaction of Motion Programs with CAM
CAM motion shall be initiated in the DSM314 using instructions in the motion program. The
following new motion instructions are required to support CAM motion programming:
1) CAM
: Used in the motion program to start CAM motion and specify exit conditions.
2) CAM-LOAD
: Used to load a parameter register with the starting location for a CAM
slave axis. The PMOVE command can be used in conjunction with the CAM-LOAD
command to move a slave axis to the starting point.
3) CAM-PHASE
: Used to specify a Phase for CAM commands. The phase value may be
specified either through a parameter register or as a constant.
The following sections describe the syntax and functionality of each of the above instructions in
more detail. The convention used to specify the command syntax is as follows:
<> brackets- indicates a required field.
[ ] brackets- indicates an optional field.
{} brackets- indicates a field that is required for multi-axis programs and subroutines but is illegal
for single axis programs and subroutines.
CAM Command
The CAM command is used to program a CAM move using the specified CAM profile.
Syntax:
CAM
<CAM Profile Name>, <distance>, <master mode>, [Cyclic Exit Condition]
Parameter Description
<”CAM Profile Name”>
Name of the CAM Profile from the CAM Library (the profile must
be linked to the CAM Download block). This name is limited to 20
characters maximum (also, see Note 3 below).
Note that the quotes
around the name are required.
<distance> Maximum distance the master axis can travel once the CAM is
active (in user units)
Distance can be a constant , a parameter or the keyword NONE.
Allowed Range: MaxPosn . (MaxPosn-1) uu/cts
<master mode> Master mode can be declared as ABS (absolute) or INCR
(incremental); this indicates how the master position data is
interpreted.
In ABS mode, an absolute master axis position is used to determine
a slave value from the CAM table. In INCR mode, the master value
at the starting point of a CAM command is assumed to be equal to
the CAM-phase value, and the slave values calculated during
CAM motion are relative to this start master value.
[Cyclic Exit Condition] Specifies an exit condition for
Cyclical
CAMs. The allowed range is
CTL01-CTL32. If the CTL bit evaluates to True, the Cam exits at
the end of the current cycle.
Note that this parameter must not be
used for a Non-Cyclic CAM profile.