588,284 active members*
5,581 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Fadal > Call Subroutine with G91
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    146

    Call Subroutine with G91

    I have a program:

    L100
    G90G1G42x0Y1F300D5
    G3Y-1J-1
    G1X20
    G3Y1J1
    G1X0
    G40Y0
    M17
    M30
    G21
    T5M6
    S6000M3
    G0G90G17X0Y0E1
    G0Z5H5M8
    G1Z-1F200
    L101
    G1Z-2F200
    L101
    G1Z-3F200
    L101
    G1Z-4F200
    L101
    G1Z-5F200
    L101
    G1Z-6F200
    L101
    G1Z-7F200
    L101
    G1Z-8F200
    L101
    G1Z-9F200
    L101
    G1Z-10F200
    L101
    G1Z-11F200
    L101
    G1Z-12F200
    L101
    G1Z-13F200
    L101
    G1Z-14F200
    L101
    G1Z-15F200
    L101
    G0Z5
    G0G90M5M9
    G53Z0
    X-300Y230Z0E0H0
    M2


    Does that make with the G91, so I will only give one sentence of 15 incremental repetition contours in steps of 1mm in depth?

    eg. something like:

    L100
    G90G1G42x0Y1F300D5
    G3Y-1J-1
    G1X20
    G3Y1J1
    G1X0
    G40Y0
    M17
    M30
    G21
    T5M6
    S6000M3
    G0G90G17X0Y0E1
    G0Z5H5M8
    G1Z0F200
    G91G1Z-1F200L1015 (Call Subroutine 1, execute 15 time)
    G0Z5
    G0G90M5M9
    G53Z0
    X-300Y230Z0E0H0
    M2


    But such is not working. is that in some other way?

  2. #2
    Join Date
    Jul 2009
    Posts
    317
    Here is a sample of a pocket sub routine(INCH):
    L100
    G91
    Z-.1G1F30.
    G90
    X2.G1G42F30.
    G8Y2.
    X-2.
    Y-2.
    X2.
    G0Z0G40
    G90X0Y0
    M17
    M30
    G0G90S1200M3X0Y0E1*MAIN PROGRAM*
    H1Z0D1
    L1015
    M2

  3. #3
    Join Date
    Jun 2009
    Posts
    146
    Of course, how easy! Thank you! I have to try as soon as possible.

Similar Threads

  1. Repeating a Subroutine.
    By Mike Mattera in forum G-Code Programing
    Replies: 6
    Last Post: 05-18-2008, 10:01 PM
  2. M97, M98 subroutine call. How to use
    By bob1112 in forum Haas Mills
    Replies: 11
    Last Post: 03-13-2008, 01:41 AM
  3. Example of a Subroutine?
    By donl517 in forum Fadal
    Replies: 14
    Last Post: 06-27-2007, 04:05 PM
  4. trying to call a subroutine
    By hindocarina in forum G-Code Programing
    Replies: 4
    Last Post: 02-12-2007, 03:01 AM
  5. Need help with subroutine
    By 2_jammer in forum Uncategorised CAM Discussion
    Replies: 1
    Last Post: 01-18-2005, 05:46 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
  •