588,568 active members*
4,982 visitors online*
Register for free
Login
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2004
    Posts
    35

    Changing Z moves

    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
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2004
    Posts
    35
    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
    Attached Files Attached Files

  3. #3
    Join Date
    Nov 2004
    Posts
    35
    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

  4. #4
    Join Date
    Dec 2006
    Posts
    21
    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
    Attached Files Attached Files

  5. #5
    Join Date
    Nov 2004
    Posts
    35
    Hi

    Thanks for having a look.

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

    Cheers

    Dave

  6. #6
    Join Date
    Jun 2005
    Posts
    305
    By no means complete, How's this for a start.
    Attached Files Attached Files
    ObrienDave. MasterCam since V6. Gcode since 1983.
    The nose you punch today may belong to the butt you have to kiss tomorrow.

Similar Threads

  1. Rapid moves G00
    By dicksonhof in forum Mach Software (ArtSoft software)
    Replies: 9
    Last Post: 11-07-2006, 04:21 PM
  2. Z position moves up during run
    By henryj1951 in forum Gecko Drives
    Replies: 3
    Last Post: 03-28-2006, 12:16 AM
  3. motor moves one direction: what am I missing?
    By boyvox in forum Stepper Motors / Drives
    Replies: 12
    Last Post: 10-11-2005, 12:43 AM
  4. Motor only moves one direction
    By spoiledbrat in forum Mach Software (ArtSoft software)
    Replies: 3
    Last Post: 06-12-2005, 07:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •