Page 1 of 1

Scripting Nozzle Position

Posted: Tue Mar 03, 2020 5:43 am
by joesoap583
I know that I can script nozzle positions using [current_X_position], [current_Y_position] and [current_Z_position], but is there a way of scripting those values to set a new position?

For example, if [current_X_position] returned 50 and I wanted to change the position to [current_X_position] + 75, how can that be scripted?

Also, is it possible to script an IF statement which compares [current_X_position] to a know value, and moves [current_X_position] to a set value?

Re: Scripting Nozzle Position

Posted: Wed Mar 04, 2020 1:23 pm
by S3D-Jake
To move X Y or Z relative to the current X Y or Z positions you can insert a command that will first place the machine in relative movement mode. More on relative vs absolute movement can be found on our gcode tutorial. https://www.simplify3d.com/support/arti ... l/#G90-G91

As for IF statements, you can see the supported IF functionality in this helpful forum post on the scripts tab. viewtopic.php?f=8&t=1959