RobotStudio event

communicate with mitsubishi PLC

Options
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