A Windows-based SCADA system developed in C# to communicate with a Mitsubishi FX5U PLC.
Author: Nex Gen Automation
- PLC Communication: Connects to a Mitsubishi FX5U PLC via Ethernet using the
ActUtlTypeLib
(MX Component). - Animated Login: Secure, animated login screen with a 3-attempt password policy.
- Responsive UI: The main window is maximized to fit any desktop screen.
- Sliding Navigation: A modern, collapsible side panel for easy navigation between screens.
- PLC I/O Monitoring:
- Dedicated screens for
Input Status
andOutput Status
. - Real-time ON/OFF status visualization.
- Customizable names for all I/O points.
- Search functionality to quickly find specific I/O points.
- Dedicated screens for
- Data Register Access: A screen to read from and write to PLC data registers (Numeric and Alphanumeric).
- Process Visualization: A
Wagon Status
screen that visually represents a chemical processing line with:- 11 processing tanks.
- 1 loading/unloading station.
- 2 overhead wagon transporters.
- Wagon movement animated based on real-time PLC data register values.
- Microsoft Visual Studio: 2019 or later.
- .NET Framework: Version 4.7.2 or later.
- Mitsubishi MX Component: Version 4 or later must be installed. This provides the necessary
ActUtlTypeLib.dll
for PLC communication.
-
Create Project:
- Open Visual Studio.
- Create a new project.
- Select Windows Forms App (.NET Framework) and choose C#.
- Name the project
ScadaSystem
and the solutionSCADA-System
.
-
Add COM Reference:
- In the Solution Explorer, right-click on your project's
References
. - Select
Add Reference...
. - Go to the
COM
tab on the left. - Find and check
Mitsubishi ActUtlType Control
. - Click
OK
. This will addActUtlTypeLib
andAxActUtlTypeLib
to your project references.
- In the Solution Explorer, right-click on your project's
-
Add Project Files:
- Add the C# files provided in this repository to your project. You can do this by right-clicking the project, selecting
Add
->Existing Item...
, and selecting the files. - Ensure you maintain the folder structure (e.g.,
Forms
,Controls
,Services
).
- Add the C# files provided in this repository to your project. You can do this by right-clicking the project, selecting
-
Configure PLC Connection:
- Open the
Services/PlcService.cs
file. - In the
Connect
method, modify theactUtlType.ActLogicalStationNumber
property to match the station number you configured in the MX Component connection utility.
- Open the
-
Build and Run:
- Build the solution (F6).
- Run the application (F5).