AndrewEllis93 / Print-Tuning-Guide

1.95k stars 260 forks source link

Passing Slicer Variables to a Macro for Simplify 3D #87

Open funboard29 opened 1 year ago

funboard29 commented 1 year ago

For passing temperature to PRINT-START macro in Simplify 3D : You put this command in the starting script :

PRINT_START BED=[bed0_temperature] EXTRUDER=[extruder0_temperature]

You need set the two fonctions in "Temperature" tab :

I repeat here this sentence by Andrews Ellis which I share :

I wouldn’t recommend setting defaults for bed & hotend temp. You want your macro to fail if your slicer does not correctly pass those temperatures.

Typically you must have something like that :

[gcode_macro PRINT_START]

[gcode_macro PRINT_START] gcode:

Parameters

{% set BED_TEMP = params.BED|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER|float %}

G32                            ; home all axes
G1 Z100 F3000                   ; move nozzle away from bed

M190 S{BED_TEMP}            ; set and wait for bed to reach temp
M109 S{EXTRUDER_TEMP}       ; set and wait for hot end to reach temp

Thanks to Jason from S3D and Andrew Ellis for they help.

funboard29 commented 1 year ago

I let that open for info.