# HslCommunication **Repository Path**: dobala/HslCommunication ## Basic Information - **Project Name**: HslCommunication - **Description**: 一个工业物联网底层架构框架,专注于底层技术通信和跨平台、跨语言通信功能,实现多种主流PLC数据读写,实现各种协议的Modbus读写等,支持工业上层的快速建设。计算机软件、组态软件、SCADA软件、工厂MES系统,帮助企业工业4.0起飞,实现智能制造、智能工厂的目标。主PLC包括西门子、三菱、欧姆龙、松下、Modbus、AB-PLC、Redis - **Primary Language**: C# - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 60 - **Created**: 2022-04-13 - **Last Updated**: 2022-04-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [中文](https://github.com/dathlin/HslCommunication/blob/master/docs/Chinese.md)
///\ ///\ /////////\ ///\ //\\/ //\/ //\\\\\\\\//\ //\\/ //\/ //\/ //\\/ \\/ //\/ //\/ //\/ \//\ //\/ /////////////\/ \//////\ //\/ //\\\\\\\\\//\/ \\\\\//\ //\/ //\/ //\/ \//\ //\/ //\/ //\/ ///\ //\\/ //\/ //\ ///\ ///\/ \/////////\\/ /////////////\/ \\\/ \\\/ \\\\\\\\\/ \\\\\\\\\\\\\/ Present by Richard.Hu# HslCommunication HslCommnication.dll  [](https://www.nuget.org/packages/HslCommunication/)  [](https://gitter.im/HslCommunication/community) [](https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/) [](https://www.visualstudio.com/zh-hans/)   HslCommunication.jar       HslCommunication.py      ## CopyRight (C) 2017 - 2019 Richard.Hu, All Rights Reserved ## Official Website Webside: [http://www.hslcommunication.cn/](http://www.hslcommunication.cn/) BBS: [http://bbs.hslcommunication.cn/](http://bbs.hslcommunication.cn/) API: [http://api.hslcommunication.cn/](http://api.hslcommunication.cn/) Gitter[talk with me]: [https://gitter.im/HslCommunication/community](https://gitter.im/HslCommunication/community) ## What is HSL This is an industrial IoT based, computer communications architecture implementation, integrated with most of the basic functional implementation of industrial software development, such as Mitsubishi PLC Communications, Siemens PLC Communications, OMRON PLC Communications, Modbus Communications, All of these communications have been implemented in multiple languages, and of course, the feature integration of the main. NET Library is even more powerful, in addition to the implementation of cross-program, cross-language, cross-platform communication, so that you are no longer obsessed with the use of Windows or Linux system, the realization of log function, flow number generation function, mail sending function, Fourier transform function, and so on, will integrate more common features of industrial environment in the future. In order not to let the industry 4.0 stay on the slogan, the high-rise flat up, and the cornerstone is HSL. ## What can HSL do HSL can connect the equipment of the industrial production site to the free transmission of data at the bottom, whether active or passive, whatever your acquisition system (usually the acquisition system is a Windows computer, or an embedded system, or a Linux-based box), can achieve the random transmission of data, convenient and fast to achieve a strong, real-time, high-response robust system, whether you are building a C/S system, or B/S system, or C-B-S-A (Integrated desktop client, browser, Android) hybrid system, is a fast and low-cost implementation, As long as you have the primary data of the industrial field, that is, can build a powerful real-time monitoring function of the software, production reports and automated scheduling software, a variety of process parameters history tracking software, data based on the experience of machine learning software, as well as full-featured MES system and so on. **By the way**, the traditional industrial model is the procurement of off-the-shelf industrial software, including the host computer software and MES system, while ignoring their own system. For some industry-standard functional software, such as ERP systems, financial software, these can be purchased directly, However, for the host computer and MES system, the actual needs of each enterprise are very different, it is difficult to have a common scene, and the current situation is to spend a lot of money to do small things, so here, give a future-oriented model to achieve: for the production enterprise, Based on HSL to develop enterprise-class MES system implementation, as the core Warehouse center of data, and business logic processing Center, for equipment suppliers, based on HSL to develop the host computer software system, fast and convenient distribution of data to the customer's MES system, work together. ## Install From NuGet Description: NuGet for stable version, Support Online upgrade, the use of components is best downloaded from NuGet, the project published here is likely to have not yet compiled the beta version, NuGet installation is as follows: ``` Install-Package HslCommunication ``` ## Environment * IDE: **Visual Studio 2019** * java:**Intellij Idea 2018.4** * python: **Visual Studio Code** ## Contact * Email: hsl200909@163.com *  ## Supported Model and price [welcome to complete] #### Siemens No. | Class | Model | Price | Remarks | Contributor -|-|-|-|-|- 1 |  |  | ¥ | | [Richard Hu](https://github.com/dathlin/HslCommunication) #### Melsec No. | Class | Model | Price | Remarks | Contributor -|-|-|-|-|- 1 |  |  | ¥ | | [Richard Hu](https://github.com/dathlin/HslCommunication) 2 |  |  | ¥ | | [Richard Hu](https://github.com/dathlin/HslCommunication) 3 |  |  | ¥ | | [Richard Hu](https://github.com/dathlin/HslCommunication) 4 |  |  | ¥ | | [Richard Hu](https://github.com/dathlin/HslCommunication) #### AB plc No. | Class | Model | Price | Remarks | Contributor -|-|-|-|-|- 1 |  |  | ¥ | | 1 |  |  | ¥ | | #### Omron No. | Class | Model | Price | Remarks | Contributor -|-|-|-|-|- 1 |  | - | ¥ | | #### Keyence No. | Class | Model | Price | Remarks | Contributor -|-|-|-|-|- 1 |  | - | ¥ | | #### ModbusTcp No. | Class | Model | Price | Remarks | Contributor -|-|-|-|-|- 1 |  |  | ¥ | | [Richard Hu](https://github.com/dathlin/HslCommunication) 4 |  |  | ¥ | | [Richard Hu](https://github.com/dathlin/HslCommunication) #### Panasonic No. | Class | Model | Price | Remarks | Contributor -|-|-|-|-|- 1 |  |  | ¥ | | 镇江-Relax; ## HslCommunication.dll Summary When I started working on this project, I had an idea of how to easily and quickly read and write PLC data. Our code logic should be very simple, and it only takes one or two lines of code to implement this feature. Like this ``` // Pseudo code PLC plc = new PLC("192.168.0.11", 6000); short value = plc.ReadInt16("D100"); ``` But after a long period of development and attempt, found that the return of PLC is likely to be abnormal, this anomaly may come from the network failure, may also come from you entered the wrong address, or the PLC itself is not allowed to operate, so in this project added a class **Operateresult**, So the final code becomes what it looks like (with Siemens PLC as an example) ``` SiemensS7Net siemens = new SiemensS7Net( SiemensPLCS.S1200, " 192.168.1.110" ); OperateResult