Socket Communication in Robot Studio
ravi
✭
in RobotStudio
Hi,
I am trying to do Socket Connection in Robot Studio 5.11.
The main idea is to do a TCP/IP based communication with the Robot.At present I am doing it in offline mode(Using Virtual Controller).
I enabled the communication part1 and Part2 in Virtual Controller(Create/Modify Station).
Here is the part of the code
MODULE Own_Socket
VAR socketdev Server1 ;
VAR socketdev Client1;
PROC main()
SocketCreate Server1
VAR socketdev Server1 ;
VAR socketdev Client1;
PROC main()
SocketCreate Server1
ENDPROC
ENDMODULE
ENDMODULE
If I compile the above code I get the error "Error 161 : Option is missing. : The instruction SocketCreate requires the option PC Interface. 12.11.2008 00:29:29 RAPID "
I hope this is because of some part in Communication are not enabled.
Could any one guide me on how to do this?
BR
Ravi
0
Comments
-
Try adding the option PC interface in your virtual system via the system builder.Russell Drown0
-
I tried it...but no luck0
-
I tried it but no luck....0
-
Tried your module in a vc with the option PC interface and it compiled ok except for a missing ; after SocketCreate Server1
What RobotWare version are you using?Per Svensson
Robotics and Vision Specialist
Consat Engineering0 -
Hi thanks for the reply.I got it running..its a mistake from my side.
0 -
Hello Friends,i have add pc interface through system builder but still I get the error "Error 161 : Option is missing. : The instruction SocketCreate requires the option PC Interface.Please give some information how to get rid of it.RegardsTarun Patel0
-
Hello Tarun,Double check that you are actually running the virtual controller with the PC Interface option. (See System Information).This does work correctly when the option is there.Steve0
-
Hello SteveThanks for your reply.it's working now.Tarun0
-
Hey guys,I have a similar problem as ravi. I am trying to make a server program in RobotStudio to interact with python 2 client code. I already made a simple client-server application and in offline programming it works great. The problem is that when I put the code from RobotStudio in the actual IRC5 Robot Controller it gives the error: Error 161 : The instruction SocketCreate requires the option Socket.After entering in the System properties/Control module/Options from the TeachPendant I saw that the: Socket Messaging [619-1] is not installed in the controller and I believe this is why I cannot work with sockets at this point in time. How can I fix this problem? I hope that someone can help me0
-
Hy guys,Concerning the problem above, I also made a program in RobotStudio that interacts with Python code. My problem is that the program in RobotStudio is working but after downloading the program in the actual Robot Controller it gives the exact same error that 'ravi' got (Error 161 : The instruction SocketCreate requires the option Socket).On the TeachPendant Error screen at Action it states that I should update the system image with the required option.My question is how should I do this?? The Controller type is IRC5 M2004.Can anybody help?Thanks in advance0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings