Integrated vision issue
CamSetProgramMode CognexCamera;
CamLoadJob CognexCamera, "CameraJobName";
Program execution stops at CamLoadJob and says "Can't load camera job file".
So, maybe You guys have suggestions?
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.0 -
IzaR said:
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.
0 -
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;
0 -
IzaR said:
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;
0 -
I did my camera configuration exactly as in Application manual - Integrated Vision - nothing more. If your program stop on LoadJob i think, that the promlem is in Job not in camera. Otherwise the CamSetProgramMode CognexCamera; would not be working.
0 -
Ok, I did try to make new Job, and I maybe find a solution to this issue. When You are making a Job, after setting up the image, calibration and adding location/inspection tool, you must then click the option output to RAPID. When the Job is synchronized to RAPID error doesn't appear.0
-
IzaR said:Ok, I did try to make new Job, and I maybe find a solution to this issue. When You are making a Job, after setting up the image, calibration and adding location/inspection tool, you must then click the option output to RAPID. When the Job is synchronized to RAPID error doesn't appear.0
-
IzaR said:I did my camera configuration exactly as in Application manual - Integrated Vision - nothing more. If your program stop on LoadJob i think, that the promlem is in Job not in camera. Otherwise the CamSetProgramMode CognexCamera; would not be working.
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!
Ran0 -
rzhao said:IzaR said:I did my camera configuration exactly as in Application manual - Integrated Vision - nothing more. If your program stop on LoadJob i think, that the promlem is in Job not in camera. Otherwise the CamSetProgramMode CognexCamera; would not be working.Hello,
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!
RanHi,
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.
0 -
IzaR said:rzhao said:IzaR said:I did my camera configuration exactly as in Application manual - Integrated Vision - nothing more. If your program stop on LoadJob i think, that the promlem is in Job not in camera. Otherwise the CamSetProgramMode CognexCamera; would not be working.Hello,
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!
RanHi,
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.
0 -
Solved. The problem was, that cameras firmware version was later than ABB integrated vision plugin version. It was 4.10.02 instead of 4.09.01. You can downgrade Cognex camera firmware with old version In-Sight Explorer, so I downloaded In-Sight Explorer 4.9.1, downgraded cameras firmware to 4.09.01 and everything works fine now. Anyway, thanks IzaR for Your help!0
-
JediKnight said:Solved. The problem was, that cameras firmware version was later than ABB integrated vision plugin version. It was 4.10.02 instead of 4.09.01. You can downgrade Cognex camera firmware with old version In-Sight Explorer, so I downloaded In-Sight Explorer 4.9.1, downgraded cameras firmware to 4.09.01 and everything works fine now. Anyway, thanks IzaR for Your help!
my camera also 4.10.02(012)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