585,741 active members*
4,978 visitors online*
Register for free
Login

Thread: G52 - G92

Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Posts
    106

    G52 - G92

    I am trying to carve a picture and would like to make the first couple of passes .03 higher than is programed so the bit isn't digging in full depth with the full width of the cutter. I have been doing this manually by setting "all zero" on my part, then re-setting the "Z" -.03. Cutting the frist couple of passes, then re-stiing the "Z" back to 0.0.

    I had hoped there was a way to do this in the code. I looked up and found G 92. I tried using this, but could not get it to move the "Z" height as predicted. In my research I found out about G 52, that is supposed to replace G 92. However, this when using this I couldn't make it work as well.

    Here's my code


    ( Mach2/3 Postprocessor )
    N20G00G21G17G90G40G49G80
    N30G70
    N40T2M06
    N50G00G43Z0.0600H2
    N60S16000M03
    N70G94
    N80X0.0000Y0.0000Z0.0600F100.0

    N81G52X0.00Y0.00Z0.09 I added in here move "z" up .03


    N90G00X2.0337Y-2.8707Z0.0600
    N100G01Z-0.0231F100.0
    N110Y-2.8610Z-0.0224
    N120Y-2.8319Z-0.0201
    N130Y-2.8223Z-0.0231
    N140Y-2.8029Z-0.0217
    N150Y-2.7350Z-0.0238
    N160Y-2.6624Z-0.0210
    N170Y-2.6188Z-0.0216
    N180Y-2.5897Z-0.0194
    N190Y-2.5364Z-0.0191
    N200Y-2.5122Z-0.0145
    N210Y-2.4928Z-0.0172
    N215Z0.0600
    N216G00X2.0337Y-2.8707Z0.0600 after 3 passes I return to the original co-ordinants

    N217G52X2.0337Y-2.8707Z0.0300 insert the G52 to return to "Z" back to original height




    N90G00X2.0337Y-2.8707Z0.0600 and start the program over
    N100G01Z-0.0231F100.0
    N110Y-2.8610Z-0.0224
    N120Y-2.8319Z-0.0201
    N130Y-2.8223Z-0.0231
    N140Y-2.8029Z-0.0217
    N150Y-2.7350Z-0.0238
    N160Y-2.6624Z-0.0210
    N170Y-2.6188Z-0.0216
    N180Y-2.5897Z-0.0194
    N190Y-2.5364Z-0.0191
    N200Y-2.5122Z-0.0145
    N210Y-2.4928Z-0.0172
    N220Y-2.4686Z-0.0191

    But Is this the correct way? Because I cannot get the first height to lift .03, nor get it to return.

    Any help is very much appreciated.

    Thanks
    Ray

  2. #2
    Join Date
    Jul 2005
    Posts
    12177
    I work with commercial CNC machines not Mach 3 but if Mach 3 interprets a G52 command in the normal manner you should be able to have a G52 command move any axis you want in any direction. Actually what it does is add a value into the work coordinate calculation in the machine processor.

    G52 Z0.5 has the effect that the Z work zero location is moved (positive) 0.5

    G52 Z0.0 means the Z work zero is not altered.

    G52 Z-0.5 has the effect that the work zero is location is moved -0.5

    I am puzzled because you write:

    N81G52X0.00Y0.00Z0.09 I added in here move "z" up .03

    When this command would move Z up 0.09

    Similarly you have:

    N217G52X2.0337Y-2.8707Z0.0300 insert the G52 to return to "Z" back to original height

    This will move Z 0.03 and will also move X and Y

    With G52 you should be able to set up your code and have the first run through preceded by G52 Z0.03 then repeat it after the command G52 Z0.0, like this:

    G52 Z0.030
    your code
    G52 Z0.0
    your code.
    An open mind is a virtue...so long as all the common sense has not leaked out.

  3. #3
    Join Date
    Sep 2005
    Posts
    106
    thanks I will try that tomorrow

    Ray

Posting Permissions

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