Integrated vision issue

in RobotStudio
Hi everyone! I'm using IRC5 compact robot controller and Cognex ISM1403 camera. The issue appeared when I tried to load another camera job from RAPID program.
CamSetProgramMode CognexCamera;
CamLoadJob CognexCamera, "CameraJobName";
Program execution stops at CamLoadJob and says "Can't load camera job file".
So, maybe You guys have suggestions?
CamSetProgramMode CognexCamera;
CamLoadJob CognexCamera, "CameraJobName";
Program execution stops at CamLoadJob and says "Can't load camera job file".
So, maybe You guys have suggestions?
Tagged:
Comments
First, you need to have a job saved in the camera memory.
In your RAPID program you have to define your job name.
e.g
CONST string myjob := "myjob.job"; In parentheses is given the exact name of the job stored in the memory of the camera.
and next in the procedure you are using you need to refer to the name of your job.
CamLoadJob mycamera, myjob;
I hope that I helped.
Try to define your job again in Integrated Vision tab in RobotStudio.
I have the RAPID code exacly like I said and my camera is working and load job corectly.
I define the CONST string before the PROC main.
And maybe you should add function WaitTime before using the CamLoadJob mycamera, myjob;
I have a question about integrated vision. Do you know how to export all the results of the vision coordinates if there are multiple objects on the image?
Currently I use the example codes from the IV snippet:
CamGetResult Mycamera, Mytarget;
myWobj.oframe := Mytarget.cframe;
But the two sentence above can only get one object position each time. So I have to require the image the second time.
Many thanks in advance!
Ran
Hi,
You have to use a loop. See Application manual - Integrated Vision. In chapter 6.3.11 called Finding multiple items of the same type you will find more information.