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:

MPLMaster editing question


nofalloff
 Share

Recommended Posts

About a year ago with the help of Ron and others here I edited a copy of MPLmaster to work with an old Sinumerik 810T lathe control. Specifically we were tweaking the threading cycles to output correctly. I've been using it for about a year with no problem till yesterday I tried to cut an ID thread and found the code was completely wrong (yes I haven't tried to cut an ID thread on this machine till now). I've been going through the post and the post guide but I'm hitting the limit of what I understand about MP programming.

The first problem I'm having is that sign of the R24 parameter value tells the control whether the thread is an ID (+) or OD (-) thread. So the thread height needs to be (major dia. - minor dia.) or vice versa depending on ID or OD. Right now all I get is a positive value. I pretty sure that this problem is not in the format statement but in how the height is calculated. I don't see how to change that in the "pre thread calculations" if that's where it need to be changed.

The next problem I'm having is the R26 which is the Z approach value is not picking up the data entered in that field in the operation in Mastercam. No matter what is entered in the operation the nc output for that parameter is always 0. The variable is lcc_zcst. Where does this pick up the value for the entered parameter in the op in MC?

I have spent hours trying to figure this out and have made no progress. Can someone please offer some advice?

 

Thanks

 

peter-

 

 

Threading parameters for Sinumerik 810T

R20 = Thread pitch

R21 = Start point of thread in x

R22 = Start point of thread Z

R23 = # Spring passes

R24 = Thread Depth

R25 = Finnish pass increment

R26 = Approach distance

R27 = Run-out Distance

R28 = Number of rough passes

R29 = Infeed angle

R31 = End point Z

R32 = End point Z

L97 = Cycle call

 

Sample code for threading:

R20=.0769R21=.4167R22=.05R23=1R24=-.0416R25=0R26=.05R27=.05

N20 R28=3R29=0R31=.4167R32=-1.1

N30L97P1

 

Format statements current

# Thread output

# --------------------------------------------------------------------------

fmt R21= 2 xmaj_thd # X major dia thread value

fmt R22= 2 zstrt_thd #Z Start

fmt R23= 4 nspring$ #Number of spring cuts

fmt R24= 3 thddepth$ #Thread height absolute

fmt Q 16 thdfirst$ #First depth cut in thread

fmt R25= 2 thdfinish$ #G76 thread finish allowance

fmt U 3 thd_dirx #Incremental X move for G76 mult starts

fmt W 3 thd_dirz #Incremental Z move for G76 mult starts

fmt R26= 2 lcc_zcst #Z Approach

fmt R27= 2 thdpulloff$ #Z runout

fmt R28= 4 thdncuts$ #number of rough cuts

fmt R29= 2 thdang #G76 threading angle

fmt R31= 2 thdrdlt #Thread R delta G92 and G76

fmt R32= 2 zend_thd # Z finish

fmt R34= 2 thdpull #G76 thread pull off

fmt R35= 4 thdlast$ #Last depth cut in thread

 

The post block for the threading cycle output.

 

pg76new #G76 threading new style

thdrdlt = xmaj_thd + abs(thdrdlt)

pbld, n$, pffr, *xmaj_thd, *zstrt_thd, *nspring$, *thddepth$, *thdfinish$, e$ #*thdpull, *thdlast$,

pbld, n$, *lcc_zcst, *thdpulloff$, *thdncuts$, *thdang, *thdrdlt, *zend_thd, e$ #pfxout, pfzout, *thdfirst$,

pbld, n$, "L97P1", e$

 

Some history on this here

http://www.emastercam.com/cgi-bin/ultimate...t=029886#000003

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

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...