03-25-2020, 06:04 PM (This post was last modified: 03-25-2020, 07:54 PM by gmarchet.)
Greetings,
I need to send a custom command through the on-line robot driver interface, but when I set the program which contains this instruction in "Run on robot" mode and right click on the instruction then "Execute instruction" (after connecting to the driver of course), nothing is sent - as can be seen in the log window. And this is independent on the actual content of the instruction code.
Any built-in instruction works with the same method (I can see them in the log window and they are properly handled by the driver).
I am running RoboDK on LUbuntu but one of my colleagues has the same problem on Windows. What is happening?
Thanks for posting. Universal Robots - my understanding was that brands mattered for postprocessors (which, if I understand correctly, are not used here) and online robot drivers (which I understand only kick in after the command line is written to the log), is there something else dependant on brand on this chain?
Standard commands do appear in the log before they are processed by our custom driver, but these instructions don't do anything (even using the built-in apiur online robot driver).
03-26-2020, 08:25 PM (This post was last modified: 03-26-2020, 08:26 PM by gmarchet.)
I have tried to replace the program by a call to a python script which uses robot.RunInstruction("anything",INSTRUCTION_INSERT_CODE), and it still does not work: nothing is sent through the console log. This is a very inconvenient bug (which happens to be blocking for us) and it is easily reproductible, is your development staff aware of this?
Also (but this is less important), I noticed Robolink.Render() has no effect when programs calling it are set to Run on robot (I make calculations using robot.setJoints() and I would like these calculations to be hidden to the user - and it works when Run on robot is not ticked), I think this is also a bug but perhaps there is another way? If this is indeed a bug I'll open another thread.
03-30-2020, 01:16 PM (This post was last modified: 03-30-2020, 01:38 PM by gmarchet.)
Hi Albert, thanks for your answer. I already have this option checked, I just checked. Also, insert code instructions in the GUI don't work either, it's not only a Python issue it seems (I assume both are linked by the fact that the underlying function from RoboDK does not seem to work).
This post interests me. I have the same problem with ITEM.RunInstruction(code, run_type=INSTRUCTION_INSERT_CODE)
This method works only with a program item or it could also work with a robot item?
Is there a way to send directly urscrip code to the UR10 controller in RUNMODE_RUN_ROBOT (ie using apiur.exe) trough the user interface or through the python api?
You will find a robodk scene test attached to this post :
- with gui interface
- with the api with robot.RunInstruction() or program.RunInstruction()
I took in my example the "popup("text")" urscript command but it coul be any : textmsg(), set_payload()...