RobotStudio event

Can't connect to controller



I'm running into a strange problem when moving my code from RobotStudio to an IRC5 controller.

The code essentially just opens a TCP/IP socket and listens for incoming connections.

This code runs fine in RobotStudio, and apparently it runs fine on the IRC5 too - at least that's what the FlexPendant is telling me.

The problem is that I can't connect to the IRC5 controller via the network.

I know the controller is on the network, since RobotStudio shows the status of the controller, I can grant/revoke write permissions, browse files and so on.

It would be much appreciated if anyone could point me in the right direction.

EDIT:
Apparently there is a socket timeout a few minutes after the program starts. This happens regardless if I try to connect to the port or not.

erikjber2010-03-11 14:32:53

Comments

  • Does the IRC5 system have the RobotWare Option "PC-Interface"? If not, you can connect to the controller via the service port.

    Henrik Berlin
    ABB
  • Yes, it does.

    I've tried connecting via the service port, same result.

  • Moved to RobotWare forum the problem is related to socket communication and not specifically RobotStudio.
    Henrik Berlin
    ABB
  • Ok, I found the problem, I was listening on the wrong address.
    127.0.0.1 works under simulation - it even accepts connections from remote hosts,
    but on the controller the actual ip address of the interface must be used, otherwise the SocketBind call will time out.