Integrated Vision / How to get the data of each individual object from PatMax 1-10
Levie
✭
Hello! I have some problems with the data transfer to Rapid from PatMax 1-10
Before that, everything was ok with the single object (regular PatMax), it was like that:
CamReqImage camera1;
CamGetResult camera1,cameraResults\MaxTime:=2;
CamGetResult camera1,cameraResults\MaxTime:=2;
wobjCamera.uframe:=wobjRobot.uframe;
wobjCamera.oframe:=cameraResults.cframe;
wobjCamera.oframe:=cameraResults.cframe;
pGripPart.trans.x := cameraResults.cframe.trans.x;
But now, how can i get the data of every single x contained in the cframe.trans.x ?
Tagged:
0
Comments
-
You can cycle the results in a while loop:
CamReqImage camera1;WHILE CamNumberOfResults(camera1) > 0 DOCamGetResult camera1,cameraResults\MaxTime:=2;wobjCamera.uframe:=wobjRobot.uframe;
wobjCamera.oframe:=cameraResults.cframe;pGripPart.trans.x := cameraResults.cframe.trans.x;ENDWHILE
When there is no more results, the error ERR_CAM_NO_MORE_DATA is generated.0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings