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:

hsm


Brian Scullion
 Share

Recommended Posts

I am editing a post to enable support of high speed machining functions using a user input value between 1 and 10

 

So far I have managed to get the Misc. functions to output where I want the G131 R command using(mi3 1=ON 0=OFF) but now I would like to be able to input a value after the "R" using (mi4 = 1 thru 10), however whenever I go to post I get

 

G131 Rmi4

Instead of

G131 R7 (for example)

 

I must be missing something or else I have to write a statement if mi4= 7 (Do this)

 

Am I on the right track or off on a tangent??

Link to comment
Share on other sites

Put up your mod for the mi4 I think you have got a # missing in your format statement put that up as well.

 

If your form at stament looks like this:

code:

fmt  Rmi4  2   highrvaule     #Arc Radius 

You will get the result you see.

 

So without seeing soem thing from the post going t be a trial and error till we pn point it. I would use the debug then look for that aprt of the post producing the code and go from there.

 

HTH

Link to comment
Share on other sites

The way it looks (like you're hard coding R) you want to format;

code:

fmt     2   mi4         #miscellaneous integer 4

The way the Millman is showing you would not need to hardcode the R;

code:

fmt  R  2   mi4         #miscellaneous integer 4

You could also use only the mi3 code in your post by putting your mi4 number in mi3 and;

code:

if mi3 <> 0, "G131", mi3, e

You would then format mi3 instead of mi4.

 

Tim

Link to comment
Share on other sites

Brian,

This is what we did here. There are 24 selectable modes from the table. only one mi required.

 

phincoff # Super Hi-NC off selector

if mi8 = 0, "", e

if mi8 = 1, "G130", e

if mi8 = 2, "G130", e

if mi8 = 3, "G130", e

if mi8 = 4, "G130", e

if mi8 = 5, "G130", e

if mi8 = 6, "G130", e

if mi8 = 7, "G130", e

if mi8 = 8, "G130", e

if mi8 = 9, "G130", e

if mi8 = 10, "G130", e

if mi8 = 11, "G130", e

if mi8 = 12, "G130", e

if mi8 = 13, "G130", e

if mi8 = 14, "G130", e

if mi8 = 15, "G130", e

if mi8 = 16, "G130", e

if mi8 = 17, "G130", e

if mi8 = 18, "G130", e

if mi8 = 19, "G130", e

if mi8 = 20, "G130", e

if mi8 = 21, "G130", e

if mi8 = 22, "G130", e

if mi8 = 23, "G130", e

if mi8 = 24, "G130", e

if mi8 > 24, "", e

 

 

phinc # Super Hi-NC output selector

if mi8 = 0, "", e

if mi8 > 0 & mi8 < 25, phinca, e

if mi8 > 24, "", e

 

phinca # Super Hi-NC Control Selector

if mi8 = 1, "G131J0I0", e

if mi8 = 2, "G131J1I0", e

if mi8 = 3, "G131J2I0", e

if mi8 = 4, "G131J0I1", e

if mi8 = 5, "G131J1I1", e

if mi8 = 6, "G131J2I1", e

if mi8 = 7, "G131J0I2", e

if mi8 = 8, "G131J1I2", e

if mi8 = 9, "G131J2I2", e

if mi8 = 10, "G131J0I3", e

if mi8 = 11, "G131J1I3", e

if mi8 = 12, "G131J2I3", e

if mi8 = 13, "G131J0I0K1", e

if mi8 = 14, "G131J1I0K1", e

if mi8 = 15, "G131J2I0K1", e

if mi8 = 16, "G131J0I1K1", e

if mi8 = 17, "G131J1I1K1", e

if mi8 = 18, "G131J2I1K1", e

if mi8 = 19, "G131J0I2K1", e

if mi8 = 20, "G131J1I2K1", e

if mi8 = 21, "G131J2I2K1", e

if mi8 = 22, "G131J0I3K1", e

if mi8 = 23, "G131J1I3K1", e

if mi8 = 24, "G131J2I3K1", e

 

 

 

pblow # Spindle nose blow

if mi9 = 1, "M121", e

 

pblowoff # Spindle nose blow off

if mi9 = 1, "M9", e

 

 

Thanks

35k chipper

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