I get error message after second run of program "name of global variables ambiguous - wobjDTR"
What is reason for that? Maybe because this wobj allready exist? But in that case hoow can I add
loop to check "does wobj exist" if yes only add values to wobj if not create wobj.
Code
PERS wobjdata wobjDTR:=[FALSE,TRUE,"",[[2139.255,-700.863,82.787],[1,0,0,0]],[[0,0,0],[1,0,0,0]]];
PERS wobjdata wobjDTR1:=[FALSE,TRUE,"",[[2783.408,-1005.003,494.999],[1,0,0,0]],[[0,0,0],[1,0,0,0]]];
! GESCHWINDIGKEITEN
VAR speeddata SlowSpeed := [500, 300, 100, 5];
VAR speeddata FastSpeed := [500, 300, 200, 100];