Search for defined recordtype with PC SDK

GAC_MEF_Roth
✭✭
Hello together,
I try to list up a defined type of a record. The task is to build up a tooldatabase on the robot controller.
My Record looks like the following:
RECORD Toolrecord
string sToolname;
string sTCPName;
string sLength;
string sDiameter;
num nOperatingTime;
string sStatus;
ENDRECORD
If I try to get a defined rapiddata by name it's working fine with the following code:
RapidData tools = controller.Rapid.GetRapidData("T_ROB1", "HMI_Data", "tools");
I can read and write that values.
As soon I try to search for all defined data of the type Toolrecord the number of found data are 0 with that code:
RapidSymbolSearchProperties sProp = RapidSymbolSearchProperties.CreateDefault();
sProp.Types = SymbolTypes.Constant | SymbolTypes.Persistent;
sProp.InUse = false;
sProp.Recursive = true;
ABB.Robotics.Controllers.RapidDomain.Task task = controller.Rapid.GetTask("T_ROB1");
RapidDataType rsDataTypeExist = controller.Rapid.GetRapidDataType("T_ROB1", "HMI_Data", "tools");
RapidSymbol[] rsCol = task.SearchRapidSymbol(sProp, rsDataTypeExist);
I tried now to solve that problem with different approaches but till now without any success.
For an advise I would be appreciated
KR/
Michael
I try to list up a defined type of a record. The task is to build up a tooldatabase on the robot controller.
My Record looks like the following:
RECORD Toolrecord
string sToolname;
string sTCPName;
string sLength;
string sDiameter;
num nOperatingTime;
string sStatus;
ENDRECORD
If I try to get a defined rapiddata by name it's working fine with the following code:
RapidData tools = controller.Rapid.GetRapidData("T_ROB1", "HMI_Data", "tools");
I can read and write that values.
As soon I try to search for all defined data of the type Toolrecord the number of found data are 0 with that code:
RapidSymbolSearchProperties sProp = RapidSymbolSearchProperties.CreateDefault();
sProp.Types = SymbolTypes.Constant | SymbolTypes.Persistent;
sProp.InUse = false;
sProp.Recursive = true;
ABB.Robotics.Controllers.RapidDomain.Task task = controller.Rapid.GetTask("T_ROB1");
RapidDataType rsDataTypeExist = controller.Rapid.GetRapidDataType("T_ROB1", "HMI_Data", "tools");
RapidSymbol[] rsCol = task.SearchRapidSymbol(sProp, rsDataTypeExist);
I tried now to solve that problem with different approaches but till now without any success.
For an advise I would be appreciated
KR/
Michael
0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 337 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 831 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings