Start Gcode for multi bed heater printer
-
Hello I am using Cura as my slicer and my printer is only heating one of 4 bed heaters when I start a print job. I imagine I need to fix this in my printer start gcode, which is shown below. But I don't even see where one heater is turning on. But it is. For reference my heater config.g is posted below. Does anyone know what code I should add?
G28 ;Home G1 Z15.0 F6000 ;Move the platform down 15mm ;Prime the extruder G92 E0 G1 F200 E3 G92 E0
; bed heater0 M308 S2 P"0.temp0" Y"thermistor" T100000 B4138 ; configure sensor 2 as thermistor on mainboard pin temp0 M950 H2 C"0.out9" T2 ; create bed heater output on 1.out0 and map it to sensor 2 M140 P0 H2 ;assign H2 to bed heater0 M307 H2 B0 S10.00 ; disable bang-bang mode for the bed heater and set PWM limit M143 H2 S120 ;set temperature limit for heater 0 to 120C ; bed heater1 M308 S3 P"0.temp1" Y"thermistor" T100000 B4138 ; configure sensor 3 as thermistor on mainboard pin temp1 M950 H3 C"0.out6" T3 ; create bed heater output on 1.out0 and map it to sensor 3 M140 P1 H3 ;assign H2 to bed heater0 M307 H3 B0 S10.00 ; disable bang-bang mode for the bed heater and set PWM limit M143 H3 S120 ;set temperature limit for heater 0 to 120C ; bed heater2 M308 S4 P"0.temp2" Y"thermistor" T100000 B4138 ; configure sensor 4 as thermistor on mainboard pin temp2 M950 H4 C"0.out5" T4 ; create bed heater output on 1.out0 and map it to sensor 4 M140 P2 H4 ;assign H2 to bed heater0 M307 H4 B0 S10.00 ; disable bang-bang mode for the bed heater and set PWM limit M143 H4 S120 ;set temperature limit for heater 0 to 120C ; bed heater3 M308 S5 P"0.temp3" Y"thermistor" T100000 B4138 ; configure sensor 5 as thermistor on mainboard pin temp3 M950 H5 C"0.out4" T5 ; create bed heater output on 1.out0 and map it to sensor 5 M140 P3 H5 ;assign H2 to bed heater0 M307 H5 B0 S10.00 ; disable bang-bang mode for the bed heater and set PWM limit M143 H5 S120 ;set temperature limit for heater 0 to 120C
-
You'd need to add some M140 commands for the bed heaters using P# to target teh different heaters.
Ex: M140 P1 S65, etc
You can use the Cura internal place holders for bed temp to pass your selected temp from the GUI to the start gcode.
-
Thanks for both links, this is precisely what I needed. I will be using this Cura link quite a bit I think.
It looks like the placeholder I need is: {material_bed_temperature}. So would my code look like the below?
M140 P0 S{material_bed_temperature}
M140 P1 S{material_bed_temperature}
M140 P2 S{material_bed_temperature}
M140 P3 S{material_bed_temperature} -
You'd have to pass that through Cura start gcode and check the sliced file to see if it evaluates correctly. Then try manually sending the command (with a real number for temp) and see if that does what you expect.