RobotStudio event

Socket instructions detected as wrong-number-of-arguments error

Hi all,

In RAPID module I want to make use of the socket instructions such as SocketCreate, SocketConnect, SocketClose, etc but all these instructions are detected as error : "wrong number of arguments to <instruction_name>". Any particular reason for this? Thank you.

Comments

  • Could you post the piece of code that produces the error?

    As the error says, I'd check the parameters you give to these functions (since they're functions) and check whether the arguments you pass are the right ones. These functions are nicely described in the documents of ABB, so check those out.
  • Hi B_Baan,

    Thank you for your post. I have checked the arguments to the instruction and they're OK. However, I think it might be something to do with robot options. I later found out the the virtual controller I have on the robot studio does not have the PC Interface option (616-1). Once I built a new VC with this option on, I could start using the instructions without the error. :)