RobotStudio event

Socket Communication in Robot Studio

Hi,
  I am trying to do Socket Connection in Robot Studio 5.11.

The main idea is to do a TCP/IP based communication with the Robot.At present I am doing it in offline mode(Using Virtual Controller).

I enabled the communication part1 and Part2 in Virtual Controller(Create/Modify Station).

Here is the part of the code

 

MODULE Own_Socket

    VAR socketdev Server1 ;
    VAR socketdev Client1;

    PROC main()
    SocketCreate Server1

ENDPROC
ENDMODULE

If I compile the above code I get the error "Error 161 : Option is missing. : The instruction SocketCreate requires the option PC Interface.    12.11.2008 00:29:29    RAPID    "

I hope this is because of some part in Communication are not enabled.

Could any one guide me on how to do this?

BR

Ravi

Comments

  • Try adding the option PC interface in your virtual system via the system builder.
    Russell Drown
  • I tried it...but no luck
  • I tried it but no luck....
  • Tried your module in a vc with the option PC interface and it compiled ok except for a missing ; after SocketCreate Server1


    What RobotWare version are you using?
    Per Svensson
    Robotics and Vision Specialist
    Consat Engineering
  • Hi thanks for the reply.I got it running..its a mistake from my side.
  • Hello Friends,

    i have add pc interface through system builder but still I get the error "Error 161 : Option is missing. : The instruction SocketCreate requires the option PC Interface.

    Please give some information how to get rid of it.

    Regards
    Tarun Patel


  • Hello Tarun,
     

    Double check that you are actually running the virtual controller with the PC Interface option. (See System Information).  

     

    This does work correctly when the option is there.

     

       Steve

     
  • Hello Steve

    Thanks for your reply.

    it's working now.

    Tarun
  • Hey guys,

    I have a similar problem as ravi. I am trying to make a server program in RobotStudio to interact with python 2 client code. I already made a simple client-server application and in offline programming it works great. The problem is that when I put the code from RobotStudio in the actual IRC5 Robot Controller it gives the error: Error 161 : The instruction SocketCreate requires the option Socket. 
     After entering in the System properties/Control module/Options from the TeachPendant I saw that the: Socket Messaging [619-1] is not installed in the controller and I believe this is why I cannot work with sockets at this point in time. How can I fix this problem? I hope that someone can help me

  • Hy guys,

    Concerning the problem above, I also made a program in RobotStudio that interacts with Python code. My problem is that the program in RobotStudio is working but after downloading the program in the actual Robot Controller it gives the exact same error that 'ravi' got (Error 161 : The instruction SocketCreate requires the option Socket). 
    On the TeachPendant Error screen at Action it states that I should update the system image with the required option.
    My question is how should I do this?? The Controller type is IRC5 M2004. 

    Can anybody help?
    Thanks in advance