Is there a way to get the name of the current tool that active in the jogging window so it can be displayed in a message box? I just want to extract the tooldata name that’s circled below.
That doesn’t return the name? it just returns the frame, load and robheld
Ah, sorry, reading too quickly. How about GetSysData?
my understanding of that function is that you can retrieve the values of a data type from the object name?
I want to just get the name of the current tool being used whilst jogging… must be a way as ABB display it when running the tool identify routine in the basefun tasks
Using Example 1 & 2 from the manual – it outputs the current tool as a string value:
MODULE mMain
PERS tooldata curtoolvalue;
VAR string curtoolname;
PROC main()
GetSysData curtoolvalue \ObjectName := curtoolname;
TPWrite curtoolname;
ENDPROC
ENDMODULE
