Hello Guest it is April 23, 2024, 03:47:11 AM

Author Topic: Automatic Z-Axis code.  (Read 3525 times)

0 Members and 1 Guest are viewing this topic.

Automatic Z-Axis code.
« on: September 01, 2007, 01:12:22 PM »
I use LazyCam in Plasma mode.  When making a cut file, I go to the "Layers" tab to set the feedrate, and a choice on that screen is called "rapid height"

This number - whether is it left at 0.00, or set to a number like 4.00 - adds a Z-axis move command to the files.



Is there any way to get rid of this addition?  I want the post to generate only X-Y movements - NO Z-axis!!



The problem is that I have a servo actuated z-axis that automatically goes to the top for the home sequence, and can then be moved to any position.  I need to set this at a hieght, and then have it stay there.

The unwanted z-axis additions move the z-axis to 0.00, or whatever number is entered in the "rapid height" line - whether I want it there or not.
Re: Automatic Z-Axis code.
« Reply #1 on: September 16, 2007, 12:10:05 PM »
You will need to make a Post Processor to change the code that is output. Here is one that you can use for now and there will be doc's at some point showing how to write your own :)

Hope this helps
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Automatic Z-Axis code.
« Reply #2 on: September 16, 2007, 01:50:18 PM »
Below is the post I'm using.  There is no reference to a Z-axis anything in it.

Here is a file I posted.  Note that there is a line #630 that says G0 Z19 (the number I put in the "rapid height" box).

How do I get rid of this?  (other than hand editing every part).


Also, The pierce delay still has to be set under Plasma Options.  The post ignores the fill-in box on the "layers" page for this.




N10 (Posted with Waterjet-no z.pst)
N20 G0  X1.0805  Y0.9656
N30 M3 (Water On)
N40 G4 P0.5
N50 M7 (Garnet On)
N60 G4 P1.0000
N70 G2  I-0.1100  J0.0000  F22.02
N80 M9 (Garnet Off)
N90 G4 0.2
N100 M5 (Water Off)
N110 G0  X1.0805  Y2.7758
N120 M3 (Water On)
N130 G4 P0.5
N140 M7 (Garnet On)
N150 G4 P1.0000
N160 G2  I-0.1100  J0.0000
N170 M9 (Garnet Off)
N180 G4 0.2
N190 M5 (Water Off)
N200 G0  X2.8907  Y0.9656
N210 M3 (Water On)
N220 G4 P0.5
N230 M7 (Garnet On)
N240 G4 P1.0000
N250 G2  I-0.1100  J0.0000
N260 M9 (Garnet Off)
N270 G4 0.2
N280 M5 (Water Off)
N290 G0  X2.8656  Y1.8707
N300 M3 (Water On)
N310 G4 P0.5
N320 M7 (Garnet On)
N330 G4 P1.0000
N340 G2  I-0.9900  J0.0000  F44.00
N350 M9 (Garnet Off)
N360 G4 0.2
N370 M5 (Water Off)
N380 G0  X2.8907  Y2.7758
N390 M3 (Water On)
N400 G4 P0.5
N410 M7 (Garnet On)
N420 G4 P1.0000
N430 G2  I-0.1100  J0.0000  F22.02
N440 M9 (Garnet Off)
N450 G4 0.2
N460 M5 (Water Off)
N470 G0  X0.0006  Y2.7506
N480 M3 (Water On)
N490 G4 P0.5
N500 M7 (Garnet On)
N510 G4 P1.0000
N520 G1  Y1.0006  F44.00
N530 G3  X1.0000  Y0.0006  I1.0000  J0.0006
N540 G1  X2.7506  Y0.0006
N550 G3  X3.7506  Y0.9994  I0.0000  J1.0000
N560 G1  X3.7506  Y2.7506
N570 G3  X2.7525  Y3.7506  I-1.0000  J0.0006
N580 G1  X1.0006  Y3.7506
N590 G3  X0.0006  Y2.7506  I0.0013  J-1.0000
N600 M9 (Garnet Off)
N610 G4 0.2
N620 M5 (Water Off)
N630 G0 Z19.0000
N640 M30

Re: Automatic Z-Axis code.
« Reply #3 on: September 16, 2007, 03:36:42 PM »
Is that the newest Rev of Lcam because I have fixed this in the past...
Thanks
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Automatic Z-Axis code.
« Reply #4 on: September 18, 2007, 11:42:01 AM »
The LazyCam file date is 8/23/2007.