Need some ideas on how to set up a home built OD/can grinder
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
06 Nov 2018 22:28 #120125
by andypugh
Replied by andypugh on topic Need some ideas on how to set up a home built OD/can grinder
All the axis-enable pins (axis.1.amp-enable, 2.amp-enable etc) go true at the same time. There isn't really very much point them being separate pins.
This means that you might as well use the xenable signal for all the stepper-enables.
Currently you are only sending one enable output on pin 14. Where is that wired to?
Does the A axis lock when the machine is on, or is it free to turn?
This means that you might as well use the xenable signal for all the stepper-enables.
Currently you are only sending one enable output on pin 14. Where is that wired to?
Does the A axis lock when the machine is on, or is it free to turn?
Please Log in or Create an account to join the conversation.
- markd
- Topic Author
- Visitor
07 Nov 2018 14:00 #120166
by markd
Replied by markd on topic Need some ideas on how to set up a home built OD/can grinder
Thanks for the reply.
I checked if the Aaxis was locked and yes it is.
When I manually turn on the spindle (connected to the Aaxis connector) there is no response. I have missed something in the configuration but what?
I checked if the Aaxis was locked and yes it is.
When I manually turn on the spindle (connected to the Aaxis connector) there is no response. I have missed something in the configuration but what?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
07 Nov 2018 14:30 #120168
by andypugh
Replied by andypugh on topic Need some ideas on how to set up a home built OD/can grinder
Is there any chance that it is turning _really_ slowly?
The HAL looks OK for a stepper spindle.
It might be worth opening a halmeter (from the "machine" menu or, in the terminal, halcmd loaduser halmeter pin stepgen.3.position-fb) to see if the system thinks that the motor is turning.
The HAL looks OK for a stepper spindle.
It might be worth opening a halmeter (from the "machine" menu or, in the terminal, halcmd loaduser halmeter pin stepgen.3.position-fb) to see if the system thinks that the motor is turning.
Please Log in or Create an account to join the conversation.
- markd
- Topic Author
- Visitor
07 Nov 2018 16:07 #120177
by markd
Replied by markd on topic Need some ideas on how to set up a home built OD/can grinder
Thanks again for your reply
I started hal meter with the following results
stepgen.3.counts FALSE
stepgen.3.dir FALSE
stepgen.3.enable FALSE
stepgen.3.position-fb 0
stepgen.3.step FALSE
stepgen.3.velocity-cmd 3301
I started hal meter with the following results
stepgen.3.counts FALSE
stepgen.3.dir FALSE
stepgen.3.enable FALSE
stepgen.3.position-fb 0
stepgen.3.step FALSE
stepgen.3.velocity-cmd 3301
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
07 Nov 2018 16:13 #120178
by andypugh
Replied by andypugh on topic Need some ideas on how to set up a home built OD/can grinder
So, the stepgen.3.enable is false. That won't help.
Change thisto eitheror
Change this
#net xenable axis.3.amp-enable-out => stepgen.3.enable
net xenable stepgen.3.enable
net aenable axis.3.amp-enable-out => stepgen.3.enable
Please Log in or Create an account to join the conversation.
- markd
- Topic Author
- Visitor
07 Nov 2018 16:23 - 07 Nov 2018 16:24 #120179
by markd
Replied by markd on topic Need some ideas on how to set up a home built OD/can grinder
Update
I fixed the enable and now the stepgen is working.
There is still a problem hal meter output as follows
parport.0.pin-08-out FALSE
parport.0.pin-09-out FALSE
For some reason the pins are not connected to the stepgen
I fixed the enable and now the stepgen is working.
There is still a problem hal meter output as follows
parport.0.pin-08-out FALSE
parport.0.pin-09-out FALSE
For some reason the pins are not connected to the stepgen
Last edit: 07 Nov 2018 16:24 by markd.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
07 Nov 2018 16:32 #120181
by andypugh
Replied by andypugh on topic Need some ideas on how to set up a home built OD/can grinder
You also seem to lack:
net astep <= stepgen.3.step
net adir <= stepgen.3.dir
Please Log in or Create an account to join the conversation.
- markd
- Topic Author
- Visitor
07 Nov 2018 16:43 #120183
by markd
Replied by markd on topic Need some ideas on how to set up a home built OD/can grinder
Thank you again
I am so ashamed the solution was in the next post where I got the sample code.
It works but the motor skips steps when I increase the speed (need to be tuned)
I am so ashamed the solution was in the next post where I got the sample code.
It works but the motor skips steps when I increase the speed (need to be tuned)
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4865
07 Nov 2018 16:46 #120184
by andypugh
Replied by andypugh on topic Need some ideas on how to set up a home built OD/can grinder
If making the step length longer doesn't help then it probably isn't tuning, you probably need a higher voltage supply for the drivers (if they can handle that).
What rpm are you commanding?
What rpm are you commanding?
Please Log in or Create an account to join the conversation.
- markd
- Topic Author
- Visitor
07 Nov 2018 17:05 #120186
by markd
Replied by markd on topic Need some ideas on how to set up a home built OD/can grinder
Thanks Andy
I was commanding way too fast for the stepper. I will have to set a maximum step rate.
Now that the basic configuration works I will have to do more of the mechanical parts (lead screws and wheel head)
I am sure that I will have more questions when I get the drivers for the dresser (U & Waxis)
I was commanding way too fast for the stepper. I will have to set a maximum step rate.
Now that the basic configuration works I will have to do more of the mechanical parts (lead screws and wheel head)
I am sure that I will have more questions when I get the drivers for the dresser (U & Waxis)
Please Log in or Create an account to join the conversation.
Time to create page: 0.068 seconds