Socket Programming with Virtual Controller
in RobotStudio
I would like to use socket messaging to communicate from an application running on a PC connected to my LAN to my robot program running on the virtual controller (running on the same PC or a different PC also connected to my LAN).
1) How do I get the Virtual Controller's IP Address so I can bind a socket to it?
2) How do I connect the Virtual Controller to my LAN?
0
Comments
-
ttp://www.robotstudio.com/forum/forum_posts.asp?TID=2721
http://forums.robotstudio.com/forum_posts.asp?TID=2613
Johannes Weiman2009-02-18 12:40:59Johannes Weiman
Software Engineer
ABB Robotics0 -
Hi
If you have both server and client on the same PC use the 127.0.0.1 localhost.IF you use you rapid code on both use this code snippert that checkes if the controller is a VC or notIF ROBOS() THEN (true if is a real controller. False if it is a VCSocketConnect my_socket, "163.34.138.153", 8888Time:=10;Bl_SocketConnected := TRUE;Num_VisionAlarmNo := 0;ELSESocketConnect my_socket, "127.0.0.1", 8888Time:=10;Bl_SocketConnected := TRUE; Num_VisionAlarmNo := 0;ENDIFBR KlausBest Regards
Klaus Soenderhegn
www.cadalysator.dk0 -
I'm looking into the same issue now 10 years later...
Has anyone made it work using Socket?
Thanks,0 -
Yes. I have programmed a simple socket connection using C++ and a virtual robot.ROS (Robot operating System) also uses a socket connection to control a abb robot.You can ask anything, just pm1
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 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