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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings