preamble
C# industrial control gateway + lightweight configuration software.
Projects
SharpSCADA is an open source project that provides flexible and powerful solutions to meet the needs of industrial automation and monitoring.
As a lightweight industrial control gateway and configuration software, SharpSCADA supports a wide range of industrial protocols, including Siemens' Profinet, AB's EtherNet/IP, Schneider's Modbus, and OPC, etc., and realizes data communication through OPC-like interface gateways.
Main characteristics
1、Lightweight industrial control gateway
Major industrial protocols are supported, including Profinet from Siemens, EtherNet/IP from AB, Modbus from Schneider, and OPC.
An OPC-like interface gateway is used to realize data communication.
2. Data collection, archiving, early warning and configuration tools
Supports real-time data collection, historical data archiving, and variable-triggered alerts.
Use the TagConfig tool for easy configuration.
3. Human-machine interface (design-time and run-time)
design timeMicrosoft Visual Studio + Designer plug-in (tested with VS2010 to VS2015 Community Edition).
Inherit the HMIControlBase interface and write a small amount of code to realize the complexity of the graph component. Supports drag-and-drop, combining, linking, variable binding and editing of diagram elements.
runtime: Compiled as an executable file by Microsoft Visual Studio.
Project use
1、Test source code
Open the project project file: in the\SCADA\Program\
Runs (supports VS2010 to VS2015 versions).
2. Run the executable file test
Server-side testing: in\SCADA\Program\BatchCoreTest\bin\Debug
directory and run。
Client-side testing: in\SCADA\Program\CoreTest\bin\Debug
directory and run。
consultationDocument
Tutorials in the folder:
-
Deployment Process
-
Design Process
3. Quick start
Restore database
Modify the configuration file and copy it to the root directory of the C drive.
Modify the path to the driver in the database
Run DEMO
The specific process can be found in the Deployment Process document.
4. Development tools
Visual Studio/Blend: As a configuration designer, the VS2010 or VS2015 version is recommended.
Project Catalog
Database Catalog [Storage of data files]:
-
: SQL Server 2014 data backup files.
-
: SQL Server 2008 data backup files.
-
: Kepserver 4.5 data files (which can be reduced to variable tables with this software).
-
both
.csv
Files: two sets of variable files.
DataConfig Catalog [Storing configuration files]:
-
: The main configuration file, the first line is the gateway server name/IP address. For local testing, the default is
localhost
。 -
: Client configuration file.
-
: Gateway service configuration file.
dll Catalog [Stores drivers and third-party components]:
-
OPCDriver
: OPC communication components. -
DynamicDataDisplay
: Open source archived data display component . -
WPFToolkit
: WPF Open Source Extensions Toolkit. -
libnodave
: Siemens Drive Open Source Library.
TagConfig Catalog [Deposit Configuration Tool]:
- Easy to configure driver, group, variable, alarm, range and other information. Support import and export.
Program Catalog [Deposit source code]:
-
BatchCoreTest
Project: Gateway Server Test Code (Console Display) -
BatchCoreService
Engineering: withBatchCoreTest
Similar, but can be compiled as a Windows service. -
DataService
Engineering: Framework and main interface components. -
CoreTest
Project: Sample file containing a set of interface elements. -
HMIControl
Project: metric component with toolbar drag-and-drop support. -
LinkableControlDesignTime
Project: Visual Studio Designer supports plug-ins. -
DataHelper
Project: SQL database help component that also provides support for variable data archiving. -
ClientDriver
、ModbusDriver
、OPCDriver
、FileDriver
: Various communication components.
Example Catalog [Deposit sample]:
-
refer to (another document)
Document/Deployment Process
, restore the database and modify the configuration file. -
activate (a plan)
(server-side).
-
restart
(Client).
Project Plan
1、Support .NET Core
There is currently a beta version located atCoreApp
folder.
2、Implement more communication interfaces
Communication protocols such as Omron and OPC UA are planned to be supported.
3、Provide more graphical components
Addition of new graphical components suitable for building automation, chemical and other industries.
4、Function Expansion
Further enhancement of data processing capabilities and process control functions.
5. Enhanced security
Security is a top priority, and there is currently a need for further strengthening in this area.
Project Effect
Project Address
GitHub:/GavinYellow/SharpSCADA
If you found this article helpful, why not support it with a like? Your support is what keeps me motivated to continue sharing my knowledge. Feel free to leave a comment if you have any questions or need further help.
You can also join WeChat[DotNet Technician] community to share ideas and grow with other tech-loving peers!Excellence is a habit, so feel free to leave a comment and learn!