584,866 active members*
5,349 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > EdgeCam > Using a post to output to multiple work offsets - Very Easy!
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Posts
    125

    Using a post to output to multiple work offsets - Very Easy!

    Guys,

    As promised please find attached a post and a simple ppf. Have done this for 2014r1 but the logic in the post can be copied into older posts - have tested back to 2012r1 using an adaptive ISO mill template. Note that I've copied the coding from a customers post and placed into a brand new out-of-the-box template post which hasn't been tested so I may not have fully checked all aspects of this post. In other words - don't just run this post and expect it to work first time. It was based on a Haas if I remember correctly.

    Open the post with 2014r1 Code Wizard, compile it and we're ready to go!

    Basics.
    What this post/ppf will show is a simple method of programming a part and then outputting the code to multiple work offsets. Program assumes all these work offsets are pre-set although for those who know how, the post can be amended to output G10's too.
    The ppf is simple enough - just program a 3 axis part as usual. I've kept it simple - no need for datum shifts etc.
    When you're happy with the programming, then output the code and you'll get a pop up box asking you to select how many work offsets you want to output to. The post will then output a main program - which contains all setups, toolchanges and calls to subs. The post will also output another program containing all the subs rolled into one file. Then you can either copy the subs into the main, or if you have the skills write a PDI to append both progs together and select as a run-after PDI.

    Post Coding.
    Program Start Code Con - We have a variable setting and the coding for the ask box.
    Program End Code Con - Coding that outputs any sub routines into a sub program.
    Customisation Whiteboard - Declarion of two variable - and procedure which loops the number of work offsets.
    Rapid After Toolchange/Feed After Toolchange - Coding in here is the important bit. %OUTFILE will divert the following nc code into a seperate file, in this case set by $user5=Subs.nc
    Rapid to Toolchange/Rapid to Home - This then diverts the following nc code back into the main program - so all toolchanges are in the main. Here %OUTPUT=STANDARD is thr code that does that.
    Format table - check the formats for the user variables 17 - 20 (i think).



    Guys - have a look and let me know your thoughts!

    Thanks,
    M

  2. #2
    Join Date
    Jul 2020
    Posts
    9

    Re: Using a post to output to multiple work offsets - Very Easy!

    Seven years later, I really appriciate your work. I am struggling about setting my post processor and there aren't many sources on web. Your file and your other forum posts helped me, that I gain a little hope maybe I can manage with my settings.
    Thank you very much.

  3. #3
    Join Date
    Dec 2020
    Posts
    3

    Re: Using a post to output to multiple work offsets - Very Easy!

    I'm hoping for another better suggestion. The post will then be exported to the main program, which will contain all of the settings, tool modifications, and subscription calls. Post will also create a new program that will compile all of the subs into a single file. You may then copy the sub to the main one, or if you know how to build a PDI, you can link the two statements together and execute it as a PDI afterward.

Similar Threads

  1. multiple work offsets
    By poster in forum Mastercam
    Replies: 4
    Last Post: 02-21-2013, 03:28 PM
  2. How to: Multiple work offsets?
    By GM81 in forum Mastercam
    Replies: 4
    Last Post: 10-18-2011, 05:26 PM
  3. Using multiple work offsets in MC
    By Crashmaster in forum Mastercam
    Replies: 6
    Last Post: 08-25-2010, 04:18 PM
  4. Multiple Work Offsets X3
    By timmydabull in forum Mastercam
    Replies: 4
    Last Post: 08-28-2008, 06:54 PM
  5. Multiple Work Offsets
    By PinMan in forum BobCad-Cam
    Replies: 3
    Last Post: 06-06-2008, 10:41 PM

Tags for this Thread

Posting Permissions

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