![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |