Frequency of socket reading
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.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