@duetlover
There isn’t a lot of examples. I just cobbled this together for a temperature tower. It needs to use some Constants from the slicer and variables. I have not been able to get the Latest RRF 3.X working well yet. So, I don’t have variables yet, but hear is a Script that worked for me on layer change for the temperature tower:
;
if move.axes[2].machinePosition > 1.3 && move.axes[2].machinePosition < 1.4
echo "machinePosition=", move.axes[2].machinePosition
echo "Setting tempreture to: 240"
M104 S240
elif move.axes[2].machinePosition > 11.0 && move.axes[2].machinePosition < 11.2
echo "machinePosition=", move.axes[2].machinePosition
echo "Setting tempreture to: 245"
M104 S245
elif move.axes[2].machinePosition = 21.0 && move.axes[2].machinePosition < 21.2
echo "machinePosition=", move.axes[2].machinePosition
echo "Setting tempreture to: 250"
M104 S250
elif move.axes[2].machinePosition = 31.0 && move.axes[2].machinePosition < 31.2
echo "machinePosition=", move.axes[2].machinePosition
echo "Setting tempreture to: 255"
M104 S255
;
Sorry, keeps losing the indents