585,717 active members*
3,995 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Spindles / VFD > Huanyang VFD RS485 issue
Results 1 to 10 of 10
  1. #1

    Question Huanyang VFD RS485 issue

    I got a HuanYang VFD set up on my wood working cnc. I am trying to connect it to Linux CNC, and think I got it properly configured. I enabled debug in the hy_vfd component, and when linuxcnc comes up, I see a flow of commands to the VFD, but it errors out. No response. When I put a scope on the TX+ line, I clearly see a signal going to the VFD, and I get a response back.. but the signal looks trashy. I have an image of it

    Attachment 366698

    The cable length is about 12 feet, and I am driving it with one of those cheap RS232 - RS422 converters.

    I configured it for 9600 Baud, won't go faster till I can make this work. I read a lot of posts here, but can't find anything similar.. or I missed it.

    Any hints? Thanks.

  2. #2
    Join Date
    Mar 2014
    Posts
    9

    Re: Huanyang VFD RS485 issue

    Hi there,
    I'm not an expert on this subject, but i know a few things... i am trying to control my vfd directly on it's terminals (relay and vi speed variation)
    In your case you have to configure the vfd settings pd001 and pd002 must be set to 2
    Also the little jumper near the vfd terminals (right side of terminals) must be set on VI instead of VR
    Another thing you must configure is baud rate on vfd settings... i don't know the pd number see owners's manual...
    Then the pc should "talk" to vfd...
    Hope this helps you

    In my case it took me 3 days to diagnose the problem... the wiring was good, mach 3 settings good, but when instart the spindle it starts then it stops right away and mach3 says "limit switch triggered"
    I think its related to the 5v rail... very strange anyway...

  3. #3
    Join Date
    Mar 2010
    Posts
    813

    Re: Huanyang VFD RS485 issue

    Quote Originally Posted by shipmodeller View Post
    I got a HuanYang VFD set up on my wood working cnc. I am trying to connect it to Linux CNC, and think I got it properly configured. I enabled debug in the hy_vfd component, and when linuxcnc comes up, I see a flow of commands to the VFD, but it errors out. No response. When I put a scope on the TX+ line, I clearly see a signal going to the VFD, and I get a response back.. but the signal looks trashy. I have an image of it

    Attachment 366698

    The cable length is about 12 feet, and I am driving it with one of those cheap RS232 - RS422 converters.


    I configured it for 9600 Baud, won't go faster till I can make this work. I read a lot of posts here, but can't find anything similar.. or I missed it.

    Any hints? Thanks.
    I'm not familiar with linuxcnc at all but can probably help with controlling your HY VFD via Modbus. What are you using to send these "flow of commands"?

    Dan

  4. #4

    Re: Huanyang VFD RS485 issue

    All of the baud settings and parity and bit settings are correct. 9600 Baud, 1 stop 8 bits, No parity.

  5. #5

    Re: Huanyang VFD RS485 issue

    Quote Originally Posted by Dan911 View Post
    I'm not familiar with linuxcnc at all but can probably help with controlling your HY VFD via Modbus. What are you using to send these "flow of commands"?

    Dan
    LinuxCNC provides a hy_vfd driver built in. So, I just have to load it up, The code is pushing out 8 bits, 9600 Baud , No parity and 1 stop . I do not believe it is a coding issue. I think the line isn't terminated correctly. I am driving it with an RS232 to RS422 converter. The signal look sbad during the time that the MODBUS get s tri-stated waiting for reply from the VFD. The voltage swing should be enough to trigger a response, but it doesn't. I hot wired the signals as a test, that TX to the RX in....at the converter// and that worked, obviosly wrong. We are trying for a two wire MODBUS here.

  6. #6
    Join Date
    Mar 2014
    Posts
    9

    Re: Huanyang VFD RS485 issue

    Quote Originally Posted by shipmodeller View Post
    I got a HuanYang VFD set up on my wood working cnc. I am trying to connect it to Linux CNC, and think I got it properly configured. I enabled debug in the hy_vfd component, and when linuxcnc comes up, I see a flow of commands to the VFD, but it errors out. No response. When I put a scope on the TX+ line, I clearly see a signal going to the VFD, and I get a response back.. but the signal looks trashy. I have an image of it

    Attachment 366698

    The cable length is about 12 feet, and I am driving it with one of those cheap RS232 - RS422 converters.

    I configured it for 9600 Baud, won't go faster till I can make this work. I read a lot of posts here, but can't find anything similar.. or I missed it.

    Any hints? Thanks.

    How do you wired the mains of the vfd? Are they common with anything else from cnc?
    Huanyang vfd's are very "noisy" and the can cause problems inside your hardware... try to wire the mains separately, and use another wall socket (on a different wall)
    I solved my communication problem with the vfd just by doing this... in my case mach3 was showing "limit swith triggered" each time wen i was turning on the spindle... everything was stopped at this point

    it worth a shot

    Ps: i bet this will solve your problem

  7. #7

    Re: Huanyang VFD RS485 issue

    Quote Originally Posted by doc`` View Post
    How do you wired the mains of the vfd? Are they common with anything else from cnc?
    Huanyang vfd's are very "noisy" and the can cause problems inside your hardware... try to wire the mains separately, and use another wall socket (on a different wall)
    I solved my communication problem with the vfd just by doing this... in my case mach3 was showing "limit swith triggered" each time wen i was turning on the spindle... everything was stopped at this point

    it worth a shot

    Ps: i bet this will solve your problem
    Mains are isolated. Main system runs on 220V, the CPU runs on 110V. Two very isolated systems. BUT, I will research this line of reasoning.

  8. #8
    Join Date
    Nov 2014
    Posts
    8

    Re: Huanyang VFD RS485 issue

    I had a problem with communications between the Huanyang 2.2 KW inverter and the Mach 3, I discovered that there had to be a connection between DCM (digital common) on the inverter and the PC, once that was established everything worked as it should. Although communications work on 2 wire, the reference point is apparently the common ground.

  9. #9
    Join Date
    Dec 2014
    Posts
    46

    Re: Huanyang VFD RS485 issue

    I need help, I have HY VFD and cant get it to work reliable and control the motor properly with Mach3, I am using the RS485 connector
    If I just switch to a TECO or other VFD will it correct the chronic issues experienced with the HY VFD,
    Example: I was trying to calibrate the spindle and never got it to work now the system is not working well RPM on Mach3 says 1000 and the spindle is going 2600

  10. #10
    Join Date
    Mar 2003
    Posts
    35538

    Re: Huanyang VFD RS485 issue

    Probably not. If you can't get the huanyang to work properly, then you most likely have some settings wrong.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Similar Threads

  1. Huanyang VFD RS485 / Modbus
    By scotta in forum Phase Converters
    Replies: 130
    Last Post: 05-15-2022, 03:13 PM
  2. RS485 commands for Huanyang VFD (HY02D223B)
    By bouni in forum Spindles / VFD
    Replies: 2
    Last Post: 05-07-2015, 04:32 PM
  3. RS232/RS485. Still a need?
    By Al_The_Man in forum USB, RS232, PARALLEL etc
    Replies: 2
    Last Post: 04-24-2013, 08:45 PM
  4. RS485 for POWERMAX 65
    By FredCNC in forum Hypertherm Plasma
    Replies: 8
    Last Post: 08-24-2011, 02:46 AM
  5. rs-232 and rs485 bus
    By eloid in forum Mach Software (ArtSoft software)
    Replies: 1
    Last Post: 03-13-2007, 04:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •