G52: Local Coordinate System Setting - 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

G52: Local coordinate system setting

Set the position of the local coordinate system offset on the selected work coordinate system.
Code
Format
G52
G54
to
G59
Processing details
• The local coordinate system can be set so that the position commanded on the work coordinate system (G54 to G59) is the
program home position. This can be used to change the difference between processing program home position and the
workpiece home position.
• The G52 command is unmodal. It is effective until the next G52 command is executed.
• The G52 command does not move the coordinate system. A separate coordinate system can be used without changing the
home position of the work coordinate system (G54 to G59).
• The local coordinate system is cancelled when transferring to G-code control, or when an absolute value command of "0" is
commanded for axes that have had a local coordinate system set. Note that the local coordinate system is not cancelled at
a reset.
Ex.
When an absolute value command of "0" is commanded in work coordinate system 1 (G54)
G90 G54 G52 X0 Y0 Z0
• When in absolute value command mode (G90), the G52 command sets the local coordinate system at an absolute position
from the home position of the currently selected work coordinate system. When in incremental value command mode
(G91), the G52 command sets a new local coordinate system at a relative position from the home position of the current
local coordinate system.
Y
Y
Y
Local coordinate
Work coordinate system 1
Basic machine coordinate control system
• An axis is not moved with a G52 command.
• Coordinate commands for absolute value commands (G90), move to positions on the local coordinate system.
• The position on the local coordinate system is the position of "[Md.3149] Relative position (D54772+32sn, D54773+32sn)"
less "[Md.3154] Local coordinate offset (D54756+32sn, D54757+32sn)".
• The operations when local coordinate system is combined with each function is shown below.
Function
Tool radius compensation
Tool length compensation
Normal line control
G52 X x
Y y
Z z
Y
Local coordinate
Y
Local coordinate
Operation
When G52 is commanded in the same block as tool radius compensation command (G41, G42) and tool radius
compensation cancel command (G40), a minor error (error code: 1FC3H (details code: 030FH)) occurs.
When G52 is commanded in the same block as tool length compensation command (G43, G44) and tool length
compensation cancel command (G49), a minor error (error code: 1FC3H (details code: 030FH)) occurs.
Local coordinate system cannot be changed during normal line control. When changed, a minor error (error code:
1FC3H (details code: 0304H)) occurs.
Local coordinate offset position on the work coordinate system
: Local coordinate setting in absolute value command mode (G90)
: Local coordinate setting in incremental value command mode (G91)
X
X
X
X
X
5 G-CODE CONTROL PROGRAMS
5
137
5.6 G-Code

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r64mtcpuMelsec iq-r32mtcpu

Table of Contents