586,068 active members*
3,876 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2015
    Posts
    37

    g code variable

    Hi..Is it possible to make one axis distance be a percentage of another? So for example as x changes value for each line y would always be half that distance till file ends?

    Thanks,
    Rick

  2. #2
    Join Date
    Mar 2009
    Posts
    1982

    Re: g code variable

    yes if the control has calculaton function. For instance, there are character ( letters ) macros for the Okuma and you set the size calling he part program.

  3. #3
    Join Date
    Aug 2015
    Posts
    37

    Re: g code variable

    So right now I am using mach3 through smooth stepper...thinking of going linuxcnc...this feature would make a difference....I will have to try and find out if they can do this....anywhere to find an example of this?

    Thanks!!!

  4. #4
    Join Date
    Jun 2015
    Posts
    4154
    slant jogging spec ... hope you will find a way to achieve it
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  5. #5
    Join Date
    Jun 2015
    Posts
    4154

    Re: g code variable

    as x changes value for each line y would always be half
    that's 2 axis : slant; 3 is attitude

    whatever the name, involves interpolated control over a wcs that is not aligned with machine axis / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  6. #6
    Join Date
    Aug 2015
    Posts
    37

    Re: g code variable

    So it sounds like a yes to first part of my original question...second is how to format that in gcode so that every line does the calculation...Thanks!!!

  7. #7
    Join Date
    Jun 2015
    Posts
    4154

    Re: g code variable

    hy paragon, i thougth you wish to configure a cnc control, like build up electronics, etc

    but only to refer to g-code, is pretty simple

    i could macro it, no problem, and should work nice, but then the problem of tilted lines will appear, not that it can not be solved, but requires more time

    a quick aproach, that i can do, is to extract the toolpath from file, and apply a skew to it basicaly, edit it the way you wish, or whatever

    skewing the g-code, in small amounts, is a method to fix for machine geometry, but again, you may use it how you wish / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  8. #8
    Join Date
    Jul 2023
    Posts
    2

    Re: g code variable

    Hi,

    MACH3 has axis scaling variables, located at #5191 - #5196, these maybe what you are looking for. I haven't used them, so I don't know how well they work, and when they need to be reset...

    I hope that's helpful.

    Kind regards
    Pedro

  9. #9
    Join Date
    Jun 2015
    Posts
    4154

    Re: g code variable

    hy pedro
    ... scaling with identical ratios on each axis will transform a square to another one
    ... with different ratios, will get you a rectangle
    ... with diferent ratios aplied on an non ortoghonal xoy, thus axis angle <>90, will get you a paralelogram
    and a distorsion field, will get you flag with stripes, or a fish, etc
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

Similar Threads

  1. Variable Programming - Critique My Code, Please
    By NiCu2829 in forum Hard / High Speed Machining
    Replies: 1
    Last Post: 09-22-2019, 08:56 PM
  2. Replies: 0
    Last Post: 01-22-2019, 10:06 PM
  3. CNC de 1 eje!!!. G-code y velocidad variable
    By Pavlete in forum Spanish
    Replies: 1
    Last Post: 09-07-2010, 12:44 PM
  4. System variable #4113 for M-code
    By sinha_nsit in forum Fanuc
    Replies: 3
    Last Post: 10-14-2009, 05:03 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
  •