# Swapping data with Javascript

**URL:** <https://discourse.nodered.org/t/swapping-data-with-javascript/22831>\
**Category:** General\
**Created:** [9 March 2020 07:48 UTC](https://discourse.nodered.org/t/swapping-data-with-javascript/22831 "2020-03-09T07:48:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlessandroMonchieri](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@AlessandroMonchieri](https://discourse.nodered.org/u/AlessandroMonchieri)\
**Post date:** [9 March 2020 07:48 UTC](https://discourse.nodered.org/t/swapping-data-with-javascript/22831/1 "2020-03-09T07:48:17Z")

</div>

Hi everyone. I have a problem with my Node-Red project.  
I just want to read a data from Siemens PLC and then pass this value to a javascript function without using protocol like WebSocket.  
In this moment i'm connecting to a PLC Siemens S7-1500 using "S7 node".  
The Js function will be read in a WebServer application (this function is recalled by a HTML page). I have already done stuff like that by using a WebSocket system but in this case i don't need that kind of protocol. If you know how to do it please let me know! Thank you all previously! 😀

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 March 2020 08:39 UTC](https://discourse.nodered.org/t/swapping-data-with-javascript/22831/2 "2020-03-09T08:39:24Z")

</div>

Do you mean you want to send data from node-red to a webserver on a different system?  
If so then one way is to use an http request node to POST it to the server.  
If that isn't what you mean then give more details please.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 May 2020 08:39 UTC](https://discourse.nodered.org/t/swapping-data-with-javascript/22831/3 "2020-05-08T08:39:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
