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:

Misc. Values


Brendan P
 Share

Recommended Posts

Good morning my friends, wink.gif

I have my modified mpmaster post that I use for doing 4th. axis work.

The post is working great,but the only problem I have is if I dont go into the operation,and click on misc. values and then check "on" misc. int. #9 (lock on first WCS)every rotary move will post a new work offset.

Example:

G54A....

G55A...

G56A...

This is a pain to have to do.

I only use this post for my rotary work,and I will only be posting using 1 work offset (G54).

So how can I make it so the misc. value is defaulted so I don't have to remember to go in there and turn it on???

 

Thank you in advance smile.gif

Link to comment
Share on other sites

A quote from prmdef.doc

 

quote:

C-Hook Name: prmdef.dll/.txt

 

Date: 30 January 2003

 

Programmer: CNC Software, Inc.

 

Description:

When you make a new operation, default parameter settings for the new

operation are taken from a preceding operation (if a preceding operation

of the same type can be found) or from the default operation library

(if it is not found).

 

In some cases, you may not wish to "carry" the parameter settings from

one operation to the next. An example of this is when making multiple

contour operations, each at different absolute depths.

 

This chook will prompt you to turn on or off the use of preceding

operation. This value will reset to "use the preceding operation"

when you exit Mastercam.

 

You may use this chook as the startup chook (see Screen/Config).

 

Input:

1-Yes, use preceeding operation of same type to set the defaults for a

new operation. If no similar operation is found, the parameters

from the default library will be used.

2-No, use only the parameters from the default library.

 

Distributor: CNC Software

671 Old Post Road

Tolland, CT 06084

 


ITHH

Link to comment
Share on other sites

Easy way:

 

1) add a line that says 'mi9=1' in the post; like this

 

psof #Start of file for non-zero tool number

mi9 = 1 # Force locked WCS [bgp]

ptravel

pwritbuf5

pcuttype

toolchng = one

if ntools = one,

[

#skip single tool outputs, stagetool must be on

#stagetool = m_one

!next_tool

]

.

.

.

 

C

 

[ 10-23-2003, 07:28 AM: Message edited by: chris m ]

Link to comment
Share on other sites

Thanks Chris, I'm very happy to be here. As far as mi & mr values go, by default, they are read when a post is loaded (you can however manually force the values in Screen-Configure-NC Settings-Misc Values).

So, by default, if you load a post and create operations, the default values set in the post are used in those operations. These values are then stored with the operations.

If you then load a different post (with different mi & mr default values), the original mi & mr values are still held in the operations. Mastercam does not update them. New operations created will use the defaults set in the new post however. This is most likely why you are seeing different results. I am sure you have had times where you opened Mastercam, started drawing a part, created a few toolpaths, realised you had the wrong post loaded, loaded the right one, created new ops, and then posted and the code was all screwed up..... Well, this is why... HTH...

 

[ 10-23-2003, 09:39 AM: Message edited by: Paul D. ]

Link to comment
Share on other sites

quote:

And what about me ??????????

I didn't really understand how to use it.

Sorry,I do appreciate all the help and I'm sorry if I didn't reply back to you.

Not intentional iskander. cheers.gif

 

I have really never played around (if you can believe it)with C hooks.

 

So I tried Chris' way first,cause he had called me and explained it to me.

And it worked right off the bat.

Link to comment
Share on other sites

Changing the default values in the post is not going to effect operations that have already been created (which is what I tried to explain above). It will however effect any future operations that you create (as long as the post is loaded prior to creating them - which I also tried to explain above). In the case of a file which already has operations, select all of the ops and use edit common parameters to switch them all. Setting the Mi value in psof will hardcode it without the ability to ever switch the setting off again (without a post edit). Your question was how do I set a default, I simply explained the how and why.

Oh, and I already tried talking to both Chris and S4A about working together. I think he'd do well there (as long as he didn't terrify the customers when they first met his big xxxx).

 

[ 10-23-2003, 11:07 AM: Message edited by: Paul D. ]

Link to comment
Share on other sites

quote:

(which is what I tried to explain above).

Yes,but my problem is I read too fast and over looked this.

I did not try writing new paths to prove out your way Paul,and I'm sure it does work this way.

You should know.

 

I guess what I'm trying to say is that Chris' way was exactly what I was looking for.

 

As always,I do appreciate all of the forums help.

And I wasn't trying to say that it wont work Paul.

 

cheers.gif

Link to comment
Share on other sites

What I try to emphasize is this :

 

Cnc Software in ver 9 changed the defaults policy :

 

By default the values are taken from the recent operation of the same type if it exists if not ,than from operation defaults .

 

See the quote upwards ^^^^

It regards any type of operation and I hate it!

Rather unsafe ,IMHO .

To change this policy you need prmdef.dll .

 

And IMHO it regars misc.values too

 

ITHH

 

[ 10-23-2003, 12:33 PM: Message edited by: plasttav ]

Link to comment
Share on other sites

hi guys

 

I have been trying to modify my mpmaster post for the same thing. I would like the default value for "lock on first WCS" set to 1 in the post's misc. values? This way I could turn it off without editing my post each time. If I try Dave's way of:

 

sav_mi9 = mi9

 

in psof and change to

 

sav_mi9 = 1

 

The misc. value in the parameters still shows 0 but when I post it is locked and I have no way of turning it off?

 

What might I be doing wrong?

 

Thanks

 

Eric

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