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:

Adding M135 to my post


lou
 Share

Recommended Posts

Lou

 

Depends on what post you are using. use_pitch is not in MPFAN or some of the other posts. Assuming it is a preparatory command of some kind, this is what I did with a couple of my posts. You can see my changes where my initials are [cdm].

 

This one needs 'G93' before tapping, I have another that needs 'M29' in the same spot so I used the same idea:

 

ptap #Canned Tap Cycle

pdrlcommonb

result = newfs(12, feed) # Set for tapping Feedrate format [was 17] (cdm)

pbld, n, "G93", e # (cdm)

pcan1, pbld, n, sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

prdrlout, *feed, *speed, strcantext, e

pcom_movea

Link to comment
Share on other sites

I am posting to a Makino S56 w/ a fanuc control and it need the M135 in the post I have been putting it in manualy but once in awhile I forget. banghead.gif and break a tap.

 

So far the line that Mayday told me to add in worked now I am getting another error. Variable not defined: tapflg maybe I dont need it or is there another user def. I have to put in. I beleive I will have the same problem with "pitch="

 

Here is what I have so far..Again THANK YOU for the help!!!!

 

ptap #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if use_pitch, pbld, n, "G95", e

if use_pitch = 0,

[

n, *sm05, e

n, "M29", *speed, e

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout, *peck1,

prdrlout, dwell, *feed, strcantext, e

]

else,

[

if met_tool, pitch = n_tap_thds # Tap pitch (mm per thread)

else, pitch = 1/n_tap_thds # Tap pitch (inches per thread)

n, *sm05, e # Force Turn Off Spindle

n, "M135", *speed, e # Set Rigid Tapping Active

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

prdrlout, *peck1, *pitch, !feed, strcantext, e

]

pcom_movea

tapflg = 1

Link to comment
Share on other sites

Ahh, Thank You. ok, I have been known to make things complicated biggrin.gif My wife would be the first to tell you that. wink.gif

 

The last entry of Mayday's fix the errors but did not post out the M135. I just made the change that Chris asked me to try and it worked.

 

Now....... I think I have to change one more thing for this to work. My post is still putting out the P10000 for SGI mode and I dont think I can have that during a tap cycle.

 

This is what I am getting now.....

 

%

O0001

(PROGRAM NAME - T)

(DATE=DD-MM-YY - 13-06-05 TIME=HH:MM - 12:51)

N0G20

N10G0G17G40G49G80G90

(1/2-13 TAPRH TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - .5)

(DRILL)

N20T1

N30M6

N40G54

N50G0G90X-2.5621Y1.4914S260M3

N60G43H1Z2.M8

G05P10000

N70M8

N80M5

N90M135S260

N100G98G84Z-1.Q.05R.1F20.

N110X3.1931Y1.0229

N120X1.6348Y-2.0554

N130X-3.3365Y-1.7973

N140G80

N150M9

G05P0

N160M9N160G91G28Z0.M5

N170G28Y0.

N180M99

%

 

Thanks again for all the input cheers.gif

Link to comment
Share on other sites

A couple ways to fix this. The easiest I think is to add the cancel at the tap cycle:

 

ptap #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if use_pitch, pbld, n, "G95", e

if use_pitch = 0,

[

n, *sm05, e

n, "G8P0", e # Cancel G8/G5

n, "M135", *speed, e

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout, *peck1,

prdrlout, dwell, *feed, strcantext, e

]

else,

[

if met_tool, pitch = n_tap_thds # Tap pitch (mm per thread)

else, pitch = 1/n_tap_thds # Tap pitch (inches per thread)

n, *sm05, e # Force Turn Off Spindle

n, "G8P0", e # Cancel G8/G5

n, "M135", *speed, e # Set Rigid Tapping Active

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

prdrlout, *peck1, *pitch, !feed, strcantext, e

]

pcom_movea

tapflg = 1

 

cheers.gif

Link to comment
Share on other sites

When you post the cut, did you get the "G8P0" right before the tapping? The G5 will still post in the 'main' because thats written in the 'psof', 'ptlchg' and 'ptlchg0'. You should be getting the cancel right before the tapping which should allow this to work on the machine.

 

There is a way to not post a G5 for taps but it will require a lot more editing. I just suggested this for a quick fix.

 

cheers.gif

Link to comment
Share on other sites

THANK YOU ALL!!!!! It is now fixed. There were 2 areas that had the same code in it. I was changing the wrong area.

 

Hats off to everyone that helps out on this forum. These are the trying times when I am glad there is someone to lean on to help through the problems.

 

Here is the final code that makes (atleast my machines) work.

 

ptap #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if use_pitch, pbld, n, "G95", e

if use_pitch = 0,

[

n, "G05P0", e # Cancel G8/G5

n, *sm05, e # Force Turn Off Spindle

n, "M135", e # Set Rigid Tapping Active

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

prdrlout, dwell, *feed, strcantext, e

]

else,

[

if met_tool, pitch = n_tap_thds # Tap pitch (mm per thread)

else, pitch = 1/n_tap_thds # Tap pitch (inches per thread)

 

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

prdrlout, *pitch, !feed, strcantext, e

]

pcom_movea

tapflg = 1

 

 

cheers.gifbiggrin.gif

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