Pointer with AC500
I'd like to know how to set the value of a variable addressed by the pointer.
I have 100 boolean variables (addressed by %MX0.0.1, %MX0.0.2,..., %MX0.0.100) and one variable "Number" and let's say Number=36. Now I want to set the variable addressed by the value of Number - in this case %MX0.0.36. I tried everything I know but without any success.
It is easy to read the value from a variable defined by the pointer, for example
so nValue has the value of %MW0.36.
Now I want to do it in reverse way.
Thanks for any help.