Using XPM_CAM
-
XPM_CAM is used for executing a CAM block of a sub-axis.
-
MST_AXIS should have the same unit configuration as the CAM block.
-
The axis that uses the XPM_CAM function block is considered the sub-axis.
XPM_CAM Details
Element Name | Element Type | Description |
---|---|---|
REQ | Input | Edge detected request to execute the function block |
BASE | Input | Base number of the motion controller.Equal to 0 for built-in position control. |
SLOT | Input | Slot number of the motion controller.Equal to 1 for built-in position control |
AXIS | Input | Axis number to control.Set to 1 thru 6 for built-in axes. This can be a constant or variable. |
MST_AXIS | Input | Master axis number.For XEM this is 1~6 and must not be the axis executing the XPM_CAM. |
CAM_BLK | Input | CAM block number to execute. Must be 1~9. 9 allows the execution of a USER CAM Operation. |
DONE | Output | Status that function block is done. |
STAT | Output | Current status of the function block.Non-zero numbers will be an error or warning. |
This example is Scan Program XPM_CAM_Example in the LP533_SynchronizationExample XG5000 project.
-
In this example Axis 1 is the master axis and Axis 2 is the sub-axis.
-
When the Run_Example variable is true, Axis 1 will do an absolute move to position 1500 pulses at 500 pulses/sec and Axis2 will execute an XPM_CAM function block.
-
Axis 2’s XPM_CAM is setup to execute CAM block 1.
-
Home Axes before setting Run_Example to true.
-
CAM Block 1 is in XG_PM program LP533_CAMExample_XGPM.xpj.
CAM Block 1
XPM_CAM LD Code
Home_Axes Command:
Run_Example Command:
XPM_CAM XG5000 Trend Compared to CAM Profile
LP533-1