Frequency of socket reading
Options
Gugugu
✭
HI,
I'm a starter in RAPID programming and I'm currently doing a project using model IRB120 in Robotstudio. It's about reading message sent from Visual Studio through socket. My sending frequency is set to 1 KHZ and I don't know anything about socket read frequency in Robotstudio. I use command "SocketReceive client,\Str:=str_data_px1\ReadNoOfBytes:=7;" in a while loop in my program. Any help is appreciated, thanks!
I'm a starter in RAPID programming and I'm currently doing a project using model IRB120 in Robotstudio. It's about reading message sent from Visual Studio through socket. My sending frequency is set to 1 KHZ and I don't know anything about socket read frequency in Robotstudio. I use command "SocketReceive client,\Str:=str_data_px1\ReadNoOfBytes:=7;" in a while loop in my program. Any help is appreciated, thanks!
0
Answers
-
Set the controller to be a server and use socket listen and socket accept functions in a semi static task. That way the task sits and waits for a incoming connection (define a time out if you wish) and the frequency is less of an issue.
This will also stop the controller constantly erroring socket connections or unreceived messages.0
Categories
- All Categories
- 5.4K RobotStudio
- 385 UpFeed
- 15 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 285 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 748 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings