Page 1 of 2 12 LastLast
Results 1 to 12 of 14

Thread: Macro Program Repeat

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

    Macro Program Repeat

    Hi guys,

    I have run this macro on various Mazak vertical mills hundreds of times but adding the macro to my programs in the Haas VF3 I'm running now doesn't work. All I had to do was type in the number of parts I wanted to machine in macro variable #500 and each tool would repeat. Say I'm running op#1 with 3 parts in 3 vises (one in each vise). I pick up G54, G55 & G56 and each tool machines each part without any tool changes in between. I just started running this VF3 so i'm sure this is something easy. Please help if you have any ideas. Here is a sample program.


    (THIS PROGRAM RUNS )
    (MULTIPLE PARTS)
    (SET #500 TO NO. OF FIXTURES)
    (SPOT)
    T6T1M06(0.1)(3/8 SPOT DRILL 90*)
    G17G20G40G90G0
    M08
    #100=54
    WHILE[#100LE53+#500]DO1
    G[#100]
    G00X0.0Y0.0Z1.0G43H6S1200M03
    G82R0.01Z-0.08P0.0F2.5
    G80
    G00Z1.0
    #100=#100+1
    END1
    M09
    G30G91X0Y0Z0
    M30


  2. #2
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    4,519
    Downloads
    0
    Uploads
    0
    What does it do or not do? What alarm messages?
    http://www.kirkcon.com/


  3. #3
    Registered
    Join Date
    Mar 2011
    Location
    MEXICO
    Posts
    1
    Downloads
    0
    Uploads
    0
    My English is a little bad, but I think this can help you

    (THIS PROGRAM RUNS )
    (MULTIPLE PARTS)
    (SET #500 TO NO. OF FIXTURES)
    (SPOT)
    T6M06(0.1)(3/8 SPOT DRILL 90*)
    G17G20G40G90G0
    M08
    #100=54
    #101=53+#500
    WHILE[#100LE#101]DO1
    G[#100]
    G00X0.0Y0.0Z1.0G43H6S1200M03
    G82R0.01Z-0.08P0.0F2.5
    G80
    G00Z1.0
    #100=#100+1
    END1
    M09
    G91G28X0Y0Z0
    M30


  4. #4
    Registered
    Join Date
    Feb 2010
    Location
    usa
    Posts
    25
    Downloads
    0
    Uploads
    0
    right now it mills the first part over and over without advancing to the 2nd part


  • #5
    Registered
    Join Date
    Feb 2010
    Location
    usa
    Posts
    25
    Downloads
    0
    Uploads
    0
    I will try that. I just don't understand why this program works perfectly on a mazak but not on the haas.


  • #6
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    4,519
    Downloads
    0
    Uploads
    0
    I think if you put #100=#100+1 in brackets it will work.

    [#100=#100+1]
    http://www.kirkcon.com/


  • #7
    Registered
    Join Date
    Nov 2010
    Location
    Belarus
    Posts
    19
    Downloads
    0
    Uploads
    0
    It is probably necessary to specify value of a variable No. 500

    (THIS PROGRAM RUNS )
    (MULTIPLE PARTS)
    (SET #500 TO NO. OF FIXTURES)
    (SPOT)
    T6M06(0.1)(3/8 SPOT DRILL 90*)
    G17G20G40G90G0
    M08
    G103 P1
    #500=3
    #100=54
    #101=53+#500
    WHILE[#100LE#101]DO1
    G[#100]
    G00X0.0Y0.0Z1.0G43H6S1200M03
    G82R0.01Z-0.08P0.0F2.5
    G80
    G00Z1.0
    #100=#100+1
    END1
    M09
    G91G28X0Y0Z0
    M30
    Last edited by andre_77; 03-22-2012 at 09:06 AM.


  • #8
    Registered
    Join Date
    Nov 2010
    Location
    Belarus
    Posts
    19
    Downloads
    0
    Uploads
    0
    I checked, the program works well.
    You entered data into offset G55 and G56?

    In your program from the first message it is written down WHILE[#100LE53+#500]DO1
    , probably it is necessary to change on WHILE[#100LE[53+#500]]DO1


  • #9
    Registered
    Join Date
    Feb 2010
    Location
    usa
    Posts
    25
    Downloads
    0
    Uploads
    0
    I tried everything except post #8 so far and it still doesn't work.


  • #10
    Registered
    Join Date
    May 2004
    Location
    United States
    Posts
    4,519
    Downloads
    0
    Uploads
    0
    I think sub programs would be easier.
    http://www.kirkcon.com/


  • #11
    Registered
    Join Date
    Feb 2010
    Location
    usa
    Posts
    25
    Downloads
    0
    Uploads
    0
    I don't think the code is the problem. I mean it works perfectly on a mazak. Are there settings I need to change somewhere?


  • #12
    Registered
    Join Date
    Feb 2010
    Location
    USA
    Posts
    692
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Erik1000 View Post
    I tried everything except post #8 so far and it still doesn't work.
    Did you at least try it yet? No harm in trying just to rule it out.


  • Page 1 of 2 12 LastLast

    Similar Threads

    1. Need Help!- Fanuc repeat macro advice needed...
      By TheDane in forum General CNC (Mill and Lathe) Control Software (NC)
      Replies: 2
      Last Post: 12-08-2010, 10:58 AM
    2. program repeat
      By villiersterrace in forum G-Code Programing
      Replies: 6
      Last Post: 07-27-2010, 08:55 PM
    3. Replies: 4
      Last Post: 11-22-2007, 06:31 AM
    4. program repeat
      By heartlnd in forum Haas Mills
      Replies: 3
      Last Post: 08-19-2006, 03:13 AM
    5. How to repeat a EZ-Trac Program
      By Stoney372 in forum Bridgeport and Hardinge Mills
      Replies: 4
      Last Post: 02-16-2006, 02:24 PM

    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.