last turret position Fanuc


Results 1 to 3 of 3

Thread: last turret position Fanuc

  1. #1
    duenasg's Avatar
    Join Date
    Jul 2018
    Posts
    2
    Downloads
    0
    Uploads
    0

    Question last turret position Fanuc

    Good day. Is there a way to know what was the last turret tool position used? I am trying to write a macro to know which way I have to turn the turret based on the last turret index position. For instance, if the last tool on the turret used was on index 5 I need to go back to index 3 clockwise but if the last tool used was on index 7 I cannot go counterclockwise to turret index 3, I have to go clockwise in order not to damage my work piece setup. I am installing a tool on turret index 7 that will retrieve the work piece, if I go counterclockwise it will feed the piece in the wrong position and if I go clockwise it will do the job. I have tried doing it via calling the two prior tools manually so it feeds correctly when I physically see or know the last tool in the program but if I let the machine select the direction of the rotation it goes either way so I loose control of the piece position. Thank you in advance for your help.



  2. #2
    Member
    Join Date
    Apr 2011
    Location
    USA
    Posts
    841
    Downloads
    0
    Uploads
    0

    Default Re: last turret position Fanuc

    This can be done easily in the ladder. It is possible by modifying the ladder to only rotate the turret in one direction Can you post the ladder?



  3. #3
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: last turret position Fanuc

    hy duenasg ain't it possible to use a more distant home position, where to index the turret safe ?

    i don't know fanuc codes for cw, ccw or shoterts path, as for that i think drdos can help you

    few years ago i created an okuma code for colision proof dynamic indexing, and is able to detect in-between indexing posts, with a particular case for opposed ones (those located at 180*), but that should not be a worry if your turret is odd

    if you wish, i will share it, you could get the idea and implement it for fanuc

    whatever you do ( macro or ladder ), you will not be covered at the 1st index within the program, as for that you will need a system variable for current turret position, or visual inspection before pressing cycle start / kindly

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  4. #4
    Member
    Join Date
    Jan 2013
    Location
    england
    Posts
    474
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by duenasg View Post
    Good day. Is there a way to know what was the last turret tool position used? I am trying to write a macro to know which way I have to turn the turret based on the last turret index position. For instance, if the last tool on the turret used was on index 5 I need to go back to index 3 clockwise but if the last tool used was on index 7 I cannot go counterclockwise to turret index 3, I have to go clockwise in order not to damage my work piece setup. I am installing a tool on turret index 7 that will retrieve the work piece, if I go counterclockwise it will feed the piece in the wrong position and if I go clockwise it will do the job. I have tried doing it via calling the two prior tools manually so it feeds correctly when I physically see or know the last tool in the program but if I let the machine select the direction of the rotation it goes either way so I loose control of the piece position. Thank you in advance for your help.
    Pretty sure there is an M code to prevent shortest path to the next turret tool position. Older Fanuc used M17 and M18.

    If that doesn't work, you may find there is a "bit select" you can set for omnidirectional or bidirectional control.

    If M codes works just use it as required before the next tool call. Bit select may need a different tool call.



  5. #5
    duenasg's Avatar
    Join Date
    Jul 2018
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default Re: last turret position Fanuc

    Thank you all for your assistance. I will provide code if necessary but I will try M17 and M18.



Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

last turret position Fanuc

last turret position Fanuc