Results 1 to 3 of 3

Thread: Variable programing help

  1. #1
    Registered
    Join Date
    Jul 2010
    Location
    usa
    Posts
    1
    Downloads
    0
    Uploads
    0

    Variable programing help

    Hi everyone new member here. Many years experiance with cnc's and machining but not much using variables. What I need to do should be simple.
    Yasnac i80 control on a kitamura my1. I would like run a simple g code program then drop the work coordinate z offset down by a specifiable amount and repeat by x times. After x repeats I will replace the stock and repete the process. I'm going to machine a small part with the last tool being a small slitting saw to part off the part then drop down and do it again.

    Ideas?

    Thanks

    Matt


  2. #2
    Registered samu's Avatar
    Join Date
    Feb 2007
    Location
    quebec
    Posts
    264
    Downloads
    0
    Uploads
    0
    #101=0 (Z origine shift)
    #102=5.0 (shift amount)
    #103=5 (number of repeat wanted)
    #104=0 (repeat count)
    WHILE [#104 LT #103] DO1
    G52 Z#101
    YOUR G CODE
    #101=#101+#102
    #104=#104+1
    END1
    M30


  3. #3
    Registered
    Join Date
    Feb 2006
    Location
    india
    Posts
    1,273
    Downloads
    0
    Uploads
    0
    From Fanuc manual:
    "Command a move command immediately after the G52 block in the absolute mode."


Similar Threads

  1. need help programing
    By dek in forum Machinist Feedback
    Replies: 2
    Last Post: 04-22-2010, 03:32 PM
  2. ? on programing
    By markjb in forum Fadal
    Replies: 6
    Last Post: 03-16-2009, 06:09 AM
  3. programing help
    By DARKWINZ in forum Okuma
    Replies: 6
    Last Post: 06-02-2008, 10:23 PM
  4. EMC2 variable pitch / variable diameter threading.
    By samco in forum General Metalwork Discussion
    Replies: 0
    Last Post: 03-09-2008, 02:40 PM
  5. CNC programing
    By Fryzss in forum General CNC (Mill and Lathe) Control Software (NC)
    Replies: 8
    Last Post: 10-27-2007, 11:33 AM

Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.