3 tool position offset (g45 to g48) – Yaskawa YASNAC PC NC Programming Manual User Manual

Page 82

Advertising
background image

3 - 32

YASNAC PCNC Programming Manual

Chapter 3: Movement Control Commands

3.4.3

Tool Position Offset (G45 to G48)

The tool position offset function extends or contracts axis movement distance specified in a pro-
gram by the distance set in the tool offset data memory, and is primarily used for compensating
for the tool radius when cutting a square shape. It is not necessary to use this function if the
optional tool radius offset C function (G40, G41, G42) is selected.

(1) Commands

In the execution of the tool position offset function, extension or contraction of axis move-
ment distance is determined by the specified H code and the direction of offset by the D code.

(a) G Codes used with the tool position offset function

Table 3.4.3.1

G Codes Used with the Tool Position Offset Function

G45 to G48 extends or contracts axis move distance specified in the block that con-
tains G45 to G48 in the direction of axis movement. Extension or contraction is valid
only for the axis move distance specified with G45 to G48 and in other blocks, the
axes move as programmed. Therefore, to return the axis with which position has been
offset by the execution of G45 to G48 to the programmed position, it is necessary to
execute G45 to G48 that extends or contracts the axis move distance in the opposite
direction.

To use the tool position offset function, the program must be written in the incremental
mode (G91). If it is written in the absolute mode (G90), the function extends or con-
tracts the distance (incremental value) from the end point reached in the block preced-
ing the offset block to the target point specified in absolute values in the offset block
along the axis move direction.

To execute the tool position offset function, specify a G code calling up the tool posi-
tion offset function (G45 to G48), axis address and the tool offset data memory num-
ber by using a D code in the same block. If a D code is used to select the tool radius
offset data, it can be omitted since D code is modal. Store the radius of a cutting tool
in the tool offset data memory.

G code

Description

Group

G45

Extension/Contraction

*

G46

Contraction/Extension

*

G47

Double-extension/Double-contraction

*

G48

Double-contraction/Double-extension

*

Advertising