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:

I'm stumped....


MetalFlake
 Share

Recommended Posts

..on getting my Acramatic post to output incremental W values.

 

Anybody else's input would be very appreciated. It seems that I get only absolute W values. I've been able to get them on every line and thats a step in the right direction.

 

Here's what the W section looks like:

 

#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

 

Here's the code:

 

(MSG, DRILL #30 PILOTS 100PL)

: G0 G90 G70

M5 M9

G98 G0 Z23.

G0 G98 Y15. A-24. B0.

T4 M6

G98 G0 A0

M0

(MSG, .1285 [#30] X 1.0 3FLT CARB STUB DRILL )

(MSG, MAX - Z2.)

(MSG, MIN - Z.8934)

G0 G90 X1.3031 Y-.7561 Z2. S5000 M13 D1

Z2.

Z1.25

G81 X1.3031 Y-.7561 Z-.3266 R1.25 W1.25 F5.76

X1.5141 Y.3929 W1.25

Y1.3584 Z-.3566 W1.25

Y2.3239 W1.25

Y3.2894 W1.25

Y4.2549 W1.25

Y5.3529 W1.25

Y6.1548 W1.25

.

.

.

 

Again, many thanks for any help.

 

MF

Link to comment
Share on other sites

To Christiam Raebild:

 

 

I'm getting W0's on every line when I change to:

 

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

 

Here's a clip:

 

 

(MSG, DRILL #30 PILOTS 100PL)

: G0 G90 G70

M5 M9

G98 G0 Z23.

G0 G98 Y15. A-24. B0.

T4 M6

G98 G0 A0

M0

(MSG, .1285 [#30] X 1.0 3FLT CARB STUB DRILL )

(MSG, MAX - Z2.)

(MSG, MIN - Z.8934)

G0 G90 X1.3031 Y-.7561 Z2. S4000 M13 D1

Z2. M8

Z1.25

G81 X1.3031 Y-.7561 Z-.3266 R1.25 W0. F8.

X1.5141 Y.3929 W0.

Y1.3584 Z-.3566 W0.

Y2.3239 W0.

Y3.2894 W0.

Y4.2549 W0.

Y5.3529 W0.

Y6.1548 W0.

Y6.9568 W0.

.

.

.

 

 

MF

Link to comment
Share on other sites

Attn Millman:

 

Here's whta I get when I remove the #'s to get:

 

if absinc = zero, initht_a, !initht_i

else, initht_i, !initht_a

 

 

 

(MSG, DRILL #30 PILOTS 100PL)

: G0 G90 G70

M5 M9

G98 G0 Z23.

G0 G98 Y15. A-24. B0.

T4 M6

G98 G0 A0

M0

(MSG, .1285 [#30] X 1.0 3FLT CARB STUB DRILL )

(MSG, MAX - Z2.)

(MSG, MIN - Z.8934)

G0 G90 X1.3031 Y-.7561 Z2. S4000 M13 D1

Z2. M8

Z1.25

G81 X1.3031 Y-.7561 Z-.3266 R1.25 W1.25 W1.25 F8.

X1.5141 Y.3929 W1.25

G80

Y1.3584

Z1.22

G81 X1.5141 Y1.3584 Z-.3266 R1.22 W1.22 W1.22 F8.

Y2.3239 W1.22

Y3.2894 W1.22

Y4.2549 W1.22

Y5.3529 W1.22

Y6.1548 W1.22

.

.

.

.

 

 

Looks like the W's are still absolute and I get two W's in the first g81 line.

 

Hmmmmm.

 

MF

Link to comment
Share on other sites

MetalFlake, your line

 

initht_i = initht - refht

 

sets initht_i to the incremental distance from refht to initht. If that is not the incremental value you need, then change that to

 

initht_i = initht - tosz

 

to get the incremental distance from top of stock (i.e. the top of the hole) to initht.

 

I had assumend that the formula for initht_i was correct in your post.

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