Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
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.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 366 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 856 RAPID Programming
- 40 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings