I tried out the readymade Tool Change Support on our new robot. They use arrays for storing the different workobjects for the toolstands.
I get this error when trying to run the code:
41442: Reference Error
Description
Task: T_ROB1.The reference in argument \WObj is not an entire persistent variable.Program ref: /TCUSER/GoToTcHomePos/MoveAbsJ/165.
Actions
It is not possible to use record component or array element in arg. \WObj. It is only possible to use entire persistent variables for Tool, WObj or Load in any motion instruction.
Saying that wobj’s cannot be arrays? Why have ABB made a toolchange routine with he toolstands as arrays?
Here is what ABB do in the routine:
! Work object data for each tool stand
PERS wobjdata TcStandWobj{TC_MAX_STANDS} := [[FALSE,TRUE,“”,[[0,0,0],[1,0,0,0]],[[0,0,0],[1,0,0,0]]],
[FALSE,TRUE,“”,[[0,0,0],[1,0,0,0]],[[0,0,0],[1,0,0,0]]],
[FALSE,TRUE,“”,[[0,0,0],[1,0,0,0]],[[0,0,0],[1,0,0,0]]],
[FALSE,TRUE,“”,[[0,0,0],[1,0,0,0]],[[0,0,0],[1,0,0,0]]]];
Is this not possible?