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:

Macro B question; Displaying a variable as an operator message.


danielm
 Share

Recommended Posts

I'd like to use the number in a variable as information to the machine operator. Ex: Lets say that I just ran a macro that set variable #141=.065. I now want to display that number and incorporate it into an operator message...something like: (Part is not located within .065. Inspect part loading).


Thanks for any help!!
DM

Link to comment
Share on other sites

I'm starting with a Renishaw probe macro for a 4-axis measurement and adjustment (O9817). #144 is the angle error that's written after the macro. The macro will error out on its own if the set tolerance is exceeded but it wont automatically report by how much and what direction.  Its this info that I want to put up for the operator.

Link to comment
Share on other sites

What he is saying is that he wants the message to have the value of the variable (whatever that value is), Which as far as i know you cannot do. I would look into what Ben or Ron posted, those are some options. If its just informative to the operator then you could use #3006 which is a program stop with a message to check the value of variable #141  

Link to comment
Share on other sites

I haven't ever tried it, but would the following work? or is there some internal prohibition that only allows non variable types in the alarm? (I am kind of assuming there must be since otherwise why wouldn't this be the norm)

 

#3000=1 (Part is not located within .065. Actual value is #144)

 

Also, just an FYI, if you do any other probing before your error checking #144 will be overwritten on the next probing cycle, so if you do other probing at the same time, its a good idea to stash it into a non-volatile macro variable (anything that's not in use over #500) that way it wont get overwritten on the next probing cycle.

 

I program this way so I can probe multiple features without stopping, then when I do the error checking, I just check the values of the 500 series variables I have set, this way I can check multiple features and not have to have probing stop after the first thing it finds bad.

Link to comment
Share on other sites

I'm starting with a Renishaw probe macro for a 4-axis measurement and adjustment (O9817). #144 is the angle error that's written after the macro. The macro will error out on its own if the set tolerance is exceeded but it wont automatically report by how much and what direction.  Its this info that I want to put up for the operator.

 

Well that is a totally different question. I think you have been pointed in the right direction.

Link to comment
Share on other sites

I haven't ever tried it, but would the following work? or is there some internal prohibition that only allows non variable types in the alarm? (I am kind of assuming there must be since otherwise why wouldn't this be the norm)

 

#3000=1 (Part is not located within .065. Actual value is #144)

 

Also, just an FYI, if you do any other probing before your error checking #144 will be overwritten on the next probing cycle, so if you do other probing at the same time, its a good idea to stash it into a non-volatile macro variable (anything that's not in use over #500) that way it wont get overwritten on the next probing cycle.

 

I program this way so I can probe multiple features without stopping, then when I do the error checking, I just check the values of the 500 series variables I have set, this way I can check multiple features and not have to have probing stop after the first thing it finds bad.

 

 

I'll try that but I'm thinking that it won't work and will just be processed as a comment.  Maybe if it had brackets around #144....[#144]  ?   If it works I'll put it up.     Also...I'm getting used to storing variables in a safe area...#600's. 

 

Thanks for the feedback!!

DM

Link to comment
Share on other sites

 

Also, just an FYI, if you do any other probing before your error checking #144 will be overwritten on the next probing cycle, so if you do other probing at the same time, its a good idea to stash it into a non-volatile macro variable (anything that's not in use over #150) that way it wont get overwritten on the next probing cycle.

 

Free fiss. :yes: :smoke:

 

I use variables between #150 and #199 for that stuff. Freeing mup my #500's for important stuff that I need to keep track of even after the power has turned off.

 

To OP; AFAIK you CANNOT insert data into an alarm message. You can do as follows;

#3001=143(MEAS. VAL. IS OUT OF TOL. SEE #143)

 

That would be the closest you could get to what you want.

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