# Cognex Communication URCap

**URL:** <https://forum.universal-robots.com/t/cognex-communication-urcap/1559>\
**Category:** URCap Development\
**Created:** [January 31, 2018, 5:47pm UTC](https://forum.universal-robots.com/t/cognex-communication-urcap/1559 "2018-01-31T17:47:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhenderson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/bhenderson/32/638_2.png) [@bhenderson](https://forum.universal-robots.com/u/bhenderson)\
**Post date:** [January 31, 2018, 5:47pm UTC](https://forum.universal-robots.com/t/cognex-communication-urcap/1559/1 "2018-01-31T17:47:10Z")

</div>

Hello,

I am interested in developing a more streamlined process to set-up a Cognex to UR vision system. We have developed a camera calibration procedure and .urp file to communicate between the robot and camera.

I am wondering if anyone has developed a functional Cap to bring in camera data using program nodes rather than script code.

Any information on this would be much appreciated.

Thanks!

Bryant Henderson

---

<div class="post-metadata">

**Author:** ![anon42905246](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@anon42905246](https://forum.universal-robots.com/u/anon42905246)\
**Post date:** [February 1, 2018, 6:14am UTC](https://forum.universal-robots.com/t/cognex-communication-urcap/1559/2 "2018-02-01T06:14:39Z")

</div>

I did something like that for SICK camera, because SICK URCap lacked the functionality that I would like to use.

It works like this: program makes xmlrpc call to python script running as daemon, python script opens socket for communication to camera to send and receive data.

I didn’t do that in Program Node, but a function you call in the script, but it should not be really hard. There are a lot of examples and UR support is really nice to answer your questions. 😉

---

<div class="post-metadata">

**Author:** ![anon78404688](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anon78404688](https://forum.universal-robots.com/u/anon78404688)\
**Post date:** [February 7, 2018, 8:05am UTC](https://forum.universal-robots.com/t/cognex-communication-urcap/1559/3 "2018-02-07T08:05:53Z")

</div>

Hi,

a Cognex camera system have also Modbus TCP, so you can Transfer the Data to the UR over this way and you must not programming a socket communication.

greetings Jan

---

<div class="post-metadata">

**Author:** ![bhenderson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/bhenderson/32/638_2.png) [@bhenderson](https://forum.universal-robots.com/u/bhenderson)\
**Post date:** [March 19, 2018, 2:44pm UTC](https://forum.universal-robots.com/t/cognex-communication-urcap/1559/4 "2018-03-19T14:44:06Z")

</div>

Thanks guys! Cognex has communicated that they are in the process of developing a functional cap, and hopefully it will be released within the next 2 months.

-Bryant

---

<div class="post-metadata">

**Author:** ![anon6962979](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@anon6962979](https://forum.universal-robots.com/u/anon6962979)\
**Post date:** [August 29, 2022, 1:33pm UTC](https://forum.universal-robots.com/t/cognex-communication-urcap/1559/5 "2022-08-29T13:33:12Z")

</div>

Hi there, I am working currently with a Cognex 7802. I was able to comunicate and send data from the camera to the robot via Modbus, for example send the score of a cell to the robot and get that score in the robot, holding register 7005.  
My problem is that I don´t know why I am not able to do the same the other way around.

I´d like to write a register of the camera by the robot and get the score in my in-sight spreedsheet. I was trying with formatinputbuffer, Readbufferuserdata and Getbufferdata but the Robot LED ist always going yellow and showing the E1 ILLEGAL FUNCTION. Maybe you´ve already tried it and can help me.

Every feedback will be aprecciated
