Hello Guest it is January 18, 2020, 04:07:23 PM

Author Topic: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?  (Read 6486 times)

0 Members and 1 Guest are viewing this topic.

Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #10 on: November 15, 2016, 08:37:33 AM »
I tried to upload a PDF with a wiring diagram for your VFD with this type board, but it just hangs.

Russ
Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #11 on: November 16, 2016, 11:51:00 PM »
Could you screenshot that schematic?

So pardon my ignorance, but I'm literally at wit's end on this board, and what you said only served to complicate things. There are 2 ACM's on the board, and I've already told the VFD via a jumper that I'm going to use voltage input instead of 0-20ma current input.

So here's what I think is right:
FOR SPEED CONTROL
Breakout Board                              VFD
Analog Output Ground - - - - - - - - ACM (next to AI/VI on lower level of VFD)
Analog Output 10v --  - - - - - - - - -VI - this is the 0-10v signal that I'm able to control via speed in Mach4


Does the attached wiring diagram look plausible?


Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #12 on: November 17, 2016, 08:18:40 AM »
Strange, this forum is not letting me upload pictures, pdf, anything very strange.

Here is a link that shows you the typical wiring diagram.  Your setup should be almost identical.

http://cnc4pc.com/Tech_Docs/2-C41R2%20and%20Huanyang.pdf

Russ
Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #13 on: November 17, 2016, 08:20:42 AM »
This could be another issue.
Normally you have to program the VFD to let it know you will be using analog voltage and external controls to control the VFD.  What jumpers are you setting.  What model VFD are you using, it looked like the standard Huanyang from China?

Russ



've already told the VFD via a jumper that I'm going to use voltage input instead of 0-20ma current input.
Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #14 on: November 17, 2016, 07:22:51 PM »
Wheelman;

Sorry if you knew this already...
I also have a Huanyang VFD, unfortunately for your problem, I use MODBUS to control the drive.  (Huanyang uses a flavor of MODBUS, so takes a special driver... bummer)

Anyway, I just looked at my manual, and there are other settings that must be selected to get the VFD to recognize the 0-10 Volt external signal - others than the PD001 "Source of Run Command" (set to "1" for your installation).

Please also read about selecting 0-10 volt as opposed to 0 to 20mA, or 0-5V.  Look at PD070, PD072 through PD076.
I set mine up years ago, and remember similar learning curve.  Lesson here is to write down all the settings once the system does what you want it to... (smile)

If you are safe about it, you should be able to remove wires from controller board, put a voltage source across the terminals (think 1.5 volt "AA" battery) to ensure the drive is reacting to a 0-10 Volt signal.  Of course make sure spindle is ready to spin, etc.

My drive:
Model HY07D543B

Best of luck.

Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #15 on: November 18, 2016, 08:11:45 AM »


Each BOB connectors are unique and your manual has a section on the spindle. You basically need it to be able to output 0-10V which is fed into the VFD. Then you have to program the VFD for external control for both direction and speed, these are parameters inside the VFD.


Two relays are used to enable the VFD and allow it to change direction from Foward to Reverse, or vice versa.

PD001 = 1, this is for external control for operation commands
PD002 = 1, this is for getting operating frequency RPM from external analog input
PD044 = 01, for the RUN function
PD045 = 05, for the Switching from Forward to Reverse

PD070 = 0, this takes analog input from 0 to 10V

Please check the manual for you VFD but most of these have not changed for most of the Huanyang VFDs.

Russ
Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #16 on: November 29, 2016, 03:00:29 AM »
Wheelman, I think that I understand what you may be missing and some of the above gets you there but is easy to miss.  I'll give you the short version and I think you'll be able to figure it out,  and then, if necessary post all the nitty gritty details once I can get back to my machine.

Mach4 has 3 functions relating to spindles you need to configure: a pin for SPINDLE ON, the speed function (pmw is what is discussed so far) and a direction function- mach wants you to configure a pin for FWD rotation and/or REV rotation (i.e. If you want to use both, you are configuring two separate pins for direction). Now looking at the VFD you see their is no pin for spindle off/on, and the direction is controlled by jumpering either FWD and DCM for forward and REV and DCM for reverse.  This is the secret, the action of completing the jumpering the direction pins is the on/off function for the spindle.

What mach4 will do when it sees a M3 command is turn ON the SPINDLE ON pin and turn ON the FWD pin.  You need to connect the output of either the SPINDLE ON pin or FWD  pin to a relay.  The relay should be wired to the VFD such that the relay Common pin is connected to VFD DCM pin, and the relay NO ( normally open) pin is wired to the VFD FWD pin. Thus when Mach4 triggers  the SPINDLE ON pin, the relay is energized and the VFD DCM pin and FWD pins are shorted together, turning on and setting the direction simultaneously and actually starting the spindle.  Of course, if you are using both forward and reverse, you should use the Mach4 FWD pin and Mach4 REV pin to trigger 2 separate relays wired to the appropriate VFD pins.  The SPINDLE ON must be configured in Mach4 but does not need to be connected to anything, the direction pin will do both the on/off and set direction on the VFD.

The relay can be low voltage (mine is a 5v one), it is not switching any power, only creating a "short"  or continuity between two pins at logic level.

Hopefully this is enough for you to get this working.  Looks like you already have the pmw speed funtion configured.

Richard
Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #17 on: December 04, 2016, 11:24:49 PM »
Thanks for help so far, but I still CANNOT get the machine running.

If I hook a 9v battery from ACM to VI and then jumper DCM to FOR, then the spindle spins perfectly. It spools up to 400 hz very nicely. As for Mach4, well it's still being a PITA and won't control it.

I want to use Pin16 (which is a relay out on my BOB) for my FOR-DCM, and Pin 14, which is an analog output to control speed. I dont think I'm wrong on this, and it all makes sense in my head, but Mach seems like one of the most unintuitive programs to configure in the world.

When I click spindleCW in Mach4 (M03) I want the spindle to TURN ON. It won't do this. I have wires from v_in and NO (normally open) from the relay on Pin 16 connected. How do I make Mach4 close said relay when M03 or the button is enabled? I've tried every mapping I can dream of through ESS and it doesnt work active high, active low, or anything else in the middle.

I'm at my wits end here and don't know where to turn. Mach4 and ESS just seem impossible to configure, and from an intuitive sense I understand exactly what I'm trying to do.
Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #18 on: December 04, 2016, 11:43:57 PM »
I changed the pin mappings in ESS Output Signals for Spindle On - maps to Pin 16, which causes relay to close and connect DCM to FOR, and the spindle starts. I think I've gotten closer, now to figure out how to scale the voltage from 0-10 to correspond to speed.

thanks again for the help
Re: Mach4, C11 BOB, & Huanyang VFD - how to control spindle?
« Reply #19 on: February 08, 2017, 10:59:13 PM »
Have you had any further progress getting 0-10v on the analog output? I'm trying to do the same with a C23 board and having the same issues.