Marlin icon indicating copy to clipboard operation
Marlin copied to clipboard

Custom temperature macro

Open MasterofNull opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Bed temp for PLA needs to be elevated for proper adhesion.

The thermal capacitance of bed and material cause warping and issues printing close to the bed.

Need some cooling time and measurement for good printing conditions.

Describe the feature you want

Would like a custom macro that when called can recognize bed and or chamber temp changes:

[Macro Example] M*** A[New Temp] B[Allowed Temp Range] OPTIONAL (define waiting area) X[Move] Y[Move] Z[Move]
If optional is not defined then Z jump and home X and Y.

[Macro Logic Example] Marco call and variable definition. Compare difference of S[current temp] to A[New temp] to variable B[Allowed Temp Range].

IF: Temp dif is out of range of B[Allowed Temp Range].

THEN: Cut nozzle temp. Home X and Y (with Z hop) or move nozzle to waiting area. Wait for bed and or chamber temp to reach desired temp. When bed and or chamber temp is between desired temp and defined variable, turn on nozzle heat When desired temp is reached resume print.

ELSE: Wait for desired temp range and resume print.

END: Set new temp.

EXIT:

Additional context

I can probably write a custom code in my slicer layer change options.

But this might be useful for others not running Prusa Slicer and for other applications.

The only caveat I see is if you are printing multiple parts and are using the COMPLETE INDIVIDUAL OBJECTS or some other variant is enabled.

Let me know what you think.

MasterofNull avatar Aug 11 '22 00:08 MasterofNull