I have a UR5e CoBot and I have a Allen Bradley PLC connected over Ethernet/IP. My communications are established and I am reading and writing my registers.
I am having trouble finding the commands to change my programs from the PLC. I may not have my UR program structured correct for this function.
Does anyone have an example of how to for this?
Also I have my Play/Pause/Stop buttons working from the PLC by using bit registers, but when I pause from the PLC I have to press resume on the UR pendent. Is there a different I/O set up I am missing for resume after pause?
Here you can find a PDF file with all the commands that the robot āacceptsā. There are commands for Start/ Stop/ Pauseā¦
Also from here you can Open/ Load saved Robot Programs.
With Siemens PLC IĀ“m able to send the commands to the Robot (and the Robot is acting corretly on the given commands).
Unfortunally IĀ“m struggling with the answers from the Robot. At my PLC i donĀ“t receive any answer from the UR (via Dashboard Server).
For you note about pausing working but not resuming, that is a limitation of the Ethernet I/P implementation I think. It seems to only updates when the program is running because you are using the bit registers. So while the value changes the robot does not do anything with it. As silly as it sounds (and I have not tried this on my UR) you could wire a UR output to a UR input setting the input as the resume button and then change the output to high from the PLC to see if it would ack like a button being physically pressed.
Something I have done is I write my programs individually then I add them as subprograms in another program. The new program will have if/case/switch statements for each subprogram call. With this method, you could change a variable in the PLC to change with subprogram runsā¦ just an idea/workaround.
I had to put the UR into Automatic mode and then Remote mode to be able to control the Play/Pause/Stop (resume from pause with play button works also) from the PLC and they work correctly. Iāll have to try calling specific sub programs as an alternative.
you are using bits from ur PLC that u send to the āboolean input registerā of the UR, right?
Just keep in mind, that if u have a Safety - Stop you still have to go to the Robot HMI to activate the Robot and release its breaks.
If you communicate via Dashboard Server, you can send a String from your PLC to the Robot to power ON and Release the Breaks.
So basically you donĀ“t have to go to ur UR HMI at all.
You can Start/stop/pause, load/ open UR Programs, Power ON and OFF the UR and many more things directly from ur PLC.
Attached the link to my forum entry (just did it moments ago). I can operate the UR from my PLC. ThatĀ“s a very nice āfeatureā.
IĀ“m only struggline to get a āreadableā answer from the UR.
Josh I am trying to connect to an allen bradley as wellā¦ can you show how you were able to do this? I have the ethernet set up and its communicating but how do you send and receive data?