Quote Originally Posted by ally6677 View Post
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