Hello everyone,
do you have detailed information about the KAREL command GET_TSK_INFO? I can't explain the behavior from the KAREL manual.
I would like to read the name of the currently running TP program and store it in a string register. The reading should be done in a KAREL program.
My process starts with a TP program, which in turn calls another TP program, and at the beginning of the second TP program, I then call the mentioned KAREL program to get the name of the calling TP program using the TSK_PARENT attribute.
However, the result is actually the name of the first TP program. What am I doing wrong?
Best regards
KAREL Function GET_TSK_INFO
-
JoRob -
March 14, 2025 at 9:26 PM -
Thread is Unresolved
-
-
MOM
March 14, 2025 at 9:33 PM Approved the thread. -
U are doing right. TSK_PARENT Always send the name of the Parent number 1 in TP. I've tried to achieve this and i wasn't able to find a solution. I called fanuc and they said that it is not possible.
-
Oh okay. Thanks for this!
-
How about calling the tp program with the current tp name as argument?