bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
1.9k stars 265 forks source link

Query Current Bed Temp for Conditional G-code? #2866

Open CCS86 opened 10 months ago

CCS86 commented 10 months ago

In SS / PS with my Duet3D powered printer, I use conditional gcode to look at the current bed temp and decide whether it is cold and needs a longer heat soak, or if it is already hot and can start a print immediately:

{"if heat.heaters[0].current < "}[first_layer_bed_temperature]-1.5
{"  "}M190 R[first_layer_bed_temperature]               ; Wait for cold bed
{"  "}G4 S440                                                             ; Cold Pause
{"else "}
{"  "}M190 R[first_layer_bed_temperature]               ; Wait for hot bed
{"  "}G4 S1                                                                ; Hot Pause

Is there is a system variable in the Bambu firmware that we can query to get the current bed temp, and support for conditional operations like this?

CCS86 commented 9 months ago

???

CCS86 commented 7 months ago

Hello?

CCS86 commented 6 months ago

@QingZhangBambu ?

QingZhangBambu commented 6 months ago

I will ask the concerned staff about that.

QingZhangBambu commented 6 months ago

@CCS86 firmware is not support that.