Need Help! Spindle rpm - variations


Results 1 to 2 of 2

Thread: Spindle rpm - variations

  1. #1
    Member
    Join Date
    Nov 2011
    Location
    Sweden
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default Spindle rpm - variations

    Hi all,
    I am running a vertical lathe, EMAG VSC400.
    Because of vibrations I want to use the $TIMER-function to increase and decrease the rpm by 10%

    I tried this but got a syntax error on line 33! (there is no line 33)!

    $AC_TIMER[3]=0
    WHENEVER $AC_TIMER[3]>=6 DO $AC_TIMER[3]=0
    WHENEVER $AC_TIMER[3]<=2 DO S130
    WHENEVER $AC_TIMER[3]>=4 DO S120
    --------------------------------------------------------------
    N130 G1 Z50 F.1
    N132 G1 Z49 F.06
    N134 G1 X72 F.1
    N135 $AC_TIMER[3]=-1

    Regards/
    Jorma

    Similar Threads:


  2. #2
    Member
    Join Date
    Nov 2007
    Location
    Canada and Nothern ireland
    Posts
    351
    Downloads
    0
    Uploads
    0

    Default Re: Spindle rpm - variations

    The machine has a look ahead function and reads ahead so it is seeing that error somwhere else
    use the "Stoppre" command to make it look to the last line before going forward



    Stoppre

    $AC_TIMER[3]=0
    WHENEVER $AC_TIMER[3]>=6 DO $AC_TIMER[3]=0
    WHENEVER $AC_TIMER[3]<=2 DO S130
    WHENEVER $AC_TIMER[3]>=4 DO S120
    --------------------------------------------------------------
    N130 G1 Z50 F.1
    N132 G1 Z49 F.06
    N134 G1 X72 F.1
    N135 $AC_TIMER[3]=-1

    Stoppre

    If the timer doesnt work increase or decrease by declaring the spindle speed as an "R" value and can be changes at random

    S=R900 (value in user global parameter )



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Spindle rpm - variations

Spindle rpm - variations