09-04-2020, 12:10 AM
(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.
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:
prog_num = socket_read_binary_integer(1)
prog_name = socket_read_string()
如果prog_num = = 1:
Program1()
elif prog_num == 2:
Program(2)
end
break
我m trying to use URscript call function to control my end effector on UR10 (set_tool_digital_out)
我m connected to the robot and I'm using the driver.
You mentioned that we can modify the driver to call the program ID:
//m.sinclairbody.com/forum/Thread-Online-p...ght=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