587,235 active members*
3,633 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    99

    How does one write g-code that is modal.

    My Okuma OSP control has several spare G codes I can use. I want to write one for drilling like G83. I want to avoid G0 movements in the process and have multiple Rs. Is there a way to do this? If so, please provide some useful guidance.

  2. #2
    Join Date
    Jun 2015
    Posts
    4156

    Re: How does one write g-code that is modal.

    hy graemeian 1st you have to write the parametric code, save it as a subrutine, begin with O****, ended in RTS, *.ssb file extension

    test your code from main program, with CALL O**** [ arguments ]

    when is all fine, if you wish to assign it to a spare g/m, i can help for p200 p300, but such g/m asignment has no benefit on newer systems; on older yes, as memory is different, and you may play with the lib buffer space / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  3. #3
    Join Date
    Jun 2007
    Posts
    99

    Re: How does one write g-code that is modal.

    I have written CALL O123 in the past for drilling. I would like to keep it clean and universal such as the following:
    G111 X2.5 Y2.5 Z-1.5 R.02 R-.02 Q.1 F9
    X-2.5
    Y-2.5
    X2.5
    G80
    My code would keep the tip below the plane to prevent chips from falling back in the hole. I would use something like F200 for an internal rapid to keep things smooth.
    I bought my machine new in 2014. Am I missing something?

Similar Threads

  1. G-Code Modal and non-modal
    By R2D3 in forum PlanetCNC
    Replies: 4
    Last Post: 01-26-2018, 04:09 PM
  2. Can you help a newbie write G-code?
    By geewhiz in forum Mach Software (ArtSoft software)
    Replies: 2
    Last Post: 09-03-2015, 01:38 AM
  3. Looking for someone to write me some simple 2D g-code
    By doncollier in forum Community Club House
    Replies: 1
    Last Post: 01-15-2014, 10:38 PM
  4. G61.1 modal G code in mazatrol
    By kendo in forum Mazak, Mitsubishi, Mazatrol
    Replies: 1
    Last Post: 06-23-2011, 11:12 AM
  5. Post Processor (ISO G-Code - Non Modal)
    By cncadmin in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 01-29-2005, 02:32 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
  •