Search the Community
Showing results for tags 'misc integers'.
-
All, I'm working with MPMaster to try and get broken tool detection for our Makino PS95. I'm using Misc Integers to do so. I have it down, but the only part that's hanging me up is outputting the tool diameter. The disc for the tool setter on the Renishaw is only 10 mm or so. SO if the tool is bigger than that, it has to be offset half the diameter. In the pretract section of the post I have this: pbld, n$, sgabsinc, sgcode, [if gcode$ = 1, sgfeed], *sg28, "Z0.", [if gcode$ = 1, feed], scoolant, e$ if sav_mi1 = 1, [ if tool_typ$ <> 3, n$, "G65 P9858", prv_t$, (if tldia$ > .375, *tldia$) "H.005", e$ else, n$, "G65 P9858", prv_t$, "H.005", e$ ] # if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$ # pbld, n$, *sg28, "X0.", "Y0.", protretinc, e$ # if lock_codes = one & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$ But all I can get out of that is the NEXT ops tldia$ value. For example, If I have a 1.25" shell mill followed by a 1/2" endmill, at the end of the shell mill, I can get the right macro call, but with the next ops tldia$: (1.25 SHEAR HOG TOOL - 12 DIA. OFF. - 12 LEN. - 12 DIA. - 1.25) (COMPENSATION TYPE - COMPUTER) N12 T12 M06 G00 G90 G54 X-1.375 Y-.25 S10000 M03 G43 H12 Z2. M08 T1 G17 Z.21 G94 G01 Z-.01 F40. X2.375 F60. G00 Z2. M09 M05 G91 G28 Z0. G65 P9858 T12 D0.5000 H.005 M01 (1/2 DIA 1 1/2 2 FLUTE PLASTIC CARBIDE TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - .5) (COMPENSATION TYPE - WEAR COMP) N1 T1 M06 G00 G90 G54 X.55 Y-.86 S7500 M03 G43 H1 Z2. M08 T19 G17 Z.21 G94 G01 Z-.3333 F25. G41 D1 Y-.81 F80. G03 X.5 Y-.76 I-.05 J0. I've tried using the prv_tldia$, but it's not happening. What am I missing?
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.