Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 452

Advertising
background image

Axis Motion

Chapter 12

12-80

Example 12.24

Programmable Mirror Image

Main Program

Comment

(Mirror);

comment block, main program

G00G90;

rapid positioning, absolute mode

M98P8500;

call subprogram 8500

G51.1Z75.;

mirror active on Z

M98P8500;

call subprogram 8500

G51.1X75.;

mirror active on X (and Z)

M98P8500;

call subprogram 8500

G50.1Z0;

cancel mirror on Z (active on X only)

M98P8500;

call subprogram 8500

G50.1X0;

cancel mirror on X (no mirroring)

M30;

Subprogram

Comment

O8500;

program number

G00G90Z60.X90.;

rapid to start point

G01X120.F.1;

move 1

G03Z30.X90.R30;

move 2

G01Z60.;

move 3

M99;

return from subprogram

Figure 12.40

Programmable Mirror Image, Results of Example 12.24

120

90

75

60

30

Start point

End point

0

120

90

75

60

30

X

Z

12166-I

Advertising