# Combine 3 modbus registers with one gpio input to make a logic

**URL:** <https://discourse.nodered.org/t/combine-3-modbus-registers-with-one-gpio-input-to-make-a-logic/61205>\
**Category:** General\
**Created:** [12 April 2022 21:56 UTC](https://discourse.nodered.org/t/combine-3-modbus-registers-with-one-gpio-input-to-make-a-logic/61205 "2022-04-12T21:56:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n1k0nx](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@n1k0nx](https://discourse.nodered.org/u/n1k0nx)\
**Post date:** [12 April 2022 21:56 UTC](https://discourse.nodered.org/t/combine-3-modbus-registers-with-one-gpio-input-to-make-a-logic/61205/1 "2022-04-12T21:56:38Z")

</div>

Hello  
I'm new here, first of all for my poor english! I'm studying to do a simple logic where I read some value as temperature, heat/cool value and one gpio input and I'm trying to combine in this way:  
If heat and gpio is up copy the set point and add 2 degree to set point command if heating mode and till gpio is up, after gpio become down send the previous value read before gpio input was up.  
the opposite for calling mode. This is a simple logic for connect the photovoltaic to climate.  
thank you in advance and best regards  
luca

---

<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:** [11 June 2022 21:57 UTC](https://discourse.nodered.org/t/combine-3-modbus-registers-with-one-gpio-input-to-make-a-logic/61205/2 "2022-06-11T21:57:38Z")

</div>

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