# Vision Control System and RobotStudio

**URL:** <https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242>\
**Category:** Developer Tools\
**Created:** [June 17, 2011, 9:36pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242 "2011-06-17T21:36:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ale\_001](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ale\_001](https://tech-community.robotics.abb.com/u/ale_001)\
**Post date:** [June 17, 2011, 9:36pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/1 "2011-06-17T21:36:02Z")

</div>

Hi everybody,

Well I am new in the forum but i need your help, I must to do a Final Project for the university using RobotStudio. The objective is to do an a Simulation for a guided motion usion inverted control vision system and Robotstudio.

I am readin the PC SDK, to what can Helps, may be someone who has don Vision movement with a ABB robot.

Also my idea is that this thread can be helpful as a tutorial.

---

<div class="post-metadata">

**Author:** ![Klaus](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Klaus](https://tech-community.robotics.abb.com/u/Klaus)\
**Post date:** [June 20, 2011, 2:59pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/2 "2011-06-20T14:59:11Z")

</div>

Hi ale.

The vision projects that i have done, i have used a socket connection between the robot and the vision PC. That can also be done with a VC in RS.

I can give ypu the socket part of the robot. The socket part off the vision software in VS2008 C# i can not give you. It’s belong to a former company that i worked for

---

<div class="post-metadata">

**Author:** ![ale\_001](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ale\_001](https://tech-community.robotics.abb.com/u/ale_001)\
**Post date:** [June 20, 2011, 7:37pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/3 "2011-06-20T19:37:47Z")

</div>

Hi Klaus

Thanx a lot for answer, Sorry if i am a little noob but what is a socket or what it do, and also what is VC.  
If you can share the socket of the robot could be good, also explain a little bit what it do.  
I will continuously will share what i do here.

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [June 23, 2011, 10:10am UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/4 "2011-06-23T10:10:57Z")

</div>

VC = Virtual Controller  
This is the virtual copy of the real controller that you are using in RobotStudio.

Socket = Socket Messaging  
It has been a optional function since RobotWare 5.06.

> [@](#):
>
> The purpose of Socket Messaging is to allow a RAPID program to exchange TCP/IP  
> messages over a network, with a C/C++ program on another computer or a RAPID  
> program on another robot controller.  
> Socket Messaging sends and receives messages over the permanent Ethernet channel  
> of the IRC5 (which can simultaneously be used for other network traffic, e.g. communication  
> with RobotStudio-Online or WebWare Server).  
> Socket Messaging is a standard supported by e.g.UNIX and Microsoft Windows.

You can find code examples etc in the “Application manual - Robot communication and I/O control” chapter 8 “Socket Messaging”.

Also see section 1.160. in “Technical reference manual - RAPID Instructions, Functions and Data types” for the declarations.

Please note that you need a RobotWare option in your Robot System to enable Socket Messaging. (If you don’t know what RobotWare options are you should talk to your teacher and look up the System Builder in RobotStudio).  
It used to be “672-1 Socket Messaging” but from RobotWare 5.11 its included in the “616-1 PC Interface” option.

---

<div class="post-metadata">

**Author:** ![Klaus](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Klaus](https://tech-community.robotics.abb.com/u/Klaus)\
**Post date:** [June 23, 2011, 10:23am UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/5 "2011-06-23T10:23:28Z")

</div>

thanks for aswering John.

Missed this tropic :stuck\_out\_tongue:

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [June 23, 2011, 11:27am UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/6 "2011-06-23T11:27:04Z")

</div>

[QUOTE=Klaus] thanks for aswering John.

Missed this tropic :stuck\_out\_tongue:  
[/QUOTE] Don’t sell yourself short Klaus. :stuck\_out\_tongue\_winking\_eye: I can sort out the details but I’ve never done vision outside of [PickMaster](http://www05.abb.com/global/scot/scot241.nsf/veritydisplay/701fcb91bc7f0054c125772e005391cb/$file/PickMaster%20PR10342EN_R5.pdf) so I wouldn’t know where to start. So its great that you can point out possible directions.

---

<div class="post-metadata">

**Author:** ![ale\_001](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ale\_001](https://tech-community.robotics.abb.com/u/ale_001)\
**Post date:** [June 23, 2011, 2:18pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/7 "2011-06-23T14:18:58Z")

</div>

Thanx a lot for answering John, great comment.  
I am reading the PC SDK manual i am in chapter 4.  
I was talking with my teacher and he said use sockets is a good idea, with all i read around. i was planing this.

First elaborate the vision control technique, this monday 27 i will have a meeting with another teacher who will explain me the indirect visial control method. Is very probable tha i elaborate this control technique in C# or C++.

Second I’ll do a program with C# in VS2010 to the communications with the VC, in this part i’ll be helped by a tutorial an the Application manual. where this program will just a link in the communications.

THird do a work in RS with the little robot, is probable o i’ll do some coveyour with a box or anything.

Anyway John, about pickmaster looks an awesome application and i think what i want to do is something similar. But this application probably communicates with RS. Don’t you have any example of a project or something you have done to share in a video.

The Monday i will explain the inverted vision technique.

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [June 23, 2011, 3:37pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/8 "2011-06-23T15:37:42Z")

</div>

Regarding the conveyor + box thingie read up on Smart Components in RobotStudio and check out these downloads from the community:  
[http://abbcontentsharing.skapawebsql.tripnet.se/Details.aspx?fileId=166](http://abbcontentsharing.skapawebsql.tripnet.se/Details.aspx?fileId=166)  
[http://abbcontentsharing.skapawebsql.tripnet.se/Details.aspx?fileId=165](http://abbcontentsharing.skapawebsql.tripnet.se/Details.aspx?fileId=165)  
They give both movement + source.

---

<div class="post-metadata">

**Author:** ![ale\_001](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ale\_001](https://tech-community.robotics.abb.com/u/ale_001)\
**Post date:** [June 23, 2011, 7:51pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/9 "2011-06-23T19:51:58Z")

</div>

Thanx a lot John, I make my own conveyour + box with smart components and I have it as a component may be i can share it to. I dont know if what i have is the same because i am based on the tutorials. also i have some tools that i can share. I made a rotable table but dont rotates good. If wan i share what i have tell me where. uploading to abb or with rapidshare.

---

<div class="post-metadata">

**Author:** ![ale\_001](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ale\_001](https://tech-community.robotics.abb.com/u/ale_001)\
**Post date:** [June 29, 2011, 9:48pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/10 "2011-06-29T21:48:33Z")

</div>

Hi Jhon and Klaus,

I done the same program for scan controllers, like in the tutorial.  
[How to program a small application that communicates with the IRC5 robot controller](http://search.abb.com/library/Download.aspx?DocumentID=9AKK104295D3312&LanguageCode=en&DocumentPartId=&Action=Launch)  
  
I can get communicate without problem and can find the VC.

Now talking with my teacher and investigating about the visual servoing, and the equation i will use its this:

and this equation will give me a Cartesian velocity at the end of the robot with rotation and translation. So i want to know if i can send this values to Robotstudio. or its necessary send to RS: X, Y, Z ; RX, RY, RZ. so it can move.

Another question i have, in RS i wil draw a patter for use in the equation so can analice the movement, but how can simulate the pattern drawn as an image. I know RS have an Smart Component of vision i am not sure.

---

<div class="post-metadata">

**Author:** ![doc-zee](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@doc-zee](https://tech-community.robotics.abb.com/u/doc-zee)\
**Post date:** [August 23, 2011, 9:41am UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/11 "2011-08-23T09:41:53Z")

</div>

hi,i am a student the learn to how to control the abb robot by the PC SDK.I don`t have any program experience,so can you give me some example that i can learn to how to let the abb robot move,sanks a lot ! [zx5721@126.com](mailto:zx5721@126.com) is my e-mail

---

<div class="post-metadata">

**Author:** ![CogEric](https://avatars.discourse-cdn.com/v4/letter/c/db5fbb/32.png) [@CogEric](https://tech-community.robotics.abb.com/u/CogEric)\
**Post date:** [August 31, 2011, 2:49pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/12 "2011-08-31T14:49:03Z")

</div>

I am not sure what vision system you are working with, but there is a lot of documentation on the Cognex website: [http://www.cognex.com/support/downloads/File.aspx?d=2026](http://www.cognex.com/support/downloads/File.aspx?d=2026)

---

<div class="post-metadata">

**Author:** ![doc-zee](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@doc-zee](https://tech-community.robotics.abb.com/u/doc-zee)\
**Post date:** [August 31, 2011, 2:55pm UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/13 "2011-08-31T14:55:05Z")

</div>

thank you very much!!!

---

<div class="post-metadata">

**Author:** ![doc-zee](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@doc-zee](https://tech-community.robotics.abb.com/u/doc-zee)\
**Post date:** [September 18, 2011, 9:33am UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/14 "2011-09-18T09:33:01Z")

</div>

Hi??OKlaus!  
can u give me the socket part of the robot,if convenient ,part of vision is cool! hi,i am a student that learn to how to control the abb robot by the PC SDK.I don`t have any program experience,so can you give me some example that i can learn to how to connect the vision to the robot,sanks a lot ! [zx5721@126.com](mailto:zx5721@126.com) is my e-mail 😉

---

<div class="post-metadata">

**Author:** ![doc-zee](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@doc-zee](https://tech-community.robotics.abb.com/u/doc-zee)\
**Post date:** [November 17, 2011, 7:37am UTC](https://tech-community.robotics.abb.com/t/vision-control-system-and-robotstudio/4242/15 "2011-11-17T07:37:19Z")

</div>

Hi,Klaus!now i want to use socketmessage domain to receive the 3 data one time from pc.but i don`t know how to receive.for example:the server send 1.34341,2.4355,6.3434.and the client receive it.i don`t know the client how to seperate the 3 num and put them into num1 ,num2,num3.i need your help.
