stepper motor like a spindle
- konstantin.pizin
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
02 Jun 2021 11:41 #210990
by konstantin.pizin
stepper motor like a spindle was created by konstantin.pizin
I use a stepper motor for тхе 4 /lathe/axles - A. How can I set it to rotate constantly and independently of the other axes - X Y Z, like a spindle. The problem is when I use G2 G3 code and at the same time I have to rotate axis A.
Please Log in or Create an account to join the conversation.
02 Jun 2021 18:28 - 02 Jun 2021 18:29 #211011
by PhilCNC
Replied by PhilCNC on topic stepper motor like a spindle
Hi, here is the easiest way I know of doing it, use an Arduino to continuously send pulses to the stepper driver. Use an input pin on the Arduino to turn on and off the pulses. Now you just need to configure your HAL file to turn the “spindle” on and off. There’s certainly a way to do this without extra hardware, but that’s how I would do it with my limited coding experience.
You won’t be able to do it with a G Code or M code without making some changes to your HAL file.
You won’t be able to do it with a G Code or M code without making some changes to your HAL file.
Last edit: 02 Jun 2021 18:29 by PhilCNC.
Please Log in or Create an account to join the conversation.
03 Jun 2021 22:51 - 03 Jun 2021 23:07 #211105
by davef
Replied by davef on topic stepper motor like a spindle
Would G33 help? linuxcnc.org/docs/html/gcode/g-code.html#gcode:g33 Hmm... Now that I think about it, not sure if there's any way to use that with a G02 or G03. I've only used it with linear moves on x and z on a lathe to cut tapers. (Edited) ..and now I re-read and see you wanted independent motion. Sorry... A 555 timer circuit could make the pulses too.
Last edit: 03 Jun 2021 23:07 by davef.
Please Log in or Create an account to join the conversation.
- BeagleBrainz
- Offline
- User is blocked
Less
More
- Posts: 1437
- Thank you received: 570
04 Jun 2021 03:27 #211124
by BeagleBrainz
Replied by BeagleBrainz on topic stepper motor like a spindle
Stepgen has a velocity mode, maybe this is what you could use.
linuxcnc.org/docs/2.8/html/man/man9/stepgen.9.html
Not a lot of info on velocity mode tho.
linuxcnc.org/docs/2.8/html/man/man9/stepgen.9.html
Not a lot of info on velocity mode tho.
Please Log in or Create an account to join the conversation.
- konstantin.pizin
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
04 Jun 2021 14:09 #211158
by konstantin.pizin
Replied by konstantin.pizin on topic stepper motor like a spindle
Attachments:
Please Log in or Create an account to join the conversation.
04 Jun 2021 14:15 #211159
by PCW
Replied by PCW on topic stepper motor like a spindle
Running a stepgen in velocity mode will do this (and support velocity ramp-up, ramp-down etc)
Please Log in or Create an account to join the conversation.
04 Jun 2021 14:39 #211162
by andypugh
Do you need it to operate as both a spindle and an axis, or just as an axis?
I it is just as a spindle, then it is very easy and you only need to configure the system with 3 x position-mode and 1 x velocity mode stepgen, and then connect the stepgen.3.velocity to spindle.0.speed-cmd-rps
If you want to operate the axis as both a spindle _and_ a G-code controlled axis then it is possible. Take a look at this thread:
forum.linuxcnc.org/10-advanced-configura...and?start=130#210259
(Sorry, but it was a discussion rather than a neatly packaged "howto")
Replied by andypugh on topic stepper motor like a spindle
I use a stepper motor for тхе 4 /lathe/axles - A. How can I set it to rotate constantly and independently of the other axes - X Y Z, like a spindle.
Do you need it to operate as both a spindle and an axis, or just as an axis?
I it is just as a spindle, then it is very easy and you only need to configure the system with 3 x position-mode and 1 x velocity mode stepgen, and then connect the stepgen.3.velocity to spindle.0.speed-cmd-rps
If you want to operate the axis as both a spindle _and_ a G-code controlled axis then it is possible. Take a look at this thread:
forum.linuxcnc.org/10-advanced-configura...and?start=130#210259
(Sorry, but it was a discussion rather than a neatly packaged "howto")
Please Log in or Create an account to join the conversation.
Time to create page: 0.099 seconds