Jump to content

0-255 scales setting idea


Go to solution Solved by Slashee_the_Cow,

Recommended Posts

Posted · 0-255 scales setting idea

After getting comfortable with programming moves in gcode, I wish it was possible to change percentage scales in Cura to the standard 0-255 scales. At least on scales that use 0-255 in gcode of course. This is so I don't have to write 1.563% fan speed for cooling if I want M106 S4. It can't be that hard to implement either, since going from 1.563 to 4 is surprisingly harder to do than going from 4 to 4.

  • Link to post
    Share on other sites

    • Solution
    Posted · 0-255 scales setting idea

    The feature request form is here, feel free to submit it.

     

    Personally I don't think it would be adopted - most people (even those doing 3D printing) don't think in base 2 so it would be a very niche feature. Not all printers use 0-255 for their fan scale, also: some go from 0 to 1 so you have to give it the percentage as a fraction.

     

    Also to the best of my knowledge there's only about four commands in Marlin that use a 0-255 scale and Cura doesn't have support for three of them:

    • M42 - Set pin state (designed for connecting custom hardware which doesn't natively support Marlin so you can control it manually by setting the pin state, and PWM (pulse width modulation) pins are set on a scale of 0-255)
    • M106 - Set fan speed (as mentioned above, doesn't always go from 0-255)
    • M150 - Set RGB(W) colour (used for controlling the colour of case lights)
    • M256 - LCD brightness (controls the brightness of the printer's screen, some will use caps like 0-100 but typically 0 is the dimmest and 255 is the brightest)

    It would be possible to use a post-processing script to convert a fan speed set in Cura on a 0-255 scale to an absolute value (you'd just have to enter it as a fraction in Cura because the fan speed is capped at 100%, so your example would be to set it to 0.4 for S4 or 0.138 for S138).

     

    9 minutes ago, Mulakulu said:

    It can't be that hard to implement either

    Software development rule #8: No matter how hard you think something will be to implement, it will be harder than that to implement. AFAIK Cura currently only has two modes for fan scale: input * 2.55 for most printers or input ÷ 100 for printers that use a 0-1 fan scale. Which one it uses is based on the printer's definition file, so it's attached to the hardware side of things, not a software setting.

    • Like 1
    Link to post
    Share on other sites

    • 3 weeks later...
    Posted · 0-255 scales setting idea
    On 2/28/2024 at 2:50 PM, Slashee_the_Cow said:

    It would be possible to use a post-processing script to convert a fan speed set in Cura on a 0-255 scale to an absolute value (you'd just have to enter it as a fraction in Cura because the fan speed is capped at 100%, so your example would be to set it to 0.4 for S4 or 0.138 for S138).

    Thank you for the idea! I should really learn how to do this. I am currently using an external python program to do my post processing, and it would be nice to just have it built in. I'll look into it 🙂

  • 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

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...