Forum Migration Notice
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.

communicate with mitsubishi PLC

hi all
i want to use socket communication  function to connect IRC5(2nd generation) and mitsubishi PLC  
this is simple code as below
but program will stop at socketaccept ...............
did this mean plc  not connect to robot?
is there any one try this function and successful?
thanks alot

PROC server_recover()
        !well 1105
        sstate:=SocketGetStatus(server_socket);
       
        TPWrite("connecting");
        SocketClose client_socket;
        SocketClose server_socket;
        SocketCreate server_socket;
        SocketBind server_socket,"192.168.1.100",5010;
        SocketListen server_socket;

        SocketAccept server_socket,client_socket\ClientAddress:=client_ip\Time:=6000;===> program will stop at here

       TPWrite("connect");

    ENDPROC