---
description: Mathematical Model Based Proses Control
---

# Processes

Mathematical Model Based Process Control (MMBPC) development allows you to mathematically model and associate your processes and equipment and assets within the inSCADA platform with real-time data.  In this way, you can build simulation, visualization, and artificial intelligence (AI) control mechanisms on the following elements:

* Power Lines ,
* Electronic Circuits,
* Water Distribution Networks,
* Production, Manufacture Processes,
* All Types of Process P\&ID Diagrams.

&#x20;

{% hint style="info" %}
The MMBPC system is a new approach and the system is not customized for any area (e.g. power lines, water distribution networks). It is designed as an open architecture. You can customize your platform for an area of your choice. You can prepare a special library for mathematical models with symbols related to the equipment such as generators, breakers, circuit breakers for electrical lines.
{% endhint %}

## Why Use?

#### A Simple Problem

In order to give a clear answer to this question, we should first examine the classical design and application methods using an example.

![ Figure 1 : Electrical Single Line Diagram](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-Lk3Kzfz-k-a9ufJuGgQ%2F-Lk3L2y_aLVftYjdcEw5%2FDevre%201.svg?alt=media\&token=4d03a6fe-2dbf-43f7-b038-f6e9217bf6fe)

Consider a simple electrical single-line diagram as shown in Figure 1. Let's try to design an animation (mimic) screen using the visualization techniques of traditional SCADA software of a single line diagram seen in this example.

![Figure 2 : Visualisation part of the diagram  ](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-Lk3Kzfz-k-a9ufJuGgQ%2F-Lk3_D0N_7v10htdn5ym%2FDevre%202.svg?alt=media\&token=8b7315cc-2bbb-4994-b222-6cdac41d925b)

As shown in Figure 2, if we want to visualize a part of the diagram in the SCADA software, we need the following variables (Variables / Tags);&#x20;

* Generator 1 Voltage value : G1\_Voltage (if value>0 then G1 energized/running)
* CB1 Open/Close position digital signal : CB1\_Open (Open=1,Close=0)

To make a visualization, as in this small example, we need to link GND, B1, CB1, B1, G objects to our variables directly or after passing through a series of logical expressions.

These statements are basically as follows;

Let Generator 1 (G) be lime if it has energy, otherwise red.

```javascript
// Generator 1 (G1)
if (G1_Voltage>0) {
    G1Object.color : 'LIME';
} else {
    G1Object.color : 'RED';
}
```

Let the Circuit Breaker 1 (CB1) object be 'red open position' when open circuit, 'green closed position' when powered closed circuit, 'red closed position' when powerless closed circuit.

&#x20;

```javascript
// Circuit Breaker 1 (CB1)
if (CB1_Open=1) {
    CB1.state:'CB_OPEN_RED';
} else {
    if (G1_Voltage>0) {
        CB1.state:'CB_OPEN_GREEN';
    } else {
        CB1.state:'CB_OPEN_RED';
    }
}
```

So far, for this small example, we need to create similar expressions on our basic objects or linked to them on platforms where we develop applications. There may be some slight differences depending on the platform we use.&#x20;

Although it may seem complete at first glance, we have not yet written any statements for line objects B1 and B2, and we have not yet included the states of other circuit breaker equipment and power supplies (such as G1, Grid) in addition to CB1. Electrically, we can see that the impact of other equipment on this part of our process cannot be ignored. Simply put, we know that when the G2 generator is active and the circuit breakers in front of it are closed, it will affect our line objects B1 and B2. Considering all these dependencies, if we try to write expressions to all line objects, we will have to do a circuit analysis for each line object and write long expressions.

You may have simplified these methods in a traditional SCADA software with different techniques, and you may have found very short solutions on some open architectures. You may even have used SCADA software or third party software solutions for the specific electrical field, even for such electrical applications. Moreover, you may have used some specific SCADA software or other third party software solutions for these types of electrical applications.

However, inSCADA dealt with the solution of similar problems mentioned here with a model-based process control approach and provided solutions. In this way, users have the opportunity to develop on a platform that is much more practical, open architecture that can be customized according to the field.&#x20;

#### Our Solution

InSCADA, with a MMBPC approach, treats process equipment and assets as a mathematical function and the functions of these equipment and assets as the mathematical model of the process.

$$
y=f(x1,x2,x3).
y : Mathematical Model,
x1,x2,x3 : Model paremeters.
$$

![Figure 3 : Visualization part of the diagram](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-Lk3Kzfz-k-a9ufJuGgQ%2F-Lk3_D0N_7v10htdn5ym%2FDevre%202.svg?alt=media\&token=8b7315cc-2bbb-4994-b222-6cdac41d925b)

&#x20;Let us consider the system in Figure 3, which we have previously discussed, with our new approach.



![Figure 4 : Mathematical Model-Based Approach](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-Lk48V1AEoRjcZ8Hp_qx%2F-Lk4B6nVK40UMSeisDKB%2FDevre%203.svg?alt=media\&token=592dd0f2-78c9-4655-b0f9-28900ac0a753)

As shown in Figure 4, our new approach focuses only on the equipment and the common points we call BUS. inSCADA MMBPC system requires the mathematical functions of GND, CB1, BUS and G objects/equipment for this exemplary system. It does not deal with objects B1 and B2, as shown again in Figure 4. It considers the connection lines between objects/models as the connections used to transfer parameters.

Now let's design the example application problem, we have given above, in inSCADA.

![Figure 5 : inSCADA Proses Designer](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-Lk4Jt9HLN_xzM6yrB6v%2F-Lk4Ox1srFLN07CA_AZY%2FProses_Simple_Problem.png?alt=media\&token=430fa01f-95e7-490f-bfd6-ea492ce76556)

In the example of Figure 5, we see the system prepared in inSCADA Process Designer. Process Designer is also explained in detail. Here, while designing our sample single-line circuit in the inSCADA platform, we will briefly mention the tools provided and the parameters requested by inSCADA.

As shown in Figure 5, we carry the model we want to use in our process from our library of mathematical models (A) to our designer screen by drag-and-drop method. On the right side of the selected model (B) in the designer in the middle part, the parameters form (C) opens and requests the parameters related to the selected model. To set up our process, we just need to repeat the same process for other equipment in the same way, as if setting up an electrical circuit.

&#x20; &#x20;

![Proses Designer](https://3585470428-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLGnZudlzfM63QD-_cp%2F-LjW43kKfVjEyDudHOXF%2F-LjW4fcJVK56YxFKBeaU%2FProcedure_Designer.png?alt=media\&token=68ac6774-f2a3-436a-90ec-18ca8d027993)

