<pre>
///\ ///\ /////////\ ///\
//\\/ //\/ //\\\\\\\\//\ //\\/
//\/ //\/ //\\/ \\/ //\/
//\/ //\/ \//\ //\/
/////////////\/ \//////\ //\/
//\\\\\\\\\//\/ \\\\\//\ //\/
//\/ //\/ \//\ //\/
//\/ //\/ ///\ //\\/ //\/ //\
///\ ///\/ \/////////\\/ /////////////\/
\\\/ \\\/ \\\\\\\\\/ \\\\\\\\\\\\\/ Present by Richard.Hu
</pre>
# HslCommunication
![Build status](https://img.shields.io/badge/Build-Success-green.svg) [![NuGet Status](https://img.shields.io/nuget/v/HslCommunication.svg)](https://www.nuget.org/packages/HslCommunication/) ![NuGet Download](https://img.shields.io/nuget/dt/HslCommunication.svg) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/HslCommunication/community) [![NetFramework](https://img.shields.io/badge/Language-C%23%207.0-orange.svg)](https://blogs.msdn.microsoft.com/dotnet/2016/08/24/whats-new-in-csharp-7-0/) [![Visual Studio](https://img.shields.io/badge/Visual%20Studio-2019-red.svg)](https://www.visualstudio.com/zh-hans/) ![copyright status](https://img.shields.io/badge/CopyRight-Richard.Hu-brightgreen.svg)
[HslCommunication.jar](https://github.com/dathlin/HslCommunicationJavaDemo)
![Build status](https://img.shields.io/badge/Build-Success-green.svg) ![NetFramework](https://img.shields.io/badge/Language-java-orange.svg) ![version](https://img.shields.io/maven-central/v/com.github.dathlin/HslCommunication) ![JDK status](https://img.shields.io/badge/JDK-1.8.0-green.svg) ![IDE status](https://img.shields.io/badge/Intellij%20Idea-2018.4-red.svg) ![copyright status](https://img.shields.io/badge/CopyRight-Richard.Hu-brightgreen.svg)
[HslCommunication.py](https://github.com/dathlin/HslCommunicationPython)
![Build status](https://img.shields.io/badge/Build-Success-green.svg) ![NetFramework](https://img.shields.io/badge/python-3.6-orange.svg) ![version](https://img.shields.io/pypi/v/HslCommunication) ![download](https://img.shields.io/pypi/dm/HslCommunication) ![IDE status](https://img.shields.io/badge/Visual%20Studio-Code-red.svg) ![copyright status](https://img.shields.io/badge/CopyRight-Richard.Hu-brightgreen.svg)
## CopyRight
(C) 2017 - 2020 Richard.Hu, All Rights Reserved
## Authorization(授权)
具体可以参照 http://www.hslcommunication.cn/Cooperation
试用授权: 加入 **技术支持VIP群** 即可以获得激活码,支持长时间测试使用。
```
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main( )
{
// 授权示例 调用一次即可 call only once
if(!HslCommunication.Authorization.SetAuthorizationCode( "你的激活码" ))
{
MessageBox.Show( "授权失败!当前程序只能使用8小时!" );
return;
}
Application.EnableVisualStyles( );
Application.SetCompatibleTextRenderingDefault( false );
Application.Run( new Form1( ) );
}
```
商用授权(赠送源代码):
1. 签订合同。
2. 付款,支付宝,微信,银行卡都可以。
3. 开票,目前是增值税普票。
4. 加入 **Hsl超级VIP群** 即获得源代码和超级激活码,永久支持更新。
5. 注册官网的git账户
6. 企业专业培训额外付费,1000元人民币1小时,培训控件使用,控件开发。
## Official Website
Webside: [http://www.hslcommunication.cn/](http://www.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
```
## 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.16
评论0