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 help


mayday
 Share

Recommended Posts

This is for the MPGEN5X post. What I need to do is when selecting drill depths I want to use all incremental settings in the parmeter page of the drill opp since all the cad is in 3d. problem is it outputs in abosute mode from Z zero which is fine for a fanuc style control but this is for a accra 950. The R plane sets up top of stock in the control and automatically adds .1 clearance. then the drill depth is taken from the R plane.

 

example of a drill cycle with top of stock drawn at Z-5.875. retract 0 inc, top of stock 0 inc, depth -.25 inc

:G0G17G90X-38.125Y14.5S800M3M43

Z1.

G81Z-6.125R-5.875F2.5 (need Z-.25 the R is fine

G80J1

G0Z1.

G0M26

 

any ideas how to do this. here is the area of the post I think I need to change. notice this has to work in all tool planes

 

prdrlout #Output drill position

 

psign_ang_out

if plane_2 = zero, #XY

[

if gcode = 81,

[

result = force(drlz, drlz)

result = force(refhtoutz, refhtoutz)

]

xout, yout, drlz, refhtoutz

]

else,

[

if plane_2 = one, #YZ

[

if gcode = 81,

[

result = force(drlx, drlx)

result = force(refhtoutx, refhtoutx)

]

drlx, yout, zout, refhtoutx

]

else, #XZ

[

if gcode = 81,

[

result = force(drly, drly)

result = force(refhtouty, refhtouty)

]

xout, drly, zout, refhtouty

]

]

!refhtoutx, !refhtouty, !refhtoutz, !drlx, !drly, !drlz

Link to comment
Share on other sites

quote:

rekd i got ips by the dozen....

It's ok, we got BAN buttons by the score.

 

BTW, if you're gonna do these lame AE attempts without being obvious, at least try to change things up a bit.

 

I understand you're not too bright, though, and your command of the written word is less than adequate to achieve this succesfully.

Link to comment
Share on other sites

MayDay,

Try setting up another variable ,say Z_incout, formatting it like your 'Z' word.

then calculate its value as being Z_incout = (drlz-refhtoutz)

 

finally output Z_incout in place of drlz

 

*********************************

prdrlout #Output drill position

 

psign_ang_out

if plane_2 = zero, #XY

[

if gcode = 81,

[

result = force(drlz, drlz)

result = force(refhtoutz, refhtoutz)

Z_incout = (drlz-refhtoutz)

 

]

xout, yout, Z_incout, refhtoutz

]

 

 

etc

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