Errors with new CNC setup
-
Setting up my Duet 3 Mini 5+ with RRF 3.5.4, DWC 3.5.4 and Wi-Fi server 2.2.0, no SBC. I'm sure something is wrong with the config but I'm not sure what.
I receive the following error:
M98 P"config.g" Error: exactly one of EFHJPSR must be given Error: unconfigured spindle Error: in file macro line 52: M568: Invalid tool number
I used the configurator to build the config file.
; 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 ; Kinematics M669 K0 ; configure Cartesian kinematics ; Drives M569 P0.0 S0 ; physical drive 0.0 goes forwards M569 P0.1 S0 ; physical drive 0.1 goes forwards M569 P0.2 S0 ; physical drive 0.2 goes forwards M584 X0 Y1 Z2 ; set drive mapping M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation M92 X800.00 Y800.00 Z800.00 ; set steps per mm M566 X300.00 Y300.00 Z300.00 ; set maximum instantaneous speed changes (mm/min) M203 X3000.00 Y3000.00 Z3000.00 ; set maximum speeds (mm/min) M201 X150.00 Y150.00 Z150.00 ; set accelerations (mm/s^2) M906 X1200 Y1200 Z1200 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X289 Y183 Z56 S0 ; set axis maxima ; Endstops M574 X2 S1 P"0.io5.in" ; configure active-high endstop for low end on X via pin M574 Y1 S1 P"0.io6.in" ; configure active-high endstop for low end on Y via pin M574 Z2 S1 P"!0.io4.in" ; configure active-high endstop for high end on Z via pin ; Heated beds M140 P0 H0 ; configure heated bed #0 ; Spindles M950 C"io1.out+io2.out" Q500 L60:12000 ; configure spindle #0 ; Tools M563 P0 H1 R0 ; create tool #0 M568 P0 R0 S0 ; set initial tool #0 active and standby temperatures to 0C ; Miscellaneous M453 ; configure CNC mode T0 ; select first tool ; Custom settings are not defined
-
@dhusolo said in Errors with new CNC setup:
Delete this, assuming you don't have a heated bed:
; Heated beds
M140 P0 H0 ; configure heated bed #0This needs 'R0' in it, eg:
; Spindles
M950 R0 C"io1.out+io2.out" Q500 L60:12000 ; configure spindle #0Remove the heater from the tool, you don't need it:
; Tools
M563 P0 R0 ; create tool #0You don't need to set the S parameter in M568. F sets the spindle RPM.
M568 P0 F0 ; set initial tool #0 spindle RPM
See https://docs.duet3d.com/en/User_manual/Machine_configuration/Configuration_CNC for more configuration.
Ian
-
@droftarts Genius. That fixed the problem. Thanks!