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 change x/z retract,same line?


Brendan P
 Share

Recommended Posts

Hi guys,I am using a modified mpmaster post thatI have just started to use for my rotab programs.

Everything works great but I dont like a move that I'm seeing in my code:

 

(MILL 2 X FIRE HOLES)

A98.979

X-6.219Z-2.

Z-2.2

G1Z-3.F30.

G41D50X-8.0065F10.

G3X-4.4315R1.7875

X-8.0065R1.7875

G1X-8.0265

G3X-4.4115R1.8075

X-8.0265R1.8075

G1G40X-7.7265

G0Z-2.

 

See the 2nd line?

I want to split up the X/Y moves so that the Z moves by itself.

The Z clearance plane is posting on the X line.

I don't like this.

Can someone please tell me what line in my post I can correct this on?

 

Thank you

Link to comment
Share on other sites

Open your post..

 

code:

# --------------------------------------------------------------------------

# Debugging and Factory Set Program Switches

# --------------------------------------------------------------------------

fastmode : no #Posting speed optimizition

bug1 : 2 #0=No display, 1=Generic list box, 2=Editor

bug2 : 0 #Append postline labels, non-zero is column position?

bug3 : 0 #Append whatline no. to each NC line? 0

bug4 : 0 #Append NCI line no. to each NC line? 0

whatno : yes #Do not perform whatline branches? (leave as yes)

change bug2 to 30 or 40, save, repost...

 

You'll get something like this;

 

quote:

% pheader

O0001 pheader

(202475-021 REV 13.NCF) pheader

(OCT 17, 2003 07:51) pheader

(MC9 FILE: 202475-021 REV 13) pheader

(MACHINE: PRESTAGE 4 AXIS) pheader

(MATERIAL: BRASS) pheader

(STOCK SIZE: X 2. Y .75 Z .5) pheader

(TOOL 1: DIA 0.5000 .500 CB EM 2FL SE) pwrtt

(TOOL 2: DIA 0.1250 1/8 CB EM 4FL TIALIN) pwrtt

(TOOL 3: DIA 0.2500 1/4 CHAMFER MILL) pwrtt

(OVERALL MAX Z1.) psof

(OVERALL MIN Z-.305) psof

N1 G00 G17 G40 G49 G80 G90 G20 psof

N2 T1 psof

N3 M01 psof ptlchg_com

( OPERATION: 1 FACING ) psof popnumber

N4 ( OP 1 G54 ) psof pcomment

N5 ( FACE ) psof pcomment

N6 M06(T1: .500 CB EM 2FL SE) psof ptoolcomm

N7 M03 S7000 psof ptlchg_com

N8 G00 G90 G54 X-2.3 Y-.694 A0. psof ptlchg_com

N9 G43 H1 Z1. M08 T2 psof ptlchg_com

N10 Z.11 pzrapid prapidout

N11 G01 Z0. F50. plin plinout

N12 X.15 F70. plin plinout

N13 G03 Y-.32 I0. J.187 pcir pcirout1

N14 G01 X-2. plin plinout

N15 G02 Y.054 I0. J.187 pcir pcirout1

N16 G01 X.45 plin plinout

N17 G00 Z1. pzrapid prapidout

(OPERATION: 2 CONTOUR) ptlchg0 popnumber

N18(OP 1 G54) ptlchg0 pcomment

N19(CONTOUR) ptlchg0 pcomment

(T1: .500 CB EM 2FL SE) ptlchg0 ptoolcomm

( TOOLPATH - CONTOUR) ptlchg0 p__1:908

( STOCK LEFT ON X & Y = 0.) ptlchg0 p__1:908

( STOCK LEFT ON Z = 0.) ptlchg0 p__1:908

N20 X-.975 Y.355 ptlchg0 prapidout

N21 Z.1 pzrapid prapidout


'Rekd

Link to comment
Share on other sites

BUCKETHEAD,

 

I'm not sitting in front of Mcam right now but my best guess is that the source of this line is from the postblock prapid (prapidout?) and might acctually originate in the .nci file. Your post might need some customizing to force x,y before z after a rotary indexing move.

 

HTH,

 

steve

Link to comment
Share on other sites

Here's a copy from my master.pst for you to compare Bucket

 

 

prapidout #Output to NC of linear movement - rapid

pcan1, pbld, n, sgplane, `sgcode, sgabsinc, pccdia,

pxout, pyout, pzout, pcout, strcantext, scoolant, e

 

plinout #Output to NC of linear movement - feed

pcan1, pbld, n, sgfeed, sgplane, `sgcode, sgabsinc, pccdia,

pxout, pyout, pzout, pcout, `feed, strcantext, scoolant, e

Link to comment
Share on other sites

Bucket this is Mpmaster thing it involves going into the Retract part of the post as well as the lock and unlock code part of the post. It will require some playing but when doing rotation of axis mpmaster I have seen it add soe mthing I didnt like so I modified the psot to take them out antoher thing you might find is it will throw in some extra M9 here and there is you have a mist, or through the spindle code in the post. I would make a back up and then look for places in the post where you the the retract called and the other things that relate to the Z plane working at the end and the begining of the paths when doing clearance.

 

Crazy Millman

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