I want to automatically select and execute a UR robot program using UART signals provided by a communication device. What I am curious about here is how to connect the communication line between the communication device and the UR robot, and how to run the program automatically using UART signals.
the UART Communication would need to be handled through a Daemon Process. Here take a look at our MyDaemonSwing-Example. It should already be present in Eclipse, if you are using the Starter-Package.
Once the desired Signal is detected the Dashboard Server can be used to load the correct program and start it. You can connect to it via a Socket Connection on port 29999. With the commands load <my-Program.urp> and then play, you then can load and start the program from within the URCap.