# Send TCP y'' coordinate to PLC via Profibus S4C+

**URL:** <https://tech-community.robotics.abb.com/t/send-tcp-y-coordinate-to-plc-via-profibus-s4c/9744>\
**Category:** RAPID Programming\
**Created:** [October 12, 2020, 1:51pm UTC](https://tech-community.robotics.abb.com/t/send-tcp-y-coordinate-to-plc-via-profibus-s4c/9744 "2020-10-12T13:51:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teodoro1998](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@Teodoro1998](https://tech-community.robotics.abb.com/u/Teodoro1998)\
**Post date:** [October 12, 2020, 1:51pm UTC](https://tech-community.robotics.abb.com/t/send-tcp-y-coordinate-to-plc-via-profibus-s4c/9744/1 "2020-10-12T13:51:21Z")

</div>

Hi,

I’ve got a robot with a S4C+ controller, and I need to send the tcp y’’ coordinate to a PLC via profibus.

I understand I can obtain the y value with the function CPos which is data type: pos,  
At the moment the system only uses Digital I/O signal.

As I’m new to all of this,  
could someone help me to understand how will I be able to send that variable via profibus ?

Will I need to convert this "pos data type " to num, int or word ??? will I need to  
re-configure the robot Profibus using Softing Profibus DP Configurator ?

Many thanks

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 12, 2020, 3:51pm UTC](https://tech-community.robotics.abb.com/t/send-tcp-y-coordinate-to-plc-via-profibus-s4c/9744/2 "2020-10-12T15:51:13Z")

</div>

I would configure it as an “analog” signal. That is, you can map it kind of like a group output but in the configuration you tell it to treat it like analog. That way you do not need a real analog card, you can send it over the profibus. I have posted some examples of such on here for other users. Try searching for similar posts or look through my posts. You simply put SetAO AOmyYposition, myCurrentpos.trans.y; Use the CRobT function to get the current position first. Do you have multitasking?

---

<div class="post-metadata">

**Author:** ![Teodoro1998](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@Teodoro1998](https://tech-community.robotics.abb.com/u/Teodoro1998)\
**Post date:** [October 13, 2020, 6:29am UTC](https://tech-community.robotics.abb.com/t/send-tcp-y-coordinate-to-plc-via-profibus-s4c/9744/3 "2020-10-13T06:29:42Z")

</div>

Thanks for your advise. Yes, I do have multitasking, will I need to create a new task to obtain this value in real or close to real time?

Thanks

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 13, 2020, 12:02pm UTC](https://tech-community.robotics.abb.com/t/send-tcp-y-coordinate-to-plc-via-profibus-s4c/9744/4 "2020-10-13T12:02:36Z")

</div>

I think that a background task is a good way to go about it.
