Re: [Emc-developers] I'll bite. array's don't work write only

2024-03-03 Thread gene heskett
On 3/3/24 20:01, John Allwine wrote: If you’re testing with MDI commands, either a local or global variable would work. If you have a subroutine where you’re setting the value and then writing an MDI command to print the value, then it would have to be a global variable because a local variabl

Re: [Emc-developers] I'll bite. array's don't work write only

2024-03-03 Thread John Allwine
If you’re testing with MDI commands, either a local or global variable would work. If you have a subroutine where you’re setting the value and then writing an MDI command to print the value, then it would have to be a global variable because a local variable would go out of scope. What is the c

Re: [Emc-developers] I'll bite. array's don't work write only

2024-03-03 Thread gene heskett
On 3/3/24 17:33, John Allwine wrote: Store it in another variable first: # = #[200+#50] ;debug,# That is what I am trying to do, prolly 20+ times in my present code but regardless # contains all balls. and its global here, 3 other machines including the rpi4b running my Sheldon are also beh

Re: [Emc-developers] I'll bite. array's don't work write only

2024-03-03 Thread John Allwine
Store it in another variable first: # = #[200+#50] ;debug,# > On Mar 3, 2024, at 2:55 PM, gene heskett wrote: > > preset > #50=0 > #[200+#50]= random decimal value, like 777.7 > the above syntax does not report any error > in mdi line > (debug, #200) returns 777.7 > (debug, #[200+#50]) > gets

[Emc-developers] I'll bite. array's don't work write only

2024-03-03 Thread gene heskett
preset #50=0 #[200+#50]= random decimal value, like 777.7 the above syntax does not report any error in mdi line (debug, #200) returns 777.7 (debug, #[200+#50]) gets me "#[200+0.00]" So how do I read it back? A bare #200 works but #[200+0] doesn't. #[200+1]=. (debug, #201) returns 5