# How To Read a WSTRING From Bosh Rexroth CtrlX PLC Tag to Node Red

**URL:** <https://discourse.nodered.org/t/how-to-read-a-wstring-from-bosh-rexroth-ctrlx-plc-tag-to-node-red/92288>\
**Category:** General\
**Tags:** function-node\
**Created:** [10 October 2024 11:32 UTC](https://discourse.nodered.org/t/how-to-read-a-wstring-from-bosh-rexroth-ctrlx-plc-tag-to-node-red/92288 "2024-10-10T11:32:33Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [11 October 2024 08:58 UTC](https://discourse.nodered.org/t/how-to-read-a-wstring-from-bosh-rexroth-ctrlx-plc-tag-to-node-red/92288/5 "2024-10-11T08:58:38Z")

</div>

> [@DaVizzey](#):
>
> What comes out from the Debug: D2441

Please use the **copy value** button

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

  

* * *
  

> [@DaVizzey](#):
>
> - What's Inside the Function:
> 
> ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/9/99ba555dd398406ed155e53dd0ba9eb5c4b53e7a.png)

when posting code please post the code in a code block

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

  

* * *
  

> [@DaVizzey](#):
>
> I want the Value from the READ node to replace a msg.payload field in the Message

All your function does is set a variable named `DATE`.  
Typically, you would set `msg.payload` not a new variable!

---

_[View the full topic](https://discourse.nodered.org/t/how-to-read-a-wstring-from-bosh-rexroth-ctrlx-plc-tag-to-node-red/92288)._
