Xray965
Posts: 7
Joined: Sat May 27, 2017 11:15 pm

Startup Script Process not being followed

Sat Apr 25, 2020 3:35 pm

I have the following startup script set in scripts for some reason the printer will grab the defined temp in the profile as opposed to the one I defined in the script, the red gcode line is not processed, it will grab the 218C set in my profile and then revert back to the Gcode defined script. Am I missing the logic here ? :shock:

Basically it should set the bed temp first and wait, then set the extruder temp and wait, then check and wait for the bed temp the starts the homing without mesh then mesh bed leveling then finally at home position it will heat up the extruder to the defined extruder temp I set in the profile which is 218 then proceed with the bubble purge and intro line.

Running Prusa mk3s with Bondtech Firmware 3.8.1, S3D v4.1.2

M115 U3.8.1 ; tell printer latest fw version
M140 S[first_layer_bed_temperature] ; set bed temp
M109 S170 ; set extruder temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
M109 S[first_layer_temperature] ; wait for extruder temp
G1 Y-3.0 F1000.0 ; go outside printing area
G92 E0.0
G1 E6 ; Purge Bubble
G1 X60.0 E9.0 F1000.0 ; intro line
G1 X100.0 E12.5 F1000.0 ; intro line
G92 E0.0
M221 S{if layer_height<0.075}100{else}95{endif}
M900 K30 ; Linear Advance PLA

Xray965
Posts: 7
Joined: Sat May 27, 2017 11:15 pm

Re: Startup Script Process not being followed

Sun Apr 26, 2020 6:45 pm

Okay solved it, had the wrong syntax and the slicer needs to follow the logical order as well.

M115 U3.8.1 ; tell printer latest fw version
M140 S[bed0_temperature] T0; set bed temp
M190 S[bed0_temperature] T0; wait for bed temp
M109 S160 T0; set extruder temp
G28 W ; home all without mesh bed level
G80 ; mesh bed leveling
M109 S[extruder0_temperature] T0; wait for extruder temp
G1 Y-3.0 F1000.0 ; go outside printing area
G92 E0.0
G1 E6 ; Purge Bubble
G1 X60.0 E9.0 F1000.0 ; intro line
G1 X100.0 E12.5 F1000.0 ; intro line
G92 E0.0
M221 S100
M900 K30 ; Linear Advance PLA

User avatar
dkightley
Posts: 2334
Joined: Tue Mar 10, 2015 4:09 pm

Re: Startup Script Process not being followed

Sun Apr 26, 2020 8:45 pm

What's that saying? Oh. yes. "A bad workman always blames his tools."

Any way...glad you got your issue resolved....
Doug Kightley
Volunteer at the National Tramway Museum http://www.tramway.co.uk
Railway modeller and webmaster at http://www.talkingtgauge.net

Return to “Troubleshooting and Bug Reports”