# Tool Enable Doesn't Work With Huanyang VFD

**URL:** <https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009>\
**Category:** Troubleshooting (X35/X50)\
**Created:** [November 18, 2021, 4:41am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009 "2021-11-18T04:41:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 18, 2021, 4:41am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/1 "2021-11-18T04:41:41Z")

</div>

Hi all,

I’m currently setting up my Onefinity to work with a spindle. The spindle I’m using is a Huanyang 2.2kW unit. In the tool configuration I programmed the tool-type to Huanyang VFD and I was able to successfully control the spindle speed using M3 SXXX in the MDI. My setup uses a microcontroller (Arduino) to control interposing relays for the vacuum & water cooling so I could program the dust collection to have a delayed shutdown & keep the water pump running until the water reaches the set temperature. For this to work I had intended on using the tool enable mode (hi-lo) to drive an input in the Arduino. This is where my issue is - it appears that the tool enable (pin 15) does not change state when the tool type is set to Huanyang VFD specifically. I understand that the tool (spindle) is technically being enabled via RS485, however it would still be nice to utilize pin 15 for other tools such as the dust collection and water pump. I’ve verified that the output is not changing state by measuring the 3.3VDC as well as monitoring the output status found in Control → Indicators → Outputs while toggling between M3 S4000 & M5 in the MDI. My firmware version is 1.0.8 which I believe is the most up to date version. I’m still very new to this so there is a good chance that I’ve missed something. If anyone has any ideas it would be greatly appreciated!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/2X/f/ffea88bb25dc4618afb5ab47e8e38bc6656b7cc0.png)

---

<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:** [November 18, 2021, 5:05am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/2 "2021-11-18T05:05:46Z")

</div>

Hey Branden,

> [@WildMtnCraftworks](#):
>
> however it would still be nice to utilize pin 15 for other tools such as the dust collection and water pump

You may instead use the VFD’s capabilities to turn dust collection or water pump on. This would be the most obvious and usual way to do this since VFDs control if the spindle is running and also know when it has reached the speed. For the Huanyang VFD, search for “Multi-Output” in the [manual](https://buildbotics.com/upload/vfd/Huanyang-VFD-manual.pdf).

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 18, 2021, 5:38am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/3 "2021-11-18T05:38:41Z")

</div>

Hi Aiph5u,

I appreciate the feedback!

I was hoping I could use the output from the VFD to monitor for faults, however if I’m unable to use pin 15 then I will probably go that route.

---

<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:** [November 18, 2021, 5:59am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/4 "2021-11-18T05:59:29Z")

</div>

Hey Branden,

on the other hand I would want everything that is said to work to really work. According to the [docs](https://buildbotics.com/manual-v1-1/#tooltab), “tool-enable” generally should work.

> [@WildMtnCraftworks](#):
>
> it appears that the tool enable (pin 15) does not change state when the tool type is set to Huanyang VFD specifically

Question, does the pin work when you set “tool-type” to another setting?

By the way, I remember that the other day Ghislain pointed us to a possible issue when using the [25-pin I/O port](https://buildbotics.com/manual-v1-1/#25pinioport):

> [@Huanyang VFD to Controller](https://forum.onefinitycnc.com/t/huanyang-vfd-to-controller/8589/29):
>
> I had similar timeout issue when I first install my VFD. My breakout board did not make contact with controller connector. At that time I noticed that I needed to apply pression on the breakout board to get OK status. During my test I was able to get it work while the nuts were removed. I finally replace both of them with shorter one (few mm) that were initially on my computer monitor. So Check this: A. First check if those nuts are fully tighten B. Second, check if the metal part is nea…

and Andy confirmed to know this issue too:

> [@Huanyang VFD to Controller](https://forum.onefinitycnc.com/t/huanyang-vfd-to-controller/8589/31):
>
> I had a similar problem, twice. Check connectivity (my network connector wasn’t connecting well, bad on me) and the same as @blaghislain above- check that all the nuts are tight and not stopping the breakout board from connecting full to the controller.

Did you already check this? But if you send M3 commands to the VFD, I assume your 25-pin I/O connector is well connected.

---

<div class="post-metadata">

**Author:** ![AndyP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/andyp/32/1106_2.png) [@AndyP](https://forum.onefinitycnc.com/u/AndyP)\
**Post date:** [November 18, 2021, 7:38am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/5 "2021-11-18T07:38:21Z")

</div>

Maybe obvious but have you checked that it works via MDI input.

Try Coolant and mist enable as triggers to enable L1 or L2 - that’s my plan (I have the bits but not the time). I also plan to use the VFD outputs in combination with L1 or L2 states to logically test and fire up an alarm if the CNC controller is driving but that the spindle is not spinning.

---

<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:** [November 18, 2021, 7:59am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/6 "2021-11-18T07:59:27Z")

</div>

Hey Branden,

> [@WildMtnCraftworks](#):
>
> This is where my issue is - it appears that the tool enable (pin 15) does not change state when the tool type is set to Huanyang VFD specifically.

Possibly “tool-enable” only works with “PWM Spindle” as tool-type. @satoer also [uses “PWM Spindle” as “tool-type”](http://satoer.com/products/cnc-remote-control-panel-v1/#cncrem-onefinitysettings) in order to use “tool-enable”=“lo-hi” for switching the [trim router](https://www.makitatools.com/products/details/RT0701C) on.

---

<div class="post-metadata">

**Author:** ![blaghislain](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/blaghislain/32/33736_2.png) [@blaghislain](https://forum.onefinitycnc.com/u/blaghislain)\
**Post date:** [November 18, 2021, 2:27pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/7 "2021-11-18T14:27:57Z")

</div>

You have to use FC/FB/DCM and PD052/PD053 when you use VFD. See [this](https://forum.onefinitycnc.com/t/information-to-build-you-own-onefinity-companion-control-box/2647)

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 18, 2021, 4:04pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/8 "2021-11-18T16:04:23Z")

</div>

Hi Aiph5u,

> [@349iq2345](#):
>
> Question, does the pin work when you set “tool-type” to another setting?
> 
> By the way, I remember that the other day Ghislain pointed us to a possible issue when using the [25-pin I/O port](https://buildbotics.com/manual-v1-1/#25pinioport):

I’ll try PWM after work and let you know - from what I’ve read it should definitely work on that setting.. I’ve removed the connector from the list of possibilities as I can see the voltage toggle between 3.3VDC & 0VDC when I change the setting from lo-hi & hi-lo. I’ll re-verify tonight as well.

> [@349iq2345](#):
>
> on the other hand I would want everything that is said to work to really work. According to the [docs](https://buildbotics.com/manual-v1-1/#tooltab), “tool-enable” generally should work.

Agreed. Perhaps a firmware update is needed?

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 18, 2021, 4:10pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/9 "2021-11-18T16:10:11Z")

</div>

Hi AndyP,

As far as I know it should work from MDI.

I still haven’t learned anything as far as post processing goes - is using L1 / L2 generally easy to account for in the post processor? From my understanding the tool enable would be automatic and not require further coding in the post processor, however my knowledge is pretty limited in this area still. L1 / L2 would be a pretty simple fix.

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 18, 2021, 4:15pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/10 "2021-11-18T16:15:25Z")

</div>

Hi Ghislain B,

> [@blaghislain](#):
>
> You have to use FC/FB/DCM and PD052/PD053 when you use VFD. See [this](https://forum.onefinitycnc.com/t/information-to-build-you-own-onefinity-companion-control-box/2647)

I’m currently using these in conjunction with fault detection for my local HMI & alarm output. My plan was to use that as a last ditch effort if I couldn’t drive it from the Onefinity.

---

<div class="post-metadata">

**Author:** ![AndyP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/andyp/32/1106_2.png) [@AndyP](https://forum.onefinitycnc.com/u/AndyP)\
**Post date:** [November 18, 2021, 4:48pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/11 "2021-11-18T16:48:35Z")

</div>

L1 and L2 are driven by coolant and mist settings which are added to tool paths in CAM. If my recollection is correct, L1 and L2 give 36v outputs

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 18, 2021, 5:35pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/12 "2021-11-18T17:35:49Z")

</div>

This sounds like a relatively easy solution, thanks Andy.

Having said that, it would still be nice to see the firmware/software side of things updated to either remove the tool enable checkbox or have it functional. Would this be something to reach out to Buildbotics for, or Onefinity?

---

<div class="post-metadata">

**Author:** ![satoer](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/satoer/32/1307_2.png) [@satoer](https://forum.onefinitycnc.com/u/satoer)\
**Post date:** [November 18, 2021, 5:52pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/13 "2021-11-18T17:52:30Z")

</div>

> [@349iq2345](#):
>
> Possibly “tool-enable” only works with “PWM Spindle” as tool-type. @satoer also [uses “PWM Spindle” as “tool-type”](http://satoer.com/products/cnc-remote-control-panel-v1/#cncrem-onefinitysettings) in order to use “tool-enable”=“lo-hi” for switching the [trim router](https://www.makitatools.com/products/details/RT0701C) on.

But the firmware on the remote controller is programmed to ignore PWM frequencies. If it’s getting a signal, it enables the router. No matter what the frequency is. I don’t know how a VFD handles this signal.

---

<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:** [November 19, 2021, 12:17am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/14 "2021-11-19T00:17:13Z")

</div>

Hey Branden,

> [@WildMtnCraftworks](#):
>
> I’m currently using these in conjunction with fault detection for my local HMI & alarm output.

There are enough Multi-Outputs on the Huanyang VFD to have both:

![Huanyang_VFD __Basic_Connection_Diagram__ With_mark_on_Multi-Output_Terminals](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/2X/0/03f1e66b7eb2dc550b4c10b166a61c1e4e45c94e.png)

![Huanyang_VFD_Manual __P032__ Multi-Outputs_PD050-PD053](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/d/9/d9246aeb6ad9a9de69321863d6f54f398d79c129.png)

![Huanyang_VFD_Manual __P033__ Multi-Outputs_PD050-PD053](https://sea2.discourse-cdn.com/flex020/images/transparent.png)

By the way what do you mean with HMI?

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 19, 2021, 2:02am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/15 "2021-11-19T02:02:17Z")

</div>

Hi Aiph5u,

My model must be slightly different as it doesn’t have the KA & KB terminals. I’m going to do some research into the DRV & UPF terminals tonight. I will need these to switch on 3.3VDC or 5VDC to my Arduino input and I’m not familiar with how open collector outputs work at the moment. I just did a quick continuity check from DRV to DCM and when the spindle turns on it goes from open to 123 ohms. Maybe it needs a connected voltage to work properly? I’ll have to do some more learning and I’ll let you know what I find. If I can make this work I think it would be the preferred method.

 ![20211118_181514](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/2X/9/9a970308af8afddbe225bf99969545c0ffe6974f.jpeg)

> [@349iq2345](#):
>
> By the way what do you mean with HMI?

Human machine interface, basically a screen that will display the current alarm status and indications such as water temp and water flow. Mostly used to identify problems quickly if an alarm was to go off (and ensure things are going as expected if the alarm isn’t going off).

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 19, 2021, 2:09am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/16 "2021-11-19T02:09:52Z")

</div>

> [@349iq2345](#):
>
> Question, does the pin work when you set “tool-type” to another setting?

Forgot to mention this in my last reply. Setting the tool to PWM does allow for the tool enable to toggle when M3 SXXX & M5 are written in MDI.

---

<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:** [November 19, 2021, 2:11am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/17 "2021-11-19T02:11:29Z")

</div>

> [@WildMtnCraftworks](#):
>
> Setting the tool to PWM does allow for the tool enable to toggle when M3 SXXX & M5 are written in MDI

And if you set “tool-type” to “Huanyang VFD”, the pin 15 ceases to do something then?

---

<div class="post-metadata">

**Author:** ![WildMtnCraftworks](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/wildmtncraftworks/32/7320_2.png) [@WildMtnCraftworks](https://forum.onefinitycnc.com/u/WildMtnCraftworks)\
**Post date:** [November 19, 2021, 2:13am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/18 "2021-11-19T02:13:56Z")

</div>

> [@349iq2345](#):
>
> And if you set “tool-type” to “Huanyang VFD”, the pin 15 ceases to do something then?

Yes, that’s correct.

---

<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:** [November 19, 2021, 2:20am UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/19 "2021-11-19T02:20:44Z")

</div>

> [@WildMtnCraftworks](#):
>
> My model must be slightly different as it doesn’t have the KA & KB terminals.

your model does not differ from those I’ve seen. Despite having studied the manual, I have no clue where to find KA & KB? Maybe [Ghislain knows?](https://forum.onefinitycnc.com/t/information-to-build-you-own-onefinity-companion-control-box/2647)

Until [the other day](https://forum.onefinitycnc.com/t/a-mans-got-to-know-his-limitations/8930/24) I even hadn’t a knowledge of this Jumper as it’s not in the [Huanyang Manual](https://buildbotics.com/upload/vfd/Huanyang-VFD-manual.pdf) found at buildbotics…

 ![IMG_3353 __Huanyang_Jumper_VI_VR__ cropped__50pct](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/2X/b/b7a372dc145af7d5e68366f74b43dfab1ff4a6ae.png)

---

<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:** [November 19, 2021, 1:49pm UTC](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009/20 "2021-11-19T13:49:18Z")

</div>

Hey Branden,

found this:

> **[Re: Looking for guidance on new 1.5kW Water cooled spindle](https://www.cnczone.com/forums/spindles-vfd/376654-looking-guidance-new-1-5kw-water-cooled.html#post2281946)**  
> 04-09-2019, 09:41 AM  
> [mactec54 (member)](https://www.cnczone.com/forums/members/mactec54.html)
> 
> > Originally Posted by **rcheli** [View Post](https://www.cnczone.com/forums/spindles-vfd/376654-looking-guidance-new-1-5kw-water-cooled-post2281840.html#post2281840)
> > 
> > […]  
> > I wanted to use the relay contact shown in the manual labeled KA & FB to turn on the 12V power to the water pump and fans. I don’t see a KA terminal anywhere on the VFD and the manual diagram shows two FBs but there is only one on the VFD. I have another way to do this but this way would be cleaner. Does anyone know where the KA terminal is? Or what it is actually labeled?
> 
> Not all the VFD Models have all the Relay outputs, here is a snip of the relays on a different model, so what you see in the manual does not always relate to the model you have  
> ![cnczone.com_attachmentid=417454](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/2X/d/d47ff1d5ba4fdca72dcd68620faf9ad01301b562.png)

– Source: [https://www.cnczone.com/forums/spindles-vfd/376654-looking-guidance-new-1-5kw-water-cooled.html#post2281946](https://www.cnczone.com/forums/spindles-vfd/376654-looking-guidance-new-1-5kw-water-cooled.html#post2281946)

> **[Re: Driving coolant pump with VFD](https://www.cnczone.com/forums/spindles-vfd/265856-driving-coolant-pump-vfd-post1685094.html#post1685094)**  
> 04-13-2015, 04:09 PM  
> [mactec54 (member)](https://www.cnczone.com/forums/members/mactec54.html)
> 
> The manuals are a mess, I have 4 that have different use for the same Terminals, 1 New one is saying they are inputs, 2 say they are outputs, 1 has no listing at all but does show the Terminals
> 
> If you have the SSR then try what Al.has suggested as if this is working on your drive, just try the DRV & DCM connected to your SSR, then see if it is switching the SSR output terminals win win if it is working

– Source: [https://www.cnczone.com/forums/spindles-vfd/265856-driving-coolant-pump-vfd-post1685094.html#post1685094](https://www.cnczone.com/forums/spindles-vfd/265856-driving-coolant-pump-vfd-post1685094.html#post1685094)

[Next page](https://forum.onefinitycnc.com/t/tool-enable-doesnt-work-with-huanyang-vfd/9009.md?page=2)
