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:

How do you set max rpm limit in post


connormac
 Share

Recommended Posts

How do I set the max rpm limit in the post so when I multi-post program if the rpm in program is higher than highest machine RPM it will default to highest machine RPM. ie 7000 rpm highest rpm on 1 machine and will alarm out if anything higher than 7000 is in post.

 

Thanks for looking

 

Connormac

Link to comment
Share on other sites

maxss$ is the MC variable. Here's how I set my max speed per machine;

 

code:

pmachine

if smachinepath = "E:MCX4CNC_MACHINESENSHU JE60S.MMD",

[

smachinename = "ENSHU JE60S"

machine = 60

work_vari = 7000

max_speed = 13000

min_speed = 40

maxfeedpm = 590.55

]

if smachinepath = "E:MCX4CNC_MACHINESENSHU JE80S.MMD",

[

smachinename = "ENSHU JE80S"

machine = 80

work_vari = 14000

max_speed = 15000

min_speed = 50

maxfeedpm = 3546

]

code:

max_speed   : 0 #Maximum spindle speed

code:

      if maxss$ = zero | maxss$ > max_speed, maxss$ = max_speed

Link to comment
Share on other sites

What i was trying was an if, else statement

 

have this

n$,*ss$,*spdlon,e$

 

Changed it to this

 

if *ss$ > 7000,n$,"S7000",*spdlon,e$

else, n$,*ss$,*spdlon,e$

 

That worked.

 

But this

 

if prv_ss$ <> ss$, n$,"M03", ss$,e$

 

in null tool change

 

I tried this and it almost worked

 

if prv_ss$ < 7000, n$,"M03", ss$,e$

else, n$,"M03", "S7000",e$

 

I ended up with

 

M3 S8000

M3 S7000

 

So close...

 

[ 03-12-2010, 08:49 AM: Message edited by: connormac ]

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