HY VFD controlled by Duet 3 Mini
-
I have my 110v 2.2kw liquid cooled spindle working. I've got the pump wired to the VFD so when the spindle is running the pump is running. I've been searching the forums for a few days and I can't seem to find anything clear that I need to do for my setup.
I can control the RPM through the dial on the front of the VFD. However I'd like full control through DWC as in being able to use start, stop and change RPMs.
I've seen posts that say since I have a duet 3 mini, using the VFD pins all I have to do is connect:
DCM to GND to ground the VFD and the Duet 3 mini
FOR to out6 on the Duet 3 mini to control RPMI also have a frequency to voltage converter like this one.
So my question is, what's the correct way to do this so I have full control over the spindle through DWC?
-
@dhusolo can you provide a link to the manual for the VFD?
-
-
@dc42 From what I can see it's the HY02D211B VFD. I've got it kind of working. I can control the speed from S6000 to S7000 but it'll max out at 7000, even if I enter s24000.
RRF version 3.5.4
Wifi Server 2.2.0
DWC 3.5.4I've got a jumper wire in between DCM and FOR on the VFD
Out6_buff/VFD goes to pulse input +
and VFD GND goes to pulse input -
This is the one I'm using link text; Configuration file for Duet WiFi (firmware version 3.4.6) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.4.6 on Wed Oct 10 2023 (Central Standard Time) ; General preferences M552 S1 ; enable wifi G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"CNC" ; set printer name M453 ; configure CNC mode ; Kinematics M669 K0 ; configure Cartesian kinematics ; Drives M569 P0.0 S0 ; physical drive 0.0 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes backwards M569 P0.2 S0 ; physical drive 0.2 goes backwards M584 X0 Y1 Z2 ; set drive mapping M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation M92 X800.00 Y800.00 Z400.00 ; set steps per mm M566 X500.00 Y500.00 Z200.00 ; set maximum instantaneous speed changes (mm/min) M203 X1500.00 Y1500.00 Z2000.00 ; set maximum speeds (mm/min) M201 X1000.00 Y1000.00 Z1500.00 ; set accelerations (mm/s^2) M906 X1800 Y1800 Z1700 I10 ; set motor currents (mA) and motor idle factor in per cent M84 S100 ; Set idle timeout M204 P1500 T3000 ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X316 Y200 Z130 S0 ; set axis maxima ; Endstops M574 X1 S1 P"!0.io3.in" ; configure active-high endstop for low end on X via pin M574 Y1 S1 P"0.io5.in" ; configure active-high endstop for low end on Y via pin M574 Z2 S1 P"!0.io6.in" ; configure active-high endstop for high end on Z via pin ; Fans M950 F0 C"0.out5" Q200 ; create fan 0 on pin out9 and set its frequency M106 P0 C"Board Fan1" ; set fan 0 value. Thermostatic control is turned off ; Spindle Control M950 R0 C"0.out6" Q70 L6000:24000 ; configure spindle #0 M950 P1 C"0.out3" Q500 M42 P1 S0 M950 P2 C"0.out4" Q500 M42 P2 S0 ; Tools M563 R0 P0 S"Spindle" ; create tool #0 M453 M568 P0 F0 ; set initial tool #0 active and standby temperatures to 0C G10 P0 X0 Y0 U0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Mist Control ;M950 F0 C"0.out6" Q20000 ; create fan 0 on pin out9 and set its frequency ;M106 P0 C"Mist Control" S0 L0.15 X0.85 H-1 ; set fan 0 value. Thermostatic control is turned off ; Miscellaneous M564 S0 H0 ;Allow movement without homing (without axis maxima) ;T0 ; select first tool M575 P1 S1 B57600 ; Custom settings are not defined