Mitsubishi Electric MELSEC iQ-R16MTCPU Programming Manual page 127

Motion controller, g-code control, melsec iq-r series
Hide thumbs Also See for MELSEC iQ-R16MTCPU:
Table of Contents

Advertisement

Program example
■Program that uses the radius as the compensation amount in the command position
Tool radius compensation amount is "compensation No.: 01", "compensation amount: 5[mm]"
Operation
Program
(1)
G90 X0. Y0.
(2)
G91 G01 G42 X20. Y20. D01 F100.
(3)
G39 X40.
(4)
G39 Y40.
(5)
G39 X-40.
(6)
Y-40.
(7)
G40 X-20. Y-20.
(8)
M02
*1 Describes the tool center position.
Y
70
(5)
60
50
40
(6)
(4)
30
20
(7)
10
(3)
(2)
(1)
10
20 30 40 50 60 70
: Program path
: Tool center path
X
[Unit: mm]
*1
Remarks
Move to "X0,Y0" by absolute value command
Move to "X20,Y15" by tool radius compensation start operation
After moving to "X60,Y15" by straight line, move to "X65,Y20" by
circular interpolation
After moving to "X65,Y60" by straight line, move to "X60,Y65" by
circular interpolation
After moving to "X20,Y65" by straight line, move to "X15,Y60" by
circular interpolation
Move to "X15,Y20" by straight line
Move to "X0,Y0" by tool radius cancel operation
Program end
5 G-CODE CONTROL PROGRAMS
5
125
5.6 G-Code

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r64mtcpuMelsec iq-r32mtcpu

Table of Contents