How to set up a manuel gear change?
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
08 Feb 2019 18:06 #126014
by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic How to set up a manuel gear change?
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?
Best regards
Marcel
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 or Create an account to join the conversation.
09 Feb 2019 19:33 #126072
by andypugh
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.)
Replied by andypugh on topic How to set up a manuel gear change?
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 or Create an account to join the conversation.
09 Feb 2019 20:25 #126088
by rodw
Replied by rodw on topic How to set up a manuel gear change?
Also I was just reading up in remap which suggest this was a potential use for it
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!
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 or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
25 Apr 2021 13:39 #207009
by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic How to set up a manuel gear change?
Hello Guys.
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
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
Please Log in or Create an account to join the conversation.
25 Apr 2021 14:54 #207015
by andypugh
Replied by andypugh on topic How to set up a manuel gear change?
You might find this thread helpful:
forum.linuxcnc.org/10-advanced-configura...help?start=10#204719
forum.linuxcnc.org/10-advanced-configura...help?start=10#204719
Please Log in or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
25 Apr 2021 15:12 #207019
by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic How to set up a manuel gear change?
OK,
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?
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 or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
26 Apr 2021 16:31 #207138
by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic How to set up a manuel gear change?
So, I have tried to set up a message in the hal.
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?
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 or Create an account to join the conversation.
29 Apr 2021 12:10 #207363
by andypugh
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.
Replied by andypugh on topic How to set up a manuel gear change?
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 or Create an account to join the conversation.
- MATZE-ATZE-SCH
- Offline
- Senior Member
Less
More
- Posts: 51
- Thank you received: 6
29 Apr 2021 20:53 #207398
by MATZE-ATZE-SCH
Replied by MATZE-ATZE-SCH on topic How to set up a manuel gear change?
OK,
thank you, I will try this over the weekend...
thank you, I will try this over the weekend...
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds