Posts: 4
Joined: Mon Feb 12, 2018 1:26 pm

If statement for Z height

Fri Jul 13, 2018 7:26 pm

Hey Everyone.

I have searched the forums and have not been able to find the solution to this, hopefully I didn't miss it. I am trying to set a conditions move of the Z axis in the scripts/tool change section. I am afraid I have the syntax off, but I can not find a reference to verify. I have every other part of the scrip working...

except this part: {IF [current_position_z]<15} G0 Z18;---------------Set the height of the nozzle

I have tried [current_Z_position] as well from this: viewtopic.php?f=8&t=1959 Thread.

It does not seem to be calculating the IF statement.

It seems to be parsing the Z data our of the container.

Thanks in advance for any insight to my error.

Return to “Troubleshooting and Bug Reports”