Mesa 7i76D + Omron MX2, spindle speed works, spindle enable does not

More
17 Jan 2022 21:34 - 17 Jan 2022 22:09 #232190 by jstewart
Greetings,

I have recently upgraded from a simple router setup to a spindle using an Omron MX2 VFD.

My setup includes a Mesa 7i76D, which I'd like to use to control the VFD via the 7i76D's TB4 spindle connector. I have successfully wired up the analog 0-10V output to control the VFD frequency and confirmed that it's working, i.e. the VFD's diagnostic output shows the correct frequency values as output by the 7i76D.

What I can't figure out for the life of me, however, is why TB4.5 SPINDLE ENA- / TB4.6 SPINDLE ENA+ are not working. The Omron VFD is setup to NPN logic (aka "sinking inputs, internal supply" in the attached picture) i.e. it expects the inputs to be bridged to L, the digital input GND reference. Taking a jumper cable and connecting the input pin to the L pin does trigger the input. I took a multimeter and measured +24V between L and the input pin.

I connected TB4.6 SPINDLE ENA+ to the input pin and TB4.5 SPINDLE ENA- to the L pin of the VFD. Issuing an M3 Sxxxx command in LinuxCNC MDI (or using the GUI buttons) does update the VFD's frequency setting via the 0-10V input, but does not actually turn the spindle on. The relevant parts of my HAL file look like this:

net spindle-index-enable  <=> pid.s.index-enable
net spindle-enable        =>  pid.s.enable
net spindle-vel-cmd-rpm     => pid.s.command
net spindle-vel-fb-rpm      => pid.s.feedback
net spindle-output        <=  pid.s.output

# ---digital potentionmeter output signals/setup---

setp   hm2_5i25.0.7i76.0.0.spinout-minlim    [SPINDLE_0]OUTPUT_MIN_LIMIT
setp   hm2_5i25.0.7i76.0.0.spinout-maxlim    [SPINDLE_0]OUTPUT_MAX_LIMIT
setp   hm2_5i25.0.7i76.0.0.spinout-scalemax  [SPINDLE_0]OUTPUT_SCALE

net spindle-output      => hm2_5i25.0.7i76.0.0.spinout
net spindle-enable      => hm2_5i25.0.7i76.0.0.spinena
net spindle-ccw         => hm2_5i25.0.7i76.0.0.spindir

I checked
halcmd getp hm2_5i25.0.7i76.0.0.spinena
and it does indeed update as expected when I enable the spindle in the GUI / using GCODE. However, the VFD does not turn on. For those of you who are familiar with the Omron MX2 series: yes, the VFD is programmed to accept the FW / RV commands from the terminal (i.e. AT002 == 01), as is evidenced by correct operation via jumper wire.

As of now, I'm pretty confused and almost sure I'm missing something very obivous, but it's been a long day.

Anyone got any ideas? It'd be greatly appreciated. Thanks in advance!
Attachments:
Last edit: 17 Jan 2022 22:09 by jstewart. Reason: messed up code formatting

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

More
17 Jan 2022 22:45 - 17 Jan 2022 22:45 #232197 by PCW
If bridging the ENA pins starts the VFD but
setting hm2_5i25.0.7i76.0.0.spinena true does not,
That suggests a hardware issue (bad or damaged OPTO for the ENA circuit)
Last edit: 17 Jan 2022 22:45 by PCW.

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

More
17 Jan 2022 22:52 - 17 Jan 2022 22:54 #232200 by jstewart
Quite naturally, I figured it out a few minutes after posting, rubber duck debugging and all.

Summary: the output transistor on my 7i76D is most likely screwed. I did not check the IC itself, but I assume it's a quad or dual opto coupler chip, with one of the outputs being faulty (namely the one that is connected to SPINDLE ENA on TB4).

I did not touch the wiring on the VFD side or the configuration at all, but simply unscrewed the connecting wire at the TB4 connector and switched cables from SPINDLE ENA to SPINDLE DIR, and lo and behold, everything works as expected. Just to make sure I didn't go crazy I checked everything back and forth twice to make sure I didn't mix up any wires on the 7i76D' side, but no, the enable pin does in fact not work at all.

I disabled spindle-ccw and adjusted my HAL config to map spindle-enable to both hm2_5i25.0.7i76.0.0.spindir and hm2_5i25.0.7i76.0.0.spinena. This is necessary since the 7i76/7i76D does not output a spindle voltage if the firmware does not receive the spindle enable signal from the host, even though the opto couple still won't switch. This tells me that the firmware is indeed receiving the enable signal just fine (as I already discovered using halcmd earlier), and combined with double checking the wiring reinforces my belief that the particular output got messed up somehow.

I'm probably gonna live with this situation for a while since I don't run the spindle in reverse anyway, but I expect to eventually fix things by replacing the OC IC.


Edit: Thanks for your reply PCW, I see we commented rather simultaneously and (unfortunately) came to the same conclusion. I'll update this thread with some documentation on my approach of fixing the board once I get around to do that. Cheers!
Last edit: 17 Jan 2022 22:54 by jstewart.

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

More
17 Jan 2022 23:00 #232202 by tommylight
You can use any output on the 7i76 for spindle enable/direction, just wire a small relay and set in hal to use those outputs.

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

Moderators: PCWjmelson
Time to create page: 0.067 seconds
Powered by Kunena Forum