Chapter 8 Electronic Cam 8.3.1.3 Creating/Modifying Electronic Cam Data After users create electronic cam data in a cam chart in PMSoft, the cam data will be downloaded to an AH500 series motion control module. If the users modify the electronic cam data in PMSoft, they have to download the new electronic cam data created to the AH500 series motion control module again after they modify the electronic cam data. If the users want to modify the electronic cam data in the program in the AH500 series motion control module, they can use motion control function blocks.
The motion control function block T_CamRead is used to read a particular point in a cam chart, and the motion control function block T_CamWrite is used to modify a particular point in a cam chart. Note: If users want to modify all the points in a cam chart, the pair of coordinates (0, 0) will need to be written after the last point is modified. 1. Example 【 Function 】 Users can modify a particular point in a cam chart. In figure (a), there is an original cam chart. There may be data or no data in the cam chart which will be modified. In figure (b), the three pairs of coordinates (16000, 10000), (32000, 0), and (0, 0) are written.
or (a) Original cam chart (b) Three pairs of coordinates in a cam chart 【 Steps 】 Set M80 to True. The pair of coordinates (16000, 10000) is written into cam point number 1. Set M81 to True. The pair of coordinates (32000, 0) is written into cam point number 2. Set M82 to True. The pair of coordinates (0, 0) is written into cam point number 3. Set M83 to True. Cam point number 1 and cam point number 2 are read. Check whether the values read are the same as the values written into cam point number 1 and cam point number 2. 8-17 T CamRead _ T CamWrite _