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


Greg Williams
 Share

Recommended Posts

Hi guys,

 

I am using V9 with the MPFAN post from the V8 CD, I have done a lot of editing to this post to custimize it to my liking, there is just one more thing that is bugging me and I cant work it out. We use Makino's and this type of machine uses a code (G05 P10000) to turn on the high speed milling mode.

So I edited the text file for mi8 so that 1=on and 0=off, cool so far.

 

I added to the post a comment to PSOF and the toolchange where I wanted it to come out

if mi8>=one, n, "G05P10000", e

still going good as this turns on the mode no problems.

 

Now for the hard bit turning it off I added a line to Pretact

if mi8 >= one, "G05P0", e

this works fine if the next tool has a value of one in mi8, if it does not then no code is output.

 

So the real question is how do I save the value that was previously in mi8 as it seems that in pretact the misc values are taken from the next tool. Hope this mumbo jumbo makes sense.

 

[ 05-28-2002, 03:41 AM: Message edited by: Budgie ]

Link to comment
Share on other sites

Hello Greg,

 

I had the same kind of problem. I would suggest that you initialise a user variable in the tool change post block with the value of mi8 in it. Then, in the pretact post block use the variable to turn your high speed of instead of mi8.

 

Hope this helps,

 

[ 05-28-2002, 07:59 AM: Message edited by: marting ]

Link to comment
Share on other sites

Greg,

 

The reason this happens is that the pretract postblocks are called after the tool change has been read for the next operation which causes you to lose the information from the previous operation.

 

You can fix this easily by forcing an update of MI8 when high speed is set and then using the prv_mi8 in your logic in pretract.

 

IE.

 

if mi8>=one, n, "G05P10000", !mi8, e

 

pretract

if prv_mi8 >= one, "G05P0", e

 

This should do the trick for you.

 

Godd luck!

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