Duet3D / DWC-CNC

18 stars 6 forks source link

Spindle not showing in Dashboard. Object model shows configured = false #9

Open bonjipoo opened 3 years ago

bonjipoo commented 3 years ago

Which Duet products are you using?

Firmware Version

RepRap 3.3

Duet Web Control Version

Duet Web Control 3.3.0-CNC07

Are you using a Single Board Computer (RaspberryPi) with your Duet?

Please upload the results of sending M122 in the gcode console.

m122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.3 (2021-06-15 21:44:54) running on Duet WiFi 1.02 or later
Board ID: 0JD0M-9K662-MG5TD-6J1D6-3SJ6N-1AL6W
Used output buffers: 3 of 24 (11 max)
=== RTOS ===
Static ram: 23876
Dynamic ram: 74520 of which 12 recycled
Never used RAM 16008, free system stack 184 words
Tasks: NETWORK(ready,10.8%,257) HEAT(delaying,0.0%,386) Move(notifyWait,0.1%,319) MAIN(running,83.9%,635) IDLE(ready,5.2%,29), total 100.0%
Owned mutexes:
=== Platform ===
Last reset 00:00:17 ago, cause: software
Last software reset at 2021-08-06 22:13, reason: User, GCodes spinning, available RAM 16008, slot 1
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Step timer max interval 0
MCU temperature: min 31.3, current 32.1, max 32.2
Supply voltage: min 23.7, current 23.8, max 23.9, under voltage events: 0, over voltage events: 0, power good: yes
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Driver 0: position 0, standstill, SG min/max not available
Driver 1: position 0, standstill, SG min/max not available
Driver 2: position 0, standstill, SG min/max not available
Driver 3: position 0, standstill, SG min/max not available
Driver 4: position 0, standstill, SG min/max not available
Driver 5: position 0
Driver 6: position 0
Driver 7: position 0
Driver 8: position 0
Driver 9: position 0
Driver 10: position 0
Driver 11: position 0
Date/time: 2021-08-06 22:13:59
Cache data hit count 655549432
Slowest loop: 3.25ms; fastest: 0.16ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 12.0MBytes/sec
SD card longest read time 0.4ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
Daemon is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 15.98ms; fastest: 0.00ms
Responder states: HTTP(2) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8
- WiFi -
Network state is active
WiFi module is connected to access point 
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.23
WiFi MAC address d8:bf:c0:fe:70:4d
WiFi Vcc 3.38, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 23728
WiFi IP address 192.168.1.121
WiFi signal strength -56dBm, mode none, reconnections 0, sleep mode modem
Clock register ffffffff
Socket states: 4 0 0 0 0 0 0 0

Please upload the content of your config.g file.

; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.3.0 on Fri Aug 06 2021 16:15:35 GMT+0100 (BST)

; Tools
M950 R0 C"exp.13" Q2000 L0:22000                  ; Create spindle index 0, PWM frequency 2KHz, 
                                                  ; Lmin:max rpm ranges from 0rpm at PWM=0% to 22000rpm at 100% PWM
                                                  ; spindle speed PWM pin   : exp.13 

M563 P0 R0 S"AMB FME-U 1050"                      ; Create Tool 0 with Spindle 0 and call it Spindle
T0                                                ; Select Tool 0 (or make sure generated by CAM)

M453                                    ; CNC Mode

; General preferences
G90                                     ; send absolute coordinates...
M83                                     ; ...but relative extruder moves
M550 P"Mini Mill"                       ; set printer name

; Network
M552 S1                                 ; enable network
M586 P0 S1                              ; enable HTTP
M586 P1 S0                              ; disable FTP
M586 P2 S0                              ; disable Telnet

; Drives
M569 P0 S1                              ; physical drive 0 goes forwards
M569 P1 S1                              ; physical drive 1 goes forwards
M569 P2 S1                              ; physical drive 2 goes forwards
M569 P3 S1                              ; physical drive 3 goes forwards
M584 X0 Y1 Z2 E3                        ; set drive mapping
M350 X16 Y16 Z16 E16 I1                 ; configure microstepping with interpolation
M92 X80.00 Y80.00 Z400.00 E420.00       ; set steps per mm
M566 X900.00 Y900.00 Z60.00 E120.00     ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 E250.00     ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800 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 X120 Y120 Z120 S0                  ; set axis maxima

; Endstops
M574 X1 S1 P"xstop"                     ; configure active-high endstop for low end on X via pin xstop
M574 Y1 S1 P"ystop"                     ; configure active-high endstop for low end on Y via pin ystop
M574 Z1 S1 P"zstop"                     ; configure active-high endstop for low end on Z via pin zstop

; Z-Probe
M558 P5 C"^zprobe.in" H5 F120 T6000     ; set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y0 Z2.5                     ; set Z probe trigger value, offset and trigger height
M557 X15:120 Y15:120 S20                ; define mesh grid

; Heaters
M140 H-1                                ; disable heated bed (overrides default heater mapping)

; Fans

; Custom settings are not defined

Please upload the content of any other releveant macro files.

No response

Details specific to your printer.

No response

Links to additional info.

https://forum.duet3d.com/topic/24521/spindle-not-showing-in-dwc-cnc-rrf3-on-duet-wifi/22?_=1628281597779

What happened?

As discussed on the forum and apparently a know issue, when adding a spindle to the config file using M950 and M563 it should appear as a spindle in the dashboard.

Spindles pane on dashboard is empty.

zzpaulzz commented 3 years ago

Tested release 3.3.0-CNC08 and confirmed fixed with one spindle configured. Now shows in the dashboard, and is fully functional.