parallyze wrote: ↑Wed Sep 27, 2023 7:37 am
blj1884 wrote: ↑Wed Sep 27, 2023 6:02 am
This is put in the Pre-Tool Change Script:
{IF
"NEWTOOL=0
"}G91
{IF NEWTOOL=0} G91
Should do the trick. No v5 here, but can't remember putting conditionals inside quotation marks in the past...
So your suggestion works, but I have to remove the white space or it looks like this in the gcode:
G91
G1 T0 E5.0000 F480
G90
T0
So This way works:
{IF NEWTOOL=0}G91
{IF NEWTOOL=0}G1 T0 E5.0000 F480
{IF NEWTOOL=0}G90
as for the "", it is because the old V4 way apparently did not need them, or the == part like in coding.
However, in V5 this is the layer change scripting way:
{IF "[current_layer_number] == 1"}M221 S115 ; increase flow rate by 10% for layer 1
{IF "[current_layer_number] == 1"}M220 S85 ; decrease Feedrate to 85% for layer 1
{IF "[current_layer_number] == 3"}M221 S100 ; reset flow rate to 95% for layer 2 and beyond
{IF "[current_layer_number] == 3"}M220 S100 ; Feedrate to100% for layer 2 and beyond
It would appear that all of the new scripting code formats are like layer change way I showed, and the old way for the V4 days was just left as is and not updated for consistent programming syntax. I find it to be a confusing way to go about it. Like with Windows 98, ME, XP, VISTA, 7, 8, 10, 11, all of the tools are sill in there 95 glory and not updated with the gui overhauls. and some of the others got stuck in whatever windows version they may have had a gui overhaul in. I just want documentation and script programming consistency. But I know keeping this rocketship slicer up to date with support is likely a never ending job.
It is odd to not have this properly documented.
Thank you for your help,
/retnel