Command to verify FFF, CNC, LASER
-
Hello,
is there a way to verify in which mode the printer is by Gcode metacommand?
I build a 3D printer with changeable tool heads and I have currently running daemon.g
var first_start = true while true if var.first_start == false if heat.heaters[0].current < -250 M999 if var.first_start == true M118 P2 S"HHD" L2 ; Zjisti typ osazene nove Hlavy set var.first_start = false ; Zmena promenne na False G4 S1 ; Vyckej 5s G4 S5 ; Spomaleni smycky 5 sec
which communicates with tool head via UART and is dependent on hotend temperature and it works flawlessly. For CNC and LASER there is no temp sensor so the printer keeps resetting.
I would like to change the dependency from temperature to Mode selected, is it possible?Thank you.
My project - https://www.cichr.com/cichycore.html
-
You should be able to use
state.machineMode
in the object model. -
@OwenD Thanks, is there any list with all possible commands or variations of commands? Original Duet manual is a bit limited in informations. ( https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands )
-
The list of object model values is at
https://github.com/Duet3D/RepRapFirmware/wiki/Object-Model-Documentation
The list of meta commands is at
https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands