User`s manual

Using the Electronic CAM Feature
GFK-1742A Chapter 16 Using the Electronic CAM Feature 16-13
16
CAM-LOAD Command
The CAM-LOAD command is used to load the slave axis position into a parameter register. A
regular PMOVE command can then be used to move the slave axis to the loaded position. The
CAM-LOAD command uses the CAM profile name, actual master position and phase (specified
using the CAM-PHASE command) to determine the starting point for the slave axis.
Syntax:
CAM-LOAD
<CAM profile name>, <Parameter Number>, <master mode>
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 a
maximum length of 20 characters (also, see Note 3 below).
Note
that the quotes around the name are required.
<Parameter Number> Specifies the Parameter Number to load.
<master mode> Master mode can be declared as ABS (absolute) or INCR
(incremental); this indicates how the master position data is
interpreted in the slave start position calculation.
In ABS mode the absolute master axis position is used to determine
the corresponding slave starting position value from the CAM
table. In INCR mode, the master value is assumed to be equal to
the CAM-Phase in the calculations.
NOTES:
1. A CAM-LOAD command counts as two instructions towards the 1000 instruction limit in a
motion program.
2. When a CAM-LOAD command is executed, the following sequence of actions is performed:
A. The current master position is read.
B. Using the master position, CAM-Phase value, the CAM profile table, and CAM
configuration table, the appropriate position of the slave axis is calculated and loaded into
the designated parameter register.
C. The motion program can use a PMOVE instruction to move the slave axis to the position
calculated in step B.
3. The names
UDT_CAM_1
,
UDT_CAM_2
,
UDT_CAM_3
and
UDT_CAM_4
are reserved for
future use and cannot be used for CAM Profile Names.