Z axis macro touch off program
Close
Login to Your Account
Likes Likes:  0
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2020
    Country
    UNITED STATES
    State/Province
    Iowa
    Posts
    8
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    1

    Default Z axis macro touch off program

    Question, I wrote a program to set the "Z' height for the tools on a 3 axis vertical machining center. example tools 1 through 11, using a tool presetter of 2" height, program below and it works great. the question is how do i get the machine to read the machine value so I do not need to type it in? so I'll try to explain this in detail.
    1) program calls up the tool (does a tool change)
    2) M0 in program for me to handle tool down to presetter.
    3) I input the value in the under correct offset(i don't type in the value , just press z then input)this is what i want to avoid
    4) press cycle start and changes to next tool repeat,repeat.

    so in step 3 what can I put in the program so it will read the machine "Z" numerical value and enter it into the correct offset.


    Fanuc oi-MD controller

    %
    O0002(PROGRAM TO TOUCH OFF "Z" HEIGHT)

    #500=1(STARTING TOOL)
    #501=11(ENDING TOOL)
    #502=2.(PRESETTER HEIGHT)




    #501=#501+1
    N100
    T#500M6


    M0
    (TOUCH TOOL OFF)
    (ENTER Z VALUE)
    (PRESS CYCLE START TO)
    (PROCEED TO NEXT TOOL)


    G91
    G10L10P#500R-#502
    G90
    #500=#500+1
    IF[#500LT#501]GOTO100
    G91G28Z0
    G90
    M30
    %

  2. #2
    Join Date
    Jan 2019
    Country
    UNITED STATES
    State/Province
    Missouri
    Posts
    356
    Post Thanks / Like
    Likes (Given)
    104
    Likes (Received)
    94

    Default

    Tool heights and Z axis work offset

    post #21

    be forewarned
    the macro variable number will change from control generation and tool offset system being used ie; a,b,c


Tags for this Thread

Bookmarks

Posting Permissions

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