# Parsing Omron data using buffer node

**URL:** <https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653>\
**Category:** Industrial\
**Created:** [3 June 2021 12:29 UTC](https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653 "2021-06-03T12:29:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [3 June 2021 12:29 UTC](https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653/1 "2021-06-03T12:29:15Z")

</div>

Struggling to get the setting correct to read a float value from PLC. So far managed to get bytes and words no issue.  
throws an buffer out of bounds error, so I'm assuming I'm not specifying something large enough

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46a0362ff2d3643832df301a288c5ca2b5405545.png)

---

<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:** [3 June 2021 13:23 UTC](https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653/2 "2021-06-03T13:23:57Z")

</div>

if you are trying to read 2 floats then you will need a buffer of 8 bytes in the incoming data. check the payload going into buffer parser. Best off setting the output of the FINS node to return a buffer (if not already) & send it to a debug to check there are at least 8 bytes.

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [3 June 2021 14:09 UTC](https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653/3 "2021-06-03T14:09:31Z")

</div>

I will try this, I'm only trying to read the one float.

---

<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:** [3 June 2021 14:11 UTC](https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653/4 "2021-06-03T14:11:59Z")

</div>

If you only want 1 float then only set the length to 1.

The instructions for using buffer parser are in the built in help on the side-bar.

---

<div class="post-metadata">

**Author:** ![JoshuaG](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Post date:** [4 June 2021 07:16 UTC](https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653/5 "2021-06-04T07:16:47Z")

</div>

Sorted. on the Fins connection I was only pulling in 1 word, A float is 2 long so there was my issue.

Thanks Steve

---

<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:** [18 June 2021 07:17 UTC](https://discourse.nodered.org/t/parsing-omron-data-using-buffer-node/46653/6 "2021-06-18T07:17:34Z")

</div>

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