Results 1 to 2 of 2

Thread: Macro program question

  1. #1
    Registered
    Join Date
    Jan 2008
    Location
    USA
    Posts
    8
    Downloads
    0
    Uploads
    0

    Macro program question

    I am drilling multiple parts on horizontal milling machine with pallet changer. I have one program for both pallets, just loading work offsets on beginning of program.
    I am using bolt hole macro. My macro call is:

    G65 P9100 X0 Y0 Z-2.1 D2.378 R.1 C81. A90. H9 F12.5

    Parts are the same, but we need sometimes adjust a pattern of holes by adjusting pattern start angle. There is
    a six parts on each fixture, and we need to control start angle for each part.
    I want a modify program and my macro call will be:

    G65 P9100 X0 Y0 Z-2.1 D2.378 R.1 C81. A[#121+90.] H9 F12.5

    #121 will be loaded together with work offsets on beginning of the program.I use local variable #1 in macro program
    I just wondering it will work this way. Thanks for any reply.


  2. #2
    gar
    gar is offline
    Registered
    Join Date
    Mar 2005
    Location
    USA
    Posts
    1,498
    Downloads
    0
    Uploads
    0
    080106-2120 EST USA

    tommy2002:

    Looks like it should work. Might be machine dependent. You could also put the 90. in the #121 along with whatever else is normally in #121 if the machine does not like [#121+90.]. Answer your question with a dry run or a graphics mode if you have one.

    It should run or complain.

    .


Similar Threads

  1. Macro B Question
    By Bluetech in forum Fanuc
    Replies: 7
    Last Post: 03-10-2009, 01:58 AM
  2. macro program for 21i controller
    By damon1313 in forum Fanuc
    Replies: 4
    Last Post: 01-04-2008, 09:12 AM
  3. macro program for work offset
    By cncwhiz in forum Fanuc
    Replies: 4
    Last Post: 12-14-2007, 07:28 AM
  4. Macro program
    By pioneerproducts in forum Product and Manufacturer Announcements
    Replies: 4
    Last Post: 10-08-2007, 04:44 PM
  5. cycle time macro program
    By mcash3000 in forum General CNC (Mill and Lathe) Control Software (NC)
    Replies: 1
    Last Post: 03-29-2006, 01:33 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.