Maybe you could have a string data which is merely a copy of the array name.
Can you elaborate?
Maybe you could have a string data which is merely a copy of the array name.
Can you elaborate?
Unfortunately, SetDataSearch won't work for arrays as they are a limitation. Looks like I am screwed. Looks like i might have to process the file before loading it into the controller.
Hey guys,
thank you for your response. maybe I wasn't so clear about my request. so the joint targets are generated by an external program and that program is unable to make any changes regarding how its name. the naming is controlled by the customer. it is easy to the element of the array if the array is known. what I am faced with is the array name changes and the array size changes.
QuotejtCurrTarget:=0614_1550{1};
In order for this to happen, I need to know that this array is loaded. the only information I have is the name that is loaded in a string.
so I would have to do some sort of searching to find the object using the string then assign the values.
joint targets can vary from a minimum of 10 to a max of 4000. and there is one target array per file and about 20 files loaded.
I am trying to avoid having to copy and paste the 1st targets and minimize the amount of manual intervention after the modules have been generated
Hello,
I am trying to get a jointtarget from an array but the name of the array is in a string. I need to pull the first target and move to it to make sure it is safe.
MODULE MainModule
CONST jointtarget 0614_1550{3} := [[[106.747854, 18.262021, 1.463337, 15.037443, 53.346470, -94.508325], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]],
[[106.747874, 18.262186, 1.463300, 15.037422, 53.346501, -94.508289], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]],
[[106.747880, 18.262244, 1.463287, 15.037415, 53.346512, -94.508277], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]]];
PERS string sTargetName:="0614_1550";
Proc Main()
var jointtarget jtCurrTarget;
!Find a way to get first target from array <---------- Need help here
MoveAbsJ jtCurrTarget,v1000,z50,tool0;
ENDPROC
ENDMODULE
Display More
I have tried GetDataVal and Late binding. What makes this tough is that the jointtarget array name changes based on what file is loaded and the array dimension changes as well.
Any help is greatly appreciated.