
Retraction seeker
Description
# Retraction seeker This script is a work in progress implementation of a gcode generator that directly produces test print gcode containing pillars with retraction segments between them using ranges of retraction distance, retraction speed and temperature. The aim of this script is to iterate many different retraction settings in one print and by observing the output, one can find the optimal retraction setting in a few prints. This script is currently targetted at my custom prusa i3 mk2.5 clone and will need changes to settings to allow usage with other printers. Thus this is not for people that don't know how to manipulate g-code or don't know the machine limits. For people wanting to use this on their printer, I'd advise to first create a machine.json file containing settings for their particular printer. For possible keys see the generated gcode, as well as the python script itself. Example (just a few of possible settings listed here): ``` { "bed_size_x": 120, "bed_size_y": 120, "feed_print_outer": 2400 } ``` Fine-tuning the settings can be done in settings.json file, which is loaded afer machine.json. Example: ``` { "steps_x": 4, "steps_y": 7, "steps_z": 1, "margin_x": 50, "margin_y": 50, "max_tile_span": 10, "ret_d_step": 0.5, "ret_spd_step": 5, "ret_z_hop": 0.1 } ``` This script is also usable as a very crude temperature tower generator (with steps_x = steps_y = 1, and steps_z set accordingly). The key to find the setting for particular transition is stored in the generated gcode: ``` ; ==== retraction map ==== ; ; Y (retr. speed) ; ^ ; 0,0 > X (retr. distance) ; ; [ 7] 40.00 mm/s : [ 1] .. 1.0 mm .. [ 2] .. 1.5 mm .. [ 3] .. 2.0 mm .. [ 4] ; [ 6] 35.00 mm/s : [ 1] .. 1.0 mm .. [ 2] .. 1.5 mm .. [ 3] .. 2.0 mm .. [ 4] ; [ 5] 30.00 mm/s : [ 1] .. 1.0 mm .. [ 2] .. 1.5 mm .. [ 3] .. 2.0 mm .. [ 4] ; [ 4] 25.00 mm/s : [ 1] .. 1.0 mm .. [ 2] .. 1.5 mm .. [ 3] .. 2.0 mm .. [ 4] ; [ 3] 20.00 mm/s : [ 1] .. 1.0 mm .. [ 2] .. 1.5 mm .. [ 3] .. 2.0 mm .. [ 4] ; [ 2] 15.00 mm/s : [ 1] .. 1.0 mm .. [ 2] .. 1.5 mm .. [ 3] .. 2.0 mm .. [ 4] ; [ 1] 10.00 mm/s : [ 1] .. 1.0 mm .. [ 2] .. 1.5 mm .. [ 3] .. 2.0 mm .. [ 4] ; ; Z: (print temp.) ; [ 1] - 0.00 mm - 210.00 C ; ======================== ``` For up-to-date source code, please see the github repository for this project: https://github.com/volca02/retraction-seeker
Statistics
Likes
27
Downloads
0