Mitsubishi Electric R16MTCPU Programming Manual page 227

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Program example
■Program which reads 2048-points of data, starting from the first point cam data of cam No. 2
(stroke ratio data format), and stores the read data to #0 to #4099
CAMRD K2, K1, K2048, #0
■Program which reads 6-points of data, starting from the zeroth point cam data of cam No.1
(coordinate data format), and stores the read data to #100 to #127
CAMRD K1, K0, K6, #100
• Cam data No.1
Output value: Y
[Output axis position unit]
(X
,Y
2
1000000
(X
,Y
)
1
1
0
(X
,Y
)
0
0
(Cam reference
position)
-1000000
Cam axis length per cycle 4194304 [pulse]
• Read cam data
#100=K2 //Coordinate data format
#102L=K6 //Number of coordinates 6
#104L=K0 //(1st point) input value
#106L=K0 //(1st point) output value
#108L=K524288 //(2nd point) input value
#110L=K400000 //(2nd point) output value
#112L=K1048576 //(3rd point) input value
#114L=K1000000 //(3rd point) output value
#116L=K2097152 //(4th point) input value
#118L=K300000 //(4th point) output value
#120L=K3145728 //(5th point) input value
#122L=K-1000000 //(5th point) output value
#124L=K4194304 //(6th point) input value
#126L=K-500000 //(6th point) output value
■Program which reads 2048-points of data, starting from the first point cam data of cam No.900
(coordinate data format) in the SD memory card, and stores the read data to #0 to #4099
CAMRD K900, K0, K2048, #0, K2
)
2
(X
,Y
)
3
3
(X
,Y
)
4
4
Input value: X
(X
,Y
)
5
5
4 OPERATION CONTROL PROGRAMS
4.16 Advanced Synchronous Control Dedicated Function
4
225

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents