
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
- 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
- 5 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings