Results 1 to 5 of 5

Thread: Retrieve machining time macro

  1. #1
    Registered
    Join Date
    May 2012
    Location
    greece
    Posts
    2
    Downloads
    0
    Uploads
    0

    Retrieve machining time macro

    Hello,

    I'm new to NX 7 and i need help with macros. I want to get the machining time of an operation with a macro and print it to a text. Is it possible to achieve this or does NX extract the machining time in a txt file in another way?


  2. #2
    Registered 1 Infinite Loop's Avatar
    Join Date
    Sep 2009
    Location
    U.S.A.
    Posts
    35
    Downloads
    0
    Uploads
    0
    I'm not sure if there is an easy way to do this with a macro or journal. Perhaps someone else could chime in about that.

    A simple but not very elegant method is to use a post called "program length and time" that should be a default post in your post directory. You can post individual operations or a group and display the results by checking "list output" at the bottom of the post processing dialog. In the display window you can then print the result or save it as a text file. Just so you know, this post behaves as a non-turbo mode post so large programs will take a bit of time to process.

    Using custom commands you can also output time info in a nc file as well as in shop docs. I haven't done any fancy custom commands so I just output the time at the end of the nc file with a basic custom command someone gave to me. I was thinking about customizing my shop docs more but when nx8 came out with a different format I decided to hold off and I have not yet had a chance to customize the new nx8 docs. The new doc format can be customized without Tcl-Tk knowledge as well as having the ability to output individual program groups whereas the old advanced html docs cannot.
    Jim
    NX 8.0


  3. #3
    Registered
    Join Date
    May 2012
    Location
    greece
    Posts
    2
    Downloads
    0
    Uploads
    0
    Thank you for your answer. I think i will follow the method you proposed to extract the time, to make a start. I hope in the future someone will post a macro in order to minimize the computational time.


  4. #4
    Registered 1 Infinite Loop's Avatar
    Join Date
    Sep 2009
    Location
    U.S.A.
    Posts
    35
    Downloads
    0
    Uploads
    0
    I forgot to mention in the ONT there is a column that displays the time for individual operations as well as for the groups. I don't know if there is a way to extract time from the column. Anyway, if you cannot see the column then all you have to do is right click on a column then go down to columns on the drop down that appears. There you can check/uncheck all the different types. If you want to change the order which they appear you can go down to the bottom of the drop down and click on configure. In there you can easily see the order and change it to whatever your preference is.

    Back to macros...I recommend making journals rather than macros. Journals tend to be more portable when upgrading from version to version whereas macros can "break" when upgrading.
    Jim
    NX 8.0


  • #5
    Registered
    Join Date
    Feb 2006
    Location
    USA
    Posts
    137
    Downloads
    0
    Uploads
    0
    You can export the Operation Navigator to a spreadsheet or browser from the navigator pop up menu.
    Attached Thumbnails Attached Thumbnails Retrieve machining time macro-capture.jpg  
    John Joyce -NC Programming Supervisor
    Barnes Aerospace, Windsor CT


  • Similar Threads

    1. Custom Macro for Finding Cycle time
      By yaji63 in forum G-Code Programing
      Replies: 8
      Last Post: 02-07-2011, 10:58 PM
    2. Machining time
      By jrobson in forum General Metalwork Discussion
      Replies: 6
      Last Post: 04-13-2008, 03:28 PM
    3. Machining Time
      By mmike76 in forum General CAM Discussion
      Replies: 9
      Last Post: 04-09-2006, 09:07 AM
    4. cycle time macro program
      By mcash3000 in forum General CNC (Mill and Lathe) Control Software (NC)
      Replies: 1
      Last Post: 03-29-2006, 01:33 PM
    5. Getting the machining time
      By HuFlungDung in forum OneCNC
      Replies: 8
      Last Post: 05-15-2003, 02:06 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.