# MODBUS 16bit SIGNED INTEGER

**URL:** <https://discourse.nodered.org/t/modbus-16bit-signed-integer/25362>\
**Category:** General\
**Created:** [23 April 2020 12:27 UTC](https://discourse.nodered.org/t/modbus-16bit-signed-integer/25362 "2020-04-23T12:27:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 April 2020 14:38 UTC](https://discourse.nodered.org/t/modbus-16bit-signed-integer/25362/6 "2020-04-23T14:38:05Z")

</div>

To use the data as in the debug then you can do, for each item in the array  
`msg.payload[i] = (msg.payload[i] << 16) >> 16`

---

_[View the full topic](https://discourse.nodered.org/t/modbus-16bit-signed-integer/25362)._
