emcoturn 120 / 220 tool turret hal outputs
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 or Create an account to join the conversation.
now its rotating the other way and does not change direction.
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
I would verify that the DIR4+ and DIR4- signals change with
the state of emcochanger.forward
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
it should be
net sig-forward emcochanger.forward => hm2_7i76e.0.gpio.008.out
Please Log in or Create an account to join the conversation.
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.
setp hm2_7i76e.0.gpio.008.is_output true
net sig-forward emcochanger.forward => hm2_7i76e.0.gpio.008.out
Please Log in or Create an account to join the conversation.