Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 07:35:14 PM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  KUKA Robot Forum (Moderators: Werner Hampel, Martin H, SkyeFire)
| | |-+  Kuka with DVT (cognex) vision setup
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Kuka with DVT (cognex) vision setup  (Read 1521 times)
loopyjoe7
Newbie
*
Offline Offline

Posts: 25


« on: October 29, 2009, 12:05:47 PM »

Hi,

I am wondering if anyone has any information they can pass on to me on how to setup a DVT (cognex) camera to communicate with a Kuka KRC2 robot.
I have heard that setting it up using a serial connection is the best and easiest way (using a ethernet to serial converter).

Any information (examples, code etc) on how to setup the comms will be much appreciated.

Thanks in advance
Ken
Logged
SkyeFire
Global Moderator
*****
Offline Offline

Posts: 1784



« Reply #1 on: October 29, 2009, 01:42:00 PM »

KukaVision is a tech package that lets you run Cognex InSight directly on the robto controller and tie it into your KRL program.  Makes integrating Cognexes (Cognexi?) a lot easier.

Haven't used a Cognex on a KRC without KV... yet.  I assume that you're using serial on the KRC end and ethernet on the Cognex?  I haven't seen a rig like that before, but I know the Cognex hardware is pretty flexible.

I would strongly suggest getting a subscription to the Cognex SMARTLIST mailing list -- a lot of Congex techs and users hang out there and swap questions and solutions.  I suspect getting your serial-to-ethernet working will require some setting adjustments on the Cognex.  Once that's done, sending/receiving strings via the KRC's COM port isn't too hard, although the syntax takes some getting used to.  Using a separate computer running HyperTerminal or TerraTerm in place of the Cognex will help you get your KRL serial port setup working before you connect the Cognex.
Logged
loopyjoe7
Newbie
*
Offline Offline

Posts: 25


« Reply #2 on: November 01, 2009, 11:22:42 AM »

Thanks for the reply.

I want to use serial commands instead of kuka vision.
I know that you have to use CREAD and CWRITE commands but I just cant get it to work.

If anyone has any sample code on how to send and receive a string over the kuka serial port it would make things so much easier for me.

Thanks in advance.
Logged
SkyeFire
Global Moderator
*****
Offline Offline

Posts: 1784



« Reply #3 on: November 03, 2009, 12:54:39 PM »

Well, the manuals are available here:  http://www.robot-forum.com/robotforum/manuals_software_and_tools_for_kuka_robots/krc2_manuals_for_kss_version_52-t229.0.html, and there's some example source code in the Serial manual.  And if you search the forum, there are some other discussions about using serial on KRC controllers that cover a lot of the pitfalls and tricks.

As for code, browse to kuka.skyefire.org and grab the serial.src and serial.dat files.  That's some crude quick&dirty test code I threw together a while back.  It's not pretty, but it worked.

Building an RS232 loopback tester also helps, and only costs about $5 in parts from Radio Shack.  Get/build a null-modem adapter too.  Telnetting from the WIndows side of the controller into the VxWorks side (run "telnet95 192.0.1.1") will let you watch what the robot thinks it's sending/receiving, down at the hardware-driver level -- seeing that can help you nail down errors in your code.

Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!