Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

ahaslam

Verified Members
  • Posts

    272
  • Joined

  • Last visited

Everything posted by ahaslam

  1. I am still working with MasterCAM X5 *grumbles* and it uses NETHook2_0.dll, I haven't tried it yet but do you think it would be possible to use your .NET API to develop C# add-ins? I will be working with VS community 2015.
  2. I would actually be interested in such a thing. I know you can switch it to long hand, that's easy. Adding the "K" parameter in there is going to be a trick.
  3. I got the post to work perfectly. I have made comments to the company about the way they do things. This is the way they want to do it.
  4. Scratch that, I got it. had to move my subout$ around.
  5. I am working on getting my post to spit out all tools in a sub program, but I am stuck. I can't seem to get it to post out the NCI 1001 line after the sub program is called. It wants to hit it before hand. Any ideas? O1 ( AM3010C ) T20 M6 S0 M5 # this line G54.1 P1 G0 X-.25 Y-.375 (NCI 1001) # this line G43 H20 Z0. M98 P0 #and the first part of this line should all be after the Sub M9 G91 G30 Z0 G30 X0 Y0 G90 M99 O0 (SUBPROGRAM FOR T20 ) G0 X-.25 Y-.375 M99 ------------------------------------------------------------------------------------------------------------- psof$ # Start of file for non-zero tool number 1001 subnumber = mi5$ saved_mr1 = mr1$ n$, *subnumber, "(SUBPROGRAM FOR", t$, ")",e$ ptoolcomment n$, psg00, *xr$, *yr$,e$ if Look_ahead = 1, pg8_on if Look_ahead = 3, pg5_on subout$=0 "%",e$ pprogno, "(", sprogname$,")",e$ p_fix if macro, pmacro n$, t$, e$ ptoolcomment n$, comment$,e$ n$, "M6",e$ pspindle count = 1 n$, "G54.1", *fix, psg00, *xr$, *yr$,e$ n$, ptllncomp, n$, psubcall subout$ = 1
  6. Where to even start? How much of this could I get MasterCAM to spit out? Is there a way to turn everything after a tool change into a sub-program? This is kind of a side project to see if I can actually do it, so no rush but any help would be appreciated. :1000( PART PROGRAM ) M68 M98P6100 (call offsets) M98P8061 (call tool comp) N1 (used for quick find of operation) M6T1 (call up tool) M1 (ENDMILL) G54P1 M98P2010 (sub program = t#*10+2000 and +1 at each operation[the second time that tool is called would be 2011]) M6T1 (Recall first tool) M9 G91G30Y0Z0M19 (go home) M30 :2010( ENDMILL ) G0G90X.225Y0.001 G43H1Z2.S6800M13 (m13 = M3+ M9) Z.1 G1Z-0.06F48. X-5.5 G0Z2. M1 M99 (end sub program) :6100( VISE OFFSET PROGRAM ) G10G90L2P1X0.000Y0.000Z0.000( FIXTURE OFFSET - G54 ) M99 :8061( TOOL OFFSET PROGRAM ) G10G90L11P1R-0.000( 1/4 ENDMILL ) M99
  7. I see, I am glad you are keeping up on this.
  8. Colin, Couldn't the person just change his fmt X 2 xabs to fmt y 2 xabs and do the same for Y? This I guess could cause problems with the g17,18,19 planes... This does sound a bit more like a reseller issue.
  9. Awesome Colin, I consider my bacon to be in good hands with you. You are one of the Masters of this forum and it shows. Thanks for the reply.
  10. So, I want to know what is the easiest, most effective way to go about this. I am trying to out put my D comp at a plus 30 to the tool. I tried setting it in the CD but it didn't work out (shrugs) so,, am I missing a parameter in my post or maybe calling up the wrong var?
  11. Thanks, I thought it was the other way around
  12. So I figured I would just work around the logic and *next_tool$ but... it comes up as T0... always. Just checked bldnxtool$ : yes$
  13. okay, working with mpmaster for the x5. stagetool : 1 #0 = Do not pre-stage tools, 1 = Stage tools good, that is set in place. But I post the code and the tool is not staged... so I looked over the code and can't seem to find a place where it is actually staging the tool. there is this: ptlchg_com if stagetool >= zero, [ if omitseq$ = 1 & tseqno > 0, [ if tseqno = 2, n$ = t$ pbld, *n$, *t$, "M06", ptoolcomm, e$ ] else, pbld, n$, *t$, "M06", ptoolcomm, e$ ] but that is just outputting the tool and the M6. I don't see it any where else that would do any thing... what am I missing?
  14. Tried and true! Thanks Colin G. See? Over thinking things just gets messy when I do it. Sticking to thinking about peanut butter from now on.
  15. That was the first thing I tried. but you get this. G90 G00 G53 Z0. G59 X0. Y0. G90 G00 G53 Z0. G58 X0. Y0. It wants to output all of it. yep ... that should work. Hold please.
  16. Isn't there a variable that is already in place for NEXT_OP = eof? I guess I could create one but I was hoping for something a little less... messy.
  17. So I want to build in some logic to my post that says: at the end of the file, instead of the usual pretract do something else. What would my if line look like and what if word would I use? I want to change this: pbld, n$, sg90, sg00, "G53", "Z0.", scoolant, e$ pbld, n$, "G58", "X0.", "Y0.", protretinc, e$ To this: pbld, n$, sg90, sg00, "G53", "Z0.", scoolant, e$ pbld, n$, "G59", "X0.", "Y0.", protretinc, e$ G58 is a safe tool change position G59 is a pallet change location for different machines with the same controller(cant use g53)
  18. This is the one I downloaded off this site for X5.
  19. I am getting a PST LINE (3861) - Label has not been defined[99] error in my post. That is this line if tcr$>0, scomm_str, *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldia$, " ", *tcr, punit, " ", popnote, scomm_end, e$ Number 99 is *tcr, tool corner radius. Why am I getting this error on a predefined NCI variable?

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.

Follow us

×
×
  • Create New...