emcoturn 120 / 220 tool turret hal outputs

More
02 Aug 2019 17:18 #141208 by Erikcnc

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 or Create an account to join the conversation.

More
02 Aug 2019 17:21 #141209 by PCW
Not detecting the sensors maybe
The following user(s) said Thank You: Erikcnc

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

More
02 Aug 2019 17:27 - 02 Aug 2019 17:28 #141210 by Erikcnc

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.
Last edit: 02 Aug 2019 17:28 by Erikcnc.

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

More
02 Aug 2019 17:56 - 02 Aug 2019 18:40 #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)
Last edit: 02 Aug 2019 18:40 by PCW.
The following user(s) said Thank You: Erikcnc

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

More
02 Aug 2019 19:29 #141223 by Erikcnc

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 or Create an account to join the conversation.

More
02 Aug 2019 20:18 #141227 by PCW
Does the tool changer component have any documentation?

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

More
02 Aug 2019 21:45 #141233 by Erikcnc

Does the tool changer component have any documentation?


Unfortunately not.

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

More
02 Aug 2019 22:06 - 02 Aug 2019 22:07 #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
Last edit: 02 Aug 2019 22:07 by PCW.
The following user(s) said Thank You: Erikcnc

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

More
02 Aug 2019 22:56 - 02 Aug 2019 22:58 #141238 by Erikcnc

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.
Attachments:
Last edit: 02 Aug 2019 22:58 by Erikcnc.

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

More
02 Aug 2019 23:29 - 03 Aug 2019 03:26 #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
Last edit: 03 Aug 2019 03:26 by PCW.
The following user(s) said Thank You: Erikcnc

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

Time to create page: 0.103 seconds
Powered by Kunena Forum