Home› Programming
Discussion
Back to discussions page
Andre
Posts: 17 Apprentice
How to send secondary program to UR with LabVIEW? |
702 views
|
Answered | |
/ Most recent by Andre
in Programming
|
4 comments |

in Programming
Hi everyone,
I am using LabVIEW 2018 to control a UR5 CB-series (Polyscope 3.9) via TCP/IP connection.
I would like to send a file with a series of variables defined in it to give as inputs to some functions defined in Polyscope inside the UR5. I read that it is possibile to use secondary programs and to send them with the port 30002, but I'm not able to do that and don't know why. Here it is the reported the VI I created.

The "data_input.script" file is written according to the URscript manual of Universal Robots as a secondary program:
sec data():
global a=1
global b=2
end
I am able to transfer it as a primary program (so "a" and "b" are displaied in the "Variables" tab) by writing "def" instead of "sec" in the file, but this, of course, stops the execution of the running program on the UR5 and I don't it to happen, this is why I would like to use a secondary program.
Thank you very much for your help.
Best regards
Andrea
I am using LabVIEW 2018 to control a UR5 CB-series (Polyscope 3.9) via TCP/IP connection.
I would like to send a file with a series of variables defined in it to give as inputs to some functions defined in Polyscope inside the UR5. I read that it is possibile to use secondary programs and to send them with the port 30002, but I'm not able to do that and don't know why. Here it is the reported the VI I created.

The "data_input.script" file is written according to the URscript manual of Universal Robots as a secondary program:
sec data():
global a=1
global b=2
end
I am able to transfer it as a primary program (so "a" and "b" are displaied in the "Variables" tab) by writing "def" instead of "sec" in the file, but this, of course, stops the execution of the running program on the UR5 and I don't it to happen, this is why I would like to use a secondary program.
Thank you very much for your help.
Best regards
Andrea
Your program could use modbus variables and you could even monitor or change those them.
local wp=p[.......], while it would be much faster an easier for me to send directly "local wp=p[......]. This is why I was asking about secondary programs or other ways to do that.
Thank you very much for your help!