⬆️ ⬇️

Building complex SCADA (bad example)

Sometimes the developer can not always participate in the development of the project from scratch and is forced to work with what is, there is not always an adequate technical task, but the system must eventually come out supported.

"Design, analysis of the resulting and the next iteration, until we achieve an acceptable result."

This slogan is not applicable in the case when you do not even remotely represent the final result of the work. Pledged equipment with a 2-fold margin does not withstand new requirements, and full processing is unacceptable due to the overhead of reassembly. In the text there will be a couple of screenshots of the visualization and the FDB editor for the project (all of our internal products) ...



The gloomy expert will say: “What kind of developer, if he does not understand the ultimate goal of his work ...” - just read the steps.



Act 1 "Technology" - (line cleaning product - it is also the ultimate goal)


Characters:

- PLC - ICP-7188XA (icp das) (2 - 485 ports, 2 - 232 ports, 1 of them for communication with a PC);

- DIO 4.3 I / O cards - minus 485 PLC port;

- PDAT, PRKS sensor boards - minus 485 PLC port;

- Frequency drive Delta - 3 pcs. (RS485);

- Scales Gelios (NPF) -3 pcs .;

- MOXA cp132 expansion board - 2 ports;

- Personal computer, Windows XP operating system SP3;

Restrictions - no more than 7 boards per port (64 channels each) with one exchange protocol



Controlled machines - 66, valves and valves 84. Also, position sensors and availability. Machines, valves - on control boards, sensors on sensor boards.

')

Tasks:



We clarify the work of chastotnikov - just be able to adjust the frequency by the operator. So you can not overload the PLC, and add to the upper level of this opportunity. Expansion Board takes scales and chastotniki.

Then everything is simple: we rivet the logic (functionally block diagrams - RoboPlant environment), we render.



We get something like this:



image



We are testing

We let in work. Work cycle 1.01 sec.



Worked continuously 24 hours - checked. Development from 0, no questions. The solution, at least, is not bad.



Act 2 "Technology" - (complicate)


Worked N time, decided to optimize production. How?



Tasks:





It is not an option to start scales and chastotniki in the PLC - in any case, the operator should see WHAT happens to the line,

autonomous adjustment of performance, or shutdown is unacceptable - in either case are accompanied by costs: high load on the warehouse or lack of product for the warehouse.



Resolved - we bind to the upper level, we do the processing once a second - the performance is calculated over a longer interval (kg / h), changing the parameters faster than once a second is not necessary. We check this solution in practice - it works.



We add new cars, we rule logic, visualization.



image


We put the customer. Minus We are tied to a personal computer, its failure disables our buns from the game. Not critical. Worked continuously 24 hours - checked. Work cycle 1.35 sec.



Act 3 "Packing" - (product packaging line, the ultimate goal to link with the previous project)


The client worked with the system, estimated the performance gain, matured to a new line.



Characters:

- PLC - ICP-7188XA (icp das) (2 - 485 ports, 2 - 232 ports, 1 of them for communication with a PC);

- DIO 4.3 I / O cards - minus 485 PLC port;

- PDAT, PRKS sensor boards - minus 485 PLC port;

- Scales Gelios (NPF) - 12 pcs .;

- MOXA cp132 expansion board - 2 ports;

- Personal Computer;



Tasks:



The number of machines 95, the number of valves 166, + 19 non-standard three-position valves. Problem: the grouping and the layout of the boards do not allow to get everything on one PLC - we organize another one - reassembly is more expensive.



One is responsible for the car, the second for the valve and valve.



image



The interaction between them through the PC is a failure solution and a major error. Terms of work did not allow to establish interaction between the ICP directly. We dig up ourselves even deeper connection with the "technology" through a PC.



We check the work as it should be 24 hours continuously - it goes.



The next unpleasant moment - the scales were not at the beginning of the line but in the middle! The failure of the technologist, the designer - it does not matter anymore - we work with what we have. The length of the working lines and their capacity is different - in order to achieve a given weight on the scales, we still have machines with K product volume. There is nothing to do - we introduce an amendment for each line, how much scales should not reach. We test - it works with an accuracy of 200 kg. by 6 tons for example 3.3% for the short line, 450 kg for 6 tons - 7.5% for the long line - the customer agrees. Processing in the top level of SCADA. Worked continuously 24 hours - checked.



Stable operation until first freeze


As befits a sistemnik after some time, he became thoughtful at the “Packing” work was suspended. Local quickly sorted - restarted - works. But the sediment remained.



The system, and the system has already continued to consolidate and included another project from 2 PLCs, + one common PLC to the aspiration network + 1 PLC to the new packaging line.

Total 7 relatively reliable PLCs working with each other through relatively unreliable PC intermediaries.

From then until the replacement of the PLC group by one, a lot of nerves and forces were spent on support and modernization based on the intel atom NISE-105.



Summary:

For myself, I noted a few important points.

Source: https://habr.com/ru/post/308506/



All Articles