- Posts: 22012
- Thank you received: 4
Secondary spindle on 7i76e
- tommylight
-
- Offline
- Administrator
-
That is the easiest way to use them, but getting old so i forgot about that.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
Thank you. You might need to remind me later on if and when i do get 2 spindles.
Please Log in to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
-
- Posts: 1018
- Thank you received: 0
Please Log in to join the conversation.
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 to join the conversation.
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.
Please Log in to join the conversation.
andypugh wrote: 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
Hi Andy,
Interesting this with having tool-number to control spindles.
All I can find as regards tool is in postgui.hal = is something missing?
How is this added to my config? Assuming that the spindle setup I have now will be intact with all whistles and bells.
The new HS spindle only needs on/off and speed setting = no feedback or other whistles and bells.
How is this pwmgen.0. implemented now in my current setup. Trying to understand what is going on.
Cheers
Bengt
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
Maybe not, you could try using tool-prep-number.tecno wrote: Interesting this with having tool-number to control spindles.
All I can find as regards tool is in postgui.hal = is something missing?
Or maybe create a new signal and use iocontrol.0.tool−number
How is this added to my config? Assuming that the spindle setup I have now will be intact with all whistles and bells.
The new HS spindle only needs on/off and speed setting = no feedback or other whistles and bells
re-wire your pwmgen enable as suggested, but don't bother with a secondary pwmgen for the high speed spindle, just net the "over" output direct to the secondary spindle control output.
On further reflection you probably want the wcomp min to be 1 rpm, then use the wcomp.0.out for the normal spindle pwmgen enable.
Please Log in to join the conversation.
re-wire your pwmgen enable as suggested
I am lost here, rewire what to be more exact?
Please Log in to join the conversation.
How about adding an extra output to your GB-2speed.comp that sets a second output pin high if speed > (some number) and sets the current spindle enable pin to false in that situation?
Please Log in to join the conversation.
From where do I get the 0-10V to the HS inverter? 7i76e P2 pin 1 IO34?
Please Log in to join the conversation.
Your BoB on the second connector needs a PWM. Does your current firmware put that on the right pin?
Please Log in to join the conversation.
