View Full Version : Changing Z moves


Davidimurray
02-05-2007, 10:54 AM
Hi Guys

I'm working with the attached post and I need to make a mod for a new machine we got. I've editied posts before but now sure how to go about this one.

I need to replace every Z move with an M00 (new machine is 2 axis)

Any ideas on how I do this would be much appreciated.

Cheers

Dave

Davidimurray
02-05-2007, 06:59 PM
Hi

Spent a few hours working on this. Found a more appropiate simple post to edit. See attached file

Now the type of output this is giving me is :-
%
N100G00G90
N110G20
N120T214
N130G00X-15.Y.3415
N140Z50.
N150Z10.
N160G01Z0.F1.79
N170X-10.
N180G02X-5.Y-4.658I0.J-5.
N190G01Y-12.4
N200G02X-7.827Y-19.568I-10.5J0.
N210G03X-8.5Y-21.274I1.827J-1.706
N220G01Y-32.
N230Y-80.
N240G03X-6.Y-82.5I2.5J0.
N250G01X6.
N260G03X8.5Y-80.I0.J2.5
N270G01Y-32.
N280Y-21.274
N290G03X7.827Y-19.568I-2.5J0.
N300G02X5.Y-12.4I7.673J7.168
N310G01Y-4.6585
N320G02X10.Y.342I5.J0.
N330G01X15.Y.3415
N340Z10.
N350G00Z50.
N360M02
%

and what I am looking for is :-
%
N100G00G90
N110G20
N120T214
N130G00X-15.Y.3415
N140 M00 (Z50.)
N150 M00 (Z10.)
N160M00 (G01Z0.F1.79)
N170X-10.
N180G02X-5.Y-4.658I0.J-5.
N190G01Y-12.4
N200G02X-7.827Y-19.568I-10.5J0.
N210G03X-8.5Y-21.274I1.827J-1.706
N220G01Y-32.
N230Y-80.
N240G03X-6.Y-82.5I2.5J0.
N250G01X6.
N260G03X8.5Y-80.I0.J2.5
N270G01Y-32.
N280Y-21.274
N290G03X7.827Y-19.568I-2.5J0.
N300G02X5.Y-12.4I7.673J7.168
N310G01Y-4.6585
N320G02X10.Y.342I5.J0.
N330G01X15.Y.3415
N340Z10.
N350M00(G00Z50.)
N360M02
%

Any help on this would be much appreciated.

Cheers

Dave

Davidimurray
02-06-2007, 10:50 AM
Hello

I'm guessing I need to edit these lines -

prapid$ # Linear line movement - at rapid feedrate
pcan
pcan1, n$, sgcode, pccdia, x$, y$, z$, strcantext, e$
pcan2
sof = 1

pzrapid$ # Linear line movement - at rapid feedrate
pcan
pcan1, n$, sgcode, x$, y$, z$, strcantext, e$
pcan2


plin$ # Linear line movement - at feedrate
sof = 1
pcan
pcan1, n$, sgcode, pccdia, x$, y$, z$, pfr, strcantext, e$
pcan2

pz1$ # First linear movement after SOF
pz$

pz$ # Linear line movement - at feedrate
n$, sgcode, pccdia, x$, y$, z$, pfr,e$

pcirout #Circular interpolation
pcan
pcan1, n$, sgcode, pccdia, x$, y$, z$, i$, j$, pfr, strcantext, e$
pcan2

However if I replace z$ with "M00" then I end up with M00 on every single line. I need a way to code -
If z$ is not empty then set z$ to "M00"

How would I go about this ?

Cheers

svx-ff
02-08-2007, 02:20 PM
Hey Dave

I am no code master but try this.
I added some preset to the begining of the post process.

It may work.

Steve

Davidimurray
02-09-2007, 05:23 AM
Hi

Thanks for having a look.

Unfortunately it doesn't seem to have made any difference.

Cheers

Dave

ObrienDave
02-10-2007, 02:59 PM
By no means complete, How's this for a start.