lathe with 3 stepper one for each axis Solved
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
26 May 2020 12:21 #168972
by Mike_Eitel
Replied by Mike_Eitel on topic lathe with 3 stepper one for each axis
Please send an archive with your configuration
Please Log in or Create an account to join the conversation.
- alejandrolleida
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
03 Jun 2020 07:04 #169914
by alejandrolleida
Replied by alejandrolleida on topic lathe with 3 stepper one for each axis
this is the config file I used in xyza config who is able to move 3 stepper axis but I can't upload working code, hope is this file
Attachments:
Please Log in or Create an account to join the conversation.
03 Jun 2020 08:02 #169917
by bbsr_5a
Replied by bbsr_5a on topic lathe with 3 stepper one for each axis
the open cables without a enclosure and cabinet is quite risky to use and cable length does effect on critical timing
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
03 Jun 2020 08:53 #169925
by Mike_Eitel
Replied by Mike_Eitel on topic lathe with 3 stepper one for each axis
Ok.
First.
You must write the code by hand. You have to learn hal for it.
Positive is you can use your config as base. Or find a parport config for a lathe in the examples (i'm only in mills, but sureley sombody can give you a hint witch to use)
Second
Your spindle is not an axis.
The puls output is not coming from a stepgen but you need to use siggen in square mode for that. linuxcnc.org/docs/2.7/html/man/man9/siggen.9.html
Direction and speed is coming from motion. linuxcnc.org/docs/2.7/html/man/man9/motion.9.html
Direction can go direct to the output pin
Speed must be transformed via siggen into pulses
Yes this will be a bit of a programing job but after you finished you will be proud of yourself.
Mike
First.
You must write the code by hand. You have to learn hal for it.
Positive is you can use your config as base. Or find a parport config for a lathe in the examples (i'm only in mills, but sureley sombody can give you a hint witch to use)
Second
Your spindle is not an axis.
The puls output is not coming from a stepgen but you need to use siggen in square mode for that. linuxcnc.org/docs/2.7/html/man/man9/siggen.9.html
Direction and speed is coming from motion. linuxcnc.org/docs/2.7/html/man/man9/motion.9.html
Direction can go direct to the output pin
Speed must be transformed via siggen into pulses
Yes this will be a bit of a programing job but after you finished you will be proud of yourself.
Mike
Please Log in or Create an account to join the conversation.
- alejandrolleida
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
03 Jun 2020 11:37 - 03 Jun 2020 21:36 #169934
by alejandrolleida
Replied by alejandrolleida on topic lathe with 3 stepper one for each axis
After a lot of working now linuxcnc I recomend not use raspberry pi is better a core duo.
The pc with debian seems good added a wifi samba server a usb parport replaced with a 6$ fake parport from amazon and them added a parport from moschip,
When replyed I though only .hal file is needed for configuration but there is a lot of config files.
today I mix a xyza mill with the lathe conf , removed "y" and have two rotary, 1 spindle and 2 an "a" in axis_2 now it's time to link spindle rpm with axis_2 stepgen.2 steps. and stepper position with encoder.signal.
Stepgen.2 from "a" axis_2. has rotary move with gradians.
But needs work I can't solve this throuble please help
The pc with debian seems good added a wifi samba server a usb parport replaced with a 6$ fake parport from amazon and them added a parport from moschip,
When replyed I though only .hal file is needed for configuration but there is a lot of config files.
today I mix a xyza mill with the lathe conf , removed "y" and have two rotary, 1 spindle and 2 an "a" in axis_2 now it's time to link spindle rpm with axis_2 stepgen.2 steps. and stepper position with encoder.signal.
Stepgen.2 from "a" axis_2. has rotary move with gradians.
But needs work I can't solve this throuble please help
Last edit: 03 Jun 2020 21:36 by alejandrolleida.
Please Log in or Create an account to join the conversation.
Time to create page: 0.068 seconds