@OwenD said in Finding out names of parameters and variables:
Changed example to use M190
And this was the point.
Your adaption of M190 doesn't work, but: I figured out a solution.
Taking the subtraction into a seperate variable makes it work. I think, you can't calculate inside a G or M-Command.
Thanks a bunch to you guys, now i know the syntax, and how to get the parameters and declaring and using variables.
It would be very helpful, if i wouldn't have overlooked the G-Codes in the Dozuki and the very good PDF-Manual, that is pinned on top of this category (my bad)...
Here is my working example:
while (heat.heaters[0].active > 60) && (heat.heaters[0].current > 60) && (heat.heaters[0].state = "active")
var cooltemp = {heat.heaters[0].active}
set var.cooltemp = var.cooltemp -1
M190 P0 R{var.cooltemp}
echo "wait"
G4 S60
echo "cooldown finished"
I will expand upon it and make it more versatile, ex. add in a real cooldown funktion, that works for ABS.
Edit: Oh yeah, and i had to update everything to 3.3RC2 or course.