Secondary spindle on 7i76e

More
7 years 6 months ago #131544 by Todd Zuercher
I know you've struggled with hal programming before, so My guess would be the 2.8 route would be simpler. Hopefully Andy Pugh will weigh in. (The Multi Spindle addition was his baby.) I would think your configurations are not too complex that the auto reconfiguration script should not have any trouble converting your config from 2.7 to 2.8. Then you would only need to add the connections to run your new spindle, and learn and use the G-codes to operate it.

That all sounds easier than it probably is.

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

More
7 years 6 months ago #131578 by JohnnyCNC

Mike_Eitel wrote: I'm dreaming to have a high-speed spindle in a similar way.. Some day.
I think you will never use both spindles in same lot. So why not using two ini/hal's?


I just added a 24K spindle to my mill and that is exactly how I did it. I also have a 7i83 which has five 0~10v analog outputs. I use one for the DYN4 servo on my main spindle and another one for the 24K water cooled spindle. I created two shortcuts that point to different .ini and .hal files. Both spindles are never powered up at the same time. So far it is working great.

John

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

More
7 years 6 months ago #131583 by tommylight

JohnnyCNC wrote: I created two shortcuts that point to different .ini and .hal files. Both spindles are never powered up at the same time. So far it is working great.

John

That is the easiest way to use them, but getting old so i forgot about that.
Thank you. You might need to remind me later on if and when i do get 2 spindles. :)

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

More
7 years 6 months ago #131600 by Mike_Eitel
Additional I see the advantage that I could adjust all positions like xyz, home, tool changer etc positions to that spindle...

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

More
7 years 6 months ago #131605 by pl7i92
Replied by pl7i92 on topic Secondary spindle on 7i76e
as he got pins left he shoudt try the conventional mode
by giving the signals of the spndles to relay divider
He can also use M8 M9 to get the second spindle a go

but better to User Mcode >110 take the first spindel down and second up in one NGC as well as the repositioning with G92
and a othere NGC called by another Mcode >111 sets the system and ofsets back to the first spindle
so M3 is still to be used and also the 0-10V RPM can be the same only one Dual relay needed one signal claims all

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

More
7 years 6 months ago - 7 years 6 months ago #131705 by andypugh
Replied by andypugh on topic Secondary spindle on 7i76e
A user M-code to switch the control pins of some mux components would be one way to do this.
Alternatively, you could use the output of a "comp" HAL component based on spindle speed.

But, a better way might be to switch on tool-number. For example decide that tools > 50 are in the high-speed spindle. That way the tool XY offsets can account for the different tool positions of the two spindles.

You would pass the spindle speed command to both pwm generators, but only enable one at a time based on tool number.

It's slightly complicated by the fact that tool number is S32, and the comp / wcomp components want a floating point.
Code:
loadrt conv_s32_float loadrt wcomp addf conv_s32_float.0 servo-thread addf wcomp.0 servo thread setp wcomp.0.min 49.5 setp wcomp.0.max 49.6 # You probably already have a HAL pin that holds the tool number, use that here. net tool-number conv_s32_float.0.in net tool-number-float conv_s32_float.0.out wcomp.0.in net spindle-slow wcomp.0.under => pwmgen.0.enable net spindle-fast wcomp.0.over -> pwmgen.1.enable net spindle-speed-rpm pwmgen.0.value pwmgen.1.value
Last edit: 7 years 6 months ago by andypugh.

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

Moderators: PCW, jmelson
Time to create page: 0.248 seconds
Powered by Kunena Forum