Steps to get started
5. Connecting a spindle/VFD
19min
take caution when configuring the spindle for your machine, powerful spindles are extremely dangerous and may result in 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 name}} 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 vfd/spindle type 1 tool on/ direction this vfd type uses one signal to turn on the rotation of the spindle and one to control the direction when turning the spindle on the {{controller name}} has a dedicated output for tool on but no dedicated tool direction output, if direction control of the spindle is required, the aux 1 output needs to be used 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 before connecting the vfd to the {{controller name}} , program the configuration parameters of the vfd 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 will turn off in the situation where the controller breaks or malfunctions wiring 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/aux is used as ccw tool on output tool direction output spindle behavior 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}} before connecting the vfd to the {{controller name}} , program the configuration parameters of the vfd 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 will turn off in the situation where the controller breaks or malfunctions wiring in the manual for the vfd, find the connections for forward and reverse, in most cases, there is a connection overview diagram the outputs on the {{controller name}} use relays and can be wired in place of 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 reverse, set the direction output to aux1 out to set the spindle in forward/reverse mode, turn on alternative direction control output mode for the spindle 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 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 output) 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 increasing the pwm value should increase the rpm of the spindle click tool again, the spindle should stop turning click tool dir (or substitute), the spindle should start turning in a clockwise direction click tool dir (or substitute) again, 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 either invert the tool and direction output in setup > input/output > invert io signal level or swap the wires for these two connections the speed control works inverted i e 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