emcoturn 120 / 220 tool turret hal outputs

More
7 years 2 months ago #141262 by Erikcnc

PCW wrote: 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


Thanks!!

so this should do the trick? without any adjusting to wiring and hal file?
I am going to flash the firmware right now.

Please Log in to join the conversation.

More
7 years 2 months ago #141265 by Erikcnc
I succesfully flashed the firmware.

now its rotating the other way and does not change direction.

Please Log in to join the conversation.

More
7 years 2 months ago #141272 by Erikcnc
i was measuring the dir and step.

at a tool change, and it founds the tool between step + and step - it changes polarity.
dir + always stays 5v
while idle, (at the right tool) step - stays 0.5v. (to keep force on the lock pin)

So i wired in1 and in2 to step + and step -.
ENA to Dir +

it is switching direction now, but keeps running at full speed because the Ena getting continual 5v.

so between dir+ and dir - its not switching polarity, but it does at step + and step -.
but also step - goes to 0.5v at founding the right tool. whats needed for the ENA.

Please Log in to join the conversation.

More
7 years 2 months ago #141273 by PCW
Step4- --> LM298 enable
Dir4+ LM298 --> IN1
Dir4- LM298 --> IN2

In hal file, connect DIR4 (GPIO8) to emcochanger.forward
and set GPIO8 to output mode

(you may need to swap Dir4+ and Dir4- to get the right directions)

Please Log in to join the conversation.

More
7 years 2 months ago #141275 by Erikcnc

PCW wrote: Step4- --> LM298 enable
Dir4+ LM298 --> IN1
Dir4- LM298 --> IN2

In hal file, connect DIR4 (GPIO8) to emcochanger.forward
and set GPIO8 to output mode

(you may need to swap Dir4+ and Dir4- to get the right directions)


oke.

Do you suggest it like this?

setp hm2_7i76e.0.gpio.008.is_output true

net sig-forward emcochanger.forward => setp hm2_7i76e.0.gpio.008.out

it did not make difference

Please Log in to join the conversation.

More
7 years 2 months ago #141277 by PCW
That "setp" doesn't belong there

I would verify that the DIR4+ and DIR4- signals change with
the state of emcochanger.forward

Please Log in to join the conversation.

More
7 years 2 months ago #141278 by Erikcnc

PCW wrote: That "setp" doesn't belong there

I would verify that the DIR4+ and DIR4- signals change with
the state of emcochanger.forward



my apologies, i am struggling with this one.

i thought i had this one right.

Please Log in to join the conversation.

More
7 years 2 months ago #141281 by Erikcnc
With only
Code:
net sig-forward emcochanger.forward => setp hm2_7i76e.0.gpio.008.out

it doesn`t make any changes.
when asking a tool changes, it is getting from false to true, and stays true in halshow

Please Log in to join the conversation.

More
7 years 2 months ago #141284 by PCW
setp makes no sense there (i'm suprised it does not cause a syntax error)

it should be

net sig-forward emcochanger.forward => hm2_7i76e.0.gpio.008.out

Please Log in to join the conversation.

More
7 years 2 months ago #141285 by Erikcnc

PCW wrote: setp makes no sense there (i'm suprised it does not cause a syntax error)

it should be

net sig-forward emcochanger.forward => hm2_7i76e.0.gpio.008.out


Oehps, typo in my reaction here. sorry. thats why i didn't follow. sorry.

this is what i add without any changes.
Code:
setp hm2_7i76e.0.gpio.008.is_output true net sig-forward emcochanger.forward => hm2_7i76e.0.gpio.008.out

Please Log in to join the conversation.

Time to create page: 1.459 seconds
Powered by Kunena Forum