
How to pass array arg to Function

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.5K RobotStudio
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings