User`s manual

Using the Electronic CAM Feature
GFK-1742A Chapter 16 Using the Electronic CAM Feature 16-35
16
// Motion program for example CAM block
// Slave Axis
Program 1 AXIS1
VELOC 10000 // Set Velocity
ACCEL 10000 // Set Acceleration
100: WAIT CTL01 // Wait For LL to Say Master is ready
110: CAM-LOAD "ExCamProfile", P006, ABS // Load Param. Reg. with Slave Pnt that
corresponds to current Master Position
120: PMOVE P005, ABS, LINEAR // Move Slave Axis to the Position that
corresponds to Start of Table
130: CAM "ExCamProfile", 50000, ABS // Execute CAM Statement
140: PMOVE 0,ABS,S-CURVE // Move back to zero
150:
ENDPROG
// Master Axis Program
Program 2 AXIS2
VELOC 10000 // Set Velocity
ACCEL 10000 // Set Acceleration
200: PMOVE 0 ,ABS,S-Curve // Start at zero
210: WAIT CTL08 // Master Waits Until Slave in Position
220: PMOVE 2500,ABS,LINEAR // Move 1st Master Point in Table
230: DWELL 5000 // Wait 5 Sec
240: PMOVE 47500,ABS,LINEAR // Move to 2nd Point
250: DWELL 5000 // Wait 5 Sec
260: PMOVE 2500,INC,LINEAR // Finish Distance Spec'd in CAM Cmd 1st CAM
Complete
270: PMOVE 0,ABS,LINEAR // Move back to zero
280:
ENDPROG