Accessing an arrayed UDT from PC SDK App?
Options
I'm trying to access an arrayed variable from a PC SDK app. The UDT is of the following type in an AllTask module called Library
RECORD RobMotionCtrl
num pkAccel
num plAccel
ENDRECORD
I have an array declared as:
PERS RobMotionCtrl RobMotionForCnvPars{2,6}
I tried obtaining the rapid symbol for it using:
RapidSymbolSearchProperties sProp = RapidSymbolSearchProperties.CreateDefault();
sProp.Types = SymbolTypes.Data;
RapidSymbol[] rs = module.SearchRapidSymbol(sProp, "RAPID/T_ROB1/LIBRARY/robmotionctrl", string.Empty);
however it does not return anything. I have tried case variations of RobMotionCtrl to no avail. I just get a zero length array back from SearchRapidSymbol.
I didn't have any luck accessing it directly either which is why I'm resorting to doing a symbol search. Any help would be appreciated.
RECORD RobMotionCtrl
num pkAccel
num plAccel
ENDRECORD
I have an array declared as:
PERS RobMotionCtrl RobMotionForCnvPars{2,6}
I tried obtaining the rapid symbol for it using:
RapidSymbolSearchProperties sProp = RapidSymbolSearchProperties.CreateDefault();
sProp.Types = SymbolTypes.Data;
RapidSymbol[] rs = module.SearchRapidSymbol(sProp, "RAPID/T_ROB1/LIBRARY/robmotionctrl", string.Empty);
however it does not return anything. I have tried case variations of RobMotionCtrl to no avail. I just get a zero length array back from SearchRapidSymbol.
I didn't have any luck accessing it directly either which is why I'm resorting to doing a symbol search. Any help would be appreciated.
-Sean
0
Categories
- All Categories
- 5.4K RobotStudio
- 381 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 281 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 738 RAPID Programming
- 16 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings