586,029 active members*
2,897 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2014
    Posts
    5

    Z height help

    I have been trying to change my Tool length wear in a program from sidewallstcheatsheet.comside A then Different on side B and nothing is working. Right now i am using 2 different H #s to make it work but would like to do something different. Here is what i have tried so far with no luck
    #101=15 ( 15= Tool Number
    G43H[#101-.005]
    Also tried
    #101=15-.005
    G43H#101
    and my last try was
    G10L11P15R-.005
    This worked Great on side A but when it rotated and went to side B and i changed the R to R.002 alarmed the machine out.
    thanks for anyones help on this

  2. #2
    Join Date
    Feb 2014
    Posts
    19

    Re: Z height help

    The first method is incorrect and will always give an error.

    The second method should work. We use this all the time for a similar purpose.

    What is the alarm you are getting?

  3. #3
    Join Date
    Sep 2010
    Posts
    1230

    Re: Z height help

    Quote Originally Posted by RCraig2 View Post
    #101=15 ( 15= Tool Number
    G43H[#101-.005]
    Also tried
    #101=15-.005
    G43H#101

    [/B]
    Your above logic is incorrect as shown following:

    In your example

    G43H[#101-.005]

    and

    #101=15-.005
    G43H#101

    is the same as trying to execute H14.995; clearly this will result in an error.

    What you should have, if you want to use a User Macro Statement, is as follows:
    #101 = 15
    #[2200 + #101] = #[2200 + #101] - 0.005
    G43 H#101

    The above is the same as writing:
    #2215 = #2215 - 0.005
    G43 H15

    #2215 is the System Variable for Geometry Offset Number 15 of a Fanuc and some other controls.

    The System Variable will depend on the Offset System supplied with, and make of the control. Controls supplied with Geometry and Wear Offsets gives you the option of modifying the Wear Offset to achieve what you want to do.

    Regards,

    Bill

  4. #4
    Join Date
    Aug 2014
    Posts
    2

    Re: Z height help

    This is how I do it our Makino's

    #10000 (is CDC, or diameter comp)
    #10001 (is tool length comp)


    (*************************************)
    (2.0 10 FLUTE CFM TN #401 P.1)
    (*************************************)
    #500=1(Part # were currently on)
    #501=1(G54.1 work position variable)
    #504=1(Total part eval var)
    #505=0.(Index variable)

    N401G17G40G80G90G54.1P1
    T401M06
    T417(POSITION NEXT TOOL)
    G95
    G115(TOOL LENGTH ZERO CHECK)

    (************************************)
    (DYNAMIC Z LENGTH OFFSET)
    (************************************)

    #527=0.00159(INCREASE TOOL LENGTH)
    (Positive number makes the tool longer)
    (Negative number makes the tool shorter)
    #10001=#10001+#527(SET LENGTH T#401)


    M887(Terrace)
    M07(Air)
    S1200M03

    N2100
    WHILE[#504LE#635]DO1
    M11
    G00G54.1P#501X-1.1Y0.95B#505
    M10

    G00G43H1Z0.0


    G01X7.35F.030
    G00Y2.357
    G01X-1.1F.030
    G00Z2.0
    #500=#500+1(Incr part were on)
    #501=#501+3(Incr G54.1 wrk pos)
    #504=#504+1(Incr total part eval var)
    IF[#500LE2]GOTO2100
    G00Z5.0
    #505=#505+90.
    #500=1(Reset part side var)
    IF[#505LT360]GOTO2100
    END1
    G00Z5.0
    M05
    M09

    (CANCEL DYNAMIC Z LENGTH OFFSET)
    #10001=#10001-#527(ZERO OUT LENGTH)



    (INDEX TO 90 AND USE THE SAME TOOL)

    #500=1(Part # were currently on)
    #501=2(G54.1 work position variable)
    #504=1(Total part eval var)
    #505=90.(Index variable)

    G17G40G80G90G54.1P1
    T401M06
    G95
    G115(TOOL LENGTH ZERO CHECK)

    (****************************************)
    (****DYNAMIC Z LENGTH OFFSET)
    (****************************************)

    #527=-0.0008(TOOL LENGTH)
    (Positive number makes the tool longer)
    (Negative number makes the tool shorter)
    #10001=#10001+#527(SET LENGTH T#401)


    M887(Terrace)
    M07(Air)
    S1200M03

    N2200
    WHILE[#504LE#635]DO1
    M11
    G00G54.1P#501X-1.1Y0.95B#505
    M10

    G00G43H1Z0.0

    (DO SOME MORE STUFF)

    G00Z2.0
    #500=#500+1(Incr part were on)
    #501=#501+3(Incr G54.1 wrk pos)
    #504=#504+1(Incr total part eval var)
    IF[#500LE2]GOTO2200
    G00Z8.5
    #505=#505+90.
    #500=1(Reset part side var)
    IF[#505LT360]GOTO2200
    END1
    G00Z8.5
    M05
    M09

    (CANCEL DYNAMIC Z LENGTH OFFSET)
    #10001=#10001-#527(ZERO OUT LENGTH)

Similar Threads

  1. CNC Height?
    By Falcon69 in forum DIY CNC Router Table Machines
    Replies: 14
    Last Post: 08-11-2017, 05:06 PM
  2. Need help on z height
    By M.Abid in forum CNC Machining Centers
    Replies: 2
    Last Post: 04-02-2014, 11:32 PM
  3. TM-1P height
    By jeffrey001 in forum Haas Mills
    Replies: 12
    Last Post: 01-26-2014, 03:15 PM
  4. G54 Z Height
    By Deadwood in forum GibbsCAM
    Replies: 1
    Last Post: 01-03-2009, 09:50 PM
  5. Torch Height Control / Capacitive Height Control
    By ahlbebuck in forum Open Source Controller Boards
    Replies: 0
    Last Post: 11-27-2006, 08: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
  •