Results 1 to 6 of 6

Thread: Changing Z moves

  1. #1
    Registered
    Join Date
    Nov 2004
    Location
    UK
    Posts
    23
    Downloads
    0
    Uploads
    0

    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
    Registered
    Join Date
    Nov 2004
    Location
    UK
    Posts
    23
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Nov 2004
    Location
    UK
    Posts
    23
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Dec 2006
    Location
    USA
    Posts
    21
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Nov 2004
    Location
    UK
    Posts
    23
    Downloads
    0
    Uploads
    0
    Hi

    Thanks for having a look.

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

    Cheers

    Dave


  • #6
    Registered ObrienDave's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    284
    Downloads
    0
    Uploads
    0
    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. Routing image moves
      By lockeyone in forum WoodWorking
      Replies: 8
      Last Post: 11-22-2006, 02:18 PM
    2. Rapid moves G00
      By dicksonhof in forum Mach Software (ArtSoft software)
      Replies: 9
      Last Post: 11-07-2006, 10:21 AM
    3. Z position moves up during run
      By henryj1951 in forum Gecko Drives
      Replies: 3
      Last Post: 03-27-2006, 06:16 PM
    4. motor moves one direction: what am I missing?
      By boyvox in forum Stepper Motors and Drives
      Replies: 12
      Last Post: 10-10-2005, 07:43 PM
    5. Motor only moves one direction
      By spoiledbrat in forum Mach Software (ArtSoft software)
      Replies: 3
      Last Post: 06-12-2005, 02:02 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.