603,936 active members*
2,760 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2010
    Posts
    0

    Need help with a G code..

    Looking for help.... Pretty new at programming and want to find a easiest and simplest way to use the g54-g59 work shift coordinates but want to machine about 10 parts. I am aware of G92 but i have been told there is a way using g54 to do this. Any help and examples in format would be great! thanks

  2. #2
    Join Date
    Jun 2003
    Posts
    205

    Work Offsets

    The easiest way is to use both sub-programming and work offsets ... G54 - G59.

    First ... make a good part, good program in one vise ... using say G54 as the part location work offset.

    Once you have a good part made ... let's say that part was made with program # O1234.

    Now create a new main program ... let's call it program # O0001 ... that looks something like this :

    O0001
    G54 ( set work offset to G54 )
    M98 P1234 ( call program and O1234 and execute it ... using G54 offsets )
    G55 ( set work offset to G55 )
    M98 P1234 ( run program O1234 again, this time using the G55 offsets )
    G56
    M98 P1234

    etc ....

    M30
    %

    Now change your main program ... O1234 ... into a sub program by removing any work offset command ... we're putting them in the new main program ... and ending the program with an M99 ( return to the main program ) ... instead of an M30 ( program end ).

    The above is not the most "tool efficient" ... as you make one complete part at each location ... the best way is to incorporate the above for each tool sequence ... but if you accomplish the above and understand it ... you're well on your way.

    Hope this spurs your creative energy ... and helps in some small way ...

    Check out Real World Machine Shop Software at
    www.KentechInc.com

  3. #3
    Join Date
    Feb 2010
    Posts
    0

    ThanK you

    Greatly appreciate the help, will give it a chance as soon as im back in the shop!!

  4. #4
    Join Date
    Feb 2008
    Posts
    586
    G54 thru G59 only give you 6 total. If you need more, you will either need G54.1, which gives you 48 additional work offsets, or G52 (child coordinate setting) or some version of G10 (data setting) to reset G54 10 different ways i within your program. Check your manual, and your purchased options. If you have G54.1, that will be the simplest, IMO.

Similar Threads

  1. Replies: 4
    Last Post: 03-29-2011, 02:39 PM
  2. Replies: 8
    Last Post: 12-15-2010, 09:32 PM
  3. G-Code viewing source code
    By Hussam in forum Visual Basic
    Replies: 3
    Last Post: 03-15-2009, 06:15 PM
  4. G-code for beginners - want to learn G-code
    By FPV_GTp in forum G-Code Programing
    Replies: 7
    Last Post: 11-18-2008, 06:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •