Skip to content

Pump-Simulation node

pump-simulation

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.

Pump-simulation

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:

  1. 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:

    create simulation pump

  2. Double click on the "inject" node to edit the properties. For more information, refer to Editing nodes.

  3. Double click on the "scenario inject" node to edit the properties.

    • Name: Standard
    • Payload: timestamp
  4. Double click on the "standard scenario inject" node to edit the properties.

    • Name: pluggingBeforePump
    • Payload: pluggingBeforePump (string)
  5. Double click on the "pluggingAfterPump scenario inject" node to edit the properties.

    • Name: pluggingAfterPump
    • Payload : pluggingAfterPump (string)
  6. Double click on the "pluggingBeforePump scenario function" node to edit the properties.

    • Code: msg.scenario = 'pluggingBeforePump'; return msg;
  7. Double click on the "pluggingAfterPump scenario function" node to edit the properties.

      • Code: msg.scenario = 'pluggingAfterPump';return msg;
  8. Double click on the "pump" node to edit the properties.

  9. Double click on the "pump" node to edit the properties.

    • Mode: Whole scenario simulation
    • Asset: Click Select icon to select an existing pump asset or create a new pump asset and click "OK".

    edit pump node

Using "Create New Asset" button, you can create an asset for the pump in Industrial IoT.

  1. 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']}
  2. Double click on the "map" node to edit the properties.

    • Name: Motor_Current
    • Provided code: { Motor_Current: element['Motor_Current'], _time: element['_time']}
  3. Save and execute the flow.

The following graphic shows the graphs in the message payload:

For standard scenario

standard scenario

For pluggingBeforePump scenario

Pulggingbeforepump scenario

For pluggingAfterPump scenario

PluggingAfterPump scenario

Real time simulation

To generate the time series data with three different scenarios with simulated water pump, follow these steps:

  1. 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:

    simulation water pump

  2. Double click on the "inject" node to edit the properties. For more information, refer to Editing nodes.

  3. Double click on the "scenario inject" node to edit the properties.

    • Name: Standard
    • Payload: timestamp
  4. Double click on the "standard scenario inject" node to edit the properties.

    • Name: pluggingBeforePump
    • Payload: pluggingBeforePump (string)
  5. Double click on the "pluggingAfterPump scenario inject" node to edit the properties.

    • Name: pluggingAfterPump
    • Payload : pluggingAfterPump (string)
  6. Double click on the "pluggingBeforePump scenario function" node to edit the properties.

    • Code: msg.scenario = 'pluggingBeforePump'; return msg;
  7. Double click on the "pluggingAfterPump scenario function" node to edit the properties. - Code: msg.scenario = 'pluggingAfterPump';return msg;

  8. Double click on the "pump" node to edit the properties.

    • Mode: Real time simulation
    • Asset: Click Select icon to select an existing pump asset or create a new pump asset and click "OK".
  9. Save and execute the flow.

The following graphic shows the graphs in the message payload:

For Standard scenario

Standard scenario

For pluggingBeforePump scenario

PluggingbeforePump scenario

For pluggingAfterPump scenario

PluggingafterPump scenario


Last update: October 7, 2024