Re: Programming with Variables




Hallo Heino

When the interpreter encounters the # sign it assumes the next value is 
the variable number.   If it encounters an = after the number it puts the 
next value into that variable.  If it does not encounter the = sign then 
it reads back the current value of the variable.

If you are trying to read the position of the x axis and enter that into 
a variable, you will have to find the x position at the time and then 
load it.  In the example you gave.  G00 x100 would mean that x would be 
at 100 so the assignment would be 

n100 g00x100
n110 #1000=100

I believe that is the only way to place a value of the position of the x 
axis into a variable.

Hope this helps.

Ray

G00 

On Wednesday 16 October 2002 07:56 am, you wrote:
> Hallo,
> i want to assign Variable #1000 a value of  x. How can i do it?
>
> <snip>.
> N100 G00x100
>    .
>    .
> #1000=x     (was not ok).
>    .
> <snip>
>
>
> Regards
> Heino



Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact