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:

Help needed for new Mplmaster


babolino
 Share

Recommended Posts

Hello all,

 

Can anybody help me out?

 

Post with new mplmaster, work on sub spindle

 

N215 T21500

G18 G98

M71

M15

G0 C0. Y0.-------still outputs C instead of A

M188

G0 X150. Z-6.

G97 S1591 M03

G18 H0. W0.

G107 C25.--------also here

G1 X70. A34.377 F10000.

X34. F1.5

A20.626 F159.1------good code

G3 Z0. A6.875 R6.

.

.

.

X54. F1.5

X150. F10000.

G107 A0.

M15

-----------no "disable" C-axis shoul be M70

G28 U0. V0. W0. H0. M05

M30

 

any ideas?

 

I also should have specified in every operation is it in milling mode (M76,M71) or in spindle mode (M75,M70).

 

any ideas how I can do that?

Link to comment
Share on other sites

So start looking here and look to the answers he gave you in the other thread and you should have it.

 

code:

pfcout          #Force C axis output

if spindle_no$ = 0, #main

[

result = nwadrs(strc,cout_a)

result = nwadrs(strh,cout_i)

if millcc & g112address = 0, result = nwadrs(stry, cabs)

if millcc & g112address = 1, result = nwadrs(strc, cabs)

]

else, #sub

[

result = nwadrs(stra,cout_a)

if millcc & g112address = 0, result = nwadrs(stry, cabs)

if millcc & g112address = 1, result = nwadrs(stra, cabs)

]

 

cout_a = cabs

cout_i = csav - prv_csav

 

if rot_type = 2,

[

while cout_a >= 360, cout_a = cout_a - 360

while cout_a < 0, cout_a = cout_a + 360

]

 

if posttype$ <> two & c_axistype < three,

[

if c_axistype = one | millcc,

[

if (abs(cuttype) = 3 | cuttype = 4) & rot_type = 2,

[

if absinc$ = one | (abs(fmtrnd(csav - prv_csav)) >= 180. & gcode$ <> 0), *cout_i, !cinc, !cabs, !cout_a

else, *cout_a, !cabs, !cinc, !cout_i

]

else,

[

if millcc,

[

if absinc$ = zero, !cout_a, *cabs, !cinc, !cout_i

else, !cout_i, *cinc, !cabs, !cout_a

]

else,

[

if absinc$ = zero, *cout_a, !cabs, !cinc, !cout_i

else, *cout_i, !cinc, !cabs, !cout_a

]

]

 

]

else, #Signed direction, modality on c_wnd, no incremental

[

if fmtrnd(prv_c_wnd) <> fmtrnd(c_wnd),

[

if indx_mc = zero, result = nwadrs(sc_minus, cout_a)

else, result = nwadrs(str_cax_abs, cout_a)

*cout_a

]

!c_wnd, !cabs, !cinc

]

]

!csav

 

pcout #C axis output

if spindle_no$ = 0, #main

[

result = nwadrs(strc,cout_a)

result = nwadrs(strh,cout_i)

if millcc & g112address = 0, result = nwadrs(stry, cabs)

if millcc & g112address = 1, result = nwadrs(strc, cabs)

]

else, #sub

[

result = nwadrs(stra,cout_a)

if millcc & g112address = 0, result = nwadrs(stry, cabs)

if millcc & g112address = 1, result = nwadrs(stra, cabs)

]

 

cout_a = cabs

cout_i = csav - prv_csav

 

if rot_type = 2,

[

while cout_a >= 360, cout_a = cout_a - 360

while cout_a < 0, cout_a = cout_a + 360

]

 

if posttype$ <> two & c_axistype < three,

[

if c_axistype = one | millcc,

[

if (abs(cuttype) = 3 | cuttype = 4) & rot_type = 2,

[

if absinc$ = one | (abs(fmtrnd(csav - prv_csav)) >= 180. & gcode$ <> 0), *cout_i, !cinc, !cabs, !cout_a

else, cout_a, !cabs, !cinc, !cout_i

]

else,

[

if millcc,

[

if absinc$ = zero, !cout_a, cabs, !cinc, !cout_i

else, !cout_i, cinc, !cabs, !cout_a

]

else,

[

if absinc$ = zero, cout_a, !cabs, !cinc, !cout_i

else, cout_i, !cinc, !cabs, !cout_a

]

]

]

else, #Signed direction, modality on c_wnd, no incremental

[

if fmtrnd(prv_c_wnd) <> fmtrnd(c_wnd),

[

if indx_mc = zero, result = nwadrs(sc_minus, cout_a)

else, result = nwadrs(str_cax_abs, cout_a)

*cout_a

]

!c_wnd, !cabs, !cinc

]

]

!csav

HTH

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