4 OPERATION CONTROL PROGRAMS
4.16 Advanced Synchronous Control Dedicated Function
229
4
■Program which writes the data stored in #0 to #4099 to the 2048-point area, starting from the
first point cam data, of cam No. 256 (stroke ratio data format)
■Program (Cam axis length per cycle = 4194304) which writes the data stored in #0 to #27 to the
6-point area, starting from the zeroth point cam data, of cam No. 255 (coordinate data format)
CAMWR K256, K1, K2048, #0
#0=K2 //Coordinate data format
#2L=K6 //Number of coordinates 6
#4L=K0 //(1st point) input value
#6L=K0 //(1st point) output value
#8L=K524288 //(2nd point) input value
#10L=K400000 //(2nd point) output value
#12L=K1048576 //(3rd point) input value
#14L=K1000000 //(3rd point) output value
#16L=K2097152 //(4th point) input value
#18L=K300000 //(4th point) output value
#20L=K3145728 //(5th point) input value
#22L=K-1000000 //(5th point) output value
#24L=K4194304 //(6th point) input value
#26L=K-500000 //(6th point) output value
CAMWR K255,K0,K6,#0 //Cam data write
1000000
-1000000
0
Output value: Y
[Output axis position unit]
(X2,Y2)
(X
1,Y1)
(X
0,Y0)
(X
3,Y3)
(X
4,Y4)
(X
5,Y5)
Cam axis length per cycle 4194304[pulse]
(Cam reference
position)
Input value: X