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:

Incremental W's in for cinncinatti drill cycle post question:


MetalFlake
 Share

Recommended Posts

Greets to the group from Everett, WA where the weather is finially nice this summer. .

 

So here's my problem. I need to tweek my post so that the W's are incremental from the R plane and not absolute. I also need to get the W's to be on every hole except for the last one.

 

 

The 'W' section of my post look like this:

 

 

#W drill position

if cuttype = one, initht_a = initht + (rotdia / two))

else, initht_a = initht

initht_i = initht - refht

if cuttype = three, initht_a = w

if absinc = zero, initht_a, !initht_i

else, initht_i, !initht_a

#'W' is ALWAYS considered to be an INCREMENTAL distance from the

#'R' plane regardless of the Absolute/Incremental (G90/G91) setting!

# Per CINC docs (pg 8-2, 8-6, 8-11)

initht_a, !initht_i # Output the 'W' word

 

 

...Seems like my problem is addressed here but the code dosen't come out right.

 

BTW I had a supposedly correct post emailed to me but it has the same problem.

 

Many thanks for any help!!

 

MF

Link to comment
Share on other sites

quote:

BTW I had a supposedly correct post emailed to me but it has the same problem.

Did you explain to the author your problem?

 

If I understnad you corrext you want this to do let say 99 out of 100 holes with a W and the last one without seems like a pretty tall order and if somenoen even tackled that you are still not happy do not know what to tell you except good luck.

 

headscratch.gifheadscratch.gif always good to cut off your nose to spite your face.

Link to comment
Share on other sites
Guest CNC Apps Guy 1

quote:

...I also need to get the W's to be on every hole except for the last one...

I did not see that until Ron so astutely pointed it out... Why on earth would you not want it on the last hole? headscratch.gifconfused.gifheadscratch.gifconfused.gif

Link to comment
Share on other sites

Isn't the W the retract distance to the initial height? Like a G98 call in Fanucese? Why would you not put the W call on the last hole? confused.gif

 

Switch the last two variables like this:

 

code:

#W drill position

if cuttype = one, initht_a = initht + (rotdia / two))

else, initht_a = initht

initht_i = initht - refht

if cuttype = three, initht_a = w

#if absinc = zero, initht_a, !initht_i

#else, initht_i, !initht_a

#'W' is ALWAYS considered to be an INCREMENTAL distance from the

#'R' plane regardless of the Absolute/Incremental (G90/G91) setting!

# Per CINC docs (pg 8-2, 8-6, 8-11)

initht_i, !initht_a # Output the 'W' word

The only way you'll be able to not output this for the last hole would be to put a conditional on that last (output) line like:

code:

if nextop = 100, <output variable>

Link to comment
Share on other sites

MetalFlake,

 

Try this...

 

Change the last line in the section of your PST code from ->

 

code:

initht_a, !initht_i # Output the 'W' word  

to be ->

 

code:

!initht_a, *initht_i # Output the 'W' word  

The (incremental) 'W' value will be output on every drilled hole position.

 

Clearance set to 0.25 (abs)

Retract set to 0.1 (abs)

Top of Stock set to 0.0 (inc)

Depth set to -1.0 (inc)

 

Point #1 -> X0, Y0, Z0

Point #3 -> X1, Y1, Z1

Point #3 -> X2, Y2, Z2

Point #4 -> X3, Y3, Z-1

 

Output from MPA2100E.PST ->

 

code:

N10 G0 G90 X0. Y0. S1000 M3

N12 Z.25

N14 G81 Z-1. R.1 W.15 F8.8

N16 X1. Y1. Z0. W.15

N18 X2. Y2. Z1. W.15

N20 X3. Y3. Z-2. W.15

N22 G80


Link to comment
Share on other sites

To Millman & James..

 

The reason for the W not on the last hole is that when the control see's the G80 after the last hole it makes the machine dive for the R plane. The only real effect is that it spooks the operator. I've been asked to fix my programs to save our operators some hair.

 

 

Also the W is an incremental distance from the R plane ....A JUMP HEIGHT...for clearing clamps, part features and such.

 

 

Thanks again for the replies.

 

MF

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