Results 1 to 3 of 3

Thread: Anyone know some advanced GPP coding?

  1. #1
    Registered
    Join Date
    Apr 2012
    Location
    Canada
    Posts
    8
    Downloads
    0
    Uploads
    0

    Anyone know some advanced GPP coding?

    Does anyone know any code I could put in the GPP that when Gcode is generated it would prompt the user for options. I've tried a few different things but haven't been able to figure it out yet.

    Thanks!


  2. #2
    Registered
    Join Date
    Oct 2008
    Location
    Slovakia
    Posts
    13
    Downloads
    0
    Uploads
    0

    Yes it's posible and very simple

    In .MAC file you should put under
    ;Part options
    options = QUESTION LOGICAL

    and in .GPP file in " @start_of_file " function something like this :

    if question eq true
    INPUT 'Number of parts= 'n_parts
    INPUT 'Position in Z = 'Z_position
    ......
    ......
    else
    n_parts = 0
    Z_position = 0
    .......
    .......
    endif

    ..... means more options (NOT) syntax

    You should also consider defining the variables considering their type and place.
    The rest is your imagination and needs ......


  3. #3
    Registered
    Join Date
    Apr 2012
    Location
    Canada
    Posts
    8
    Downloads
    0
    Uploads
    0
    Thanks maparkopo, It worked!


    Do you know how to get a pop up box of just a yes or no option. Or even customizable options?


Similar Threads

  1. Algorithm for G02 / G03 coding
    By jemmyell in forum Coding
    Replies: 19
    Last Post: 08-06-2009, 06:58 PM
  2. Newbie- PCB board g-coding
    By TigerPilot in forum General CNC (Mill and Lathe) Control Software (NC)
    Replies: 3
    Last Post: 10-24-2008, 12:23 PM
  3. New to G-Coding
    By Larry Myers in forum G-Code Programing
    Replies: 4
    Last Post: 09-20-2007, 10:06 AM
  4. M38/M39 spindle coding
    By Flow in forum Machine Problems, Solutions , Wireless DNC, serial port
    Replies: 2
    Last Post: 12-30-2006, 02:39 PM
  5. G2/G3 Coding
    By jrobson in forum G-Code Programing
    Replies: 24
    Last Post: 09-02-2006, 01:54 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.