Filament change at a certain layer help, please.
I already have been able to get the printer to pause at the first level which is fine using the following command.
{REPACE "; layer 5," "M600\n; layer 5,"}
This calls the M600 command which with my board which is the DuetWiFi it then calls the
sys/ filament-change.g file which contains
M83 ; relative extruder moves
G91 ; relative positioning
G1 Z5 F360 ; lift Z by 5mm
G90 ; absolute positioning
G1 X0 Y0 F6000 ; go to X=0 Y=0
G1 E-150 F3600 ; Unload filament
That all works fine.
The issue is I need to have it pause at another level after the first one, however, it does not do this, when I put
{REPACE "; layer 5," "M600\n; layer 5,"} followed by {REPACE "; layer 45," "M600\n; layer 45,"}
It just prints without pausing at all. Anyone got an idea and solve for this, please?