# Huanyang VFD, RS-485 verses 0-10 VDC control

**URL:** <https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850>\
**Category:** Spindle/VFD (Aftermarket/Unsupported)\
**Created:** [January 3, 2023, 11:38pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850 "2023-01-03T23:38:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![PezWoodworks](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@PezWoodworks](https://forum.onefinitycnc.com/u/PezWoodworks)\
**Post date:** [January 3, 2023, 11:38pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/1 "2023-01-03T23:38:25Z")

</div>

Not sure if this is a valid question but can the VFD be controlled by one or the other ( RS-485 or 0-10 VDC) or is it the same thing?

---

<div class="post-metadata">

**Author:** ![Atroz](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Atroz](https://forum.onefinitycnc.com/u/Atroz)\
**Post date:** [January 4, 2023, 1:24am UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/2 "2023-01-04T01:24:26Z")

</div>

Setting PD002 controls whether it is using the controls on the VFD, an analog source (e.g 0-10V) or MODBUS (RS-485).

I think if you have the option to use MODBUS you use it. It has 2 way communication and more fine control over speed, etc. I set mine up to use MODBUS.

---

<div class="post-metadata">

**Author:** ![PezWoodworks](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@PezWoodworks](https://forum.onefinitycnc.com/u/PezWoodworks)\
**Post date:** [January 4, 2023, 11:12am UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/3 "2023-01-04T11:12:40Z")

</div>

Thanks for the reply and a very clear one at that, I appreciate it. Assuming you have the HY VFD, what settings did you use to set up the VFD. I will be using mine on the Woodworker Elite / Masso Controller  
Thanks again  
Pat

---

<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 4, 2023, 11:28am UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/4 "2023-01-04T11:28:48Z")

</div>

Hey Pat,

the settings you have to enter into your VFD depend on the technical data of your individual spindle. Do you have your spindle datasheet at hand?

[See here](https://forum.onefinitycnc.com/t/problems-installing-huanyang-vfd-and-spindle-on-my-woodworker/13464/5#here-some-additional-information-on-how-to-properly-program-a-vfd-1) which spindle settings to set first.

Then, have you [read the fine manual](https://en.wikipedia.org/wiki/RTFM) of your VFD entirely?

---

<div class="post-metadata">

**Author:** ![PezWoodworks](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@PezWoodworks](https://forum.onefinitycnc.com/u/PezWoodworks)\
**Post date:** [January 4, 2023, 12:00pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/5 "2023-01-04T12:00:24Z")

</div>

Aiph5u,  
Thanks for the reply, there was no data sheet with the spindle but the pertinent info is printed on the outside of the motor, thanks for the link, very helpful and yes I have read the TFM, it is a little confusing with the translation but will get there, I just finished setting up a Hitachi on a small lathe i built and it is working although I have issues with Mach 3 and speed control voltages that seem to be very coarse, only about 5 speeds every 100 RPM or so, hope to figure it out. Expecting the Masso to be much better than Mach3.  
Thanks Pat

---

<div class="post-metadata">

**Author:** ![Atroz](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Atroz](https://forum.onefinitycnc.com/u/Atroz)\
**Post date:** [January 4, 2023, 2:10pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/6 "2023-01-04T14:10:43Z")

</div>

Pat,

Aiph5u has provided you with some good info. I’m reluctant to publish my settings (although they are based on what I saw in various places with cross checks to each other and the manual) because my setup has not actually been used for cutting yet. I got it together on Sunday but I’m still awaiting a 1/4" collet so have been unable to put a bit in yet to use it. I’ve used a digital tachometer to confirm it is running at the right RPMs but so far it hasn’t been under any real load.

---

<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 4, 2023, 2:37pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/7 "2023-01-04T14:37:51Z")

</div>

Hey Pat,

yes the cheap chinese VFD manuals are very lousy. First they are not didactical at all and secondly they are not written by a native writer of the target language, but instead from what the chinese get by auto-translation from chinese. But if you say you set up a Hitachi VFD, you should have read a Hitachi manual which not only is very good (with its e.g. 418 pages for the WJ200 series) and if you look at the [Omron MX2](https://industrial.omron.co.uk/en/products/mx2)’s manual, which is practically identical with the [Hitachi WJ200](https://www.hitachi-ies.co.jp/english/products/inv/wj200/index.htm), you get it written in [english](https://assets.omron.eu/downloads/manual/en/v6/i570_mx2_users_manual_en.pdf), [czech](https://assets.omron.eu/downloads/manual/cs/v6/i570_mx2_users_manual_cs.pdf), [german](https://assets.omron.eu/downloads/manual/de/v6/i570_mx2_users_manual_de.pdf), [spanish](https://assets.omron.eu/downloads/manual/es/v6/i570_mx2_users_manual_es.pdf), [french](https://assets.omron.eu/downloads/manual/fr/v6/i570_mx2_users_manual_fr.pdf), [italian](https://assets.omron.eu/downloads/manual/it/v6/i570_mx2_users_manual_it.pdf), [polish](https://assets.omron.eu/downloads/manual/pl/v6/i570_mx2_users_manual_pl.pdf) and [russian](https://assets.omron.eu/downloads/manual/ru/v6/i570_mx2_users_manual_ru.pdf) and they are written by native target language writers.

So if you read a

> [@What is needed to wire up 2.2kw 220v Spindle and VFD?](https://forum.onefinitycnc.com/t/what-is-needed-to-wire-up-2-2kw-220v-spindle-and-vfd/11123/10):
>
> [Hitachi WJ200 manual](https://www.hitachi-iesa.com/sites/default/files/supportdocs/WJ200_Instruction_NT325X.pdf) / [Omron MX2 manual](https://assets.omron.eu/downloads/manual/en/v5/i570_mx2_users_manual_en.pdf)

you can deduce a lot of knowledge from it, even if the parameters are called differently in the various VFD brands.

---

<div class="post-metadata">

**Author:** ![PezWoodworks](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@PezWoodworks](https://forum.onefinitycnc.com/u/PezWoodworks)\
**Post date:** [January 4, 2023, 3:57pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/8 "2023-01-04T15:57:25Z")

</div>

No problem,I totally understand, my main reason for the post was the difference between the RS-485 and the analog input, looking at the Masso site their sample wiring for the HY VFD shows the 0-10 Volt input so not sure if they support the RS-485 protocol.  
Thanks, Pat

---

<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 4, 2023, 4:35pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/9 "2023-01-04T16:35:09Z")

</div>

Hey Pat,

> [@PezWoodworks](#):
>
> so not sure if they support the RS-485 protocol.

the Masso not. But most CNC controllers do.

On the Masso, the RS-485 hardware is present, but [its support is not yet implemented](https://forums.masso.com.au/threads/rs232-485-connections.879/#post-6178).

On the other hand, all VFDs I know support spindle speed control by analog voltage.

 ![Omron_MX2 __Example_Wiring_Diagram__ Terminals_for_Run_and_Speed_var2](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/b/0/b081614b85ebbeb7086863fefec74508f25937b5.png)

> [@349iq2345](#):
>

---

<div class="post-metadata">

**Author:** ![PezWoodworks](https://avatars.discourse-cdn.com/v4/letter/p/ea5d25/32.png) [@PezWoodworks](https://forum.onefinitycnc.com/u/PezWoodworks)\
**Post date:** [January 4, 2023, 8:59pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/10 "2023-01-04T20:59:46Z")

</div>

Funny thing, I just finished setting the VFD up and all the parameters were populated correctly already with the exception of the settings to change to analog control.  
Thanks, Pat

---

<div class="post-metadata">

**Author:** ![Atroz](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Atroz](https://forum.onefinitycnc.com/u/Atroz)\
**Post date:** [January 4, 2023, 9:15pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/11 "2023-01-04T21:15:56Z")

</div>

The HY one? I had many correct, such as the 400 hz and I think the 220v voltage. That surprised me too. The VFD also came with a sheet of paper listing what to use for a spindle and some other tool (lathe or something, didn’t pay attention to that). I hadn’t seen anybody mention that paper before. I did have to change PD142, 143 and 144 if I recall correctly. I also set PD011 to have a minimum frequency. I also had to change the control and related modbus ID.

---

<div class="post-metadata">

**Author:** ![DoubleD](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DoubleD](https://forum.onefinitycnc.com/u/DoubleD)\
**Post date:** [March 18, 2023, 5:38pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/12 "2023-03-18T17:38:22Z")

</div>

Hi @Aiph5u,

I received my machinist this week and have a 2.2kW spindle with a Vevor brand VFD that unfortunately doesn’t have a RS-485 port, but does have analog inputs (0-5V, 0-10V and 4-20mA). If I understand correctly this should work as well, but I’m unable to find information on how to configure it on the OF side. Should I use “PWM SPINDLE” in the tool settings? Is there a way to test this so I can measure the output voltage?

Thanks in advance,

David

---

<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:** [March 18, 2023, 5:50pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/13 "2023-03-18T17:50:56Z")

</div>

Hey David,

> [@DoubleD](#):
>
> I […] have a 2.2kW spindle with a Vevor brand VFD that unfortunately doesn’t have a RS-485 port, but does have analog inputs (0-5V, 0-10V and 4-20mA). If I understand correctly this should work as well, but I’m unable to find information on how to configure it on the OF side.

> [@VFD Modbus "timedout" problem](https://forum.onefinitycnc.com/t/vfd-modbus-timedout-problem/17947/12):
>
> the Onefinity Controller offers [PWM](https://en.wikipedia.org/wiki/Pulse-width_modulation) output that you get at the [corresponding pin](https://buildbotics.com/manual-v1-0/#pwm) and that is adjusted with the [PWM settings](https://buildbotics.com/manual-v1-0/#pwmspindle) on [TOOL page](https://buildbotics.com/manual-v1-0/#tooltab). It is usually needed by [PWM spindles](https://buildbotics.com/connecting-a-pwm-spindle-to-the-buildbotics-controller/).
> 
> If your VFD has only analog 0-10 V voltage input but no PWM input, you need a [PWM to voltage converter](https://www.ebay.com/sch/i.html?&_nkw=pwm+to+voltage+converter) module. Take care to choose one that works with 3.3 V PWM input.

> [@DoubleD](#):
>
> Should I use “PWM SPINDLE” in the tool settings?

yes.

> [@DoubleD](#):
>
> Is there a way to test this so I can measure the output voltage?

If you have a [multimeter](https://en.wikipedia.org/wiki/Multimeter), of course!

You configure the VFD to match your spindle and the usual settings, then the settings that make hat the analog voltage range corresponds to the right spindle speed range, then you connect the PWM-to-voltage converter to the I/O interface on the Onefinity Controller and the other end to the analog voltage input on the VFD, then on the Onefinity Controller’s TOOL page make your adjustments under “PWM spindle” (set spindle speed range (see spindle datasheet, usually 6,000–24,000 on most cheap chinese water-cooled spindles, 8,000–24,000 on air-cooled), ‘tool-enable’ enabled, and ‘pwm-freq’ according to the PWM-to-voltage converter you bought (see its datasheet), ‘rapid-auto-off’ and ‘dynamic power’ both to disabled, and finally you type “S8000 M3” into the command entry field of the MDI Tab of the CONTROL page which should then make spindle start to run at 8,000 rpm. Stop with “M5”.

Welcome to the forum!

PS: You can use the search function of this forum. E.g. I remember there was an appearance of the Vevor VFD [here](https://forum.onefinitycnc.com/t/vevor-vfd-and-water-cooled-spindle/18604).

---

<div class="post-metadata">

**Author:** ![DoubleD](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DoubleD](https://forum.onefinitycnc.com/u/DoubleD)\
**Post date:** [March 18, 2023, 6:05pm UTC](https://forum.onefinitycnc.com/t/huanyang-vfd-rs-485-verses-0-10-vdc-control/17850/14 "2023-03-18T18:05:11Z")

</div>

Thanks for the clear and complete information!
