I’m trying to use Robot Reference Interface (RRI) – which is the predecessor of the EGM – to get position robot. I have put the three xml files in the correct folders. My C++ server is listening on the port I have defined on Description.xml. I try my server with a simple client application and it works.
But when I run the Rapid code ( SiConnect ),The result is that Rapid, not being able to initialize the communication, stops the application reporting the event message 112600.
My configuration and actions:
1) builded the virtual system in RobotStudio.(including EGM but RRI , because the 6.x versions has only EGM)
- In the folder Home, I added the following files: GSI/Settings.xml, GSI/TestDevice/Description.xml, GSI/TestDevice/Configuration.xml.
Their contents :
~Setting~
<?xml version="1.0" encoding="utf-8"?>~ Configuration~
<?xml version="1.0" encoding="utf-8"?>~ Description~
<?xml version="1.0" encoding="utf-8"?>TestDevice
CDP
SomeType
SomeClass
2000
200
false
- I wrote the following Rapid Module
MODULE RRI_module
RECORD robotdata
num type;
string status;
ENDRECORD
RECORD replydata
num type;
ENDRECORD
PERS sensor TestDevice := [-1,-1,0];
PERS robotdata RobotMessage := [0,“”];
PERS replydata ReplyMessage := [0];
PROC Main()
SiConnect TestDevice;
ENDPROC
ENDMODULE
“Compiling” this module, no errors are reported
- Finally, I started the C++ server listening on port 4999 and, just after, I run the rapid program.
The result is that Rapid, not being able to initialize the communication, stops the application reporting the event message 112600.
Now, my questions:
-
Do my configuration and actions have anything wrong?
-
Does the means of using EGM differ from RRI and how to use the EGM?
-
Are there version problems of robot or RobotStudio? My RobotWare version is 6.02.1029.
-
Could you send me the code of a server listening on a port?
-
Is there any other documentation on the Robot Reference Interface or EGM? Could someone provide me with more details about how to get position of robot(communicate with robot)?
Thanks in advance!