{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
Code: Alles auswählen
[gcode_macro START_PRINT]
gcode:
{% set BED_TEMP = params.BED_TEMP|default(60)|float %}
{% set EXTRUDER_TEMP = params.EXTRUDER_TEMP|default(190)|float %}
# Start bed and hotend heating
M140 S{BED_TEMP}
M104 S{EXTRUDER_TEMP}
# Home the printer
G28
# Use absolute coordinates
G90
# Reset the G-Code Z offset (adjust Z offset if needed)
SET_GCODE_OFFSET Z=0.0
# Move the nozzle near the bed
G1 Z5 F3000
# Move the nozzle very close to the bed
G1 Z0.15 F300
# Wait for bed to reach temperature
M190 S{BED_TEMP}
# Set and wait for nozzle to reach temperature
M109 S{EXTRUDER_TEMP}
PRINT_STARTLINE
Ausserdem hab ich für die printer-RF2000v2.cfg noch einen board_pings alias eingefügt, da es mich in den Wahnsinn treibt wenn im Schaltplan was anderes steht als in meiner Konfig. Ich hab das aus dem Repetiert pins.h übernommen aber nocht nicht durchgängig in der .cfg
Code: Alles auswählen
# This section contains board aliases for Conrad Renkforce CTC_i851 v3 mainboard
#
# See docs/Config_Reference.md for a description of parameters.
#
# Pin map according to https://github.com/RF1000community/Repetier-Firmware/blob/community_stable/Repetier/pins.h
[board_pins]
aliases:
D_D6=PA1,NA_DRV4=PA2, OUT1=PA3, STP_DRV4=PA4, OUT2=PA5, DIR_DRV4=PA6,
SS=PB0, SCK=PB1, MOSI=PB2, MISO=PB3, HZ1=PB4, TAST4=PB5, SCS_3=PB6, TAST2=PB7,
ES2=PC0, STP_DRV5=PC1, ES1=PC2, DIR_DRV5=PC3, OUT3=PC4, OUT4=PC5, ES3=PC6, ENA_DRV5=PC7,
CARD=PD2, SDATO=PD4, SCLK=PD5, SDATI=PD6, ENA_DRV1=PD7,
HZ3=PE2, BUZ1=PE3, P230=PE5, FAULTn=PE6, RESET_DRV=PE7,
STP_DRV1=PF0, DIR_DRV1=PF1, ENA_DRV2=PF2, STP_DRV3=PF3, OUT5=PF4, D_D4=PF5, STP_DRV2=PF6, DIR_DRV2=PF7,
STALLn_1=PG0, STALLn_2=PG1, STALLn_3=PG2, STALLn_4=PG3, STALLn_5=PG4, TAST1=PG5,
TAST3=PH0, ES4=PH1, TAST_E6=PH2, L_RT=PH3, L_GN=PH4, L_BL=PH5, HZ2=PH6, TAST_E5=PH7,
TAST_E1=PJ2, D_D7=PJ3, TAST_E2=PJ4, TAST_E3=PJ5, TAST_E4=PJ6, SCS_5=PJ7,
ENA_DRV3=PK0, D_RS=PK1, D_D5=PK2, D_E=PK3, TH4=PK4, TH1=PK5, TH2=PK6, TH3=PK7,
SCS_1=PL0, DIR_DRV3=PL1, SCS_2=PL2, SERVO_1=PL3, SERVO_2=PL4, SERVO_3=PL5, SCS_4=PL6, TAST5=PL7
#[board_pins]