Hallo,
ich bin mir nicht sicher ob du eine Funktion in RS dafür meinst oder einen Rapid code.
In rapid gibt es die Funktion "GetDataVal" die man dafür verwenden könnte.
Hier ein Auszug aus dem Handbuch um alle num Variabeln anzuzeigen. Lässt sich bestimmt auch auf tooldata anpassen.
VAR datapos block;
VAR string name;
VAR num valuevar;
...
SetDataSearch “num” \Object:=”^my” \InMod:=”mymod”;
WHILE GetNextSym(name,block) DO
GetDataVal name\Block:=block,valuevar;
TPWrite name+" "\Num:=valuevar;
ENDWHILE
This session will print out all num variables that begin with my in the module
mymod with its value to the teach-pendant.
Gruß Z