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.6K RobotStudio
- 400 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 346 IRC5
- 73 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 844 RAPID Programming
- 20 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 108 Collaborative Robots
- 5 Job listings