# Node-Red SpB SCADA

**URL:** <https://discourse.nodered.org/t/node-red-spb-scada/57733>\
**Category:** General\
**Tags:** mqtt\
**Created:** [3 February 2022 16:59 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733 "2022-02-03T16:59:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aallen](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aallen](https://discourse.nodered.org/u/aallen)\
**Post date:** [3 February 2022 16:59 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/1 "2022-02-03T16:59:27Z")

</div>

I do not know what belongs in this field, can somebody please help me? I would like to use the store and forward feature.

 ![Screen Shot 2022-02-03 at 10.40.28 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c867d66977ab87e087f0366dcc016aa3d697dc5.png)

---

<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:** [3 February 2022 17:30 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/2 "2022-02-03T17:30:31Z")

</div>

Welcome to the forum @aallen

I haven't used that node, but have you tried starting with the example flow in the readme? Or is that what you are trying to do?

---

<div class="post-metadata">

**Author:** ![aallen](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aallen](https://discourse.nodered.org/u/aallen)\
**Post date:** [3 February 2022 18:08 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/3 "2022-02-03T18:08:01Z")

</div>

I have, they dont have that field configured in the example flow.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [3 February 2022 18:09 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/4 "2022-02-03T18:09:52Z")

</div>

Can you tell us a little more about what you are trying to do please?

---

<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:** [3 February 2022 18:11 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/5 "2022-02-03T18:11:03Z")

</div>

Does this help?

> <https://github.com/thomassorensen2650/node-red-contrib-mqtt-sparkplug-plus/issues/2>
>
> Hi, on the instructions for the mqtt-sparkplug-broker, it says 
> 
> "Enable Store… Forward
> This will enable store forward if the Primary SCADA is offline
> 
> Destination
> This is the name of the Primary SCADA. If store forward is enabled and the STATE/\[PRIMARY SCADA NAME\] is OFFLINE, then data will be buffered until connection is reestablished."
> 
> I have setup the context but what does it mean by Primary SCADA? If I input a value (name) in the destination, the mqtt-sparkplug-device node never connects to my mqtt server and says destination offline.
> 
> Could you please point me in the right direction?
> 
> !\[image\](https://user-images.githubusercontent.com/86070742/149545579-46fd6579-3d5d-461f-a2ac-5c02e0d229dd.png)
> 
> !\[image\](https://user-images.githubusercontent.com/86070742/149545816-ed41947e-51b5-41c6-8d3a-391bc76767e1.png)

---

<div class="post-metadata">

**Author:** ![aallen](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aallen](https://discourse.nodered.org/u/aallen)\
**Post date:** [3 February 2022 18:13 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/6 "2022-02-03T18:13:17Z")

</div>

I have many sensors and transducers that are giving their outputs to our groov Epic / groov Rio PLC. I am trying to send that data to a mosquitto broker, and our Canary system should retrieve the data from the broker.  
From my understanding, Canary only accepts SparkplugB payloads.  
The mosquitto broker is installed on a raspberry pi on the same network.  
The Canary historian is also located on the same network.

I am trying to utilize the "Store Forward" to save the data even if it cannot be delivered, so that way when connection is established again, the data is not lost and is "forwarded".

---

<div class="post-metadata">

**Author:** ![Darshan](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@Darshan](https://discourse.nodered.org/u/Darshan)\
**Post date:** [24 March 2022 00:42 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/7 "2022-03-24T00:42:52Z")

</div>

I have had a read of the Primary SCADA buffering article on Github, however it doesn't state the reason. It just states the need of a compliant Sparkplug B destination that sets a STATE/[WHATEVER NAME YOU DEFINE] to ONLINE.

We do have a Compliant Sparkplug B destination -- Ignition 8.1.15. Wonder if there are any settings that I may be missing. I have tried the EMQX server address tcp://emqx:1883 as well, but not helpful.

---

<div class="post-metadata">

**Author:** ![Darshan](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@Darshan](https://discourse.nodered.org/u/Darshan)\
**Post date:** [24 March 2022 01:40 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/8 "2022-03-24T01:40:33Z")

</div>

Figured it out, at least for this issue.  
We need to specify in Nodered for the Sparkplug module in its Properties on the Sparkplug Tab, the Destination Name.(e.g: Node-Red-Destination).

Now we need to configure this name in the MQTT Engine module on Ignition Gateway, on its General Tab, in the Primary Host ID. Match the two names and the Connection is established  
Solved this. However, my store and forward still remains to be sorted. Any pointers?

---

<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:** [23 May 2022 01:41 UTC](https://discourse.nodered.org/t/node-red-spb-scada/57733/9 "2022-05-23T01:41:27Z")

</div>

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