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:

Lathe spindle speed mods


Recommended Posts

We've got a new Toshiba VTL that requires an extra 0 at the end of the spindle speed

in other words

S500  needs to be S5000

The spindle clamp needs the extra zero as well

I've modified my post like this

pcssg50         #Output Constant surface speed clamp
      maxss = (maxss * 10)
      if css_actv$, pbld, n$, *sg50, *maxss$, pgear, e$

pcss            #Output Constant surface speed
     
      speed = (g_speed * 10)
      if css_actv$, pbld, n$, *sg9697, *speed, *spindle_l, !css_actv$, e$ # force M3?? 07-20-07
      !speed

 

this is the result

In Mastercam the spindle clamp is  programmed to 200

CSS is programmed to 500

desired output is

2000

and

5000

this is what I'm gettting

 

M6 T100
M0
G0 G54 X30.439 Z6. T0101
G92 S200 M42  <----------------- this is unchanged  ( G92 = G50 on this machine)
G96 S5000 M3   <----------------  this is correct
Z2.2775
G99 G1 Z2.1775 F.018 M8

 

can some one steer me in the right direction

 

 

Link to comment
Share on other sites

That worked,

but I'm curious as to why the $ was not required

on the 

speed = (g_speed * 10)  line

 

 

pcssg50         #Output Constant surface speed clamp
      maxss$ = (maxss$ * 10)
      if css_actv$, pbld, n$, *sg50, *maxss$, pgear, e$

pcss            #Output Constant surface speed
     
      speed = (g_speed * 10)
      if css_actv$, pbld, n$, *sg9697, *speed, *spindle_l, !css_actv$, e$ # force M3?? 07-20-07
      !speed

 

 

 

 

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