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 QUESTIONS


Recommended Posts

Here's one I have set up to determine Rotary type output

Define the variable and the questions

index_set   : 1        #Default setting for force index is 1(Use in Indexer Mode)
fq 1 index_set "Full Rotary or Indexer (0=Full Rotary, 1=Indexer)"

 

Then in  my header..I have the post ask the question, user input to determine setting, manipulate the desired setting

 header = 0
      q1
      force_index = index_set
      if force_index > 1 | force_index < 0, force_index = 1
      if index_set > 1 | index_set < 0, result = mprint(sindexwarn), exitpost$, e$

I have a waring if the input isn't proper

sindexwarn  : "ERROR SELECT CORRECT MODE FOR MACHINE, POST WILL EXIT, REPOST AND CHECK SETTING"

 

That's a basic thing I use...there are all kinds of what it can be used..it might be better for you to ask how to do something specific...the coding then can be tailoer to provide a better example

 

Link to comment
Share on other sites

Hi John,

What i want to do is have the user answer yes or no when the question pops up. I have added this logic tor a tool n number that equals the tool number/

 fmt "N0" 4 tool_cntr   #For tool sequence numbers
# --------------------------------------------------------------------------
#Tool sequence numbers
tool_cntr = t$      

pbld, tool_cntr = toolno
       *tool_cntr, e$

I want to have the user output the tool secuence numbers with a YES answer and not output them with a NO answer.

I realize that I'll have to create more variables

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