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:

okuma toolpaths G95


steveo25
 Share

Recommended Posts

Im working with the okuma osp7000l post and version x2 and Im trying to make G95 always output instead of G94.

My post code looks like this:

code:

 # Feed mode G code selection

sg94 G94 #UPM (per minute)

sg95 G95 #UPR (per rev)

sgfeed #Target for string

 

fstrsel sg94 ipr_actv$ sgfeed 2 -1

Any help would be much appreciated. Thanks

Link to comment
Share on other sites

The above code is what is called a string selector and they basically let you use a single output variable (target variable) for different output based on an input (variable with a value). Think of this as many IF statements or even a CASE statement if you are familiar with those programming concepts.

 

I bet if you do a search on string selectors you might find some helpful information.

 

In simple terms the value of ipr_actv$ is what is causing the G94 or G95 to be output. If you never, ever want G94 then don't use the string selector and just force out the G95 using a literal sting "G95" in your output line.

 

String selectors are another BASIC concept in MP and our Posts.

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