Filament gcode based on printer selected
Good afternoon
Just added a new printer and need to disable those custom PRESSURE_ADVANCE Gcodes in the filament settings as Qidi i-Mate S doesn't recognize it of course (o;
I see that a variable printer_model can be used for that....but it isn't set in the specific Qidi .ini file...it is just empty.
So where is this printer_model variable actually set?
Or is there another way do disable a custom filament gcode command for a specific printer?
thanks in advance
richard
Best Answer by Neophyl:
The non prusa profiles are supplied by users to Prusa. If its not set then the user supplied one doesnt have it set.
You can add it under the notes section for your printer. For example the Prusa MK3 has the following section
"Don't remove the following keywords! These keywords are used in the "compatible printer" condition of the print and filament profiles to link the particular print and filament profiles to this printer profile.
PRINTER_VENDOR_PRUSA3D
PRINTER_MODEL_MK3"
Then in the filament section you can add the conditionals
Such as the following from the Generic PLA
M900 K{if printer_notes=~/.*PRINTER_MODEL_MINI.*/ and nozzle_diameter[0]==0.6}0.12{elsif printer_notes=~/.*PRINTER_MODEL_MINI.*/ and nozzle_diameter[0]==0.8}0.06{elsif printer_notes=~/.*PRINTER_MODEL_MINI.*/}0.2{elsif nozzle_diameter[0]==0.8}0.01{elsif nozzle_diameter[0]==0.6}0.04{else}0.05{endif} ; Filament gcode LA 1.5{if printer_notes=~/.*PRINTER_MODEL_MINI.*/};{elsif printer_notes=~/.*PRINTER_HAS_BOWDEN.*/}M900 K200{elsif nozzle_diameter[0]==0.6}M900 K18{elsif nozzle_diameter[0]==0.8};{else}M900 K30{endif} ; Filament gcode LA 1.0
You modify the profiles as needed to do what you want and then save them.
If all you want to do is not have any custom in the filament at all then just delete and save a copy. The use your copy instead of the built in ones.
This is the 'old' way, the new way is a whole dependency tree structure and at the moment there's no easy way of editing those except manually in the files directly. They are just text so its not impossible, just don't screw up or it can have unforeseen consequences. Also if you edit manually them and Prusa update the profiles then your edits will be wiped out.
with Micro Swiss Direct Drive, BTT SKR v1.3 and TMC2208<br>Ender-3 with Micro Swiss Direct Drive, E3 mini with TMC2208<br>Qidi i-Mate S
RE: Filament gcode based on printer selected
The non prusa profiles are supplied by users to Prusa. If its not set then the user supplied one doesnt have it set.
You can add it under the notes section for your printer. For example the Prusa MK3 has the following section
"Don't remove the following keywords! These keywords are used in the "compatible printer" condition of the print and filament profiles to link the particular print and filament profiles to this printer profile.
PRINTER_VENDOR_PRUSA3D
PRINTER_MODEL_MK3"
Then in the filament section you can add the conditionals
Such as the following from the Generic PLA
M900 K{if printer_notes=~/.*PRINTER_MODEL_MINI.*/ and nozzle_diameter[0]==0.6}0.12{elsif printer_notes=~/.*PRINTER_MODEL_MINI.*/ and nozzle_diameter[0]==0.8}0.06{elsif printer_notes=~/.*PRINTER_MODEL_MINI.*/}0.2{elsif nozzle_diameter[0]==0.8}0.01{elsif nozzle_diameter[0]==0.6}0.04{else}0.05{endif} ; Filament gcode LA 1.5{if printer_notes=~/.*PRINTER_MODEL_MINI.*/};{elsif printer_notes=~/.*PRINTER_HAS_BOWDEN.*/}M900 K200{elsif nozzle_diameter[0]==0.6}M900 K18{elsif nozzle_diameter[0]==0.8};{else}M900 K30{endif} ; Filament gcode LA 1.0
You modify the profiles as needed to do what you want and then save them.
If all you want to do is not have any custom in the filament at all then just delete and save a copy. The use your copy instead of the built in ones.
This is the 'old' way, the new way is a whole dependency tree structure and at the moment there's no easy way of editing those except manually in the files directly. They are just text so its not impossible, just don't screw up or it can have unforeseen consequences. Also if you edit manually them and Prusa update the profiles then your edits will be wiped out.
RE: Filament gcode based on printer selected
Okay...I just replaced the custom filament Gcode with:
{if printer_model=~/.*i-Mate.*/}; i-Mate doesn't understand PA command{else}SET_PRESSURE_ADVANCE ADVANCE=0.08{endif}
and added the name "i-Mate" in my .ini file behind print_model =
with Micro Swiss Direct Drive, BTT SKR v1.3 and TMC2208<br>Ender-3 with Micro Swiss Direct Drive, E3 mini with TMC2208<br>Qidi i-Mate S