# Communication using socket Program

**URL:** <https://tech-community.robotics.abb.com/t/communication-using-socket-program/2313>\
**Category:** Developer Tools\
**Created:** [November 20, 2008, 3:33pm UTC](https://tech-community.robotics.abb.com/t/communication-using-socket-program/2313 "2008-11-20T15:33:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@ravi](https://tech-community.robotics.abb.com/u/ravi)\
**Post date:** [November 20, 2008, 3:33pm UTC](https://tech-community.robotics.abb.com/t/communication-using-socket-program/2313/1 "2008-11-20T15:33:16Z")

</div>

Hi,  
I am using sockets for communication between Robot Studio Rapid program and another program from MS VS2008 Csharp.I would like to recieve the data from the Csharp program and used it in the rapid code.  
For example : I will send a number of type double and would like to receive it as type “num” in RAPID .Is this possible? If so How do I do it.  
If you need further details/calirifactions let me know.

Br  
Ravi

---

<div class="post-metadata">

**Author:** ![Klaus](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Klaus](https://tech-community.robotics.abb.com/u/Klaus)\
**Post date:** [November 22, 2008, 10:01am UTC](https://tech-community.robotics.abb.com/t/communication-using-socket-program/2313/2 "2008-11-22T10:01:04Z")

</div>

Hi Ravi.  
I have worked with raw bytes but gets some problems. There for i’m only using textstrings with socket. Convert your double to string in c#. Send it by socket to the robot and then convert it to num( StrToNum). Remember to replace , with . (Ascii 46 and ascii 44).  
If you need more help just ask

Br. Klaus
