Re: Varying spindle speed
clear the interference in command voltages(0-10v).not seriel spindle. you can get perfect speed...
Re: Varying spindle speed
Quote:
Originally Posted by
ally6677
Hi, Having problems with vibration when machining shafts. The control system I am using is the Fanuc O T series. I have read a few articles about using a macro to vary the spindle speed thus eliminating the vibration. At the moment having to do this manually. Can anyone shed light on how to create a macro in a program? The machines are a Victor and Daewoo CNC lathe. Also machining in imperial.
I doubt very much that you could do this successfully with a User Macro Program. You can't have the Macro Program running in the Background varying the Spindle Speed, whilst the machining program is being executed. The only way I can see you doing this with a Custom Macro program would be to break the tool path up into many segments and vary the speed at the intersection of each segment.
Controls that have this feature inbuilt achieve the result via the PLC program.
I'd be interested in seeing the article you referred to if you're able to Post a link to it.
Regards,
Bill
Re: Varying spindle speed
Maybe the OP is looking for something like this:
#100=500 (part length)
#101=10 (travel length before speed increase)
#102=50 (rpm variation every #101 distance)
#103=300 (spindle RPM)
#104=#103 (rpm counter)
#105=0 (counter)
G0G90X()Z.1M3S#103
G1Z0F50
WHILE[#105LT#100]DO1
G91Z-#101F50S[#103+#102]
#105=#105+#101
IF[#103GT#104]THEN#102=[-#102]
IF[#103LT#104]THEN#102=ABS[#102]
END1
G0X()
Etc...
This macro will vary the RPM by 50, either up or down, through the entire length it is turning the part. Change the #100 variables accordingly to fit your application.
Kind Regards,
Paul
Re: Varying spindle speed
By the way... I found this macro on another site... therefore cannot take credit for it's creation.
Just trying to help the OP.
- Paul
Re: Varying spindle speed
Thanks. I'll try this when I get a minute and I'll let you know.
Ally
Re: Varying spindle speed
Hi,
Thanks for the replies guys. Paul I will try this tomorrow. Many thanks for your help.
Ally :o)