Array Max Length
-
Hi,
I am trying to implement additional tool management capabilities for a CNC router and I am curious how long the new arrays can be? I am trying and I can't seem to declare an array that is longer than 10 or so values. Is this a limitation of the gcode parser max line length? Is there any way to multi-line this?Thanks,
Tim -
@timothyz
How are you trying to do it?
I don't know the limit or how you're trying to use the array, but as an exampleglobal bigArray = vector(30,0) echo global.bigArray while iterations < #global.bigArray set global.bigArray[iterations]=random(100) echo global.bigArray G4 S1 echo max(global.bigArray)
-
@OwenD I didn't know you could declare an array that way! It won't work if I do it as one line, but this is perfect. I must have missed this in the documentation.
Thanks again.
I will make a new post once I have created something useful. -
@timothyz
Ensure you have the latest binaries
vector() is a recent addition -
-