Page 2 of 2 FirstFirst 12
Results 13 to 14 of 14

Thread: g-code format modification app

  1. #13
    Registered
    Join Date
    Jan 2012
    Location
    US
    Posts
    182
    Downloads
    0
    Uploads
    0
    Many years ago during our transition between CAM systems, I wrote a conversion program using Visual Basic & Excel to convert old legacy Fanuc programs to Okuma format. (Fixture offset codes, tool length comps, etc...). It's a dead program now as everything still active has be recreated with the current CAM software & runs through the appropriate post processor as specified by the user. We actually still use Excel with buttons to specify single or multiple machines for post processing & to fire up the appropriate executable(s) (simple batch files).

    Dave


  2. #14
    Registered
    Join Date
    Feb 2006
    Location
    United States
    Posts
    293
    Downloads
    0
    Uploads
    0
    Your ideas in the first post are excellent for keeping code clean and readable.

    I second that IK to R is a nice feature idea, and there may be a few more like that.

    Regarding other ideas, I think most will have to be customizable for each user. Probably a machine conversion table from some fixed starting format. Say a machine with a Fanuc 16/18 control and M-codes from a Mill and Lathe. Then for any given machine define any translations. They can be used in reverse to go back to the "stock" format then to the new one. Built in like mentioned in the first post can be on/off flags.

    Code:
    [hitachi-seiki HG400]
    leading_zeros=1
    trailing_zeros=0
    zero_before_after_decimal=1
    significant_digits=4
    ...
    M90=M60 (Different M code for pallet change)
    M12=M50 (Different M code for Thru spindle coolant)
    ...
    One nice feature I can think of is limiting max spindle speed WITH correcting the right feed rates. So program for your best machine but able to move it to your slower ones.


Page 2 of 2 FirstFirst 12

Similar Threads

  1. 5 a xis nc code in this format
    By happytriger2000 in forum Rhinocam
    Replies: 0
    Last Post: 04-06-2011, 11:37 AM
  2. Which G-Code format for EMC Linux??
    By AssassinXCV in forum GRZ Software- MeshCAM
    Replies: 9
    Last Post: 02-22-2011, 11:00 AM
  3. mach3 g code format
    By eloid in forum DIY CNC Router Table Machines
    Replies: 0
    Last Post: 08-20-2009, 11:25 PM
  4. Equation format in g-code
    By Jester966 in forum G-Code Programing
    Replies: 5
    Last Post: 07-09-2007, 09:39 AM
  5. 4Axis Format G-code Example
    By louis14 in forum G-Code Programing
    Replies: 0
    Last Post: 07-27-2006, 12:15 AM

Tags for this Thread

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.