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:

Mpmaster post help again


DavidB
 Share

Recommended Posts

With the same tool I have a toolpath at B270 then another toolpath at B90.

I have a 400.mm retract at the end of the first toolpath so to clear the rotation of the B axis.

 

What the post outputs is the X,Y,Z and B move together on 1 line.

 

This will cause a crash and defeats the purpose of the 400.mm retract.

 

X2 Mpmaster code

code:

 G01 G40 X235.188 Y331.336

G00 Z20.

Z400.

(FINISH 3 LUGS DIAMETER 60.4MM)

M11 (UNLOCK)

X-301.042 Y329.83 Z20. B90.

M10 (LOCK)

Z7.89

G01 Z1. F850.

Same toolpaths posted with my V8 Mpmaster.

code:

 G01 G40 X235.188 Y331.336

G00 Z20.

Z400.

(FINISH 3 LUGS DIAMETER 60.4MM)

G00 M11 (UNLOCK)

B-270.

X-301.042 Y329.83

M10 (LOCK)

Z20.

B rotation first

X,Y Moves

Z move

 

Can I get this from the X2 Mpmaster?

I have "Break rapid moves-XY then Z for approach,Z then XY for retract Tick in my Control def?

 

 

Thanks

Link to comment
Share on other sites

David rearrange the section that handles the out put like this

 

code:

if lock_codes = 1 & not(index) & rot_on_x, pbld, n$, *sunlock, "(UNLOCK)", e$

pbld, n$, pfcout, e$

pbld, n$, sgabsinc, [if not(index), pwcs], pfxout, pfyout, e$

if lock_codes = 1 & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, "(LOCK)", e$

pbld, n$, pfzout, e$

Link to comment
Share on other sites

Looking through quick it looks like the only place that complete output is handled is in the ptlchg0$

 

Looks like this section ptlchg_com could generate it as well

 

If another one shows up use debug and you should be able to track it down and make the same edits

Link to comment
Share on other sites

John,

I ran debug it's not at a toolchange, it's using the same tool at B90 retract then rotate to B270 for next toolpath.

 

quote:

G00 Z20. pzrapid$ prapidout

Z400. pzrapid$ prapidout

(FINISH 3 LUGS DIAMETER 60.4MM) pcomment$ pcomment2

M11 (UNLOCK) pcomment$ p__54:1715

X-301.042 Y329.83 Z20. B-270. pcomment$ p__54:1715

M10 (LOCK) pcomment$ p__54:1715

Z7.89 pzrapid$ prapidout

G01 Z1. F850. plin$ plinout

Thanks

Link to comment
Share on other sites

I had simillar problem, I had to seperate XY, Z, and B(pfcout), in post.

 

Pl try this after Z rapid out in "ptlchg0"

 

pbld, n$, "G00",pfcout, e$

pbld, n$, pwcs, e$

pbld, n$, sgabsinc, pfxout, pfyout, e$

pbld, n$, pfzout, e$

 

and this is the output I am getting.

 

N720 G0 Z100.

N730 G00 Z1000.

(FACE 180 )

;DATUM PLANE X=268.998 Y=175.3 Z=206.266

N740 G00 B180.

N750 G15 H03

N760 X-25. Y-15.

N770 Z50.

N780 Z2.

N790 G1 Z0. F800.

Link to comment
Share on other sites

I think this be the area in ptlchg0?

 

code:

 pindex

if fmtrnd(prv_cabs) <> fmtrnd(cabs),

[

if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, [if not(index), sgabsinc, pwcs], pfxout, pfyout, pfzout, pfcout, e$

Or am I way off?

Link to comment
Share on other sites

quote

-------------------------------------------------

 

pindex if fmtrnd(prv_cabs) <> fmtrnd(cabs),

[

if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$ pbld, n$, [if not(index), sgabsinc, pwcs], pfxout, pfyout, pfzout, pfcout, e$

 

-----------------------------------------------

 

This seems to be the place where the output is coming from but only wierd thing is in your last message.

 

X-301.042 Y329.83 Z20. B-270. pcomment$ p__54:1715

 

I can't understand how can this be coming from pcomment.

Link to comment
Share on other sites

Monty,

 

I dont think it is coming from pindex as I added a force of my name and it did not post.

 

I agree I can not work out where it is coming from with debug.I'm no post guru.

 

Hopefully Brett from Inhouse will comment.

 

Thanks cheers.gif

Link to comment
Share on other sites

I did debug the output and everything is coming from ptlchg0 or ptlchg.

 

-------------------------------------------------

N690 X-21.15 Y36.633 I-42.3 J0. pcir$ pcirout 344.

N700 G1 X-23.65 Y40.963 plin$ plinout 346.

N710 Z-68. F999. plin$ plinout 348.

N720 G0 Z100. pzrapid$ prapidout 350.

N730 G00 Z1000. ptlchg0$ p__2:638 400.

(FACE 180 ) ptlchg0$ p__2:638 400.

;DATUM PLANE X=268.998 Y=175.3 Z=206.266 ptlchg0$ p__2:638 400.

N740 G00 B180. ptlchg0$ p__2:638 400.

N750 G15 H03 ptlchg0$ p__2:638 400.

N760 X-25. Y-15. ptlchg0$ p__2:638 400.

N770 Z50. ptlchg0$ p__2:638 400.

N780 Z2. pzrapid$ prapidout 402.

N790 G1 Z0. F800. plin$ plinout 404.

 

-------------------------------------------------

 

If you want I can send you comlete ptlchg0 and pindex code from my post for you to try.

Link to comment
Share on other sites

David,

 

Could come from here as well

 

ppos_cax_lin #Position the rotary axis before move - rapid

if index, pindex

else,

[

if fmtrnd(prv_cabs) <> fmtrnd(cabs) & rot_on_x,

[

sav_gcode = gcode$

gcode$ = zero

if mr10$>300, n$, "G0", *mr10$, e$

else, pbld, n$, "G0Z300.", e$

if prv_mi8$ = one, "G05P0(SGI OFF)", e$

pbld, n$, "M11 (UNLOCK)", e$

pbld, n$, sgcode, pcout, e$

pbld, n$, "M10 (LOCK)", e$

if mi8$ = one, "G05P10000(SGI ON)", e$

!cia

ps_cinc_calc

gcode$ = sav_gcode

!mi8$

]

]

 

 

Just out of interest what is wrong with the Old Post?

Link to comment
Share on other sites

I changed this in the ptlchg0 section

From this

code:

 if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, [if not(index), sgabsinc, pwcs], pfxout, pfyout, pfzout, pfcout, e$

To this

code:

  if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, [if not(index), sgabsinc, pwcs], pfcout,

This is the posted code now

code:

 G01 G40 X235.188 Y331.336

G00 Z20.

Z400.

(FINISH 3 LUGS DIAMETER 60.4MM)

M11 (UNLOCK)

B-270.

M10 (LOCK)

X-301.042 Y329.83 Z20.

Z7.89

G01 Z1. F850.

Now I just need to move the Z20. to a line below the X,Y move after M10 (lock)

 

Thanks

Link to comment
Share on other sites

Greg,

Your post was for the 5-axis I have since updated all my 5-axis mahines to the Generic 5-axis post from X.

 

I want to update My V8 Mpmaster to the new X2 Mpamaster.

 

I check with the mode I made and I can not see it causeing a problem so far.

 

This is code I'm getting now.

code:

 G01 G40 X235.188 Y331.336                                   plin$ plinout

G00 Z20. pzrapid$ prapidout

Z400. pzrapid$ prapidout

(FINISH 3 LUGS DIAMETER 60.4MM) pcomment$ pcomment2

M11 (UNLOCK) pcomment$ p__54:1715

B90. pcomment$ p__54:1715

M10 (LOCK) pcomment$ p__54:1715

X-301.042 Y329.83 Z20. pcomment$ prapidout

Z7.89

How can I get the Z20. move from prapidout to the next line?

 

Thanks all cheers.gif

Link to comment
Share on other sites

David,

 

The post I copied that code from was old 4 Axis MPmaster set up for A77

 

Current Mpmaster has this

 

ppos_cax_lin #Position the rotary axis before move - rapid

if index, pindex

else,

[

if fmtrnd(prv_cabs) <> fmtrnd(cabs) & rot_on_x,

[

sav_gcode = gcode$

if convert_rpd$ = 1,

[

feed = maxfeedpm

gcode$ = 1

ipr_type = 0

]

else, gcode$ = zero

if lock_codes = one & not(index), pbld, n$, *sunlock, sunlockcomm, e$

pbld, n$, sgcode, pcout, e$

if lock_codes = one & not(index) & cuttype = 0, pbld, n$, *slock, slockcomm, e$

!cia

ps_cinc_calc

gcode$ = sav_gcode

]

]

 

 

Note that it calls Pindex

 

I still think your change will be a problem. It may become apparent when machining multiple ops with the same tool

Link to comment
Share on other sites

Greg the code below is multible ops with the same tool at 180 degree rotations.

The mod I made to pindex seems to have only now output the B move inbetween the clamping codes.

The following line after clamping I do not want the Z value.

 

code:

 G01 G40 X235.188 Y331.336                                   plin$ plinout

G00 Z20. pzrapid$ prapidout

Z400. pzrapid$ prapidout

(FINISH 3 LUGS DIAMETER 60.4MM) pcomment$ pcomment2

M11 (UNLOCK) pcomment$ p__54:1715

B90. pcomment$ p__54:1715

M10 (LOCK) pcomment$ p__54:1715

X-301.042 Y329.83 Z20. pcomment$ prapidout

Z7.89

What is the best way to get the Z20. move onto a sepperate line after the X,Y moves?

 

Thanks

 

[ 01-04-2007, 09:22 PM: Message edited by: DavidB ]

Link to comment
Share on other sites

gcode yes you could do that.

Thanks

 

I use the Referance retract position to get the Z400. on the previous toolpath.

 

There are to many differances from the V8 to X2 post that a file compare does not work for me.As I said I'm no post guru.

 

I'd like to get the post working

Thanks

Link to comment
Share on other sites

Paul,

thanks for responding.

My V8 Mpmaster works without needing to have a Referance for the second toolpath.

 

Is there a way to get the Z axis move on a sepperate line after the rotaion?

 

I have been programming for years with a retract move only on the pre toolpath if I forget to put a clearance move on the following toolpath also this could be very dangerous.

 

Thanks

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