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
- 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