How to pass array arg to Function
Options
Lin
✭
in RobotStudio
I have on array A{1,1,5}
I would like to pass this array as a argument to my function.
FUNC ..... Name(num b{1,1,7})
...........................
ENDFUNC
Is this possible? If you know the answer, please help me.
Thank you.
I would like to pass this array as a argument to my function.
FUNC ..... Name(num b{1,1,7})
...........................
ENDFUNC
Is this possible? If you know the answer, please help me.
Thank you.
Lingaa
0
Comments
-
hii not sure but tryFUNC ..... Name(num b{*,*,*})
...........................
ENDFUNC0 -
hi again
i found info in rapid overviewfor procedure
PROC arrmul( VAR num array{*}, num factor)
FOR index FROM 1 TO dim( array, 1 ) DO
array{index} := array{index} * factor;
ENDFOR
ENDPROC0
Categories
- All Categories
- 5.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 736 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings