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:

Fixated on Fixture Offsets


Chris Rizzo
 Share

Recommended Posts

Why are fixture offsets numbered 1,2,3,4,5,etc...in Mcam, and then converted by the post to g54,g55,g56,g57,g58,etc. for the machine?

 

I'm sure that there probably is a reason for this. Maybe if the programmer doesn't know the fixture offset order of a particular machine, he/she can just type 1,2,3,4,5 etc...without knowing the range of offsets are g54-g59, and then g110-g129. Maybe?

 

However in my small shop I know the control, and I'd prefer to just call them by the actual number in Mcam, instead of 1,2,3,etc. I've monkeyed around with the post a bit, but havn't figured it out yet. Before I call my dealer and inquire about him tweaking my post, I thought I'd get more ideas regarding this issue.

Thx y'all. tongue.gif

Link to comment
Share on other sites

cmr:

 

The 'conversion' is done in the post. In MPFAN.PST, the postbloc responsible is pwcs, which looks like this:

 

code:

pwcs            #G54+ coordinate setting at toolchange

if mi1 > one,

[

sav_frc_wcs = force_wcs

if sub_level, force_wcs = zero

if workofs <> prv_workofs | (force_wcs & toolchng),

[

if workofs < 6,

[

g_wcs = workofs + 54

*g_wcs

]

else,

[

p_wcs = workofs - five

"G54.1", *p_wcs

]

]

force_wcs = sav_frc_wcs

!workofs

]

If you change it to something like this:

 

code:

pwcs            #G54+ coordinate setting at toolchange

if mi1 > one,

[

sav_frc_wcs = force_wcs

if sub_level, force_wcs = zero

if workofs <> prv_workofs | (force_wcs & toolchng),

[

g_wcs = workofs

]

force_wcs = sav_frc_wcs

!workofs

]

You should get what you are looking for. Just be careful about any automaticly assigned work offsets, such as those generated by transform tool paths and by the View Manager, as I am not sure that they will post correctly.

Link to comment
Share on other sites

After a bit more screwing around, I figured out what I needed. Rick, you were real close, just missing one line... *g_wcs Thanks for the help! cheers.gif

 

code:

pwcs            #G54+ coordinate setting at toolchange

if mi1 > one,

[

sav_frc_wcs = force_wcs

if sub_level, force_wcs = zero

if workofs <> prv_workofs | (force_wcs & toolchng),

[

g_wcs = workofs

*g_wcs


Havn't tried it with transformations or parts with multiple faces and offsets yet...

eek.gifeek.gif

Link to comment
Share on other sites

CMR,

 

We run the offests zero based to allow us to support multiple machines from the same MC9 file without having to change the offsets. For example, you program a part using 54, 55, 56 for your offset numbers and plan to use you Haas machining center. Well the hass is tied up but the fadal is open. If you are using the E1, E2,E3 on the fadal, you now have to change your MC9 file. Leaving it zero based requires no change in the MC9 file, just load the fadal post and post.

 

By keeping the offsets zero based and having the post calulate the correct offset, you can just post to any machine with out editing your MC9 file.

 

I hope this sheds some light on why we do it this way.

Link to comment
Share on other sites

quote:

After a bit more screwing around, I figured out what I needed. Rick, you were real close, just missing one line... *g_wcs Thanks for the help!

Ooops. That's what I get for not testing it before I post it.

 

Glad you figured it out, though.

 

The modified block, for those paying along at home, should look like this:

 

code:

pwcs            #G54+ coordinate setting at toolchange

if mi1 > one,

[

sav_frc_wcs = force_wcs

if sub_level, force_wcs = zero

if workofs <> prv_workofs | (force_wcs & toolchng),

[

g_wcs = workofs

*g_wcs

]

force_wcs = sav_frc_wcs

!workofs

]

 

[ 05-22-2003, 03:38 AM: Message edited by: Rick Damiani ]

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