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:

two spindle commands


Mr. Dayshift
 Share

Recommended Posts

Hello forum,

 

I am trying to remove the first spindle command from this tap cycle. Any help will be appreciated. I'm using MCX,MR2, MPMASTER with a Fanuc O-M.

 

 

T4 M06 ( 5/16-18 TAPRH)

(MAX - Z1.)

(MIN - Z-.75)

G00 G90 G54 X.56 Y-1.5 S855 M03

G43 H34 Z1. T5

M08

G95

M29 S855

G98 G84 Z-.75 R.1 F.0556

X4.06

X.56 Y1.5

X4.06

G80

G94

M09

M05

 

**************************************************

 

ptap$ #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

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

if use_pitch = 0,

[

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout,

prdrlout, *feed, strcantext, e$

]

else,

[

pbld, n$, "M29", *speed, e$

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, pdrlxy, pfzout, pcout,

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

]

pcom_movea

tapflg = 1

Link to comment
Share on other sites

"Code looks good to me.

Why do you want to remove the first spindle comand?"

 

I have two different posts which each output this double spindle command. Neither of my samples from the manuals do not have the first S____ and M03.

 

I understand the command is controlled from a 'common blocks area'. I have not found a switch to turn it off.

 

 

Any suggestions?

Link to comment
Share on other sites

David is correct, the (first) spindle speed & spindle start come from the ToolChange postblock logic in the PST.

 

You would need to add logic in ptlchg_com to test the opcode$ & nextdc$ to know if you need to suppress the 'toolchange' RPM output ->

*Note: that "nextdc$ = 3" here assumes that the "std" Tap cycle in the PST is being used for Rigid tapping.

So, you may need to adjust the value tested for.

code:

      if opcode$ = 3 & nextdc$ = 3,  #check for rigid tap = NO "speed" output

pcan1, pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, *spindle, strcantext, e$

else,

pcan1, pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, *speed, *spindle, strcantext, e$

Link to comment
Share on other sites

Take out the *spindle like this:

 

code:

 if opcode$ = 3 & nextdc$ = 3,  #check for rigid tap = NO "speed" output

pcan1, pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, strcantext, e$

else,

pcan1, pbld, n$, *sgcode, [if not(index), sgabsinc, pwcs], pfcout, *speed, *spindle, strcantext, e$

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