Section 4 System Programming 57

The first tool used in the program is tool #1, so it is selected in the Current Tool pull-down menu on the main screen. The tool change position is defined as Machine Coordinates X=2, Y=2, Z=0. Tool #1 is loaded in the machine tool. Program zero has been set using tool #1. Program zero is set at Machine Coordinates X=0, Y=0, Z=-4. The machine tool is moved to Program Coordinates X=0, Y=0, Z=1 before the G-Code file is run.

G00

Z.25

Move the Z axis down to Program

 

 

Coordinates X=0, Y=0, Z=0.25, Machine

 

 

Coordinates X=0, Y=0, Z=-3.75

G01

Z-1.0 F10

Move the Z axis down to Program

 

 

Coordinates X=0, Y=0, Z=-1, Machine

 

 

Coordinates X=0, Y=0, Z=-5

G00

Z.25

Move the Z axis up to Program Coordinates

 

 

X=0, Y=0, Z=0.25, Machine Coordinates

 

 

X=0, Y=0, Z=-3.75

G28

 

Move the Z axis up and the X and Y axes

 

 

across to the Tool Change Position, Program

 

 

Coordinates X=2, Y=2, Z=4, Machine

 

 

Coordinates X=2, Y=2, Z=0

M06 T2

Change the tool to Tool #2. All coordinates

 

 

remain unchanged.

G43

H2

Apply the tool length compensation for tool

 

 

#2. The offset amount is 0.750 (2.250-

 

 

1.500). The tool does not move. However,

 

 

the Program Coordinates change to X=2,

 

 

Y=2, Z=3.25. The Machine Coordinates

 

 

remain unchanged at X=2, Y=2, Z=0.

G29

X1 Y1 Z0.25

Move the X and Y axes across and the Z

 

 

axis down to Program Coordinates X=1,

 

 

Y=1, Z=0.25, Machine Coordinates X=1,

 

 

Y=1, Z=-3.0

G01

X3 Y3 Z-1 F20

Linear interpolation to Program Coordinates

 

 

X=3, Y=3, Z=-1, Machine Coordinates X=3,

 

 

Y=3, Z=-4.25

G28

Z0

Rapid move in the Z axis only to Program

 

 

Coordinates X=3, Y=3, Z=3.25, Machine

 

 

Coordinates X=3, Y=3, Z=0

M06 T3

Change the tool to tool #3. All coordinates

 

 

remain unchanged.

G43

H3

Apply the tool length compensation for tool

 

 

#3. The offset amount is –1.250 (1.000-

2.250). The tool does not move. However, the Program Coordinates change to X=3,

Page 61
Image 61
Anaheim DPJ72LC2, DPJ72LC3, DPJ72LC4 manual System Programming