# I want to use modbus-write to receive string data

**URL:** https://discourse.nodered.org/t/i-want-to-use-modbus-write-to-receive-string-data/83071
**Category:** General
**Created:** [22 November 2023 07:24 UTC](https://discourse.nodered.org/t/i-want-to-use-modbus-write-to-receive-string-data/83071 "2023-11-22T07:24:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![suwan.a](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@suwan.a](https://discourse.nodered.org/u/suwan.a)
#### Post date: [22 November 2023 07:24 UTC](https://discourse.nodered.org/t/i-want-to-use-modbus-write-to-receive-string-data/83071/1 "2023-11-22T07:24:26Z")

</div>

I want to use modbus-write to get data from a previous function. Numeric data can be displayed. But the string data cannot be displayed. What should I do next?

 ![node-red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3db265f8e2dd621ef8bc98397f5290b81e9d9772.jpeg)  
 ![plc](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4e53fd63594c6948b5834b8fe9836bf0ca08370b.jpeg)

---

<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: [22 November 2023 07:52 UTC](https://discourse.nodered.org/t/i-want-to-use-modbus-write-to-receive-string-data/83071/2 "2023-11-22T07:52:26Z")

</div>

Delete every node from the beginning up to and including the join node.

Put one modbus read node to grab all 3 registers.

Pass that data into a buffer parser

Set 2 rows in the buffer parser:

1. ASCII, offset 0, length 4
2. Sint16be, offset 4, length 1

Coming out of the buffer parser, the payload should be an object with two entries.

* * *

Now for some background. Reading individual registers can lead to inconsistent data. It is also very inefficient for the network and the PLC.

See this article I did to help you better understand (5m read - well worth it)

> **[Modernize your legacy industrial data. Part 2. • FlowFuse](https://flowfuse.com/blog/2023/09/modernize-your-legacy-industrial-data-part2/)**
>
> A deeper dive with into making the most of legacy industrial data from the likes of Modbus and older, non IIoT protocols and putting it to work in an IIoT world.

---

<div class="post-metadata">

### Author: ![suwan.a](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@suwan.a](https://discourse.nodered.org/u/suwan.a)
#### Post date: [22 November 2023 09:53 UTC](https://discourse.nodered.org/t/i-want-to-use-modbus-write-to-receive-string-data/83071/3 "2023-11-22T09:53:39Z")

</div>

What do I have to do to display the values ​​on the PLC?

 ![HMI_Node-red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/5/656cdb0c92de612b4d638a8c3c77b506d31b5baa.jpeg)

---

<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: [21 January 2024 09:54 UTC](https://discourse.nodered.org/t/i-want-to-use-modbus-write-to-receive-string-data/83071/4 "2024-01-21T09:54:29Z")

</div>

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