Open-source pure C # Industrial Control Gateway + configuration software,

Source: Internet
Author: User

Open-source pure C # Industrial Control Gateway + configuration software,

I,Preface

Diving in the garden was also in year 78. I am ashamed to say that although I have been a fan of. NET for so many years, I have only been able to roll back a few unsavory posts, neither Publishing Code nor writing articles.

Looking at. NET and C # in foreign countries, the domestic market is declining. I also felt that it is necessary to write something.

II,Why open source? What can it do?

  • Open source is the trend of the times

It is no longer the time to sell software CD licenses. I developed this system myself and also benefited from open source.

The reason is that the configuration software used by the organization is plagued by copyright issues. At the same time, the system is very huge, and the installation, deployment, and debugging are inconvenient. At the same time, the script functions and expansion capabilities are limited.

At the beginning, I developed my own products. My colleagues complained that the configuration software was something a big company was playing with. I took a single shot and the figure was broken.

However, I am a fan and I have read hundreds of domestic papers, downloaded dozens of hundreds of open-source class libraries, studied them repeatedly, and often stayed up late.

After a period of time, a set of semi-finished products were gradually accepted by everyone, and some projects were gradually implemented, gradually replacing the original configuration software, and the system continued to mature and grow.

However, limited by energy and level, there is still a lot of space for system improvement, and there are still a lot of functions that can be improved. It is better to give it to the community and improve it together with others.

This system only provides a set of components and tools, and does not provide specific industry solutions and control logic (which cannot be open source ).

  • Goals and functions

From the very beginning, the design goal was very clear, replacing the existing configuration software of the Organization. Implement"How fast and easy".

The system architecture diagram is as follows:

 

It can be divided into the gateway driver layer, platform service layer, and application layer.

The gateway is responsible for converting various industrial Ethernet protocols and unified interfaces.

The Platform service layer is responsible for polling, storing, and pushing data. Provides various query and read/write interfaces.

The Application Layer mainly consists of man-machine interface (HMI) and various visual functional components, such as the alarm interface, trend chart, report, chart, order, parameter modification, and log query.

 

Multiple: Is to adapt to a wide range, such as industrial gateway can support a variety of industrial Ethernet, PLC, universal, can be applied to multiple industries.

Currently supported:

  • Modbus TCP/RTU
  • OPC DA
  • DDE
  • AB EtherNetIP
  • Mitsubishi
  • Siemens S300/200/1200/1500

Fast:There are three meanings: high design efficiency, Fast installation and deployment, and fast running.

 

 

There are convenient design tools. Driver, variable, alarm, archive manager, and so on, a simple configurator that supports various formats for import and export.

Next, the universe's first IDE, Visual Studio, serves as the configuration designer. The configuration designer is originally the most difficult part to implement. Now VS is a flash.

 

 

The speed is based on my own, to create a set of multi-section PC screen, fast within a day, slow is two or three days.

Running Speed: in batch read/write mode + subscription-Push mode, thousands of variables, hundreds of display units, including animations, 500 ms communication cycle, and smoothness.

Good:That is, the interface is beautiful, has complete functions, is easy to use, and has good scalability.

Currently, completed functions include:

Industrial Gateway: supports multiple protocols. If a new driver is added, the interface implementation is very simple.

Real-time Data Engine: pushes changed data in real time and supports remote servers and N clients.

History data archiving engine: supports fast archiving of N variables and supports data analysis and data mining. The archive file is small, with built-in indexes and fast query.

Man-Machine Interface: the powerful functions of the VS designer can be fully utilized, supplemented by powerful plug-ins (self-blowing). The VS designer can be used as a configuration designer.

Scalability: adding new features is fast because interfaces are simple. However, the function is not simple.

 

Save:As the name implies, it is time to save money.

First, the system environment is simple. NET (because only 4.0 is required, WIN7 comes with it), the database is available in SQL EXPRESS, and no third-party charged components are used (open source components are listed on github, thanks to the author ).

As a designer, VS is powerful and easy to use. It is available in the Free Community version (it does not matter for personal use. If you are an enterprise, you 'd better contact Microsoft to buy genuine licenses ).

Support various PLC types. Many PLCs of the old configuration software are not supported. It is very convenient to add a new device driver here.

III,Why

After half a day, you may ask the following three questions:

Why?. NETPlatform?

First, I am a fan of Microsoft, and I have been using. NET loyal coders for more than 10 years. Whether it is a public or private weapon. First of all,. NET itself is a fast and cost-effective platform. With the help of the universe's first IDE, the development efficiency is extremely high.

Second, Microsoft is becoming more and more open, and. NET is becoming more and more powerful in cross-platform capabilities. As for the so-called. NET, which is widely used, the wage is low because JAVA code farmers are already preemptible in China due to special reasons.

I have no company political problems in this industry, so I have never considered the transformation (I once wrote JAVA for Android apps, but it is also very simple, but I want to speak out, the same function, JAVA implementation is too embarrassing ).

Why?WPF?

WPF is a declarative programming method (XAML language) that is very suitable for industrial control interface design. At the same time, Microsoft provides the Blend designer, which is actually a mechanical engineer who does not write code.

Achieves the collaboration mode of front-end and back-end separation. With the cooperation of the first IDE of the universe, it can be very dazzling.

 

Why?Visual Studio?

It's easy. The universe's first IDE is not covered. I have seen many configuration screen designers. Regardless of the effect, usability, or scalability, it cannot be compared with. VS also integrates project management and compilers.

We rarely use VS scalability. I have entered many pitfalls and found a lot of information. After implementation, you will know its strength.

 

IV,The following plan

  • Complete functions.

Fix bugs with the assistance of the community to enhance security and stability. It can be used as a victory. Then, we are pursuing "more fast, better saving ".

  • Write a series of posts to clarify the architecture and principles.

The outline and directory are also prepared. It is roughly as follows:

Github address: https://github.com/gavinyellow/sharpscada.

Github provides instructions. The downloaded package also contains a Word document about how to install and deploy and how to design it. Relatively rough. You are welcome to ask questions.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.