emcoturn 120 / 220 tool turret hal outputs

More
7 years 2 months ago #141208 by Erikcnc

PCW wrote: OK well that points to a wiring/hardware issue


Its working!!!!

and now it keeps turning...but, we got progress.

what could it couse that it keeps turning.?

Please Log in to join the conversation.

More
7 years 2 months ago #141209 by PCW
Not detecting the sensors maybe

Please Log in to join the conversation.

More
7 years 2 months ago #141210 by Erikcnc

PCW wrote: Not detecting the sensors maybe


true,
one sensor had still the wrong input.

so now its reading and should stops. it slowing down and i can continue operating linuxcnc.
but it keeps rotating really slow in the same direction. its not going the other way.

Please Log in to join the conversation.

More
7 years 2 months ago #141212 by PCW
The PWM value needs to be negative to go backwards

(if this is not what the tool changer component generates then some hal work will be needed)

Please Log in to join the conversation.

More
7 years 2 months ago #141223 by Erikcnc

PCW wrote: The PWM value needs to be negative to go backwards

(if this is not what the tool changer component generates then some hal work will be needed)


As far i know this should be in the emco changed component.

Where should look doe this that the pwm signaal will invert?

Please Log in to join the conversation.

More
7 years 2 months ago #141227 by PCW
Does the tool changer component have any documentation?

Please Log in to join the conversation.

More
7 years 2 months ago #141233 by Erikcnc

PCW wrote: Does the tool changer component have any documentation?


Unfortunately not.

Please Log in to join the conversation.

More
7 years 2 months ago #141235 by PCW
I see the emcochanger.forward pin which suggests that the PWM
polarity is not used to change directions

Can you list all of the emcochanger pins?

halcmd show pin emcochanger*
(in a terninal window)

When LinuxCNC is running should do this

Please Log in to join the conversation.

More
7 years 2 months ago #141238 by Erikcnc

PCW wrote: I see the emcochanger.forward pin which suggests that the PWM
polarity is not used to change directions

Can you list all of the emcochanger pins?

halcmd show pin emcochanger*
(in a terninal window)

When LinuxCNC is running should do this


I got the picture in the attachment.

Please Log in to join the conversation.

More
7 years 2 months ago #141241 by PCW
Looks like the emcochanger.forward signal needs to be linked to the 2 complementary direction signals on the LM298

To do this with the current firmware would require disabling one more stepgens and using one of the free pins of say stepgen3 for the direction signals.

It would probably be cleaner if I made firmware that left the DIR pin of Stepgen4 a GPIO pin instead of the PWM direction pin (which is under control of the PWM gen)

EDIT
freeby.mesanet.com/7i76e_7i76pdpo.bit

Here is firmware that has stepgen4 STEP pin replaced with PWM but left Stepgen4s DIR pin as GPIO
(GPIO8) so it can output the toolchanger forward pin

Please Log in to join the conversation.

Time to create page: 1.238 seconds
Powered by Kunena Forum