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.4K RobotStudio
- 384 UpFeed
- 15 Tutorials
- 12 RobotApps
- 290 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 241 ScreenMaker
- 2.7K Robot Controller
- 283 IRC5
- 44 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 746 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings