7
« 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