Need some ideas on how to set up a home built OD/can grinder

More
06 Nov 2018 22:28 #120125 by andypugh
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?

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 14:00 #120166 by markd
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?

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 14:30 #120168 by andypugh
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.

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 16:07 #120177 by markd
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

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 16:13 #120178 by andypugh
So, the stepgen.3.enable is false. That won't help.

Change this
#net xenable axis.3.amp-enable-out => stepgen.3.enable
to either
net xenable  stepgen.3.enable
or
net aenable axis.3.amp-enable-out => stepgen.3.enable

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 16:23 - 07 Nov 2018 16:24 #120179 by markd
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
Last edit: 07 Nov 2018 16:24 by markd.

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 16:32 #120181 by andypugh
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.

More
07 Nov 2018 16:43 #120183 by markd
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)

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 16:46 #120184 by andypugh
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?

Please Log in or Create an account to join the conversation.

More
07 Nov 2018 17:05 #120186 by markd
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)

Please Log in or Create an account to join the conversation.

Time to create page: 0.138 seconds
Powered by Kunena Forum