hi
i would like to run a g-code that is build of up to 20 lines.
each line with have 3 parameters for 3 axis and each will have a value (number)
something like this:
Z5 C10 A0
Z0 C0 A10
..
my question is how could i archive this in b4r. in any other b4x ide i can do it easily with regex. split and some loops i know i can do it also in b4r but what would be the most efficient way?
if i would create type object is it ok? what about memory? is it better not to use to much global variables to save memory?
i was thinking of storing the whole code as a global string and build a function to split it and perform the action.
what do you say?
i would like to run a g-code that is build of up to 20 lines.
each line with have 3 parameters for 3 axis and each will have a value (number)
something like this:
Z5 C10 A0
Z0 C0 A10
..
my question is how could i archive this in b4r. in any other b4x ide i can do it easily with regex. split and some loops i know i can do it also in b4r but what would be the most efficient way?
if i would create type object is it ok? what about memory? is it better not to use to much global variables to save memory?
i was thinking of storing the whole code as a global string and build a function to split it and perform the action.
what do you say?