*3.1.2 Problem 2. Integration of devices able to communicate through Modbus TCP/IP*

For the same process described in problem 1, include the input/output variables shown in **Table 3**, connected through Modbus TCP/IP at address 02.

**Figure 4.** *Example of Node-Red code for Problem 1.*


**Figure 5.** *Example of Node-Red dashboard for Problem 1.*


#### **Table 3.**

*Input/output variables for Problem 2.*

An example of Node-Red code for Problem 2 is available in this link https://bit. ly/3tpnv7x. It is possible to test this code with ModbusSlave, which enables simulation of slave devices [9]. The limitation is that this software runs only in Windows operating system. The dashboard integrating measurements from both sources Modbus RTU and TCP is shown in **Figure 6**.
