- Posts: 153
- Thank you received: 0
emcoturn 120 / 220 tool turret hal outputs
PCW wrote: You cannot do 500 Hz PWM with the 7I76E field outputs so a firmware change is required
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)
sounds complicated to me. never done that.
now i am in doubt what to do.
this setup with the l298n board or go for the toolerator3000.
Please Log in to join the conversation.
you shoudt upgrade this
The motor is driven by a L298N motor module.
to at least tb6600 better to go for a real DM556 this gives you the big power you like to see on a toolchanger
Please Log in to join the conversation.
PWM, so a step motor drive is not appropriate here.
EricCNC: I think changing the firmware and using a step/dir output for
PWM is the most straight forward way to get high speed 5V PWM
signals to the LM298, but looking at how the toolchanger works, you also
need to sense when the motor stalls (via overcurrent sense),
do you have provisions for this?
If not maybe you would be better off with one of the USB/Modbus
interfaced Emco toolchanger driver replacements
Please Log in to join the conversation.
PCW wrote: pl7i92: AFAIK the toolchanger uses a DC motor that's speed controlled by
PWM, so a step motor drive is not appropriate here.
EricCNC: I think changing the firmware and using a step/dir output for
PWM is the most straight forward way to get high speed 5V PWM
signals to the LM298, but looking at how the toolchanger works, you also
need to sense when the motor stalls (via overcurrent sense),
do you have provisions for this?
If not maybe you would be better off with one of the USB/Modbus
interfaced Emco toolchanger driver replacements
thanks for the reply pcw.
i dont think its capable of sensing overcurrent. it using a encoder with 4 optics sensors that is reading a disc.
If the toolerator3000 reading motor current i dont know.
i can give it a try to update the firmware. if its not working i can always go for the toolerator.
how do i update the firmware for the mesa 7i76e?
after that, which pins should i use? and how are they called for in the hal file?
Please Log in to join the conversation.
Assuming your IP address is 10.10.10.10 the command would be
mesaflash --device 7i76e --addr 10.10.10.10 --write 7i76e_7i76x1pD.bit
This firmware replaces the last (channel 4) stepgen with a PWMgen
Since it will be very important that the initial states of the PWM pins do not cause
motion, you need to chose the + or - outputs properly so the power up state is idle
(I suspect this means that you will need to invert the PWM pins in the hal file also)
Note that the pins themselves are not addressed in the hal file, just the PWMgen
(at least for LinuxCNC 2.8 and >)
Also to protect the 7I76E's Step/Dir outputs I would use a say 470 Ohm series resistor
in the outputs connected to the LM298 so a mis-connect or failed LM298 does not harm
the 7I76E
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Seen plenty of blown L298, they are very eager to let the magic smoke out, but never seen a blown L297 due to L298 blowing up.PCW wrote: Also to protect the 7I76E's Step/Dir outputs I would use a say 470 Ohm series resistor
in the outputs connected to the LM298 so a mis-connect or failed LM298 does not harm
the 7I76E
Still, take the PCW's advice and add the resistors. Miss connections can and do happen.
Please Log in to join the conversation.
PCW wrote: You use mesaflash to update the firmware
Assuming your IP address is 10.10.10.10 the command would be
mesaflash --device 7i76e --addr 10.10.10.10 --write 7i76e_7i76x1pD.bit
This firmware replaces the last (channel 4) stepgen with a PWMgen
Since it will be very important that the initial states of the PWM pins do not cause
motion, you need to chose the + or - outputs properly so the power up state is idle
(I suspect this means that you will need to invert the PWM pins in the hal file also)
Note that the pins themselves are not addressed in the hal file, just the PWMgen
(at least for LinuxCNC 2.8 and >)
Also to protect the 7I76E's Step/Dir outputs I would use a say 470 Ohm series resistor
in the outputs connected to the LM298 so a mis-connect or failed LM298 does not harm
the 7I76E
Yes, i use IP address is 10.10.10.10.
i will try to update the firmware now.
got the wires for IN1 and IN2 with both 470 ohm resistors ready.
This is the L298n board got. www.sainsmart.com/products/sainsmart-l29...d-module-for-arduino
and what are the specific changes to the hal file?
Please Log in to join the conversation.
tryed to start up linuxcnc.
get a error of course.
pwmgen0.0enable does not exist
how the hal file now looks like.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Please Log in to join the conversation.
tommylight wrote: Did you add the PWM to loadrt hm2_pci as PCW sugested? You must have num_pwm = 1 in that line.
Sorry no, i think i mis understand that.
does i go like this?:blush:
edit.
I got no pci board but the 7i76e
i am confused now wat to do.
Please Log in to join the conversation.
