# Node red communication with kepserverx

**URL:** <https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459>\
**Category:** General\
**Created:** [26 November 2019 13:35 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459 "2019-11-26T13:35:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammedtaha](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohammedtaha](https://discourse.nodered.org/u/mohammedtaha)\
**Post date:** [26 November 2019 13:35 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459/1 "2019-11-26T13:35:00Z")

</div>

hello, i'm triying to control a vfd throught plc siemens, i maked the connection with kepserverx and node-red, i'm now able to debug messages, the problem is that i'm not able to apply a function to filter messages, also i want to write into tags that i created from node red to kepserverx

 ![node red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/12cd811019845262650a5ce50f9f8f0f71461dd1.jpeg) ![node red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/12cd811019845262650a5ce50f9f8f0f71461dd1.jpeg)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [26 November 2019 14:00 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459/2 "2019-11-26T14:00:20Z")

</div>

Use/connect a json node after the mqtt-in node. (or change the mqtt-in output to json)

---

<div class="post-metadata">

**Author:** ![mohammedtaha](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohammedtaha](https://discourse.nodered.org/u/mohammedtaha)\
**Post date:** [26 November 2019 14:47 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459/3 "2019-11-26T14:47:25Z")

</div>

could you please explain, what can i do on the function to just have the "kepsie.siem.retour" message, what can i do to write on the external tags of the kepservex

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [26 November 2019 15:50 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459/4 "2019-11-26T15:50:39Z")

</div>

Follow what Bakman said, then see [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages) to get out the part that you need. You can use a change node for that.

---

<div class="post-metadata">

**Author:** ![johanon](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johanon/32/3335_2.png) [@johanon](https://discourse.nodered.org/u/johanon)\
**Post date:** [26 November 2019 20:12 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459/5 "2019-11-26T20:12:28Z")

</div>

Hos about writing back to Kepserver? Do you plan to use MQTT or OPC UA? Tried something already?

---

<div class="post-metadata">

**Author:** ![mohammedtaha](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mohammedtaha](https://discourse.nodered.org/u/mohammedtaha)\
**Post date:** [27 November 2019 10:18 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459/6 "2019-11-27T10:18:25Z")

</div>

NO, im planning to use mqtt, do you have any suggestion

---

<div class="post-metadata">

**Author:** ![johanon](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/johanon/32/3335_2.png) [@johanon](https://discourse.nodered.org/u/johanon)\
**Post date:** [27 November 2019 19:59 UTC](https://discourse.nodered.org/t/node-red-communication-with-kepserverx/18459/7 "2019-11-27T19:59:13Z")

</div>

No, not really any suggestions. I have tried both ways a little, but neither really satisfied me. With MQTT you need an additional Kepserver driver license, of course. Fair enough. But I never figured out how to pass status and source time stamp to the OPC tag. Which I needed. Going the other way with OPC UA, I used node-red-contrib-opcua to publish values and created a server with node-opcua for the adress space This was a lot more work and coding but at least kind of solved the tag status handling. This was a year ago and things may have changed.
