Using XPM_CAMO
-
XPM_CAMO is used for executing a CAM block of a sub-axis with an added master offset position.
-
MST_AXIS should have the same unit configuration as the CAM block.
-
The axis that uses the XPM_CAMO function block is considered the sub-axis.
XPM_CAMO 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_CAMO. |
CAM_BLK | Input | CAM block number to execute. Must be 1~9. 9 allows the execution of a USER CAM Operation. |
MST_OFFSET | Input | Set the master’s offset position. |
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_CAMO_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_CAMO function block.
-
Axis 2’s XPM_CAMO 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_CAMO LD Code
Home_Axes Command:
Run_Example Command:
XPM_CAMO XG5000 Trend Compared to CAM Profile
LP533-2