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:

Post mod- mpmaster help?


mayday
 Share

Recommended Posts

I've changed the output of the D offset#

from the G41/G42 lines in the code to be with the lenght offset#

It still outputs G41/G42 but without the D

It makes it easier to edit if a tool number has to be changed

because of a conflict at the machine with a currently running job.

sucks to scan for G41 comp lines. To many times the operator misses one.

 

I need to flag the dia offset to only output

when ccomp is active, right now I get it all the time with any

tool

 

posted code: modified MPMaster post

G00 G90 G54 W0. X-84.08 Y271.28 S800 M03

G43 Z25. H58 D58 M08

G81 Z-6. R4. F63.5

 

this is from ptlchg_com

 

pbld, n, "G43", pfzout, *tlngno, tloffno, scoolant, next_tool, e

 

not sure how to create the argument to check if comp is active

any idea's???

Link to comment
Share on other sites

what am I missing, this dont work

havnt done much with ifs and else statments

 

Im guessing and learning

 

error

Variable not defined: pbld

 

I think I need somthing like this

 

if cc_pos = 0

pbld, n, "G43", pfzout, *tlngno, scoolant, next_tool, e

else,

pbld, n, "G43", pfzout, *tlngno, *tloffno, scoolant, next_tool, e

Link to comment
Share on other sites

ok, this works without errors but now I totally lost the D# Im assuming this might have to be further down in the post so it see's what cc_pos is before the G43 line is output

 

if cc_pos < 1,

pbld, n, "G43", pfzout, *tlngno, scoolant, next_tool, e

else,

pbld, n, "G43", pfzout, *tlngno, *tloffno, scoolant, next_tool, e

Link to comment
Share on other sites

Well May^day look at the equation that creates and it should be smooth sailing from that point.

 

if cc_pos = 0

 

It is a word equation if the Value of the variable cc_pos where to equal 0 then what should happen nothing cause the condition of the equation is met.

 

if cc_pos < 1,

 

In this word equation there are some things the program does without you telling it to here. If the Valus of the variable cc_pos is less than one then this statement must be true so output this value using the predefind variables of this word equation.

 

pbld, n, "G43", pfzout, *tlngno, scoolant, next_tool, e

 

Else is where the program does the work without telling you. If the Value of the Variable cc_pos is greater than one then this statement must be true so it outputs this stament using the other variables using this equation.

 

pbld, n, "G43", pfzout, *tlngno, *tloffno, scoolant, next_tool, e

 

So depending where this is the program will do and look according to what you are looking for. I will say this I know nothing about programming so I am using my stupid logic to come up with this explaintion. I hope I am right if not I hope someone that know will correct me so I will know the right way.

 

Crazy Millman

Link to comment
Share on other sites

the more logic I use,

the more im confused. rolleyes.gif

after thinking agian what I am trying may not work well. I will only get a D# with a G43 call...not good. so now Im thinking only output D# when the move ahead is G01 or linier. If it see's a drill code only output an H#...

Link to comment
Share on other sites

O.K. my ship aint sunk yet biggrin.gif

I think I got it, still in testing stages

 

if gcode = drlgsel,

pbld, n, "G43", pfzout, *tlngno, *tloffno, scoolant, next_tool, e

else,

pbld, n, "G43", pfzout, *tlngno, scoolant, next_tool, e

 

( T58 TOOL CHANGE 5/8 SPOT DRILL)

G00 G90 G54 W0. X-84.08 Y271.28 S800 M03

G43 Z25. H58 T11

G81 Z-6. R3. F64.

X-210.27 Y91.07

X-362.6 Y466.3

X-488.78 Y286.08

G80

G91 G28 Z0.

G00 G90 W5.

M00

( T11 TOOL CHANGE .625 ROUGHER)

(TOOLPATH - CONTOUR)

(STK ON X,Y = 0.)

(STK ON Z = 0.)

G00 G90 G54 W0. X-2700. Y1735.319 S306 M03

G43 Z1. H11 D11 M08 T58

Z0.

G01 G41 Y1735. F4.5

X-1044.

X0. Y1132.3

Y0.

X-2700.

Y1735.

G40 X-2700.319

G00 Z1. M09

G91 G28 Z0.

G90 M00

G53 W10.

X96.

M02

 

 

even though most of these posts are mine redface.gif

Thanks for puttin up with me!

and Thanks Tom and Crazy for making me think a little harder than I like

Link to comment
Share on other sites

Hey one other thing May^Day I use to put all my D offest call with my G41 or G42 moves you can write different operations for the same tool using different d offsets to make things tigher or losser in places and have control in those tight tolerance places verse adjust them all by having only one D for the tool is the way I do it. So make sure your post modification will do that if you think you want the ability to control that.

 

Crazy Millman

 

[ 08-26-2003, 03:31 PM: Message edited by: Millman^crazy ]

Link to comment
Share on other sites

we tend to stay away from that for our own reasons. but I still have my original post as backup in case somthing goes buggie. so far its working ok. this is a horz 4 axis and I allways output a G43 after index for restarts, so no matter what D# I use it will output it. Thanks for the Ideas. always appreciate em cheers.gif

Link to comment
Share on other sites

Well May^Day I know the reason but since we run the machines we program we can kinda get away with that.

 

Cool Beans.

 

Crazy Millman

 

It is always good to jump off a diving board into the pool. There is only one thing you need to remember is to have water in the pool frist. ohhh

Knew I was forgetting something. cheers.gifcheers.gif

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