Results 1 to 3 of 3

Thread: Prgrams and Macros - can I put formulas and vairables in both

  1. #1
    Registered
    Join Date
    May 2008
    Location
    US
    Posts
    37
    Downloads
    0
    Uploads
    0

    Prgrams and Macros - can I put formulas and vairables in both

    I am just learning the power of macros and attempting my first program using them. I have alot going on in this program as I am nesting 24 parts in 3 double vises and thus macros seem to be a very powerful tool for me in allowing the operator to make adjustments by simply modifiying a variable.

    Please tell me if this is possible:

    1. Begin master program with a list of variables (common variables #100-#145) with values.
    2. Do simple formulas within the master program using some variables
    3. Call macros and assign local variable to the macro using common variables assigned in the beginning of the program

    Up until this point I have been programming my programs using the Fadal format of programming. The controller also has Fanus format 6M/10M/11M. This will be my first time using Fanuc style. As for work offsets, can I replace E1, E2,.... with G54.1 P1, P2......?


  2. #2
    Registered
    Join Date
    May 2005
    Location
    usa
    Posts
    38
    Downloads
    0
    Uploads
    0
    You should be able to do all. It has been a while but I wrote macro programs for some tabulated drawings where the operator had to plug in data from the drawing.
    I run our machine in format 1.
    It is possible to to make the E number a variable.
    L0100
    X1.Y0E+R1Z.1H1
    G81Z-.1R0.1F10.M45
    X2.
    X3.
    X4.
    G80
    M17
    M30
    M6T1
    M3S1200G0G90
    L0101R1+1. *SUB 1, E1
    L0101R1+2. *SUB 1, E2
    L0101R1+3. *SUB 1, E3
    M5M9



    If you wish I can provide you with some more in depth program examples.

    Techman


  3. #3
    Registered
    Join Date
    Feb 2008
    Location
    USA
    Posts
    190
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Techman View Post



    If you wish I can provide you with some more in depth program examples.

    Techman
    Hi Techman,
    I cannot speak for Keystone 76, but I would find those examples very useful, and thanks for the one you posted. I have always wondered how to do that. I just gotta bring the books home for study. How would you structure that to execute the entire program on multiple fixture offsets?


Similar Threads

  1. book with formulas?
    By inthedark in forum Bending, Forging,Extrusion...
    Replies: 13
    Last Post: 10-07-2009, 01:52 PM
  2. Stepper Formulas
    By miniengine in forum Stepper Motors and Drives
    Replies: 1
    Last Post: 09-07-2009, 01:27 PM
  3. Looking for DIY alternator formulas
    By svenakela in forum General Electronics Discussion
    Replies: 14
    Last Post: 02-12-2007, 11:01 AM
  4. NEED HELP (NEED FORMULAS SPI &SPS)
    By bradyfb in forum CNC Wood Router Project Log
    Replies: 2
    Last Post: 06-05-2006, 09:27 PM
  5. Electronic formulas
    By turmite in forum Forum Questions or Problems
    Replies: 1
    Last Post: 12-08-2003, 01:51 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.