Spindle speed variation ssv for chatter control

More
5 years 1 month ago #221742 by virencq
Sir,
Here attached below is my .hal file. I cannot figure it out. Help me out, please.
 

File Attachment:

File Name: Lathe.hal
File Size:5.9 KB

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #221744 by andypugh
replace
Code:
net spindle-speed => siggen.0.offset net mod_spindle_speed <= siggen.0.sine #net mod_spindle_speed => your-spindle-hardware-speed-pin ################################################################### net spindle-cmd-rpm => pwmgen.0.value
with
Code:
net spindle-cmd-rpm => siggen.0.offset net mod_spindle_speed <= siggen.0.sine ################################################################### net mod_spindle_speed => pwmgen.0.value
The following user(s) said Thank You: virencq

Please Log in or Create an account to join the conversation.

More
5 years 1 month ago #221769 by Joco
Just to add some more heads spinning potential in to the mix, with this extra gcode sugar being available you might want to look at options for editing  you CAM tools post processor to handle the enhanced spindle speed command.  The M100 and M101 should be just a matter of inserting custom gcode into CAM operation flow.  image missing /media/kunena/emoticons/devil.png

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #226232 by MaHa
Before i started/stoped the speed variation from gcode subroutine, using M68 for parameter and M65 for reset. Then i felt i need the ability to live finetune the parameter, so it's integrated in the sidepanel now. Works fine.
As i wanted to keep programmed S as max. rpm , i was lowering the middleline of sine by half amplitude input, so the highest S is the programmed S.  S18000 at 10% set speed to 17100 and variation +-900.
Amplitude input % of S - for easier processing input from 0.01 to 0.2 - is smooth to apply by slider. Avoid big, unwanted jumps compared to input S, which can have a much wider range. When reset, i needed to make shure offset set back to initial speed. Good results with amplitude of 6%  and frequency from 0.5 to 1

 

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #226788 by andypugh
I am thinking that I might want to add this to my lathe as a hardware switch. And chip-breaking too. (Z-axis offset)

Please Log in or Create an account to join the conversation.

Time to create page: 0.417 seconds
Powered by Kunena Forum