# Weird bahavior between controller and 110 volt 2,2 kw Huanyang Spindle

**URL:** <https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650>\
**Category:** Spindle/VFD (Aftermarket/Unsupported)\
**Created:** [October 3, 2022, 11:59pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650 "2022-10-03T23:59:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAGreen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@JAGreen](https://forum.onefinitycnc.com/u/JAGreen)\
**Post date:** [October 3, 2022, 11:59pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/1 "2022-10-03T23:59:52Z")

</div>

Hi everyone,  
Everything has been working flawlessly for months until a couple days back when I noticed the spindle stayed on when a program ended. I also noticed that the spindle rpm’s are not being displayed anymore. Connection trough the modbus appears to be ok, but once the spindle starts, it shows a timed out status. Only way to stop the spindle is by the stop button on the vfd. Once the spindle fully stops, the connection status go back to ok.  
I havent been able to find anything similar in the forum. I’ll appreciate any help!

---

<div class="post-metadata">

**Author:** ![MstrODstr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/mstrodstr/32/26808_2.png) [@MstrODstr](https://forum.onefinitycnc.com/u/MstrODstr)\
**Post date:** [January 12, 2023, 11:20pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/2 "2023-01-12T23:20:18Z")

</div>

Jose, I have this same issue. For me, it is intermittent. Sometimes, the spindle powers down at the end of a cut and other times the control page shows RPM at 0 but the spindle is still going at cutting speed. Have you figured anything out?

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [January 12, 2023, 11:37pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/3 "2023-01-12T23:37:12Z")

</div>

Hey MstrODstr,

this reminds me of [this](https://forum.onefinitycnc.com/t/spindle-not-turning-on-anymore/17469)

---

<div class="post-metadata">

**Author:** ![MstrODstr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/mstrodstr/32/26808_2.png) [@MstrODstr](https://forum.onefinitycnc.com/u/MstrODstr)\
**Post date:** [January 14, 2023, 3:41pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/4 "2023-01-14T15:41:20Z")

</div>

Thanks Aiph5u…that was interesting reading; but, seems to be the opposite problem to what Jose mentioned above and what I’ve experienced. I never have an issue connecting and the spindle always starts up just fine. Just at the end of a cut it doesn’t always power down the spindle even though the Onefinity controller screen shows the RPMs back to zero.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [January 14, 2023, 3:59pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/5 "2023-01-14T15:59:06Z")

</div>

Hey MstrODstr,

if your spindle does receive the stop signal no more, it is likely that the communication between CNC Controller and VFD is impaired somehow. I linked you to that thread because it deals with contact problems on the serial communications connection between CNC Controller and VFD.

If your spindle does not get the stop command, I would check the connection first. Did you do this, with the suggestions found in the linked thread?

One question. After the program finished and you say the spindle did not obey to the [M5 (spindle stop)](https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m3-m4-m5) command (that I assume _ **is** _ in your g-code program), when does the spindle react to g-code commands again?

Can you try entering

`M3 S8000`

and then

`M5`

into the command entry field of the [MDI Tab](https://buildbotics.com/manual-v1-0/#ControlPageMDITab) (in the [Tabbed Section](https://buildbotics.com/manual-v1-0/#tabbedsection)) and report if the spindle obeys? And can you try this immediately after a program ended?

---

<div class="post-metadata">

**Author:** ![MstrODstr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/mstrodstr/32/26808_2.png) [@MstrODstr](https://forum.onefinitycnc.com/u/MstrODstr)\
**Post date:** [January 18, 2023, 11:47pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/6 "2023-01-18T23:47:46Z")

</div>

Aiph5u,  
Thanks for the reply.  
I’ve checked cabling and the only possible issue is the serial breakout connector only had one good attachment screw; so, it doesn’t have both sides screwed down. I will try getting a new one that has two good lockdown screws.

For now, when this happens, I press Stop on the VFD and it powers down. The spindle responds to programatic and/or manual entries via the MDI tab commands and ALWAYS spins up in response to controller issuing g-code commands.

When is fails to stop the spindle at the end of a program, MDI tab commands do not work either.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [January 19, 2023, 1:06am UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/7 "2023-01-19T01:06:54Z")

</div>

Hey MstrODstr,

> [@MstrODstr](#):
>
> When is fails to stop the spindle at the end of a program, MDI tab commands do not work either.

and then when will the spindle react to g-code commands again?

---

<div class="post-metadata">

**Author:** ![JAGreen](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@JAGreen](https://forum.onefinitycnc.com/u/JAGreen)\
**Post date:** [January 19, 2023, 1:43am UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/8 "2023-01-19T01:43:15Z")

</div>

Sorry for the late response. For me it was a bad VFD. Once I switched to a new one, the problem was solved.

---

<div class="post-metadata">

**Author:** ![MstrODstr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/mstrodstr/32/26808_2.png) [@MstrODstr](https://forum.onefinitycnc.com/u/MstrODstr)\
**Post date:** [February 5, 2023, 5:39pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/9 "2023-02-05T17:39:31Z")

</div>

Yes, after I manually hit the VFD stop bottom at the end of a carve, the spindle will then respond to the next start up command given by the controller.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [February 5, 2023, 6:01pm UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/10 "2023-02-05T18:01:00Z")

</div>

Hey MstrODstr,

besides a faulty VFD, it could be an [EMI](https://en.wikipedia.org/wiki/Electromagnetic_interference) issue. This is supported by the fact that when the spindle is off, the Modbus communication goes. The spindle and the VFD are a both a heavy source of EMI, it is important that all cables are shielded and their shielded ends are terminated correctly.

Does your X carriage go to the home position at the end of the program, i.e. does it approach the CNC Controller or the VFD? Could you check if the issue appears when the spindle approaches them, and disappears when the spindle is in the right rear corner (assuming that CNC Controller and VFD are on the front left of the machine)? If so,

> [@UI freezes frequently](https://forum.onefinitycnc.com/t/ui-freezes-frequently/17888/5):
>
> > [@Decided to get ferrite cores](https://forum.onefinitycnc.com/t/decided-to-get-ferrite-cores/11217/2):
> >
> > in the first one would place the [ferrite cores](https://en.wikipedia.org/wiki/Ferrite_bead)

on all cables, best at both ends.

Do you also have the [monitor intermittent issue](https://forum.onefinitycnc.com/search?q=monitor%20intermittent)?

> [@UI freezes frequently](https://forum.onefinitycnc.com/t/ui-freezes-frequently/17888/5):
>
> > [@Decided to get ferrite cores](https://forum.onefinitycnc.com/t/decided-to-get-ferrite-cores/11217/2):
> >
> > #### Snap-on Ferrite cores for cables
> > 
> > ![A_collection_of_Snap-On_-_Clamp-on_ferrite_beads__25pct](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/2/6/2669b24835384718e04b2fc7af63c6f98812da2e.png)  
> > _– Source: [Unconventional2](https://commons.wikimedia.org/wiki/File:A_collection_of_Snap-On_-_Clamp-on_ferrite_beads.jpg), [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0), via Wikimedia Commons_
> 
> If the problem persists, you should be aware that…
> 
> > [@349iq2345](#):
> >
> > a [VFD](https://en.wikipedia.org/wiki/Variable-frequency_drive) and especially its output cable, the cable to the three-phase spindle, **are heavy sources of EMI.** Therefore it is required to use shielded cables, also a VFD is intended to be installed into an earthed [electrical cabinet](https://forum.onefinitycnc.com/t/hey-is-this-your-vfd-enclosure/10130/3). Both should be indicated in your VFD manual, including **which wires to use** , on a page that should look [like shown here](https://forum.onefinitycnc.com/t/what-is-needed-to-wire-up-2-2kw-220v-spindle-and-vfd/11123/2). As you can see there,
> > 
> > - for the _signal cables_ like used for **ModBus communication** , you should use [shielded](https://en.wikipedia.org/wiki/Shielded_cable), [twisted pair](https://en.wikipedia.org/wiki/Twisted_pair) cable.
> > - On the output of the VFD, i.e. the **spindle cable** , you should use shielded **3+[PE](https://en.wikipedia.org/wiki/Protective_earth)** for the three-phase spindle, like shown here:
> > 
> > ![Spindle_Cable_3+PE_with_shield](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/2X/e/e227edbe91680d9a110b933bcd9fdb81cd454e89.jpeg)  
> > _Image 1:_ A typical spindle cable for use in a power chain ([LAPP ÖLFLEX® CLASSIC FD 810 CY](https://products.lappgroup.com/online-catalogue/power-and-control-cables/power-chain-applications/various-applications/oelflex-classic-fd-810-cy.html))
> 
> And finally to not only prevent [EMI](https://en.wikipedia.org/wiki/Electromagnetic_interference) but also to comply [EN/IEC 60204-1](https://en.wikipedia.org/wiki/IEC_60204) safety standard, the machine should be [electrically bonded](https://en.wikipedia.org/wiki/Electrical_bonding) and [grounded](https://en.wikipedia.org/wiki/Earthing_system),
> 
> - as [described here](https://forum.onefinitycnc.com/t/proper-grounding-how-have-you-grounded-your-frame/12331/22) ←

---

<div class="post-metadata">

**Author:** ![MstrODstr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/mstrodstr/32/26808_2.png) [@MstrODstr](https://forum.onefinitycnc.com/u/MstrODstr)\
**Post date:** [February 25, 2023, 2:54am UTC](https://forum.onefinitycnc.com/t/weird-bahavior-between-controller-and-110-volt-2-2-kw-huanyang-spindle/15650/11 "2023-02-25T02:54:32Z")

</div>

Aiph5u,

it’s been a minute since our last messages…I flashed a new SD card with 1.2.1 and installed that along with a new DB25 breakout connector.

The new OS (1.2.1) seems to be working fine. I reset the config right after booting up to my X-50 Woodworker and set up my tool settings for the Huanyang VFD.

Then, I went to the MDI tab and entered M3, S6000 and hit the run button…nothing…nada…crickets.

I wasn’t happy with that DB25 breakout connector though and was pretty sure it was the culprit.

Just got a new one delivered, wired it up and plugged it in. Turned everything on for another test…and…it works like a champ.

If you don’t hear from me on this thread…everything is roses. Otherwise, I’ll update you here.

Thanks for the thoughts and suggestions.

MstrODstr
