I looked today Cura source , I found something like this:
if (flavor == GCODE_FLAVOR_BFB) { //For Bits From Bytes machines, we need to handle this completely differently. As they do not use E values but RPM values. float fspeed = speed * 60; float rpm = extrusion_per_mm * speed * 60; const float mm_per_rpm = 4.0; //All BFB machines have 4mm per RPM extrusion. rpm /= mm_per_rpm; if (rpm > 0) { if (isRetracted) { if (currentSpeed != int(rpm * 10)) { //fprintf(f, "; %f e-per-mm %d mm-width %d mm/s\n", extrusion_per_mm, lineWidth, speed); //fprintf(f, "M108 S%0.1f\r\n", rpm); *output_stream << "M108 S" << std::setprecision(1) << rpm << "\r\n"; currentSpeed = int(rpm * 10); } //Add M101 or M201 to enable the proper extruder. *output_stream << "M" << int((extruderNr + 1) * 100 + 1) << "\r\n"; isRetracted = false;
In the file :
CuraEngine/src/gcodeExport.cpp
Looking at the code Cura has a division at M101 , M201 . Is it possible to add M208 ? I still do not know how to start " preSwitchExtruder.gcode " when I add there a command Cura does not add it to gcode what could be causing this?