beautypg.com

HEIDENHAIN TNC 407 (280 580) ISO Programming User Manual

Page 269

background image

8-49

8

Cycles

TNC 426/TNC 425/TNC 415 B/TNC 407

8.5

Coordinate Transformations

X

Y

Z

70

60

2

3

1

30

25

20

15

Y

X

Z

Example: Mirror image

A program section (subprogram 1) is to be exe-
cuted once as originally programmed at position
X+0/Y+0

1

, and then mirrored once in X

3

at

position X+70/Y+60

2

.

.

.

.

MIRROR IMAGE cycle in a part program

%S844I G71 * ............................................................ Start of program
N10 G30 G17 X+0 Y+0 Z–20 * ................................... Define workpiece blank
N20 G31 X+100 Y+100 Z+0 *
N30 G99 T1 L+0 R+4 * .............................................. Define tool
N40 T1 G17 S1500 * .................................................. Call tool
N50 G00 G40 G90 Z+100 * ........................................ Retract in the infeed axis
N60 L1,0 * .................................................................. Version 1 unmirrored
N70 G54 X+70 Y+60 * ............................................... Shift datum
N80 G28 X * ............................................................... Activate mirroring
N90 L1,0 * .................................................................. Version 2, shifted and mirrored
N100 G28 * ................................................................ Cancel mirroring
N110 G54 X+0 Y+0 * ................................................. Cancel datum shift
N120 Z+100 M02 *

N130 G98 L1 *

N250 G98 L0 *
N99999 %S844I G71 *

Same as subprogram on page 8-45