Hello friends, I have interesting in modify Firmware Marlin for some proposes, my one specific question is:
how can INCREASE THE "255 POINTS" TO for example "10,000 POINTS" IN MARLIN FOR EXTRUDER, BED AND FAN?
Ten thousand ? Is it a bit like an odometer of a car that counts in centimeters / inches :-P
What is it that you are trying to do? You should explain at length in your native language and let us run it through Google Translate to get a better understanding of your intentions.
Or it is Italian and meant ten point zero zero zero (in Italian we use the point as a separator for the thousands and the comma for the decimals). It would make sense if intended as a 0-10V control, but this is just my guess.
Fans connected to a board might be 5V, 12V, or 24V.
It is a typical convention for some proportional analog controls 0V = off, 10V full power 5V = half etc etc.
Maybe he has GCODE with 0-10V but I'm still hypothesizing.
It will be better to think about 0-100% and convert it to dac 0-255. This will be voltage independent,
but no host software will use it I suspect.
Hablo Espa帽ol, disculpen mi mal ingl茅s, lo que intento hacer es modificar en Marlin el S del ventilador de S0-255 a S0-10,000.
Digamos que s贸lo quiero cambiar el 255 por el valor 10,000 para alcanzar el 100%
Entonces quedar铆a as铆:
S0 = 0V
S10,000=10V
S5000= 5V
Your G-code won't be compatible with any known slicers, but you can accomplish this by altering the code in GcodeSuite::M106.
- const uint16_t s = parser.ushortval('S', 255);
+ const uint16_t s = map(parser.ushortval('S', 10000), 0, 10000, 0, 255);
(You won't be allowed to use the comma, as in S10,000. You must use S10000 instead.)
@thinkyhead Perfect!, I will Try dear, thank you!
@thinkyhead Friend, in what file need modify?
Come on, surely you know how to copy, paste, and multi-file search to look for the line marked in red above.
All Marlin's are different, in my case no exist the red line like you was put, but Now I can check M106 Command, exist a similar line. I check in 4 versions of Malin.
Thank you for you Help.
It's in the GcodeSuite::M106 method in Marlin 2.0.x (M106_M107.cpp) or the gcode_M106 function in Marlin 1.1.x (Marlin_main.cpp). The line is identical in both.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.