Spindle not showing in DWC-CNC RRF3 on Duet WiFi
-
@bonjipoo I'm not certain, but you may need to switch into CNC mode using M453 before you configure the spindle using M950.
-
@dc42 So I moved the M453 command to the top of the config.g file. The M950 and M563 come next and then the rest of the RepRap code ie General preferences, network, drives etc
But this has not resolved the issue. I assume this is not expected behaviour? Could it be browser related? Or maybe I need to wait and see if the spindle pwm to analogue converter works as expected.
One last mention... The board has been used before for a workbee machine. I erased the board but not sure if that erases the EPROM and any date stored on it. The SD card has been wiped and fresh reprap config files added. Could this be an issue?
-
@bonjipoo said in Spindle not showing in DWC-CNC RRF3 on Duet WiFi:
One last mention... The board has been used before for a workbee machine. I erased the board but not sure if that erases the EPROM and any date stored on it. The SD card has been wiped and fresh reprap config files added. Could this be an issue?
No, as long as you've got a new firmware version flashed to the board and a compatible config.g on the SD card you're good to go.
Have you tried moving the M950 and M563 to the bottom of config.g yet?
-
@Wurke If you're using the preview version of the excellent "CNC optimised DWC" then I believe this is a known issue and @Sindarius plans to resolve it in a future release:
@sindarius said in Preview version of CNC optimized DWC.:
@cjm The structure of the spindle in the object model has changed so I will be making some adjustments to fix it.
-
@phaedrux I haven't tried this but will. Also not sure why I have R0 parameter in the M950? Cant see that that is actually a valid parameter? Could be this.
-
@bonjipoo said in Spindle not showing in DWC-CNC RRF3 on Duet WiFi:
Also not sure why I have R0 parameter in the M950? Cant see that that is actually a valid parameter? Could be this.
It's spindle number.
If you send M98 P"config.g" do you get any error messages back?
-
@Wurke According to the Duet GCode directory, the R parameter in M950 is the spindle number, so R0 defines the spindle as spindle 0. My understanding is that this allows M563 to map the spindle to a tool and give a name to that specific spindle.
-
@phaedrux said in Spindle not showing in DWC-CNC RRF3 on Duet WiFi:
M98 P"config.g"
The reason why I couldn't R0 as a valid parameter is because I was looking at the reprap Gcode page and not the duet3d one. Lesson learnt.
Yes there are errors
M98 P"config.g" Error: in file macro line 6 column 100: M950: control character in string Error: unconfigured spindle HTTP is enabled on port 80 FTP is disabled TELNET is disabled Tool 0 offsets: X0.000 Y0.000 Z0.000
Good shout. Thank you
-
@cjm Thank you for that. I think the quote after exp.13 is curly not straight.
-
@Wurke Sorry about that - I pasted the code in from my CNC's config.g and then edited it using my iPad so perhaps I picked the wrong quotation mark? I've corrected my other post with this code in it.
-
@cjm No problem I just appreciate some help with it. Still no spindle showing up but at least when you run M98 P"config.g" there are no errors now.
-
@Wurke I have the same issue. My spindle responds to M3/M4/M5 correctly but is not shown on DWC, although it was in a previous version.
Interestingly, the object model reports the spindle's state correctly (i.e. shows the selected RPM and whether it is running, stopped etc) but always reports "configured = false":
I suspect that DWC sees "configured = false" and then decides not to show any information in the spindle panel.
-
@cjm That sounds likely. How do I access the objects model? Is it worth adding this as an issue on the Github? It's not currently on there. Just as a reminder.
-
@Wurke Its available under the Settings menu item in DWC:
I've raised the issue with @sindarius who generated the CNC version of DWC and understand he's working on a fix.
However, it's not entirely clear to me whether the root cause for the issue lies with DWC or the Duet firmware so perhaps worth raising on the Github.
-
@cjm odd. I don't have object model in the side bar.
-
@Wurke Maybe we're using different versions of DWC ?
-
@cjm mine shows as Duet Web Control 3.3.0-CNC07
-
@Wurke Interesting, so does mine...
-
@cjm I've just noticed that the CNC version of DWC has been merged into the latest "mainstream" DWC beta [Duet Web Control 3.4-b2] and have loaded this, but the spindle is still invisible.
I can see the object model menu in this new version so perhaps worth your trying this?
-
@dc42 I've tried placing M453 before and after the spindle configuration but the spindle is still not shown in DWC.
Although my spindle appears to be configured correctly in that it responds properly to M3/M4/M5 and the object model shows the RPM and spindle state , I note that the object model always reports spindle "configuration = false".
Could it be that this is why DWC doesn't display the spindle state on the Dashboard?