Results 1 to 6 of 6

Thread: postprocessor question

  1. #1
    Registered
    Join Date
    Feb 2012
    Location
    sweden
    Posts
    8
    Downloads
    0
    Uploads
    0

    postprocessor question

    Hi im trying to make some small changes in a postprocessor for a Fanuc OM system.

    If i click on mist in the feeds window in sprutcam i want the postprocessor to generate the M-code M50=airblast on my machine instead of M8=coolant.

    The CLDATA is #1 for coolant and #2 for airmist.

    This is how it looks now,how should it look for mist=M50 coolant=M8

    program CoolNt
    if Msp <> Msp@ or M <> M@ then call OutBl
    if cld[1] = 71 then Mc = 8 else Mc = 9 ! On/Off coolant
    outblock
    end

    Thanks
    Tommy


  2. #2
    Registered
    Join Date
    Oct 2005
    Location
    USA
    Posts
    77
    Downloads
    0
    Uploads
    0

    Postprocessor change

    Tommy,

    The following change should do what you need:

    Change:
    if cld[1] = 71 then Mc = 8 else Mc = 9 ! On/Off coolant

    To:
    if cld[1] = 71 then Mc = 50 else Mc = 9 ! On/Off coolant

    You should review the post-processed code after making the change before running the program to make sure it does what you want it to.

    -Brian


  3. #3
    Registered
    Join Date
    Feb 2012
    Location
    sweden
    Posts
    8
    Downloads
    0
    Uploads
    0
    hi Brian thanks for your answer.
    If i change Mc = 8 to Mc = 50 the postprocessor is putting in M50 in the program.
    Thats good but i want to be able to choose between flood=M8 and Mist=M50.

    If i do the change you suggested it only puts in M50 no M8.


    Tommy
    Last edited by tkgb; 03-05-2012 at 10:43 AM.


  4. #4
    Registered dbrija's Avatar
    Join Date
    Nov 2010
    Location
    USA
    Posts
    355
    Downloads
    0
    Uploads
    0
    Have it prompt you for a choice:

    Something like:

    program CoolNt
    if Msp <> Msp@ or M <> M@ then call OutBl
    Air$ = "N"
    INPUT "Use Air Blast? Y\N (Case Sensitive): ", Air$
    if Air$ = "Y" then Mc = 50
    end
    if Air$ = "N" then Mc = 8
    end
    if cld[1] = 71 then Mc = Air$ else Mc = 9 ! On/Off coolant
    OutBlock
    end


  • #5
    Registered
    Join Date
    Oct 2005
    Location
    USA
    Posts
    77
    Downloads
    0
    Uploads
    0

    Air Blast

    Tommy,

    Does your current post-processor utilize the M07 mist coolant command? Does you machine have that feature. You could re-purpose the M7 code to output M50 like I showed for M8 in that case and use the dialogue already built into the machining operations GUI to select between the two or turn them both off in that case.

    -Brian


  • #6
    Registered
    Join Date
    Feb 2012
    Location
    sweden
    Posts
    8
    Downloads
    0
    Uploads
    0
    I got it to work now
    I tried to find a postprocessor that used mist M07 and change that to M50
    as Brian suggested,but i did not find one.
    So it was just luck and trial and error that got it to work in the end.

    Here is the code

    program CoolNt
    if cld[2] = 1 then Mc = 8! coolant
    if cld[1] = 72 then Mc = 9
    else if cld[2] = 2 then Mc = 50! airblast
    if cld[1] = 72 then Mc = 9
    end

    Thanks for the help
    Tommy


  • Similar Threads

    1. Need Help!- postprocessor TNC 355
      By ccosma in forum EdgeCam
      Replies: 0
      Last Post: 06-12-2010, 10:51 AM
    2. Newbie- Postprocessor?
      By RP Designs in forum LinuxCNC (formerly EMC2)
      Replies: 4
      Last Post: 09-11-2009, 05:00 PM
    3. Postprocessor for EMC
      By lumberjack_jeff in forum FeatureCAM CAD/CAM
      Replies: 0
      Last Post: 09-10-2009, 01:50 PM
    4. Replies: 3
      Last Post: 06-27-2009, 08:13 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.