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:

Mid operation spindle direction change


Recommended Posts

Hello. I am using the supplied mplmaster post for mastercam x5. I have modified it for our machine (2 axis lathe fanuc ot control).

 

I am stuck on why it is doing what it is doing. Using the same tool for some reason during grooving or part off it wants to stop the spindle and change direction.

 

My tools are set up correctly. I am using the same tool to groove, plunge turn, and part off. The tool should be using the M04 (CW) on all operations.

 

I have tried using the post debugger to make sense of what is happening, but I haven't had much luck.

 

Here is my code, let me know your thoughts, or if I am missing something.

 

Thanks in advanced.

 

(CUT THREAD RELIEF)

G28 U0. W0.

N2 G0 T0707

G99

G97 S750 M04

G0 X.82 Z-.8352 M8

G50 S750

G96 S250

G1 X.5811 F.002

G0 X.82

X.8351

Z-.895

G1 X.54

G0 X.8351

 

G96 S350

G0 Z-.6811

X.7799

G1 X.6385 Z-.7518 F.0025

X.5779 Z-.8259

G0 X.8314

 

G0 Z-.9707

G1 X.69 Z-.9

X.53

Z-.8844

X.5779 Z-.8259

G0 X.7799

 

(ROUGH TURN BACKSIDE)

G96 S250

G0 X.8125

Z-2.8089

G1 X.715 F.002

X.731 F.005

M05

G96 S300 M03

Z-3.245

G96 S250

X.68 F.002

X.696 F.005

G96 S300

Z-2.8125

X.7073 Z-2.8181 F.01

G96 S250

X.645 F.002

X.661 F.005

G96 S300

Z-3.245

X.6836 Z-3.2337 F.01

 

M05

G96 S300 M04

G0 X.6926

Z-2.8328

G1 X.625 F.002

X.665 F.005

G0 X.81

Z-2.7675

G1 X.75 F.002

G3 X.67 Z-2.8075 I-.04 K0.

G1 X.625

M05

G96 S450 M03

Z-3.2294 F.005

X.6391 Z-3.2223

G0 X.8125

Z-3.25

G96 S300

G1 X.73 F.002

X.625

X.6391 Z-3.2429 F.005

G0 X.81

M9

G97 S750

G28 U0. W0. M05

M01

post-68334-0-75988200-1467132208_thumb.png

Link to comment
Share on other sites

This is what it outputs if I change my default spindle to "right". Similar issues. I was thinking it may be coming from the "finish" spindle speed settings in the tool path.

 

(CUT THREAD RELIEF)

G28 U0. W0.

N2 G0 T0707

G99

G97 S750 M04

G0 X.82 Z-.6777 M8

G50 S750

G96 S200

G1 X.5811 F.002

G0 X.82

X.8351

Z-.7375

G1 X.54 F.0025

G0 X.8351

 

G96 S350

G0 Z-.5236

X.7799

G1 X.6385 Z-.5943

X.5779 Z-.6684

G0 X.8314

 

G0 Z-.8132

G1 X.69 Z-.7425

X.53

Z-.727

X.5779 Z-.6684

G0 X.7799

 

(ROUGH TURN BACKSIDE)

G96 S250

G0 X1.4875

Z-2.6515

G1 X.715 F.002

X.731 F.005

M05

G96 S300 M03

Z-3.0875

G96 S250

X.68 F.002

X.696 F.005

G96 S300

Z-2.655

X.7073 Z-2.6607 F.01

G96 S250

X.645 F.002

X.661 F.005

G96 S300

Z-3.0875

X.6836 Z-3.0762 F.01

 

M05

G97 S500 M04

G0 X.6926

Z-2.6753

G1 X.625 F.005

X.645 F.007

G0 X.81

Z-2.61

G1 X.75 F.005

G3 X.67 Z-2.65 I-.04 K0.

G1 X.625

Z-3.0719 F.007

X.6391 Z-3.0648

G0 X2.9875

Z-3.0925

G1 X.73 F.005

X.625

X.6391 Z-3.0854 F.007

G0 X.81

M9

G28 U0. W0. M05

M01

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