G42: Tool Radius Compensation - Right - Mitsubishi Electric MELSEC iQ-R16MTCPU Programming Manual

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

Advertisement

G42: Tool radius compensation - Right

The actual path of the tool center for the programmed path is compensated by an amount of the tool radius. The path is
calculated by intersection operation method therefore the overcutting of inside corners can be prevented.
Code
G42
Processing details
• When G42 command is executed, the tool radius compensation amount set in [Motion Control Parameter][G-code
Control Parameter][G-code Control Work Parameter]"Tool Compensation Data""Tool Compensation Data" is added
to the end position of the movement command, and outside or inside compensation is performed for movement.
• The G42 command is modal. The compensation amount is kept until tool radius compensation cancel (G40) is
commanded.
• In tool radius compensation, H commands are ignored and only D commands are valid.
• When "0" is specified as the tool No., the tool radius compensation command is cancelled.
G42 D0 (With tool No. as 0, tool radius compensation is cancelled)
• Tool radius compensation is performed on the plane selected in [Motion Control Parameter][G-code Control
Parameter][G-code Control System Parameter]"Modal Initial Setting""Plane Selection". Compensation is not
performed on axes that are not included in the specified plane.
• The operation for when compensation amount is set as a positive value (+), and negative value (-) is shown below.
<When compensation amount is (+)>
• Refer to tool radius compensation for details of tool radius compensation. (Page 183 Tool radius compensation)
Program example
■Program that starts tool radius compensation (right) and performs positioning
Tool radius compensation amount is "compensation No.: 10", "compensation amount: 10[mm]"
Operation
Program
(1)
G90 X0. Y0.
(2)
G91 G01 G42 X40. Y40. D10 F500.
(3)
G01 X30.
*1 Describes the tool center position.
Y
70
60
50
40
30
20
(2)
10
(1)
10
20 30 40 50 60 70
5 G-CODE CONTROL PROGRAMS
128
5.6 G-Code
Format
G42 X x
Y y
D d
<When compensation amount is (-)>
: Program path
: Tool center path
(3)
X
[Unit: mm]
Tool No.
Coordinate command
*1
Remarks
Move to "X0,Y0" by absolute position command
Move to "X40,Y30" by tool radius compensation start operation
Move to "X70" by straight line
: Program path
: Tool center path

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r64mtcpuMelsec iq-r32mtcpu

Table of Contents