Hello together,
I have a situation which I do not understand.
I am using the UR Script Communicator from GitHub GitHub - BomMadsen/URCap-ScriptCommunicator: Exemplification of how to communicate with URControl from a URCap.
As you can see there is the popup script command there and it works fine.
The strange this is that I want to communicate with the dashboard of the robot so I can load a program, stop a running program, etc.
I have modified in the Script Sender the IP and the Port like below:
private final int TCP_port = 29999;
/**
* Default constructor, using localhost IP (127.0.0.1)
*/
public ScriptSender() {
this.TCP_IP = "127.0.0.1";
}
When I change the popup message with another one lets’s say: load, shutdown, play etc. there is no response. Nothing. Not even in the terminal. My question is what I am doing wrong? What mistake I have made that I cannot connect to the dashboard of the robot and send a command. I have done this and checked with an Python standalone application from the HOST PC to a URSim VM and it works.
public void sendScriptTest() {
// Create a new ScriptCommand called “testSend”
ScriptCommand sendTestCommand = new ScriptCommand(“testSend”);
// Append a popup command to the ScriptCommand
sendTestCommand.appendLine("load<test.urp>");
// Use the ScriptSender to send the command for immediate execution
sender.sendScriptCommand(sendTestCommand);
The test.urp is in the right place in the programs folder of the URsim.
I am using the standard URCap Virtual machine without any modifications.
The final goal is to have a User GUI where the operator can choose the program to load and start, stop. There will be some buttons with different program which needs to loads different .urp files. But for this to work I need to connect to the dashboard and send commands.
Thank you in advance for the time and the help provided!