Jump to content
Ultimaker Community of 3D Printing Experts

How to remove "M10086" lines with the bitmap?


Recommended Posts

Posted · How to remove "M10086" lines with the bitmap?

I am new to cura, and I could not find the setting to remove the bitmap from the beginning of the gcode file--the images where the lines start with M10086.

 

Is it possible to prevent it from being added?

 

Thanks!

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?
    On 1/30/2021 at 2:13 PM, Tenaja said:

    I am new to cura, and I could not find the setting to remove the bitmap from the beginning of the gcode file--the images where the lines start with M10086.

     

    Is it possible to prevent it from being added?

     

    Thanks!

    Is there no way to reduce file size by eliminating this feature?

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?
    9 hours ago, Tenaja said:

    Is there no way to reduce file size by eliminating this feature?

     

    Dunno... i never heard of such a feature and i guess i'm not alone...

    I'm pretty sure, Cura does not add this gcode anywhere - at least not by default.

     

    Do you use a special (non-Ultimaker) cura version? Or non-default plugins?

    Which kind of printers are using this gcode, and for which purpose?  🤷‍♂️

     

    Can you enlighten us?

     

     

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    You guys are probably right--I am using the Lotmaxx version of Cura. My Lotmaxx SC-10 Shark has a graphic display, and it shows the bitmap of the 3d model. I mistakenly assumed this was standard for Cura. There are so many things that seem standard, but the one machine-specific feature I saw was a laser plugin, but since I've only used S3D before, I could not tell it was special.

     

    Thanks!

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?
    2 hours ago, Tenaja said:

    I am using the Lotmaxx version of Cura.

     

    Is the "Search and Replace" post-processing script included in this Cura variant?

    I guess this can be used to remove these lines from the gcode file (if no other option exists).

     

  • Link to post
    Share on other sites
    Posted (edited) · How to remove "M10086" lines with the bitmap?

    Yes, it has that, so I'll have to dig out the Regular Expression tutorial...that should do the trick. (I have used them, but not often enough to have them memorized.)

     

    An example does not paste in an easy-to-see format, because the "bitmap" is 400 characters long, but each line starts with "M10086 ;" and then 400 characters of bitmap. These are the first few lines, out of about 300 total:

    Quote

    ;simage:0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    M10086 ;00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

     

    I entered this in Search:

    M10086 ;[a-fA-F0-9]*

    and this in Replace:

    ;

    and it looks like nothing changed. I guess I will need that help file...I did test the Search in Notepad++, and it found the lines. Not sure if they disabled this, or if I need to name the Search and use that name in the Replace, but I'll look into it tomorrow.

     

    Thanks for your help!

    Edited by Tenaja
  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Is it not possible to just disable the MKS plugin, which generates this code?

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    If it is, I have not found where that would be. Where are plugins? The only thing under Extensions...

    Extensions->Lotmaxx Backups->Manage Backups

    Extensions->Post Processing->Modify GCode

    Extensions->Update Checker->Check for Updates

     

    I looked through all of the menu items (and all of the Settings), and could not find it.

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Plugins can be disabled via the "Installed" tab of the Marketplace. Fairly well hidden away.

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Where is this located? I cannot find it. Perhaps my version had it removed...

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Nevermind, I found the Marketplace. I did not see what would obviously be the image embedding, but I will look through again later.


    Thanks for your help!

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?
    5 hours ago, Tenaja said:

    . I did not see what would obviously be the image embedding

    As mentioned before, the image embedding is part of the MKS Wifi Plugin. I don't think there is a way to stop that plugin from embedding the image, other than disabling the whole plugin. If you want an option to remove the image embedding without disabling the plugin altogether, you will have to ask the developers of that plugin. I think someone already asked so here:

    https://github.com/Jeredian/mks-wifi-plugin/issues/80

     

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Ahoeben, Thank you for the suggestion, but that plugin is not installed. This is every plugin listed as "Installed" in the Marketplace, but the only one I installed was Arc Welder:

    • 3MF reader
    • AMF reader
    • Arc Welder (which I installed recently, and permits Uninstall)
    • Auto-Orientation (permits Uninstall)
    • Compressed G-code reader
    • Compressed G-code writer
    • Cura Backups 
    • Cur a Profile Reader
    • Cura Profile Writer
    • Firmware Update Checker
    • Firmware updater
    • g-code profile reader
    • g-code reader
    • Image reader
    • legacy cura profile reader
    • machine settings action
    • mirror tool
    • model checker
    • per-object settings tool
    • post processing
    • removable drive output device
    • rotate tool
    • stl writer
    • scale tool
    • simulation view (provides the simulation view)
    • slice info
    • support eraser tool
    • titlebar info (permits uninstall)
    • Trimesh reader (grayed out, but permits uninstall)
    • ufp readerr
    • ufp writer
    • um3 network printing
    • usb printing
    • ultimaker machine actions
    • update checker
    • version upgrade 2.1 to 2.2 
    •       ..   .(and 14 more upgrade plugins, up to 4.2 to 4.5)
    • wavefront obj reader
    • wavefront obj writer
    • x-ray view
    • x3d reader
  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    I was hoping to dazzle everyone with my brilliance.  Instead, once again I find out how much I don't know.

     

    I loaded the LotMaxx Cura version (4.2.1), loaded a calibration cube, sliced, saved the gcode.  The gcode contains the 300 lines of bitmap.  Here is the log file.

    lotmaxx.log

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Ah, I'm sorry I missed the fact you use a customised version of Cura, I did not realize that Lottmax had butchered Cura the way they did. I've had a look at the code and it looks like there is no way to use Lottmax Cura without the bitmap gcode getting added. They simply hardcoded adding the bitmap gcode with no way to stop it.

     

    What you could do - as @tinkergnome already suggested - is using a Search & Replace postprocessing script. The regex is not very hard. This should work:

     

    Replace "M10086 .*" (without the quotes) with an empty string (and turn on the option to use regex).

     

    Or you could use proper Ultimaker Cura instead of Lottmax Cura.

     

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Both the LotMaxx version and the Cura version have definition files for your printer (the file name is the same "lotmaxx_sc60.def.json").  The definitions are slightly different.  In the Cura version the printer name is "Lotmaxx Shark" and in the LotMaxx version the printer name is "Lotmaxx SC-10 Shark".  There are a couple of other subtle differences and a couple of added settings.  The physical size of the printer is the same in both definitions.

     

  • Link to post
    Share on other sites
    Posted · How to remove "M10086" lines with the bitmap?

    Next time I have time I'll have to compare those json files.

     

    This:

    Replace "M10086 .*" (without the quotes) with an empty string (and turn on the option to use regex).

    Didn't work. I don't know about that specific "find" but I tried other regex's that worked in npp, and nothing changed in my gcode.

     

    It appears the Lotmaxx version is broken here.

     

    In the grand scheme, removing the image is not critical, but sometimes I get stuck on a challenge and hate to let go. Especially when it's things like a regex working in one place and not another.

     

    Thanks for all the help.

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Startups, apply for the Forward AM Innovation Award!
        Are you a startup using 3D printing? Perhaps you should continue reading... 
         
        Together with BASF we are launching the Forward AM Innovation Award - the very first global contest for startups developing new applications with 3D printing!
         
        Why apply?
        The winning startup will receive €100,000 in goods and services*, along with coaching and marketing exposure from top-notch leaders in the industry.
         

         
        Who can apply?
        Your startup creates products using Additive Manufacturing, is less than 5 years old, and has less than 50 employees. We are looking for 3D printing applications with a strong focus on innovation, sustainability and scalability.
         
        Dental aligners, shoes, tools, automotive parts, music instruments, industrial tooling and molding, medical implants, sports equipment, toys, architecture, fashion, construction... all are welcome to join!
         
        Do you have an innovative, sustainable and scalable idea that leverages the unique possibilities of 3D printing? Then it is time to apply!
        More information can be found here.
         
        Applications close on March 28th, 2021
        * What does "in goods and services" mean?
        The winner will be able to pick any item from the overall product and service portfolio of the sponsors, e.g. printers, materials, consulting, software... Choose whatever you need to accelerate your startup.
         
          • Like
        • 0 replies
      • New here? Register your Ultimaker for free 3D printer onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 0 replies
    ×
    ×
    • Create New...