Adjusting Device Wattage conditionally
-
I run a macro that sets the device power (i.e. lasers etc.) on my machine using M106 P2 S25, where S25 sets the device power on a scale from 0-255.
Does anyone have a goood idea on how I can can instead control the power with a conditional statement by indicating the desired wattage by % of full power instead - where full power is 400W of the device?
-
@code7 You can use M106 P2 0.0 to M106 P2 1.0 to set what fraction you want.
M106 P2 S0.5 would be 50% power.
-
@code7
Using a macro can cause a short delay, everytime you set a new power value.
If that's OK for you, you can use macros with parameters. Eg. P0-P100. Then in the macro calculate the M106 Pn S-value accordingly -
@alankilian That's a great tip - Thanks.
@o_lampe Thanks for the link.