- Posts: 153
- Thank you received: 0
emcoturn 120 / 220 tool turret hal outputs
From some one on youtube i got some files for getting the original emco 120 / 220 tool turret working.
its uses a 24v dc motor and the original encoder with 4 optos.
The motor is driven by a L298N motor module.
today i discovered that almost the same files where here on the forum. i used the comp file because i was missing that one.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Contri...oolchanger_component
the only thing i struggle with is wiring the motor module.
In the hal file i got they go like
i am not fermilair with the gpio outputs.
i am using the mesa 7i76e as far i know it does not have gpio pins.
could some one help me out with this?
Please Log in to join the conversation.
JT
Please Log in to join the conversation.
BigJohnT wrote: The 7i76e output pins have names like hm2_7i76e.0.7i76.0.0.output-00. Run an Axis config and show hal configuration will show all the pin names.
JT
Thanks JT.
I am familair with these DO pins.
As far i saw on the video on youtube, the IN1 and IN2 of the L298n board are conected to 3rd row for a step/dir config.
The L298n needs 5v inputs, instead of the 24v thats coming out of the Digital outputs pins...I am a little bit concern that i am coing to blow thins up with that.
So i tried the hal file i get from the forum.
I set this up for my mesa 7i76e, just to test it out if its working.
I changed
In to:
Now i am getting error
hal:62: pin ' pwmgen.0.enable' does not exist.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Consult PCW about having a PWM output on step/dir pins.
Please Log in to join the conversation.
or on the 7I76E's expansion port , perhaps with a low cost 5V breakout board to buffer/protect the 7I76E pins
Please Log in to join the conversation.
PCW wrote: Yes, if you want 5V PWM pins, you should use a hardware PWMGen on the step/dir pins
or on the 7I76E's expansion port , perhaps with a low cost 5V breakout board to buffer/protect the 7I76E pins
Thanks! that is what i was thinking of. Only can't figure out what line to use?
What are the pins being called to make this work?
Please Log in to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
-
- Posts: 1018
- Thank you received: 0
Togeather with LM297 it allows to make your own "Stepper driver".
But that gives not a fun solution... Been there years agoo ;-(
Mike
Please Log in to join the conversation.
Then you would need to setup that hardware PWM generator
You would also need to be careful about the startup state of the PWM
pins
What interface pins do you need?
Please Log in to join the conversation.
PCW wrote: First you would need firmware that has a a hardware PWM generator,
Then you would need to setup that hardware PWM generator
You would also need to be careful about the startup state of the PWM
pins
What interface pins do you need?
hmm. didn`t expect to do everything on the firmware with chance to ruining it.
i prefer to use the stepgen outputs.
Actually i prefer the best solution. I thought this whats a easy solution in stead of the toolerator3000 option.
if you watch this, you see at 2:20 two wires that goes from the l298n module to the mesa .
His hal file is different then i got from theisforum.
Please Log in to join the conversation.
There is not any real risk of bricking the 7i76E unless you write an incorrect file to both EEPROMS
If you only need 2 PWM signals and you don't need all 5 stepgens, the easiest way to get these signals is
to "steal" the last (04) stepgen pins with firmware that puts a PWM generator on these pins
It sounds like you would want a single PWM gen used in up/down mode
(this puts the PWM value on one pin for positive numbers and the other pin for negative numbers)
Note that the 7i76e_7i76x1pD.bit firmware has this configuration (last stepgen replaced with a PWMgen)
Please Log in to join the conversation.
