adding spindle axis to the etch servo config
- Byass
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
05 Oct 2023 14:56 #282368
by Byass
adding spindle axis to the etch servo config was created by Byass
I am current building a cnc lathe controlled via the etch servo configuration since I am using brushed dc servo motors.
I wanted to add a single channel spindle encoder to do some threads. the spindle speed won't be controlled via the software. I tried adding a third Z axis and configuring its encoder to counter mode and the axis as an angular wrapped rotary axis. the counter mode seemed to work but the wrapped_rotary option didn't. so this method didn't work for me.
what other way can this be done? did I make any mistake in how I tried to achieve the spindle axis?
I wanted to add a single channel spindle encoder to do some threads. the spindle speed won't be controlled via the software. I tried adding a third Z axis and configuring its encoder to counter mode and the axis as an angular wrapped rotary axis. the counter mode seemed to work but the wrapped_rotary option didn't. so this method didn't work for me.
what other way can this be done? did I make any mistake in how I tried to achieve the spindle axis?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
05 Oct 2023 16:26 #282376
by tommylight
Replied by tommylight on topic adding spindle axis to the etch servo config
Spindle must be controlled by LinuxCNC for threading.
And spindle encoder must be set as spindle encoder, it does not work for threading as axis encoder.
Does the encoder have A, B and Z or index?
And spindle encoder must be set as spindle encoder, it does not work for threading as axis encoder.
Does the encoder have A, B and Z or index?
Please Log in or Create an account to join the conversation.
- Byass
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
05 Oct 2023 21:13 #282399
by Byass
Replied by Byass on topic adding spindle axis to the etch servo config
the encoder is based on an optical sensor and a slot wheel it has a single output. I was planning to use the missing teeth indexing scheme.
how can I setup the encoder to be a spindle encoder? what do I need to modify in the ini/hal files?
how can I setup the encoder to be a spindle encoder? what do I need to modify in the ini/hal files?
Please Log in or Create an account to join the conversation.
- Byass
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
06 Oct 2023 21:14 #282465
by Byass
Replied by Byass on topic adding spindle axis to the etch servo config
the encoder is based on an optical sensor and a slot wheel it has a single output. I was planning to use the missing teeth indexing scheme.
how can I setup the encoder to be a spindle encoder? what do I need to modify in the ini/hal files?
how can I setup the encoder to be a spindle encoder? what do I need to modify in the ini/hal files?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7776
- Thank you received: 2073
07 Oct 2023 22:26 #282518
by cmorley
Replied by cmorley on topic adding spindle axis to the etch servo config
linuxcnc.org/docs/2.9/html/man/man9/moti....html#SPINDLE%20PINS
I think at minimum these pins must be used for spindle sync.
spindle.0.revs
spindle.0.speed-in
spindle.0.at speed (at least set true)
spindle.0.index-enable
You only need to control the spindle if you are trying to rigid tap.
I think at minimum these pins must be used for spindle sync.
spindle.0.revs
spindle.0.speed-in
spindle.0.at speed (at least set true)
spindle.0.index-enable
You only need to control the spindle if you are trying to rigid tap.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7776
- Thank you received: 2073
07 Oct 2023 22:28 #282519
by cmorley
Replied by cmorley on topic adding spindle axis to the etch servo config
This shows one way to do it (just as an overview ) - your hardware could be different.
linuxcnc.org/docs/2.9/html/examples/spin...ml#_spindle_feedback
If that is not enough info then please post your config files.
linuxcnc.org/docs/2.9/html/examples/spin...ml#_spindle_feedback
If that is not enough info then please post your config files.
Please Log in or Create an account to join the conversation.
Time to create page: 0.062 seconds