Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2014, 04:39:12 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  G-Code, CAD, and CAM
| |-+  G-Code, CAD, and CAM discussions
| | |-+  Multiple work offsets and Z clearance
Pages: 1   Go Down
Print
Author Topic: Multiple work offsets and Z clearance  (Read 664 times)
0 Members and 1 Guest are viewing this topic.
screwhead
Active Member

Offline Offline

Posts: 34


View Profile
« on: April 28, 2012, 08:52:39 AM »

With only G54, on repetitive operations my Z axis clears the work piece .5" and then goes up  when it returns home, providing plenty of clearance between the tool and the workpiece.
I've duplicated this code in order to run the same operations on G55 and G56.
The problem I am having is that when the Z axis is done with G54 operations, it drops down to the work piece zero point and then returns home before moving to G55.
This obviously provides no clearance when the tool is moving. I need the tool to go up and get out of the way when it completes the operations on one workoffset before moving to the other.

Here the code snipped between one work offset and the next one. What should I remove or change.
thanks.

tc

N4280 G1 X2.4652 Y.4739 Z-.2216
N4290 X2.4891 Y.4973 Z-.1881
N4300 X2.5125 Y.5212 Z-.2216
N4310 X2.5353 Y.5457 Z-.255
N4320 G3 X2.8941 Y1.475 R1.3827
N4330 G0 Z.5
N4340 M5
N4350 G49 G0 Z0.
N4360 X0. Y0.
N4370 A0.
(--- G55 Work Offset Was Added ---)
G55
%

N100 G20
N110 G0 G17 G40 G49 G80 G90
( DRILL )
N120 G49 T1 M6
N130 G0 G90 G55 X1.8102 Y1.0638 A0. S5704 M3
N140 G43 H1 Z.5
N150 Z.2
Logged
Graham Waterworth
Administrator
*
Online Online

Posts: 1,775


West Yorkshire, England



View Profile WWW
« Reply #1 on: May 02, 2012, 07:39:31 AM »

The red high lighted block is the problem area, if you are moving from one fixture to the next you do not need to go back to xyz zero.

N4280 G1 X2.4652 Y.4739 Z-.2216
N4290 X2.4891 Y.4973 Z-.1881
N4300 X2.5125 Y.5212 Z-.2216
N4310 X2.5353 Y.5457 Z-.255
N4320 G3 X2.8941 Y1.475 R1.3827
N4330 G0 Z.5
N4340 M5
N4350 G49 G0 Z0.
N4360 X0. Y0.
N4370 A0.
(--- G55 Work Offset Was Added ---)
G55

%

Just add the fixture offset to the first move line of the second/third fixture code.

N100 G20
N110 G0 G17 G40 G49 G80 G90
( DRILL )
N120 G49 T1 M6
N130 G55 G0 G90 X1.8102 Y1.0638 A0. S5704 M3
N140 G43 H1 Z.5
N150 Z.2
« Last Edit: May 02, 2012, 07:44:51 AM by Graham Waterworth » Logged

G-Code is on the cutting edge

Autovalues Engineering, CNC machining specialists, Bradford, England
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!