[ Log In ]
[ Register ]

Question #: 15485

Question: [Mach3 USB Interface Board] How is the bit-resolution on the PWM output for the spindle control? (8-bit or higher?)

Current Solution

I am not sure of the resolution for the PWM output for spindle speed control. However, if you are worried about getting the exact speed you need, 8-bit will provide 256 levels of increments. This translates roughly to a change of 94 RPM from one increment to another. Remember to provide some inductance and shielding to the signal lines so you won't get fluctuations in speed.

Respond:

Other Possible Solutions to this Question

  • Can the spindle be controlled with a PWM signal or analog signal? Which pin do I assign the spindle control to in LinuxCNC?

    The Spindle can be controlled with either analog (Like with a DAC card) or PWM.

    If your spindle speed is controlled by an analog signal, (for example, by a VFD with a 0 to 10 volt signal) and you’re using a DAC card like the m5i20 to output the control signal:

    First you need to figure the scale of spindle speed to control signal. For this example the spindle top speed of 5000 RPM is equal to 10 volts.

    10 volts / 5000 RPM = .002 volts / 1 RPM

    If you need a spindle enable signal, link your output pin to motion.spindle-on. To link these pins to a parallel port pin put something like the following in your .hal file (net spindle-enable motion.spindle-on => parport.0.pin-14-out), making sure you pick the pin that is connected to your control device.

    Click the link to add information to this solution:
    Can the spindle be controlled with a PWM signal or analog signal? Which pin do I assign the spindle control to in LinuxCNC?

  • [575] how do i connect a lathe spindle speed encoder to this usb breakout board controller so i can set up for thread cutting on my lathe and on the mill for threading

    This controller does not have an encoder input to determine the speed of a lathe spindle. The Pokeys57CNC does have an available encoder input.
    https://www.buildyourcnc.com/item/electronicsAndMotors-electronic-component-breakout-Mach4-mach3-USB-ethernet-Board

    Click the link to add information to this solution:
    [575] how do i connect a lathe spindle speed encoder to this usb breakout board controller so i can set up for thread cutting on my lathe and on the mill for threading

  • It is possible to control externally the 1.5kW Inverter (VFD) (220 Volt) with PWM so i can control the spindle rotation? Do you have the documentation? Thank you

    Our spindle VFD's, have a multitude of different connectors that can be used for different operations. There is a manual that comes with each VFD, and you can refer to page 11 for different functions and descriptions.

    We currently have a PWM, working with our machine, however it is connected via USB, and setup through Mach 3.
    Also if you may have misplaced or lost the manual here is a link to the pdf:

    (https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CCAQFjAAahUKEwibxaaIndTHAhXQlogKHZVyDFE&url=http%3A%2F%2Fwww.c-n-c.cz%2Fdownload%2Ffile.php%3Fid%3D42252&ei=_cHkVdvSC9CtogSV5bGIBQ&usg=AFQjCNHTQcxs-KhJkvkhMdxVFPzkoYJtsA&sig2=JAcZawTGMuC-t4wmn1z-rA)

    Click the link to add information to this solution:
    It is possible to control externally the 1.5kW Inverter (VFD) (220 Volt) with PWM so i can control the spindle rotation? Do you have the documentation? Thank you

  • [575] Can it make the spidle control PWM to a VFD witch 5 V input

    In theory, utilizing a 5V reference in the 10V terminal of the Mach3 USB controller should yield functional results, although I haven't personally tested this configuration. If you possess an oscilloscope, you can monitor the PWM signal to verify whether the AVI output achieves a peak 5V PWM square wave.

    Click the link to add information to this solution:
    [575] Can it make the spidle control PWM to a VFD witch 5 V input

  • [575] How connect one spindle encoder on this White Eagle Mach3 board ????

    This controller does not have an encoder input for the spindle. The controller can output a PWM signal which causes the spindle VFD to spin at a specific RPM. That RPM is shown in Mach3 as long as the configuration has been applied properly. You can also calibrate the RPM of the spindle to match the RPM shown in Mach3 with the use of a tachometer and adjust the configuration in Mach3.

    Click the link to add information to this solution:
    [575] How connect one spindle encoder on this White Eagle Mach3 board ????

  • HEY ! I HAVE PURCHASED A VFD WITH MATCHING SPINDLE 1.5KW AND CONTROL PROGRAM UCCNC. MY INTERFACE CARD IS DB25, THE QUESTION HOW DO CONNECT TO DB25 SO THAT CAN SPEED UCCNC? SINCERELY "CNC BEGINNERS"

    Identify the Control Signals: First, determine which control signals from the DB25 interface card are used for spindle speed control. Typically, these are PWM (Pulse Width Modulation) signals or analog voltage signals.

    VFD Configuration: Your VFD should be configured to accept the type of control signal your DB25 card provides. This involves setting parameters in the VFD that correspond to the type of input signal it will receive for speed control.

    Wiring: Connect the appropriate output pins from the DB25 card to the input terminals on the VFD. This usually involves connecting the PWM or analog output to the corresponding input on the VFD. Make sure to consult the manuals for both your VFD and interface card for specific wiring details.

    UCCNC Settings: Configure UCCNC to output the correct type of signal (PWM or analog) that matches your VFD's configuration. This is done through the software's spindle setup section.

    Test and Adjust: Run some tests to ensure that the spindle speed is being correctly controlled by UCCNC. You might need to tweak settings in either the VFD or UCCNC for optimal performance.

    Click the link to add information to this solution:
    HEY ! I HAVE PURCHASED A VFD WITH MATCHING SPINDLE 1.5KW AND CONTROL PROGRAM UCCNC. MY INTERFACE CARD IS DB25, THE QUESTION HOW DO CONNECT TO DB25 SO THAT CAN SPEED UCCNC? SINCERELY "CNC BEGINNERS"

  • HOW MUCH SILICONE TUBE DO I NEED FOR A GREEN LEAN TO CONNECT THE SPINDLE

    The greenlean requires 56 feet of 1/4 Inside Diameter and 3/8 Outside Diameter silicon tube for the spindle.

    Additional Information:
    20

    Additional Information:
    20

    Click the link to add information to this solution:
    HOW MUCH SILICONE TUBE DO I NEED FOR A GREEN LEAN TO CONNECT THE SPINDLE

  • [575] How many Amps can the output handle? My SGR pulls 2.6 Amps so I need to know if the output can handle that much.

    The Mach3 USB Interface Board is designed to handle an output current of 50mA. These outputs are generally not suitable for heavy loads like Spindle Governor Relays (SGRs)​​. Given that your SGR pulls 2.6 Amps, it exceeds the capacity of the Mach3 USB Interface Board's output. Therefore, directly switching the SGR using the Mach3 USB Interface Board is not advisable. Instead, using your existing C36 rev1.1 board as an intermediary would be the recommended approach. This board can handle higher currents and will act as a buffer, protecting the Mach3 USB Interface Board from being overwhelmed by the higher current demand of your SGR.

    Click the link to add information to this solution:
    [575] How many Amps can the output handle? My SGR pulls 2.6 Amps so I need to know if the output can handle that much.

  • [575] Hello, I'm wondering if you can provide advice how to wire this USB board where for spindle I would like to use chinese servo motor and driver (TD3) - speed control mode. Especially how to connect - AVI, ACM and 10V (24V is clear). I am still not sure how to power on and off spindle itself. Thank you in advance. Vaclav

    This video should provide enough guidance to understand the PWM signal on the Mach3 USB controller:



    The PWM signal is provided by the AVI terminal, and the 10V terminal is an input and provides the reference for the top voltage for the PWM signal. The ACM is the analog common (analog ground)

    Additional Information:
    Hello again, thank you for your help. Finally I was able to measure voltage between AVI and ACM, but another issue occurred.
    In Mach3 I am able to control spindle speed - voltage output only from 50% to 100% in other words from 0% to 49,9% the voltage output is 0V, when the percetage exceed 50% I see immideately 5,2 V as an output which is linerly increasing up to 10V. I also tried to chage input voltage from 10 to 5V, but wirh the same effect, from 0%-49,9% 0V and from 50% I see cca 2,6V which then linearly increasing up to 5V.
    It seems that my board is operating only in range of 5V. Thank you in advance for any advise. BR Vaclav

    Click the link to add information to this solution:
    [575] Hello, I'm wondering if you can provide advice how to wire this USB board where for spindle I would like to use chinese servo motor and driver (TD3) - speed control mode. Especially how to connect - AVI, ACM and 10V (24V is clear). I am still not sure how to power on and off spindle itself. Thank you in advance. Vaclav

  • HOW TO CONTROL MY 2.2 KW SPINDLE VIA MACH3

    You can go to our instructions on for the breakout board here: http://www.buildyourcnc.com/item/electronicsAndMotors-parallel-breakout-relay to get the information on turning the spindle on and off from the computer and mach3. Alternatively, you can connect the computer using RS485 serial to the inverter and send control commands that way.

    Additional Information:
    HOW TO CONTROL MY 2.2 KW SPINDLE VIA MACH3 usb

    Additional Information:


    Additional Information:


    Additional Information:
    How should I wire the Mach3 card (red, 4 axis) and the vfd (Yl620-a)?

    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    HOW TO CONTROL MY 2.2 KW SPINDLE VIA MACH3

  • WHAT ARE THE OUTPUT INVERTER (VFD) CONNECTIONS TO SPINDLE?

    U - Pin1
    V - Pin2
    W - Pin3
    Pin4 Dead

    Additional Information:
    My home made cnc is a big problem with my NC connection. When in start my spindle it will be gone wrong. It will be limith switch problem anytime. Need help thanks.

    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:



    Additional Information:

    Click the link to add information to this solution:
    WHAT ARE THE OUTPUT INVERTER (VFD) CONNECTIONS TO SPINDLE?

  • HOW COMPLEX IS YOUR KIT TO ASSEMBLE, AND MOST IMPORTANTLY - HARD IT SETUP CONTROL THE LASER WITH MACH3?

    The blackTooth Laser cutter and Engraver can be built in a weekend. Take a look at the build instructions and try to determine if you feel you have sufficient capability to put together the laser system.

    Click the link to add information to this solution:
    HOW COMPLEX IS YOUR KIT TO ASSEMBLE, AND MOST IMPORTANTLY - HARD IT SETUP CONTROL THE LASER WITH MACH3?

  • [575] I have motor control boards that have 4 pin input ( Step, Dir, EN, +5V) how do I connect this USB board?

    Connect the XD to the Dir, XP to the Step, and the 5V on the Mach3 USB controller to the +5V.

    Click the link to add information to this solution:
    [575] I have motor control boards that have 4 pin input ( Step, Dir, EN, +5V) how do I connect this USB board?

  • [575] I have motor control boards that have 4 pin input ( Step, Dir, EN, +5V) how do I connect this USB board?

    You can connect the 5V from the Mach3 USB controller to the 5V terminal on the driver, the XP to the Step terminal on the driver and the XD to the Dir terminal on the driver.

    Click the link to add information to this solution:
    [575] I have motor control boards that have 4 pin input ( Step, Dir, EN, +5V) how do I connect this USB board?

  • WHAT IS THE SYSTEM PASSWORD FOR LASER CONTROL UNIT?

    The password is: 608

    Click the link to add information to this solution:
    WHAT IS THE SYSTEM PASSWORD FOR LASER CONTROL UNIT?

  • [575] I have the wiring and programming and parameters set the same way that you do in the spindle speed control and outputs videos, I can start and stop the spindle with mach3 but can't seem to control the speed. Can you think of solutions?

    Do you have an oscilloscope? You will be able to see the PWM signal and determine if the output is correct. Make sure that you are using the 10V from the VFD as the voltage reference for the 10V terminal on the Mach3 USB controller. The 10V terminal is an input, not an output on the Mach3 USB controller. The 10V is the top voltage signal level that the Mach3 USB controller uses for the PWM signals 100% duty cycle.

    Click the link to add information to this solution:
    [575] I have the wiring and programming and parameters set the same way that you do in the spindle speed control and outputs videos, I can start and stop the spindle with mach3 but can't seem to control the speed. Can you think of solutions?

  • I HAVE THE REDFLY SYSTEM AND A 2.2KW SPINDLE - 110V HOW DO CONNECT SPINDAL?

    It is not necessary to connect the spindle VFD (Variable Frequency Drive also called an Inverter) to the computer or CNC motion electronics. The VFD can be controlled independently using the control panel on the VFD. The control panel has the ability to control all aspects of the spindle including Speed, Torque, limits, etc. However, you can connect the VFD to the computer so the CNC control program can control the spindle during the CNC Machine operation. You will need to connect the VFD to the computer via a serial conection (in this case, it is the RS-485 protocol).

    The following are instructions on how to connect the VFD to Mach3 via this RS-485 serial connection.

    The first thing you will need is the dynamic link library to pair with mach3 called the Huanyang VFD Mach3 PlugIn. You can find this file at the mach3 support forum here: http://www.machsupport.com/forum/index.php/topic,14182.0.html

    You will also need to download the Microsoft .net 3.5 framework and install it: https://www.microsoft.com/en-us/download/details.aspx?id=21

    Follow the pdf that comes with the library file, but here is a synopsis of what you need to do (I also added a lot more information that may be useful during this process as the manual does not cover the main connections that need to be done):

    You will need to program your VFD so that it knows how to communicate with mach3 and the computer (go into the programming mode of the VFD and change these parameters):
    - PD001 - value 2 - Enables with communication aspect of the VFD
    - PD002 - value 2 - Enables frequency control from the communcations port
    - PD163 - value 1 - VFD address
    - PD164 - value 1 - Baud rate of 9600 (speed of the communication)
    - PD165 - value 3 - 8N1 RTU - 8 bits (that's the size of the word that gets communicated), N (No parity or no error checking) and 1 (1 stop bit)

    Copy the dll file to the PlugIns folder of mach3.

    Connect the RX and TX lines to your computer. There are a couple ways you can do this, but the recommended way would be to use an FTDI USB device which converts a USB to a serial com port. The device will have Rx and Tx connectors to connect to the VFD terminals with the same labels. This method is recommended since serial ports are not as common in computers these days.

    Next, you will need to configure mach3 to use the plugin library. Start mach3 and click on Menu -> config ->Config Plugins. Enable the new plugin by clicking on the red cross on the left column next to the plug in. Restart mach3 after doing this.

    No you need to configure mach3 to use the HuanyangVFD plugin. Go to the ports & pins configuration and select the spindle setup tab. Make sure that the Disable Spindle Relays checkbox is unchecked. We don't want mach3 to output a signal for a relay since the spindle will start up and turn off within the VFD and not from an external relay.

    Next, go to the HuanyangVFD settings by clicking on Menu -> plugin control -> HuanyangVFD. Set the parameters to the same settings you put into the VFD programming. The com port will be shown as new hardward when you plug in the USB FTDI device. A little bubble will be displayed at the bottom right where it will notify you that a new device is being installed (be patient while windows assigns a com port). Alternatively, you can use the windows device manager to see which port was set for the new USB FTDI device). You may need to restart mach3 several times until you get the correct information displayed in the PD001 and PD002 fields. When the com port is correct and the other parameters, like baud and VFD address is the same as you entered in the programming, then the PD001 and PD002 will show the number 2, otherwise, a 99 will appear which means that communication was not successful.

    You can now control the on/off and RPM of the spindle using the RS485 communication between mach3 and the VFD.

    Additional Information:
    The question was how to connect the spindle to the redfy. I did not receive a VFD.
    I have the redFly system and a 2.2kW Spindle - 110V how do i connect the spindle?

    Additional Information:
    If you received a spindle without a VFD, please contact us asap. Our spindle will not work without a VFD.

    Additional Information:
    Hi, how is this setup in mach4?

    Click the link to add information to this solution:
    I HAVE THE REDFLY SYSTEM AND A 2.2KW SPINDLE - 110V HOW DO CONNECT SPINDAL?

  • [575] Why is a second PSU necessary for the limit switch and e-stop ?

    Because the USB board is powered by USB (+5VDC) from your PC. Your inputs (eg. limit switches) require up to +36VDC to operate properly.

    Click the link to add information to this solution:
    [575] Why is a second PSU necessary for the limit switch and e-stop ?

  • [575] Can you please point me in the direction of a list of VFD Parameters for this to as intended for spindle speed control? I’m using Hunyang VFD. I’ve verified outputs/relays working as intended and PWM signal is correct at the VFD, but its still pulling speed control from the onboard pot instead of PWM signal. I’ve tried every combination of parameters I can think of but no luck.

    The HY VFD has three main terminals for PWM control. These terminal inputs are:
    - VI for the analog (PWM) voltage input (input at the VFD, output at the controller, i.e. the Mach3 USB controller),
    - 10V output (this is an output from the VFD and an input at the controller) serves as the high voltage value for the width of the voltage,
    - and ACM the ground from the controller (DCM at the controller)

    In the parameters:
    - PD002 should be set to 1 (one). PD002 is the source of operating frequency which is the RPM of the spindle in the Hz frequency units. 400Hz = 24000 RPM.
    - PD003 specifies the frequency range for these terminals (10V, VI, and ACM) where 10V (voltage reference) is 400Hz and 0v is 0Hz, and VI adjusts the range from 0 and the voltage reverence (10V).
    - PD070 selects the voltage range or current range (for use with the AI external VFD terminal as opposed to using the VI). You want to keep that parameter at the factory setting of 0 (zero) 0-10V.

    Click the link to add information to this solution:
    [575] Can you please point me in the direction of a list of VFD Parameters for this to as intended for spindle speed control? I’m using Hunyang VFD. I’ve verified outputs/relays working as intended and PWM signal is correct at the VFD, but its still pulling speed control from the onboard pot instead of PWM signal. I’ve tried every combination of parameters I can think of but no luck.

Get Help with:
This Product
Orders
Tech Support
Sales
This Product
Order Query
Tech Support
Sales
Not logged in. Log In Register
Track Order(s)
View Order(s)
I Want to Schecule a One-On-One Paid Tech Support Session
Book an Appointment Pertaining to a BuildYourCNC Product (Free)
Ask a Quesion Below (Free):
Book an Appointment Pertaining Other Equipment ($60/half hour)
Book an Immedite Appointment Pertaining Other Equipment ($120/half hour)
Ask a Quesion Below (Free):
Waiting for response... I may not answer immediately, but I was notified on my cellular phone so my response is forthcoming. If I don't respond immediately, you can always go to the [My Account] page to see all of our chats at any time.