Accessing an arrayed UDT from PC SDK App?
seanays
✭
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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings