Workobject changing
                
                    St4rk                
                
                     ✭                
            
                        
                
                                    
                                  in RobotStudio             
            
                    Hello,
is there any way to program workobject changing ? For example, I define four workobject and in FOR statement it will be automatically changing. Something like:
FOR i from 1 to 4
workobject(i)
ENDFOR
                        is there any way to program workobject changing ? For example, I define four workobject and in FOR statement it will be automatically changing. Something like:
FOR i from 1 to 4
workobject(i)
ENDFOR
            Tagged:
            
        
0  
            Comments
- 
            You can do something like this:
<div>MODULE MainR1 </div><div>   </div><div>  PERS wobjdata wobjA := [FALSE, TRUE, "", [[0, 0, 10],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div>  PERS wobjdata wobjB := [FALSE, TRUE, "", [[0, 0, 20],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div>  PERS wobjdata wobjC := [FALSE, TRUE, "", [[0, 0, 30],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div>  PERS wobjdata wobjD := [FALSE, TRUE, "", [[0, 0, 40],[1, 0, 0, 0]], [[0, 0, 0],[1, 0, 0, 0]]]; </div><div>  PERS wobjdata usedWobj; </div><div>  PERS wobjdata wobjs{4}; </div><div>   </div><div>  PROC main() </div><div>    wobjs:=[wobjA, wobjB, wobjC, wobjD]; </div><div>     </div><div>    FOR i FROM 1 TO Dim(wobjs,1) DO </div><div>      usedWobj := wobjs{i}; </div><div>    ENDFOR </div><div><br></div><div>  ENDPROC </div><div>   </div><div>ENDMODULE </div>0 - 
            Thank you very much !0
 
Categories
- All Categories
 - 5.6K RobotStudio
 - 401 UpFeed
 - 21 Tutorials
 - 15 RobotApps
 - 306 PowerPacs
 - 407 RobotStudio S4
 - 1.8K Developer Tools
 - 250 ScreenMaker
 - 2.9K Robot Controller
 - 363 IRC5
 - 81 OmniCore
 - 8 RCS (Realistic Controller Simulation)
 - 853 RAPID Programming
 - 31 AppStudio
 - 4 RobotStudio AR Viewer
 - 19 Wizard Easy Programming
 - 110 Collaborative Robots
 - 5 Job listings
 
