I have a strange behaviour in Expr.txt.
I use startcode('G65 P206') to start gcode from expr.txt.
On execution, the error message is startcode is not a function.
#Loop removed!
the strange thing is, that the startcode is already executed. So it is working and at the same time it is not working.
So what's happening here?
#Loop
if( GT(_sx_tool_loaded_pin,0)
&& EQ(_sx_hasError,0)
&& EQ(_hw_sim,1)
&& EQ(_hw_stop,1)
&& EQ(_current_tool,0)
&& EQ(_sx_tool_removed,1)
&& EQ(_sx_sim_input_wkz_spannzange,1),
exec(
_sx_tool_removed = 0,
print('Werkzeug eingesetzt'),
startcode('G65 P206')
)
);