AH500 Motion Control Module Manual 5.10.20 Writing a Cam Point 1. Motion control function block The motion control function block T_CamWrite is used to modify a particular point in a cam chart. The value of the Axis input pin indicates an axis number. The value of the CamPoiontNo input pin indicates a cam point number. The value of the MasterPosition indicates the position of the master axis specified, and the value of the SlavePosition indicates the position of the slave axis specified. 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. 2.
Input pins/Output pins 5-196 Input pin Name Function Data Setting value Time when a value is valid type Axis Motion axis number WORD 1~16 The value of the Axis input pin is valid when there is a transition in the Execute input pin’s signal from low to high. Execute The writing of a cam point is enabled when there is a transition in the Execute input pin’s signal from low to high. BOOL True/False - CamPointNo Cam point number DWORD K0~2046 The value of the CamPointNo input pin is valid when there is a transition in the Execute input pin’s signal from low to high.
MasterPosition Position of the master axis specified DWORD K-2,147,483,647~ K2,147,483,647 The value of the MasterPosition input pin is valid when there is a transition in the Execute input pin’s signal from low to high. SlavePosition Position of the slave axis specified DWORD K-2,147,483,647~ K2,147,483,647 The value of the SlavePosition input pin is valid when there is a transition in the Execute input pin’s signal from low to high.