Mitsubishi Electric R16MTCPU Programming Manual page 231

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Program example
■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)
CAMWR K256, K1, K2048, #0
■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)
#0=K2
#2L=K6
#4L=K0
#6L=K0
#8L=K524288
#10L=K400000
#12L=K1048576
#14L=K1000000
#16L=K2097152
#18L=K300000
#20L=K3145728
#22L=K-1000000
#24L=K4194304
#26L=K-500000
CAMWR K255,K0,K6,#0
Output value: Y
[Output axis position unit]
1000000
0
(X
,Y
)
0
0
(Cam reference
position)
-1000000
//Coordinate data format
//Number of coordinates 6
//(1st point) input value
//(1st point) output value
//(2nd point) input value
//(2nd point) output value
//(3rd point) input value
//(3rd point) output value
//(4th point) input value
//(4th point) output value
//(5th point) input value
//(5th point) output value
//(6th point) input value
//(6th point) output value
//Cam data write
(X
,Y
)
2
2
(X
,Y
)
3
3
(X
,Y
)
1
1
Cam axis length per cycle 4194304[pulse]
Input value: X
(X
,Y
)
5
5
(X
,Y
)
4
4
4 OPERATION CONTROL PROGRAMS
4.16 Advanced Synchronous Control Dedicated Function
4
229

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents