586,430 active members*
4,043 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Fadal > Prgrams and Macros - can I put formulas and vairables in both
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    37

    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
    Join Date
    May 2005
    Posts
    53
    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
    Join Date
    Feb 2008
    Posts
    217
    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, 06:52 PM
  2. Stepper Formulas
    By miniengine in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 09-07-2009, 06:27 PM
  3. Looking for DIY alternator formulas
    By svenakela in forum CNC Machine Related Electronics
    Replies: 14
    Last Post: 02-12-2007, 05:01 PM
  4. NEED HELP (NEED FORMULAS SPI &SPS)
    By bradyfb in forum CNC Wood Router Project Log
    Replies: 2
    Last Post: 06-06-2006, 02:27 AM

Posting Permissions

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