586,307 active members*
3,598 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Fadal > Main and Subprogram
Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2009
    Posts
    21

    Main and Subprogram

    I am looking to chain two seperate programs together into a main call program. This is mostly for operator ease. I have done this in the past on other machines, but so far I have been unable to do it on a Fadal. I'm thinking I'm not looking in the right area of the manual. Any help would be appreciated.
    I enjoy reading the responses the forum is providing. I'm new at this online help forums.

  2. #2
    Join Date
    Jan 2008
    Posts
    76
    what control do you have?

    are you using format 1 or format 2 ?

    If you look in the operators manual under Formats it gives program examples for both formats .... i use (88hs control) format 2 and program with m98 and it works fine.

    Hennessy

  3. #3
    Join Date
    Mar 2003
    Posts
    900
    VANM--
    Using the M98 program call is the right approach to using sub-programs. Just make sure that the sub-program ends with the M99 code and NOT an M2 or M30. Also try not to have the same "N" sequence number in the main and sub-programs as trying to do a mid-tape start can cause issues.
    If you have any problems call us at Maintenance Technologies (Fadal Factory Support and Service) at 818 727-2100 Option #3.

    Neal

  4. #4
    Join Date
    Sep 2009
    Posts
    21
    I'm a little confused on the syntax for calling a subprogram, is it an L or N98. I am posting an example of what i'm trying to do. Feel free to critique it. When I load it into the machine, it goes into a loop cycle on the screen only, it never actually calls the program.
    %
    O8(program name)
    L100 (call subprogram L100 1 time)
    M00
    L200 (call subprogram L200 1 time)
    M30
    M02
    %
    %
    L100
    (DATE=DD-MM-YY - 09-06-09 TIME=HH:MM - 07:51)
    N110G20
    N120G0G17G40G49G80G90H0E0Z0
    N130( 1/4 FLAT ENDMILL TOOL - 15 DIA. OFF. - 15 LEN. - 15 DIA. - .25)
    N140T15M6
    N150G0G90S2139M3E1X-.875Y.25
    N160H15Z2.
    N170Z.5
    N180G1X-1.125F25.
    N190G3X-1.375Y0.J-.25
    N200G1Y-.875
    N210X1.375
    N220Y.875
    N230X-1.375
    N240Y0.
    N250G3X-1.125Y-.25I.25
    N260G1X-.875
    N270Z.6
    N280G0Z2.
    N290M5
    N300G91H0Z0.
    N310E0X0Y0
    N320M17
    %
    %
    %
    L200
    (DATE=DD-MM-YY - 09-06-09 TIME=HH:MM - 07:55)
    N110G20
    N120G0G17G40G49G80G90H0E0Z0
    N130( 1/4 FLAT ENDMILL TOOL - 16 DIA. OFF. - 16 LEN. - 16 DIA. - .25)
    N140T16M6
    N150G0G90S4000M3E2X-1.6832Y.25
    N160H16Z2.
    N170Z.25
    N180G1X-1.9332F30.
    N190G3X-2.1832Y0.J-.25
    N200X0.Y-2.1832I2.1832
    N210X2.1832Y0.J2.1832
    N220X0.Y2.1832I-2.1832
    N230X-2.1832Y0.J-2.1832
    N240X-1.9332Y-.25I.25
    N250G1X-1.6832
    N260Z.35
    N270G0Z2.
    N280M5
    N290G91H0Z0.
    N300E0X0Y0
    N310M17
    %
    %

  5. #5
    Join Date
    Jul 2009
    Posts
    20
    In format 2 you have to have the subprogram before the main program. It is the opposite to most machines and I find it annoying but just one of those things.

  6. #6
    Join Date
    Jul 2003
    Posts
    71
    I have not run Fadal in ten years but I believe smithgrind is correct and the program call would be L101 etc. Maybe get rid of all the "%" too.

  7. #7
    Join Date
    Mar 2003
    Posts
    900
    VANM--
    You are trying to combine SUB-ROUTINES and SUB-PROGRAMS. This does not work. Make each of your subs a program with its own "O" word and end it with the M99 code. Then in your main program call the SUB-PROGRAM with the M98 P?? call.

    Neal

  8. #8
    Join Date
    Sep 2009
    Posts
    21

    Smile

    Thanks Neal, changed the call out and it works fine.

Similar Threads

  1. Subprogram Problems
    By frogger in forum Haas Mills
    Replies: 8
    Last Post: 04-28-2009, 02:12 AM
  2. Help with subprogram
    By 69owb in forum G-Code Programing
    Replies: 7
    Last Post: 09-05-2008, 11:06 PM
  3. eia subprogram
    By rs1982 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 4
    Last Post: 04-11-2008, 02:10 PM
  4. having trouble with subprogram
    By dshowald in forum Milltronics
    Replies: 10
    Last Post: 02-10-2007, 09:32 PM
  5. Restarting an EIA subprogram
    By ajl6549 in forum Mazak, Mitsubishi, Mazatrol
    Replies: 6
    Last Post: 08-09-2006, 12:06 PM

Posting Permissions

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