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:

Post warning question.


jlw™
 Share

Recommended Posts

if rotary_type$ = three, result = mprint ("Axis Sub enabled in operation")

 

 

Now, that will warn you, but doesn't tell you which Operation it is.

 

Parameter #15240 is the Operation # in the ops manager. Do a search for "op_num".

 

You can use a variable in your prompt question, if you define it as part of the warning string.

 

saxis_sub_warn : "Warning, Axis sub is enabled in Operation: //op_num//."

 

result = mprint(saxis_sub_warn)

  • Like 1
Link to comment
Share on other sites

What, exactly, do you need to warn against? I'm a little confused.

 

The 'rotary_type$ variable should give you the "state" of the choices in Radio Button that are selected. The "index" of this particular variable (like most indexed lists) is "zero". So the first option "No rotation" should be zero, then 1, 2, and 3. (3 = Axis Sub selected in the list).

 

The dialog is a little "funky", in that the first two options "No Rotation", and "Rotary axis positioning" are basically the same thing. Both setting behave the same way in the post, and there is no difference in NC code output between the two.

 

The "third" option in the list (rotary_type$ = 2), is "Polar coordinates" output. Is that what you are trying to detect? If so, just change the logic to use 'rotary_type$ = 2'.

 

Do you also need to get the value of the 'Rotary Axis' setting?

Link to comment
Share on other sites

If the axis substitution radio button is checked the alarm works.  If it is the "3 axis" radio button it does not give me the message.

 

I don't really use axis sub but the 3 axis radio button converts the path to a rotary path.

 

I'd like the warning if the 3 axis radio button is checked.  Sorry, I misrepresented what I wanted to catch.

Link to comment
Share on other sites

No Worries!

 

Just change the logic to 'if rotary_type$ = 2,' and that should catch if the dialog is set to '3 Axis'.

 

FYI, you can write multiple warning messages, each with their own "if" statement, if you need to catch multiple conditions:

      if rotary_type$ = two, result = mprint ("Polar output enabled in operation")
      if rotary_type$ = three, result = mprint ("Axis Sub enabled in operation")
  • Like 1
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...