- Posts: 51
- Thank you received: 0
How to set up a manuel gear change?
- MATZE-ATZE-SCH
- Topic Author
- Offline
- Senior Member
-
This works quiet well.
But, is there an option, that I have the spindle speed viewed by linux cnc?
So if I in gear 1, I can only select speeds of 0-400,
and if i put in S600, linuxcnc tells me to switch the gears before continue?
And that the min value for gear 2 is 400 rpms?
Best regards
Marcel
Please Log in to join the conversation.
MATZE-ATZE-SCH wrote: Hello Andy.
This works quiet well.
But, is there an option, that I have the spindle speed viewed by linux cnc?
So if I in gear 1, I can only select speeds of 0-400,
and if i put in S600, linuxcnc tells me to switch the gears before continue?
And that the min value for gear 2 is 400 rpms?
This can be done, but would need a bit more work.
At that point I would probably suggest a custom HAL component, though you could do it all with existing HAL components.
See, for example, linuxcnc.org/docs/2.7/html/man/man9/wcomp.9.html
You could set that to the VFD speed limits.
Then use the under and over outputs to trigger messages: linuxcnc.org/docs/2.7/html/man/man9/message.9.html
And use the wcomp.0.out bit to activate the VFD. (it is possible that this might be all that is needed, or you might prefer to interlock it with spindle.is-on with and and2.)
Please Log in to join the conversation.
linuxcnc.org/docs/devel/html/remap/remap...ng_codes_s_m0_m1_m60
Andy will know a lot more about gearboxes than I do though as I don't have a spindle!
Please Log in to join the conversation.
- MATZE-ATZE-SCH
- Topic Author
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
Last year I didn“t work on the mill,
but now I have the time to get on.
But I have Problems with the Spindle Setup and the Gear Change, hope you can push me in the right direction.
So, the actual Setup:
LinuxCNC 2.8.0 with Debian 10 Buster PREEMPT-RT ISO
Spindle Motor controlled per VFD
VFD controlled by the SpinX1 (CW, CCW, Speed)
Mesa 5i20, 7i33TA and 7i37TA
On the Mill, the Motor goes in the Gearbox, from there to the Spindle.
On the Spindle I have installed a encoder with 1024 pulses with A, B and Z for Index.
The switches from the Gearbox I have changed, so Switch1 is low gear, Switch2 is high gear and Switch3 is Spindle locked.
With the help of Talla83 I have set up the .hal for riggid tapping, but not tried this on the machine.
But how can I add now the Gear selection and the messages, to pop up, if the wrong gear is selected?
Attached are my .ini and .hal file...
Best regards
Marcel
Attachment not found
Attachment not found
Please Log in to join the conversation.
forum.linuxcnc.org/10-advanced-configura...help?start=10#204719
Please Log in to join the conversation.
- MATZE-ATZE-SCH
- Topic Author
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
so I thing I will need an custom gearchange.comp, think that this would be the easyest way...?
But how would this interact withe the parts of the riggid tapping?
Please Log in to join the conversation.
- MATZE-ATZE-SCH
- Topic Author
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
The code I used:
loadrt message names=test messages="TEST"
addf test servo-thread
net mesgtest test.trigger hm2_5i20.0.gpio.058.in
On the 058 input I have wired a switch to simulate.
When I toggle the switch, the message apears, but I can, wth the switch still on,
just click the message away.
If I use "force" instead of "trigger", it will do nothing.
Can I force the message to be displayed, as long as the pin is active?
Please Log in to join the conversation.
MATZE-ATZE-SCH wrote: Can I force the message to be displayed, as long as the pin is active?
Not that I can see. My first thought was to set up a periodic trigger switched on by the control pin, but I think that would just create very many messages as "message" just calls rtapi_print_message:
github.com/LinuxCNC/linuxcnc/blob/master...ponents/message.comp
You probably need to use something more graphical, look at the hal_manualtoolchange code, it should be possible to adapt that.
Then I think you can just periodically un-hide the box while the condition is true.
Please Log in to join the conversation.
- MATZE-ATZE-SCH
- Topic Author
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
thank you, I will try this over the weekend...
Please Log in to join the conversation.
