Search the Community
Showing results for tags 'sub number'.
-
I'm trying to get my post to change my sub number to the tool number times 100 and I can't get the sub number to change to at all. What I I'm getting is this: ( ROUGH PROFILE ) T1 M6 ( .375 ROUGHER E.M. ) G0 G90 G54 X-.145 Y.3445 S12000 M3 G43 H1 Z.1 M8 T2 M97 P0001 ( ROUGH PROFILE ) G90 G55 X-.145 Y.3445 Z.1 M97 P0001 M9 G91 G28 Z0. M5 M01 ( FACE TOP ) T2 M6 ( .375 E.M. ) G0 G90 G54 X.7455 Y-1.385 S12000 M3 G43 H2 Z.1 M8 T3 M97 P0002 ( FACE TOP ) G90 G55 X.7455 Y-1.385 Z.1 M97 P0002 M9 G91 G28 Z0. M5 M01 And what I want is this: ( ROUGH PROFILE ) T1 M6 ( .375 ROUGHER E.M. ) G0 G90 G54 X-.145 Y.3445 S12000 M3 G43 H1 Z.1 M8 T2 M97 P100 ( ROUGH PROFILE ) G90 G55 X-.145 Y.3445 Z.1 M97 P100 M9 G91 G28 Z0. M5 M01 ( FACE TOP ) T2 M6 ( .375 E.M. ) G0 G90 G54 X.7455 Y-1.385 S12000 M3 G43 H2 Z.1 M8 T3 M97 P200 ( FACE TOP ) G90 G55 X.7455 Y-1.385 Z.1 M97 P200 M9 G91 G28 Z0. M5 M01 I've been trying to change stuff in the post here: psub_call_s$ #Call to sub level result = nwadrs(strp, sub_prg_no$) sub_prg_no$ = sub_prg_no$ + 1000 #Add sub number offset <------------------- I tried several different ways of doing the "=" on this line but I can't get it to change at all. if progno$ = sub_prg_no$, result = mprint(sprgnerror) pbld, n$, "M97", *sub_prg_no$, e$ I'm not even sure if I'm trying in the right place or not. I'd also like it to give me the program number + 1 for each sub for a different post. I'm guessing the change between the two would be pretty similar. Thank you very much.
- 11 replies
Join us!
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.