Allen Bradley PLC with Universal Robot and Keyence vision

dlingle774

Member
Join Date
Mar 2021
Location
sturgeon lake, mn
Posts
7
I am a college student in my 2nd year of Automated systems and for my final project me and my classmate are looking to hook up a Universal Robots UR3 with a Keyence cvx-302-f vision system through an Allen Bradley PLC and are having troubles getting the coordinates from the vision to the robot through the plc. I am wondering if there is some sort of software we are missing in the plc or robot or how we should go about getting it done. Any help will be greatly appreciated thank you in advance.
 
Have you been able to get anything from the camera to the PLC? I would like more info about the PLC and how you have everything set up? Also what are you trying to get the robot to do?
 
Yes I can get the info from camera to plc and were trying to do a pick and place application with bolts. The plc is a compactlogics 1769 we have it all connected via ethernet through and enet switch. I was also able to get the robot and plc to communicate with universal robots eip sample project.
 
Welcome to the forum.

we used Cognex rather than keyence and was within .4mm
what is your setup?
from the camera, what is the communications to the plc?
from the plc, what is the communications and interface to the robot?
regards,
james
 
Welcome to the forum!

First of all, it definitely seems like a doable project. This is a good start as sometimes college students are pushed into projects way beyond the possible scope :D
What's your architecture? I'm guessing everything is connected to each other using ethernet? What is the AB PLC that you are referring to?

Are you online with the PLC? If so, you have to download Universal's EDS file and add it to the rockwell PLC as an ethernet module. Then enable the Ethernet/IP option in the UR Teach pendant.

As for the vision system, same deal. Download it's EDS file and add it to your PLC's controller organizer. As for the vision system's programming, you would have to download keyence's software. What are you trying to measure? Can you already read the parameter on the PLC?

Might be more useful to know if the problem is with communication, setup, or the vision programming. More details would help a lot.

Regards,
-PreLC
 
as suggested, comms issue.

forget the robot for now, using the plc, can you trigger the keyence system and get a reply from it. is the data useable data and can you store the information into the plc for use with the robot?
it sounds like you may be using an ethernet card or switch for the communicaions, you may need speciality cable.
james
 
I am a college student in my 2nd year of Automated systems and for my final project me and my classmate are looking to hook up a Universal Robots UR3 with a Keyence cvx-302-f vision system through an Allen Bradley PLC and are having troubles getting the coordinates from the vision to the robot through the plc. I am wondering if there is some sort of software we are missing in the plc or robot or how we should go about getting it done. Any help will be greatly appreciated thank you in advance.

Yes I can trigger the vision from the plc and it will store the coordinates from the vision until I trigger again

Can you try and COP the coordinate values from the vision system into the data registers for the UR Robot? The UDT that UR Provides on their website has registers that are writable from the PLC via EIP.
 
Can you try and COP the coordinate values from the vision system into the data registers for the UR Robot? The UDT that UR Provides on their website has registers that are writable from the PLC via EIP.
I will try that the other question with that is how to make them coordinates usable with the robot as the camera is not mounted to the bot
 
Welcome to the forum!

First of all, it definitely seems like a doable project. This is a good start as sometimes college students are pushed into projects way beyond the possible scope :D
What's your architecture? I'm guessing everything is connected to each other using ethernet? What is the AB PLC that you are referring to?

Are you online with the PLC? If so, you have to download Universal's EDS file and add it to the rockwell PLC as an ethernet module. Then enable the Ethernet/IP option in the UR Teach pendant.

As for the vision system, same deal. Download it's EDS file and add it to your PLC's controller organizer. As for the vision system's programming, you would have to download keyence's software. What are you trying to measure? Can you already read the parameter on the PLC?

Might be more useful to know if the problem is with communication, setup, or the vision programming. More details would help a lot.

Regards,
-PreLC

the plc is a compactlogix 1769 and yes we are using ethernet for everything. we have all the eds files and we have the plc communicating with the vision and with the robot already the problem we are having now is getting the coordinates into the robot and how to make sure it knows where to go with those coordinates as the camera is not mounted on the robot. we are very close to figuring it out just having troubles with the robot to vision part through the plc. not sure if there is some code we need in the robot for it to understand the vision coordinates or if we have to write a code in plc to convert them to what robot will know.
 
the plc is a compactlogix 1769 and yes we are using ethernet for everything. we have all the eds files and we have the plc communicating with the vision and with the robot already the problem we are having now is getting the coordinates into the robot and how to make sure it knows where to go with those coordinates as the camera is not mounted on the robot. we are very close to figuring it out just having troubles with the robot to vision part through the plc. not sure if there is some code we need in the robot for it to understand the vision coordinates or if we have to write a code in plc to convert them to what robot will know.

You'll have to do some manipulating in order for the robot to understand what the camera is saying. It would depend on you if you would like to transfer raw data from the vision to the robot via the PLC, then do the manipulating in the robot, or if you would like PLC to do this manipulating.

You'll likely be better for troubleshooting if you do the manipulating in the PLC. There would still be coding required in the robot, but you'll be giving the robot 2, maybe 3 coordinates and then the robot would take care of motion. In order to send the data raw to the robot, you'll have to take the vision's data and move/cop/cps/etc. to the robot into the registers defined in the UR's EIP manual.

Then you'll have to use these values in the robot program that you wrote. This determines how the robot movements are manipulated from the raw data.
Keep us posted!
PreLC
 
I've never used a Universal Robot, but I have used the CV-X to guide Fanuc and ABB robots.

Keyence has some pretty good literature and videos for using vision guidance with robots:
https://www.keyence.com/support/user/robotvision
https://www.keyence.com/support/user/vision/vision-sys/video_2d-vgr/

I don't remember if these pages are password protected, so you may need to contact Keyence for access.

They have some sample programs for Universal Robots, but if they are like the Fanuc and ABB samples, they involve the robot directly communicating with the camera.

Here's the basic steps we use:
1) Establish a 2D plane in the robot. Basically, you have to teach the robot where the table is at. I'm not sure what is involved in this with a UR.
2) Using a single part, set a base or zero position with the vision that all of the future offsets operate from
3) Teach the robot base or zero position on the same part in the same position
4) When looking at future parts, you need to offset the robot base position with the difference between the current and base coordinates from the camera. Again, I'm not sure what is involved in this with a UR.
 

Similar Topics

Hello, I am new here. I am trying to find good places to sell some surplus items that I have that isnt through ebay. Does anyone have any sources...
Replies
6
Views
434
Hi good day Everyone, I have a cimplicity v10 project with 7 to 8k tags communicating with AB PLC through OPC and Rslinx classic. I have this...
Replies
3
Views
225
I am using Allen Bradley PLC 1756-L81E and EIP module 1756-EN2TR for Ethernet/IP communication. My communication works fine but in Get-Attribute...
Replies
2
Views
209
I have a network with 4 PLCs PLC1 is controllogix and PLCs 2-4 are compactlogix and they all need to communicate. The current way I have this...
Replies
8
Views
264
Hi Everyone, I am currently trying to communicate ControlLogix PLCs via EtherNet/IP with Delta V DCS. There is a VIM2 card configured for...
Replies
1
Views
285
Back
Top Bottom