GCode meta commands case senetive?
-
Hi *,
I understood from the docu that something like this should work:
echo "Start" M568 P0 S230 A2 M116 P0 M568 P0 S30 A2 WHILE heat.heaters[1].current < 130 G4 P1000 ; 1 Sekunde warten echo "End"
But I got a "Error: Bad command: WHILE heat.heaters[1].current < 130" in the console when I execute the macro. I changed the "WHILE" from upper case to lower case and it seams to work now. Are meta commands really case sensitive?
Cheers, Chriss
-
Are meta commands really case sensitive?
Short answer: yes.
I understood from the docu that something like this should work: (…) WHILE …
I still have to find a single instance of sample code in the docs where conditional constructs, constants or built-in functions were written in uppercase. There’s no There is no reference to using capital letters at will. The days when programmers were limited to teletype-style input devices are long gone.
-
@Chriss yes meta commands, function names and variable names are case sensitive.