Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

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 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. :)