Insert instruction code not sent in Run On Robot mode- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:RoboDK错误(//www.sinclairbody.com/forum/Forum-RoboDK-bugs) +--- Thread: Insert instruction code not sent in Run On Robot mode (/Thread-Insert-instruction-code-not-sent-in-Run-On-Robot-mode)
Pages:
1
2
|
RE: Insert instruction code not sent in Run On Robot mode-Albert-05-25-2020 I'm sorry I never got back to this thread. It is currently not possible to send custom script code using the Instruction command. On the other hand, you can send a program "ID" to your robot and customize the driver. Similar to this type of operation: //www.sinclairbody.com/forum/Thread-Unable-to-send-custom-code-to-online-robot?pid=3275#pid3275 RE: Insert instruction code not sent in Run On Robot mode-fmonbrun-07-03-2020 The method works with the generation of program trough the post processor. But is there a solution to send an ID program to the apiur( bin file) during the runonrobot mode ? RE: Insert instruction code not sent in Run On Robot mode-Albert-07-09-2020 Yes, this is possible, you should be able to send a program ID that you'll receive in the driver script. However, you should customize your driver script. More specifically, you should customize the MSG_RUNPROG section of the UR side of the driver given the number of the program name:
Code:
elif mtype == MSG_RUNPROG:
RE: Insert instruction code not sent in Run On Robot mode-trevorb-08-31-2020 (07-09-2020, 01:09 PM)Albert Wrote:Yes, this is possible, you should be able to send a program ID that you'll receive in the driver script. However, you should customize your driver script. Hi Albert, I understand the process you are describing about sending Program "IDs" to the driver script. You mention modifying the driver script and elaborate with the code snippet above. Could you please be more specific about what script I should be editing? There is no editable UR driver script in the following location: C:\RoboDK\api\Robot. When you say "on the UR side of the driver", I am not sure I fully understand what you mean. Thanks in advance! Please let me know if you need any other information! RE: Insert instruction code not sent in Run On Robot mode-Albert-09-01-2020 Hi Trevorb, Please contact us via email and we'll provide you with the required files. Albert RE: Insert instruction code not sent in Run On Robot mode-PedramPasha-09-04-2020 (07-09-2020, 01:09 PM)Albert Wrote:Yes, this is possible, you should be able to send a program ID that you'll receive in the driver script. However, you should customize your driver script. I'm trying to use URscript call function to control my end effector on UR10 (set_tool_digital_out) I'm connected to the robot and I'm using the driver. You mentioned that we can modify the driver to call the program ID: //www.sinclairbody.com/forum/Thread-Online-programming-function-call?highlight=driver Do I include the UR scriptset_tool_digital_out"in a Python Program inside RoboDK and call its program ID on the driver? We're still unclear on where to include the URscript "set_tool_digital_out" and call its ID in the customized driver. Thank you in advance, Pedram RE: Insert instruction code not sent in Run On Robot mode-Albert-09-04-2020 Hi Pedram, I just got back to you on the other thread to properly map tool outputs for your UR robot. Inserting custom code is not supported for all robots when you use the run on robot option (drivers). |