Hello Guest it is April 25, 2024, 02:53:02 AM

Author Topic: G52  (Read 3324 times)

0 Members and 1 Guest are viewing this topic.

G52
« on: January 06, 2010, 10:37:13 AM »
Hi.
     I'm running a programme with 3 subroutines, ones an internal pocket, two are outside profiles.  I want to produce four components from one piece of stock.    The first component runs OK, as the start point for the first z- feed move is central to the through pocket.    This sub is called three times with all z- values written on the line prior to the sub call.     The next two subs are outside profiles, which also work according to plan.    The problem I can't seem to find a solution to, is when moving on to the next component, the first z- feed move is on the line after the G52X-22 Y0 call, but executes before the G52 move and so is below the surface of the work piece before the G52 move call.     I've tried various permertations, but all have a adverse effect on the first component, which was perfectly OK.
    The blocks where the problem occurs appear as below:
G01Z-3.2F90
M98P1003
G52X-22.0Y0.0
G01Z-1.0F90
M98P001
G01Z-2.0F90
M98P1001

The Z-1.0 move feeds into the start position of the first component before the the shift coordinate command operates.   How would I write these lines so as the z- feed move executes after the G52 has moved to the new position?   There are no z- moves contained in the subs, all calls on in the drive programme.   G54 is included in the programme parameters.

Regards
Re: G52
« Reply #1 on: January 06, 2010, 12:02:52 PM »
G52 sets up local coordinate system, should you then move to the start position in x/y then down to depth?

G52X-22Y0
G0X0Y0 (or wherever the start coordinate is)
G1Z-1F90

Julian
Re: G52
« Reply #2 on: January 06, 2010, 12:38:22 PM »
Hi. Julian.
             I was thinking that the X0 Y0 was written at the end of a each drive cycle so as to return to the original starting position of the first component, so that all other coordinate shifts for the other components are in absolute.    I'll try writting the X0Y0 where you suggest and try again tommorrow.
thanks.
                 Mick
Re: G52
« Reply #3 on: January 06, 2010, 12:45:17 PM »
To move back to the original start of first component, i would;
G52 X0 Y0
G0 X0 Y0    ie cancel local coordinates and then move to zero/zero.

I think you want to set up new coordinates for each work piece datum, and then use them (as above - set up with G52 and then move to start position).

It is a while since i have programmed like this (10 years) - CAD CAM makes it easy to be lazy.
Re: G52
« Reply #4 on: January 06, 2010, 12:48:06 PM »
Just trying to keep the old skills alive!!!!!!