Getting started
5. Connecting a spindle/VFD
15 min
exercise caution when configuring the spindle on your machine; powerful spindles are extremely dangerous and can cause injury or death if mishandled ensure that you keep your fingers clear of the spindle, the area around the spindle is clear, and no tool is installed unless explicitly instructed otherwise disconnect the machine from mains power as always when making changes to the wiring of the machine, as mains voltages are deadly even a vfd that was recently connected to power may still have a charge, consult the manual of the vfd to ensure safe conditions when touching the connection points to connect a spindle to the controller, it is important to determine the type of connection needed in general, all spindles and vfd combinations fall into one of the following categories some may be able to be configured to function in multiple ways regardless of connection type, the spindle must be connected safely ensure that the connections follow local regulations for safety, this may include a safety relay to cut power to the device in emergency conditions be sure that you can turn the device off in an instant, especially during setup types of vfd control most vfds will have two signals for controlling them signal to control the speed signal to control the vfd on/off status to control the speed, we use a 0 10v signal 0v is the lowest rpm, and 10v is the highest rpm please note that 0 volts does not always correspond to 0 rpm; this can be configured in our software, as some spindles have a minimum speed it's also important to understand that controlling a vfd solely via 0 10v is unsafe, as any signal on these wires could activate the spindle however, for switching the drive on and off, there are two types of control of a vfd type 1 tool on/direction type 2 clockwise (cw, forward) / counter clockwise (ccw, reverse) both types are supported, but please check your manual and/or set up your drive accordingly we will show how both types can be controlled please note that the direction is determined by looking at the spindle from the top down we will show for both types how they can be controlled type 1 tool on/ direction this type of vfd uses two signals to control it one signal switches the vfd on and off, and the other controls the spindle direction the table below shows how the controller uses the signals tool on output tool direction output spindle behavior off off off off on off on off turning clockwise on on turning counter clockwise the direction may need to be set up in the configuration parameters for the vfd, consult the vfd’s manual for this verify that the direction is correct before using the machine in the vfd manual, locate the tool on and direction connections in most cases, there is a connection overview diagram the diagram in the manual will look very similar to the ones below the designation for these signals can vary; as you can see, it's possible that the designation is cryptic, like 's1' the manual will describe how to configure the signal to be tool on also, the designation for the 0 10v control voltage may differ however, most images will show similar connections before continuing, make sure you have the vfd configured manually and test the signals by hand using a relay the connection between the inputs and the dcm signal does not indicate whether the dcm signal is 24v or ground this can vary between manufacturers it's therefore advisable to use a small relay to connect the dcm signal and the inputs, and have the controller control these relays to avoid any issues with switching these signals note that the relay should have an antiparallel diode to prevent spikes from relay switching from reaching the controller outputs the relay that is used does not need to be very powerful, since almost no current will flow an option is to use a din rail mounted relay below is an example of such a relay in this case, it is a phoenix contact rif 0 rpt 24dc/21 (sku 2903370) wiring the {{controller name}} has only an output for tool on but no signal for a tool direction output before connecting the vfd to the {{controller name}} spindle, program the vfd configuration parameters to match the spindle find the parameters that allow external control of the spindle through the inputs on the vfd, and the speed control voltage reference is set to 10v or the control type is set to pwm both outputs on the {{controller name}} can be inverted, but keep in mind that it is recommended to wire the vfd in a way that the spindle is off when both outputs are off doing this will ensure the spindle shuts off if the controller fails speed control can be done using either 0 10v or pwm the {{controller name}} is capable of supplying either option the most common is 0 10v, where 0v corresponds to the minimum rpm and 10v to the maximum rpm when choosing pwm, you may need a pull up resistor to achieve the upper voltage expected by the vfd the {{controller name}} contains user selectable pull up resistors to simplify wiring the usage of 0 10v voids the pwm1 output in the picture above, you can see what's inside on the right besides the relay, you also see the diode, and, as a bonus, an led indicator that helps you check your wiring the outputs on the {{controller name}} are so called 'open collector outputs in the manual for the vfd, find the connections for tool on and direction , in most cases, there is a connection overview diagram the outputs on the {{controller name}} feature relay outputs, these can be connected instead of the switches speed control can be done using either 0 10v or pwm the {{controller name}} is capable of supplying either option the most common is 0 10v where 0 volts means minimum rpm and 10 volts means the maximum rpm when choosing pwm, you may need a pull up resistor to achieve the upper voltage expected by the vfd the {{controller name}} contains user selectable pull up resistors to simplify wiring the usage of 0 10v voids the pwm1 output configuration navigate to setup > toolhead > toolhead and ensure that on/off output for the main toolhead is set to tool out when using the tool direction, set direction output to aux1 out ensure that the pwm output setting is set to pwm1 out when using speed control the value entered in the minimum rpm setting is used to correct programming errors where an s value is used that is too low the maximum rpm setting is used to map the programmed rpm to a 0 10v or pwm value, the rpm entered here is the rpm the spindle turns at the full 10v or 100% pwm setting the ramp up and ramp down delays will pause the execution when m3, m4, and m5 are called this allows the spindle to reach its programmed position before executing the next line in the job file testing ensure that the spindle does not contain a tool and is free to rotate without obstructions power the machine up and start the software press reset to enable the machine go to the io tab ensure that both tool and tool dir (or substitute outputs) are turned off set the used pwm output to a value accepted by the vfd (e g 50%) click tool , the spindle should start turning in a clockwise direction click tool again, the spindle should stop turning click tool dir (or substitute), nothing should happen aside from possibly a relay clicking click tool, the spindle should start turning in the counter clockwise direction increasing the pwm value should increase the rpm of the spindle click tool, the spindle should stop turning these tests ensure that the basic connections of the spindle are correct open the mdi enter m3 sx where x is the minimum speed, the spindle should start turning in the correct direction at the speed programmed enter m3 sx where x is the maximum speed, the spindle should ramp up to the maximum speed when using direction, enter m4 sx with an arbitrary speed the spindle should change direction enter m5 , the spindle should come to a standstill troubleshooting here are some common issues and their solutions the spindle turns off then it should turn on or vice versa ideally, the vfd is wired in a way that the spindle turns on when the respective output is on if this is impossible, the output can be inverted in setup > input/output > invert io signal level the spindle turns in the wrong direction first, double check that the vfd is wired and programmed correctly if necessary invert the tool direction output in setup > input/output > invert io signal level the speed control works inverted for example, the spindle ramps up when the s value goes down in some cases, the speed control output may need to be inverted this output can be inverted in setup > input/output > invert io signal level the set s value does not correspond to the actual spindle rpm first of all, ensure that the minimum and maximum rpm in the setup are set correctly the spindle speed curve may not be fully linear if these are set correctly if this is the case pwm compensation may be used to compensate for this non linearity vfd/spindle type 2 clockwise (cw) / counter clockwise (ccw) this vfd type connects to the controller using a connection for clockwise rotation (cw) and one for counter clockwise rotation (ccw) the markings on your edingcnc controller are named tool on and tool direction in case tool direction is not available, an aux output must be used the tool on output is used as for the cw signal and the tool dir is used as cc off off off off on turning counter clockwise on off turning clockwise on on undefined consult the manual of your vfd to see the behavior of the spindle when both inputs are active this is unintended and undefined behavior and will be avoided by the {{controller name}}