Welcome to Our Community

Some features disabled for guests. Register Today.

VFD Spindle Control via OpenBuilds BlackBox Controller and Software

Discussion in 'Controller Boards' started by Josh Lambeth, Jan 2, 2020.

  1. Josh Lambeth

    Builder

    Joined:
    Jul 30, 2019
    Messages:
    7
    Likes Received:
    11


    Here is a tutorial on how to setup your VFD and OpenBuilds BlackBox to accept control from the OpenBuilds Control Software. Follow the wiring in the video above.

    *****DISCLAIMER****** These settings work and have only been confirmed to work with the 1.5Kw, 110v, 24,000RPM Spindle and HY01D511B VFD Controller! I have not tested these on any other VFD or with any other Spindles! Please take caution if using these settings with any other VFD/Spindle Combination. I take no responsibility if you fry your stuff!!!
    *****END DISCLAIMER*****

    Here are the VFD Settings. Do set these in this order:
    PD013 = 8
    PD001 = 1
    PD002 = 1
    PD005 = 400
    PD004 = 400
    PD008 = 110 (This is for 110V systems. If you are using 220V set this to 220)
    PD024 = 1
    PD070 = 0
    PD072 = 400
    PD144 = 3000

    Set GRBL settings in OpenBuilds Control software to the following:
    $30 = 24,000 (or whatever your maximum RPM setting is of your spindle)
    $31 = 0

    Link to my Spindle and VFD: https://www.amazon.com/gp/product/B07...
    Link to AirPump: https://www.amazon.com/gp/product/B07...
    Links to other info I used to help figure this out:
    https://openbuilds.com/threads/please...
    https://docs.openbuilds.com/blackbox/...

    Let me know if you have any questions in the comments below!

    Josh
     
    Meghan E Surges, txcomp, JonR and 3 others like this.
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,968
    Likes Received:
    4,098
    Lovely! Thank you!
     
  3. scott stilwell

    Builder

    Joined:
    Dec 27, 2019
    Messages:
    3
    Likes Received:
    0
    I am attempting the use the same method but my VFD looks a bit different and does not have the same labeled terminals.
    I have a FWD terminal but do not have DCM, ACM, VI terminals on my VFD.
    I do have VI1 which is - Analog Voltage Frequency Reference Input.
    So,
    Should my Jumper wire go from FWD - XGND and then I will use VI1 and GND to the Black Box?

    Also, you can see I wired the spindle with 14ga AWG individual wires, but they are not not shielded. I did open up the spindle and ground the terminal to the inside spindle chassis.
    Is this wire going to cause problems or should I be using a 4 core 14ga shielded cable for the spindle power?

    IMG_4033.jpg IMG_4035.jpg
     
  4. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,968
    Likes Received:
    4,098
    BlackBox outputs a 0-10v voltage proportional to the S-value in GCODE, scaled between the values of $30 and $31.
    On the VFD side, its harder for us to comment, as there are so many different models and configs. The section of manual above doesnt have any voltage ratings etc either. Check the manual more in depth if they have extra information, or perhaps ask the seller?

    VFDs spit out a lot of nasty EMI, so shielded signal wires, and a lot of ferrite cores may be needed to tame it
     
    Jay Lytle and Mark Carew like this.
  5. Jaim Wolfe

    Builder

    Joined:
    Nov 1, 2019
    Messages:
    9
    Likes Received:
    1
    This was awesome! I found the video on Youtube before seeing this post, and followed it exactly. I now have my VFD (same model) connected and controlling my spindle through my Blackbox. Thanks again!
     
    Peter Van Der Walt likes this.
  6. Jaim Wolfe

    Builder

    Joined:
    Nov 1, 2019
    Messages:
    9
    Likes Received:
    1
    I'm back, and having nothing but issues now. I had my 4 wire spindle lead run through my drag chains, and had issues where my blackbox would just stop in the middle of a job. I could hit pause then resume and it would go on, but after reading more, I pulled the cable and hung it down from above, keeping it away from all the cables running to the blackbox. The problem then seemed to actually be worse now. I couldn't go even a minute without the machine just pausing / stopping. I disconnected the blackbox to VFD control wires and set it back up to manual, which had no effect.

    I've ordered 20 ferrite cores that I'm going to put on both the power in line from the wall (at the VFD), and the 4 wires heading out to the spindle. Is there anywhere else I should put these to help solve this problem? My Workbee is pretty much useless until I get this resolved. Should I also put them on all the leads coming out of my blackbox? I also ordered 115v 20Amp Noise Suppressor Power EMI Filter. Any other advice for taming these things?
     
    #6 Jaim Wolfe, Feb 16, 2020
    Last edited: Feb 16, 2020
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,968
    Likes Received:
    4,098
    Every cable can act as an Antenna.
    Clip one around especially USB and Power, but even motors/limits/accesory wiring can act as antennae and pickup EMI (and don't forget the computer, even mouse and keyboard cables can feed EMI into the motherboard and it can knock out the USB hubs on the motherboard for example - same hub you have the controller plugged in). With ferrites, the more the better, its cheap insurance!

    Isolating the VFD may be easier: properly installed shielded cable (shield properly earthed, only on the VFD side, and VFD itself properly earthed too). A metal enclosure around the VFD helps too. Easier to curb the EMI coming from it, than to protect everything else from it
     
  8. LARRY RADCLIFFE

    Builder

    Joined:
    Oct 21, 2019
    Messages:
    23
    Likes Received:
    8
    I too saw this one on YT before this post but it definitely makes the black box a BEAST now! and the new software update for Z-probe...outstanding!!
     
    Peter Van Der Walt likes this.
  9. Josh Lambeth

    Builder

    Joined:
    Jul 30, 2019
    Messages:
    7
    Likes Received:
    11
    Any video info on the Z probe? Haven't seen that yet.
     
  10. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,968
    Likes Received:
    4,098
     
  11. GazzarUK

    GazzarUK New
    Builder

    Joined:
    Sep 27, 2018
    Messages:
    10
    Likes Received:
    0
    Hey pal

    I have the same VFD did you ever manage to get you BB working your VFD / Spindle?
     
  12. Ryan Matthes

    Builder

    Joined:
    Aug 18, 2019
    Messages:
    19
    Likes Received:
    1
    I’m trying to figure out do I connect the vfd separate then the black box and power supply? Is there a way to connect the black box and the vfd To one plug. Or do I need to power them separately?

    I have the same vfd you have did you ever get the correct connections? If so can you please share. I have no idea what goes where. Thanks in advance.

    Did any one figure out what wires goes to the vfd to the black box for this vfd?
     
    #12 Ryan Matthes, Apr 18, 2020
    Last edited by a moderator: Apr 19, 2020
  13. Ryan Matthes

    Builder

    Joined:
    Aug 18, 2019
    Messages:
    19
    Likes Received:
    1
    Did you ever get this to work and if so, What terminals did you use?
     
  14. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,968
    Likes Received:
    4,098
    Long past the relevant date, but also now XYZ Probe :)
     
  15. Andy Middleton

    Builder

    Joined:
    Apr 14, 2015
    Messages:
    32
    Likes Received:
    3
    Hi Guys,

    Thanks for all the info you all have set out, it has helped a lot, I think I have my hardware connection now, but would like to confirm before going ahead (because at the moment there are 4 connections to VFD) - I'm converting an old Venture CNC to BB, as the proprietary hardware/software of the maker has failed (computer HDD died, having too many problems trying to reinstall, also would like to make the machine be able to cut in 3D) - it has a VFD Omron sysdrive 3g3jv inverter, and the connection Control Circuit Terminals names are not the same as described elsewhere - as this machine already was working with this VFD, I just need to make sure I have the spindle connection from BB to the VFD correct... at the moment it has 4 terminal blocks occupied on the VFD:

    BB Toolhead Port: GND - PWM - DIR - 0-10v

    VFD Spindle Control circuit terminals: FR: Freq ref input, 0-10v - FC: Freq ref common, 0-10v - S1: Forward/stop - SC: Common

    So VFD Spindle Control via OpenBuilds BlackBox Controller and Software, Please help with huanyang VFD & YL620-A VFD Settings all show a jumper on VFD ports (FWD & DCM (or similar)), and (together with docs:blackbox:connect-vfd [OpenBuilds Documentation]) only using GND- 0-10v from BB to input on VFD - as my examples are differently named than those connection circuit terminals in the above pages, i assume I should short my S1 and SC, and connect BB to FR (0-10v) and FC (GND), and NO jumper in BB on M3/M5 pins?

    Attach capture from VFD manual, and photo, in case this may help some more ;-)
    MB and MC are the coolant wires for the water cooling for the spindle
    (I will be cleaning up everything before closing it back up )

    Thanks!
    Andy
    :)
    Screenshot 2020-07-14 at 19.10.49.png VFD control circuit terminals.jpg
     
  16. Andy Middleton

    Builder

    Joined:
    Apr 14, 2015
    Messages:
    32
    Likes Received:
    3
    * about cutting in 3D, I read somewhere that CONTROL only cuts in 2.5D? Any opensource software that can cut in 3D? wish to use this CNC to cut moulds for Precious Plastic use, and the have ramping areas that need the 3D...
     
  17. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,968
    Likes Received:
    4,098
    OpenBuilds CAM (free one) is 2.5D. CONTROL just sends the Gcode. Any gcode, 3D too, you just need a 3D CAM. Refer to docs:software:overview [OpenBuilds Documentation]
     
  18. Andy Middleton

    Builder

    Joined:
    Apr 14, 2015
    Messages:
    32
    Likes Received:
    3
    I actually have Fusion 360, but haven't touched the 3D CAM function.. will have to investigate!

    Any opinions about the wiring setup I mentioned above, does it look right?

    thanks!!
    Andy

    :)
     
  19. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    13,968
    Likes Received:
    4,098
    Sorry, cannot comment as I am not familiar with that VFD. :) It's on you if any magic smoke escapes
     
  20. Jase495

    Jase495 New
    Builder

    Joined:
    May 27, 2020
    Messages:
    3
    Likes Received:
    2
    Yep, i can confirm that if you follow Josh's instructions to letter, including resetting the VSD with PD13 = 08 in case you fiddled with it. IT WORKS, Full control, Variable speed and Actually STOPS the spindle without any extra wiring for relay workarounds... Just setup a HY 1.5Kw VSD, 1.5Kw Air Cooled Spindle, with Latest Blackbox Controller. Esentially 2 wires and you have full control. Cheers James for the Video.

    For those that it wont turn off (like it was doing to me) It is definately a setting in the VSD... Factory Reset it and program again + (Adjust settings Volts, etc for your specific spindle)
     
    Peter Van Der Walt likes this.
  21. David Fong

    Builder

    Joined:
    Oct 21, 2020
    Messages:
    14
    Likes Received:
    2
    I was thinking of getting an Air Cooled 2.2KW 80mm spindle. Do you guys happen to know if the VFD Settings are the same? I haven't really found any information on the VFD setting for it yet but haven't looked really hard would be nice if it is the same?
     
  22. Ryan Matthes

    Builder

    Joined:
    Aug 18, 2019
    Messages:
    19
    Likes Received:
    1
    I believe it would be the same. You would just have to look into the voltage 110v or 220. There are two different vfd’s that come with this spindle. There’s the one in the video and there is a yl280 or something like that I forgot the number on the top of head . But there is another thread to that vfd. There not that much different
     
  23. Robert White

    Builder

    Joined:
    Oct 17, 2020
    Messages:
    36
    Likes Received:
    3


    josh. Your 110volt wiring that is going into the VFD. Which wire on your setup is live ( hot lead ) and which one is your neutral feed. Does it matter how you hook it up to the VFD. And I see you don’t have the earth ground on E location.
     
  24. txcomp

    txcomp New
    Builder

    Joined:
    Sep 6, 2019
    Messages:
    34
    Likes Received:
    17
    Great info!! Thanks for putting it together.
     
  25. Kerry Thurber

    Builder

    Joined:
    Dec 23, 2020
    Messages:
    16
    Likes Received:
    5
    Scott Stilwell, I have the same system as you. Did you discover program codes which work? I just got mine and have some questions into [Chinese-knockoff-supplier] but haven't heard back yet.
     
    #25 Kerry Thurber, Jan 2, 2021
    Last edited by a moderator: Jan 2, 2021
    wayne ralph and sharmstr like this.
  26. Hans-Peter

    Builder

    Joined:
    Jan 20, 2021
    Messages:
    2
    Likes Received:
    0
    Hi Josh, thanks for your great video, it helps me a lot.
    I'm working with blackbox and the vfd as you do.
    After the wiring and programming vfd, the spindel is turning on max speed. Toolhead is connected and I can measure the voltage on the VFD.
    I tested the Toolhead power with the command M3 S1000 or M3 S0000.
    So I found the VFD Parameter PD002 which should be 1 but is 0. I can't change this PD to 1. The PD000 is already set to 0 !
    Maybe you or somebody in this community can tell me wth I have done wrong.
    Many thanks and all the best...keep healthy
    cheers
    Hans-Peter
     
  27. Hans-Peter

    Builder

    Joined:
    Jan 20, 2021
    Messages:
    2
    Likes Received:
    0
    Update...
    After I stopped the Spindle I can now set PD002 to 1. But now I can't start it anymore during control sw & blackbox (M3 S1000)
    My VFD is the HY02D223B with the spindle GDZ-80-2.2A/220V
    The OpenBuild Software is 1.0.274
    My VFD Settings:
    upload_2021-1-22_11-20-43.png
    any ideas?
    cheers
    HP
     

    Attached Files:

  28. Corey Applegate

    Builder

    Joined:
    Oct 5, 2019
    Messages:
    49
    Likes Received:
    7
    @Josh Lambeth Have you gotten that post processor video up? I have this same spindle show up today. I use Fusion 360 but I suspect it shouldn't be that different. I have only peeked at the the .cps file I installed over a year ago. I wonder if I should reapply the steps in the Openbuilds documentation page or try to mod the file I have. Since the documentation pointed me to this thread seeing this motor is a popular choice I now wonder if the latest downlowd might include this as an option like the Dewalt, Mikita, Maybe this cps inclueds this and the news RourER11
     
  29. sharmstr

    sharmstr OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 23, 2018
    Messages:
    2,035
    Likes Received:
    1,430
    The post has been updated for Router11, but they actually dont control the spindle speed. All they do is output text in the file that tells you what to set your dial to based on your spindle speed settings in your toolpath.

    There's no need to modify the processor. The processor already does:

    - Sets speed based on what you have in your tool path speed settings
    - Will pause to wait for the spindle to get up to speed. You set this pause time in the post settings window that pops up. Look for "Spindle on/off delay". 1.8 is the default.
    - Will output a coolant code if you have selected to do so in your toolpath settings. Look at first tab, "coolant" drop down.

    You should use the latest post. It has other fixes that has nothing to do with what has been discussed here.
     
  30. Corey Applegate

    Builder

    Joined:
    Oct 5, 2019
    Messages:
    49
    Likes Received:
    7
    Thanks for everyone's help. I have the spindle running on the bench with control from the Black Box. I suspect I can leave the GND and PWM wires connected to the IOT relay to control the dust collection still.
     
    sharmstr likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice