# Got issue in buffer parser node with Mc-protocol node

**URL:** <https://discourse.nodered.org/t/got-issue-in-buffer-parser-node-with-mc-protocol-node/95424>\
**Category:** General\
**Created:** [15 February 2025 15:40 UTC](https://discourse.nodered.org/t/got-issue-in-buffer-parser-node-with-mc-protocol-node/95424 "2025-02-15T15:40:33Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [16 February 2025 16:48 UTC](https://discourse.nodered.org/t/got-issue-in-buffer-parser-node-with-mc-protocol-node/95424/13 "2025-02-16T16:48:36Z")

</div>

> [@Jayeshpitale1](#):
>
> > data is not an array or a buffer
> 
> so what is the issue i am not understanding

The data going into the buffer-parser is not an array (of 16 bit integer) or a Buffer (of bytes)

By adding a debug to the output of the MC Read that is clear to see it is neither of those 2 requirements:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/5/35c0b08b758daa2debdf12b06f154a0f3cb718c7.png)

Ok, first thing first; You are only asking for 1 value from address D28 by setting `D28,1`. I wrote a LOT of help info [here](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/56) and [here](https://discourse.nodered.org/t/reading-multiple-addresses-from-mc-protocol-mitsubishi-fx-plc/92340/66) but I guess you didnt bother to learn that?

Ok, once more. **To make a 32 bit value, you NEED 2x16bit data values. E.g. Request `D28,2`**

Now, with the address correct, lets look at the MC-Read setting:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/5/856d1fe378ed03e786f4daeb684083c5e496f7ea.png)

You have NOT changed the output to `Array` Lets try that...

Close, but no cigar. You had the buffer parser set to convert the value to an `int16` - AND, the output set to `msg.payload1` Lets correct those (select `uint32(le)` type and set the output to `msg.payload`)

And it works...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/a/ba19dd3e2bc5746645a60fd9a4ba609e95d27c71.png)

  
  

> [@Jayeshpitale1](#):
>
> > "Error: Exception preparing the write buffer for item 'D28': RangeError [ERR\_OUT\_OF\_RANGE]: The value of "value" is out of range. It must be \>= -32768 and \<= 32767. Received 520000"
> 
> using this Flow

As I said in the last post, you really should read the help.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/e/1e4c2367dcbd5ea5cf85acef05fcef59a27007d2.png)

### Working Example:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e18008ffd4e5cb5e7973c5598c9b82cef3e9a1ce.png)

---

_[View the full topic](https://discourse.nodered.org/t/got-issue-in-buffer-parser-node-with-mc-protocol-node/95424)._
