Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Insert instruction code not sent in Run On Robot mode

#14
(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

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!


Messages In This Thread
RE: Insert instruction code not sent in Run On Robot mode -bytrevorb-08-31-2020, 11:11 PM



Users browsing this thread:
1 Guest(s)