Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Socket communication crashing
Hello!
I have a program for 3d bin picking, and i am connected via TCP/IP to an external computer. In the program below i create a socket and connect to it. My question is when i start the program in manual mode from main procedure i can normally connect and it works fine, but if i stop in another procedure and have to move the program pointer to another procedure the communication crashes and i get disconnected from the port. What can i do or is there an explanation to why it happens?
Program:
PROC TcpIpInicializacija()
VAR socketdev ABB_PC_socket;
VAR string IPaddress:="192.168.1.124";
VAR num PortNumber:=20001;
SocketClose ABB_PC_socket;
WaitTime 0.05;
SocketCreate ABB_PC_socket;
SocketConnect ABB_PC_socket,IPaddress,PortNumber,\Time:=WAIT_MAX;
ENDPROC
Comments
-
Hello,You may use an other task to manage this.☑️2024 - RobotStudio® User Group0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings