How can I setup command logging
-
In other systems like Repetier I can see an output of all commands sent either while printing or not printing.
I cant seem to be able to do this with DWC/ReprapFirmware.
Even when I enable logging with M929 P"eventlog.txt" S3
If I then home all axis then stop the logging the only output I get is:
2021-04-22 22:20:47 [info] Event logging started at level debug
2021-04-22 22:20:47 [info] Running: Duet WiFi 1.02 or later: 3.2.2 (2021-02-11)
2021-04-22 22:21:27 [info] Event logging stoppedId really like it to be more granular such as showing the actual moves made when homing. I've had issues setting up my tool changer with it crashing into the bed because the configs provided are dreadful. Im having a hard time digging through them trying to find out why the Z axis is at its given value, and I dont want to break another microswitch.
I figured if I could have a command log i'd be able to see exactly whats going on and know where to look.
-
Logging the commands would just show you what is in the macros themselves. Where does that get you that looking at the macros doesn't already?
If you want to see how far things are in real time you can place M117 message commands at various points to get feed back on which section of the macro is being run at that time.
https://duet3d.dozuki.com/Wiki/Gcode#Section_M117_Display_Message
-
Well I thought that sending the commands executes Gcode does it not? For example on repetier server when I click home all, it shows the executed Gcode command to home.
I understand its merely executing macros, but having to edit the files and echo out values is a bit of a pain to do. I just figured DWC would have a similar function to what repetier offers, I guess it doesnt though.
-
@festivejelly Agree.
A console output that showing all the commands sent and their answers from the controller would be nice to debug tons of things.
-
@festivejelly Maybe I don't understand what repetier is echoing back. Do you have an example of what it gives you?
-
@festivejelly Have you tried setting M111 for gcode (and possibly some of the other options)? I think you will only get the output via the USB connection, but it may give you want you want.