# Collect data from multiple PLCs on different networks

**URL:** https://discourse.nodered.org/t/collect-data-from-multiple-plcs-on-different-networks/36996
**Category:** General
**Created:** [4 December 2020 12:22 UTC](https://discourse.nodered.org/t/collect-data-from-multiple-plcs-on-different-networks/36996 "2020-12-04T12:22:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vasco123](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vasco123](https://discourse.nodered.org/u/vasco123)
#### Post date: [4 December 2020 12:22 UTC](https://discourse.nodered.org/t/collect-data-from-multiple-plcs-on-different-networks/36996/1 "2020-12-04T12:22:33Z")

</div>

I'm working on a project which the purpose is to collect data from a steering unit similar to a PLC. This unit is steering a fountain and i am using Node-RED to collect data from it. I can receive data from it if Node-RED and the steering unit is on the same network using Modbus Flex Getter and opening port 502 in the router. My problem is that i need to be able to collect the data from multiple fountains that have different networks and routers. How can i have one Node-RED flow collecting data from multiple steering units on different networks using Modbus TCP/IP?

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [4 December 2020 12:38 UTC](https://discourse.nodered.org/t/collect-data-from-multiple-plcs-on-different-networks/36996/2 "2020-12-04T12:38:47Z")

</div>

If each fountain is connected to a network and have access to internet somehow, you could maybe solve it by using MQTT and a public MQTT cloud solution

Imagine you have on each network installed a RPi also running Node-RED, responsible for collecting data from the fountain, then publish it to the MQTT cloud. Repeat this for all fountains and their networks. Then connect your main Node-RED solution to the same cloud and you should receive data from all connected fountains

Do you also need to be able to control the fountains from remote?

---

<div class="post-metadata">

### Author: ![vasco123](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vasco123](https://discourse.nodered.org/u/vasco123)
#### Post date: [4 December 2020 14:47 UTC](https://discourse.nodered.org/t/collect-data-from-multiple-plcs-on-different-networks/36996/3 "2020-12-04T14:47:01Z")

</div>

Thanks for the answear. I think this has to be the solution!

---

<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: [2 February 2021 14:47 UTC](https://discourse.nodered.org/t/collect-data-from-multiple-plcs-on-different-networks/36996/4 "2021-02-02T14:47:05Z")

</div>

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