# Integrated vision issue

**URL:** <https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335>\
**Category:** RobotStudio\
**Tags:** cognex, integrated-vision, virtual-irc5, ism1403, vision\
**Created:** [August 31, 2016, 8:05am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335 "2016-08-31T08:05:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![JediKnight](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JediKnight](https://tech-community.robotics.abb.com/u/JediKnight)\
**Post date:** [August 31, 2016, 8:05am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/1 "2016-08-31T08:05:17Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![IzaR](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@IzaR](https://tech-community.robotics.abb.com/u/IzaR)\
**Post date:** [September 2, 2016, 9:17am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/2 "2016-09-02T09:17:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JediKnight](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JediKnight](https://tech-community.robotics.abb.com/u/JediKnight)\
**Post date:** [September 2, 2016, 12:34pm UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/3 "2016-09-02T12:34:14Z")

</div>

> [@IzaR](#):
>
> 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.

My job is saved in cameras memory. Camera job names matches. I tried to define job, like You said, before and I tried to call it directly from string. I don’t know why, but it’s not working. It shouldn’t be a tricky place where You could make mistakes, but somehow it is..

---

<div class="post-metadata">

**Author:** ![IzaR](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@IzaR](https://tech-community.robotics.abb.com/u/IzaR)\
**Post date:** [September 2, 2016, 12:38pm UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/4 "2016-09-02T12:38:34Z")

</div>

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;_

---

<div class="post-metadata">

**Author:** ![JediKnight](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JediKnight](https://tech-community.robotics.abb.com/u/JediKnight)\
**Post date:** [September 5, 2016, 6:35am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/5 "2016-09-05T06:35:19Z")

</div>

> [@IzaR](#):
>
> 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 did exactly what You said and got nothing. Maybe there is certain configuration I have to do for camera? As far away I got everything working except this thing.

---

<div class="post-metadata">

**Author:** ![IzaR](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@IzaR](https://tech-community.robotics.abb.com/u/IzaR)\
**Post date:** [September 5, 2016, 7:17am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/6 "2016-09-05T07:17:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![IzaR](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@IzaR](https://tech-community.robotics.abb.com/u/IzaR)\
**Post date:** [September 5, 2016, 8:44am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/7 "2016-09-05T08:44:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JediKnight](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JediKnight](https://tech-community.robotics.abb.com/u/JediKnight)\
**Post date:** [September 5, 2016, 10:21am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/8 "2016-09-05T10:21:00Z")

</div>

> [@IzaR](#):
>
> 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.

I didn’t mentioned - I did that and I get outputs from camera. But if there is multiple jobs uploaded to camera’s memory, it selects random job and gives me latest output values of that job.

---

<div class="post-metadata">

**Author:** ![rzhao](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/rzhao/32/395_2.png) [@rzhao](https://tech-community.robotics.abb.com/u/rzhao)\
**Post date:** [September 6, 2016, 9:14am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/9 "2016-09-06T09:14:40Z")

</div>

> [@IzaR](#):
>
> 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!  
Ran

---

<div class="post-metadata">

**Author:** ![IzaR](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@IzaR](https://tech-community.robotics.abb.com/u/IzaR)\
**Post date:** [September 6, 2016, 10:26am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/10 "2016-09-06T10:26:35Z")

</div>

> [@rzhao](#):
>
> > [@IzaR](#):
> >
> > 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!  
> 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.

---

<div class="post-metadata">

**Author:** ![rzhao](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/rzhao/32/395_2.png) [@rzhao](https://tech-community.robotics.abb.com/u/rzhao)\
**Post date:** [September 8, 2016, 2:30pm UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/11 "2016-09-08T14:30:10Z")

</div>

> [@IzaR](#):
>
> > [@rzhao](#):
> >
> > > [@IzaR](#):
> > >
> > > 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!  
> > 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.

Thank you so much !

---

<div class="post-metadata">

**Author:** ![JediKnight](https://avatars.discourse-cdn.com/v4/letter/j/7cd45c/32.png) [@JediKnight](https://tech-community.robotics.abb.com/u/JediKnight)\
**Post date:** [September 12, 2016, 5:04am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/12 "2016-09-12T05:04:22Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Dedex](https://avatars.discourse-cdn.com/v4/letter/d/13edae/32.png) [@Dedex](https://tech-community.robotics.abb.com/u/Dedex)\
**Post date:** [February 16, 2021, 11:50am UTC](https://tech-community.robotics.abb.com/t/integrated-vision-issue/7335/13 "2021-02-16T11:50:40Z")

</div>

> [@JediKnight](#):
>
> 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!

hi jedi, how i can learn the ABB integrated vision plugin version. I have similar issue. Can you help me?  
my camera also 4.10.02(012)
