Pump-Simulation node¶
The "pump" node allows to generate the time series data of a simulated water pump. The two modes in water pump simulation provides the following function:
Whole scenario simulation¶
In this simulation mode, each trigger generates time series for the desired past time. It generates one time series object for each second. You can choose the scenario length in the configuration or specify the desired scenario using the property message.scenario.
Real time simulation¶
In this simulation mode, each trigger generates time series that fill the gap in the last execution, but not longer than 30 minutes (1800 time series). You can specify the next scenario by sending message with the property scenario. The simulation accepts the next scenario but does not send any message.
Using Pump-Simulation node¶
In F&B industry, pumping liquids is one of the most frequent operations. Disturbance in pumps can cause interruptions in production process and downstream supply chain. If many pumps are in operation, then localizing the error and correction causes unplanned maintenance and costs.
Usage of Industrial Internet of Things during pump operation enables to minimize down times and keep the production running constantly.
Simulating water pump node generates the time series data with three different scenarios like standard, plugging before pump and plugging after pump.
Objective¶
To monitor the pump installed on the bottling line in a brewery and connected to Industrial IoT. A pump consists of two valves (one before and one after), the pump and a fluid-flow meter as shown in the figure above. The pump is connected to a Siemens SIMATIC IoT2040 and collects the following data points: pressure before the pump (between the left valve and the pump), pressure after the pump (between the pump and the right valve), motor current of the pump, temperature of the motor (stuffing box) and percolation measured by the fluid-flow meter.
Whole scenario simulation¶
To generate the time series data with three different scenarios with simulated water pump, follow these steps:
-
From the node palette, drag and drop the following nodes from the respective palettes to the working area:
- Inject node
- Scenario inject node
- Scenario function node
- Pump node
- Map node
Connect the nodes in a flow as shown below:
-
Double click on the "inject" node to edit the properties. For more information, refer to Editing nodes.
-
Double click on the "scenario inject" node to edit the properties.
- Name: Standard
- Payload: timestamp
-
Double click on the "standard scenario inject" node to edit the properties.
- Name: pluggingBeforePump
- Payload: pluggingBeforePump (string)
-
Double click on the "pluggingAfterPump scenario inject" node to edit the properties.
- Name: pluggingAfterPump
- Payload : pluggingAfterPump (string)
-
Double click on the "pluggingBeforePump scenario function" node to edit the properties.
- Code:
msg.scenario = 'pluggingBeforePump'; return msg;
- Code:
-
Double click on the "pluggingAfterPump scenario function" node to edit the properties.
-
- Code:
msg.scenario = 'pluggingAfterPump';return msg;
- Code:
-
-
Double click on the "pump" node to edit the properties.
-
Double click on the "pump" node to edit the properties.
- Mode: Whole scenario simulation
- Asset: Click to select an existing pump asset or create a new pump asset and click "OK".
Using "Create New Asset" button, you can create an asset for the pump in Industrial IoT.
-
Double click on the "map" node to edit the properties.
- Name: Motor_Current, Passage
- Provided code:
{ Motor_Current: element['Motor_Current'], _time: element['_time'], Passage: element['Passage']}
-
Double click on the "map" node to edit the properties.
- Name: Motor_Current
- Provided code:
{ Motor_Current: element['Motor_Current'], _time: element['_time']}
-
Save and execute the flow.
The following graphic shows the graphs in the message payload:
For standard scenario
For pluggingBeforePump scenario
For pluggingAfterPump scenario
Real time simulation¶
To generate the time series data with three different scenarios with simulated water pump, follow these steps:
-
From the node palette, drag and drop the following nodes from the respective palettes to the working area:
- Inject node
- Scenario inject node
- Scenario function node
- Pump node
Connect the nodes in a flow as shown below:
-
Double click on the "inject" node to edit the properties. For more information, refer to Editing nodes.
-
Double click on the "scenario inject" node to edit the properties.
- Name: Standard
- Payload: timestamp
-
Double click on the "standard scenario inject" node to edit the properties.
- Name: pluggingBeforePump
- Payload: pluggingBeforePump (string)
-
Double click on the "pluggingAfterPump scenario inject" node to edit the properties.
- Name: pluggingAfterPump
- Payload : pluggingAfterPump (string)
-
Double click on the "pluggingBeforePump scenario function" node to edit the properties.
- Code:
msg.scenario = 'pluggingBeforePump'; return msg;
- Code:
-
Double click on the "pluggingAfterPump scenario function" node to edit the properties. - Code:
msg.scenario = 'pluggingAfterPump';return msg;
-
Double click on the "pump" node to edit the properties.
- Mode: Real time simulation
- Asset: Click to select an existing pump asset or create a new pump asset and click "OK".
-
Save and execute the flow.
The following graphic shows the graphs in the message payload:
For Standard scenario
For pluggingBeforePump scenario
For pluggingAfterPump scenario