586,608 active members*
3,575 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Posts
    94

    Oi subroutines help

    I've got three deep subprogram ,#0001, 0002, and 0003.
    I can't get 0003 to call 0002 more than once, it should be calling it 10 times.
    Any ideas?


    Main part program:

    %
    O0001(CAP)
    ( CAP)
    ( 24-07-06 )
    G20
    (TOOL - 1 OFFSET - 1)
    (1 VNMG .03 INSERT - VNMG-332)
    G0 T0101
    M8
    G97 S2500 M03
    ....
    ....
    ....
    ....
    ....
    /M30
    M99
    %

    Running that program 6 times with an incremental advance and bar pulling:

    %
    O0002(CAP X 6)
    (7/8 BAR)(3.00)
    G10P0Z16.750
    M98 P0001
    G10 P0 W.450
    M98 P0001
    G10 P0 W.450
    M98 P0001
    G10 P0 W.450
    M98 P0001
    G10 P0 W.450
    M98 P0001
    G10 P0 W.450
    M98 P0001
    N0707(BAR PULLER)
    G00 G40 G99
    M05
    M09
    T0700
    X3. Z-.625 T0707
    G01 G98 X0. F300.
    M16
    G04 U.5
    W2.750 F100.
    M15
    G04 U.5
    X3. F300.
    G00 G99 X8.0Z6.
    T0700
    /M30
    M99%

    Trying to run 0002 ten times with this program, but it only runs it once

    %
    O0003
    M98 P100002
    M30%

    I've run that exact same program (#0003) on a differnt file, and it works great for multiples. It's something do to with that program #0002 I suspect? Also tried
    %
    o0003
    M98 P0002
    M98 P0002
    m30

    and upon returning to the 0003 program, the control acts like its in single block mode. Each press of start will advance the 0003 program.

  2. #2
    Join Date
    Aug 2006
    Posts
    98
    Man,

    You need put M98P0001L10. L10 means that you will do the subroine 0001 ten times.

    Daniel

Posting Permissions

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