# [IEC-60870](https://github.com/minhdtb/IEC-60870/)
IEC-60870 is C# version of OpenMUC IEC-60870 library
## Installation
A [nuget package](https://www.nuget.org/packages/IEC60870/) is available for the library. To install `IEC60870 Library`, run the following command in the Package Manager Console:
PM> Install-Package IEC60870
## Examples (updated for version 1.2)
### Client
Write your simple client application (master) like this
```csharp
var client = new ClientSAP("127.0.0.1", 2404);
client.NewASdu += asdu => {
// process received Asdu
client.SendASdu(asdu);
};
client.ConnectionClosed += e =>
{
Console.WriteLine(e);
};
client.Connect();
```
### Server
and if you want to create server application (slave), you must use ServerSAP instead of ClientSAP
```csharp
var server = new ServerSAP("127.0.0.1", 2405);
server.StartListen(10);
server.SendASdu(asdu);
server.NewASdu += asdu =>
{
Console.WriteLine(asdu);
};
```
## License
IEC-60870 is licensed under [MIT](http://www.opensource.org/licenses/mit-license.php "Read more about the MIT license form"). Refer to license.txt for more information.
没有合适的资源?快使用搜索试试~ 我知道了~
IEC-60870-master.zip_60870源码_IEC_IEC104 C#_c# iec104_iec 60870
共68个文件
cs:61个
csproj:2个
gitignore:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 11 下载量 132 浏览量
2022-07-13
22:54:37
上传
评论 1
收藏 53KB ZIP 举报
温馨提示
c#版本的iec104协议源码和测试程序
资源详情
资源评论
资源推荐
收起资源包目录
IEC-60870-master.zip (68个子文件)
IEC-60870-master
license.txt 1KB
IEC60870.sln 1KB
TestApp
Program.cs 970B
TestApp.csproj 3KB
App.config 181B
Properties
AssemblyInfo.cs 1KB
.gitignore 88B
README.md 1KB
IEC60870
IE
IeSelectAndCallQualifier.cs 1KB
IeQualifierOfResetProcessCommand.cs 775B
IeBinaryStateInformation.cs 1KB
IeNormalizedValue.cs 1016B
IeBinaryCounterReading.cs 3KB
IeProtectionQuality.cs 846B
IeValueWithTransientState.cs 2KB
IeDoubleCommand.cs 1KB
IeRegulatingStepCommand.cs 1KB
IeQualifierOfSetPointCommand.cs 1KB
IeSectionReadyQualifier.cs 1KB
IeStatusOfFile.cs 2KB
IeAckFileOrSectionQualifier.cs 1KB
IeScaledValue.cs 377B
IeSingleProtectionEvent.cs 3KB
IeDoublePointWithQuality.cs 2KB
IeNameOfSection.cs 742B
IeFileSegment.cs 1KB
IeSinglePointWithQuality.cs 746B
IeTime16.cs 1KB
IeSingleCommand.cs 711B
IeLengthOfFileOrSection.cs 928B
IeShortFloat.cs 1KB
IeQualifierOfParameterOfMeasuredValues.cs 2KB
IeTime24.cs 1KB
IeFileReadyQualifier.cs 1KB
IeTime56.cs 4KB
IeStatusAndStatusChanges.cs 2KB
IeQuality.cs 723B
IeQualifierOfParameterActivation.cs 774B
IeProtectionStartEvent.cs 2KB
Base
IeAbstractQualifierOfCommand.cs 1KB
InformationElement.cs 154B
IeAbstractQuality.cs 2KB
IeChecksum.cs 718B
IeCauseOfInitialization.cs 2KB
IeProtectionOutputCircuitInformation.cs 2KB
IeQualifierOfInterrogation.cs 784B
IeNameOfFile.cs 805B
IeLastSectionOrSegmentQualifier.cs 806B
IeTestSequenceCounter.cs 976B
IeFixedTestBitPattern.cs 772B
IeQualifierOfCounterInterrogation.cs 1KB
SAP
ServerSAP.cs 7KB
ClientSAP.cs 4KB
IEC60870.csproj 5KB
Connections
ConnectionEventListener.cs 243B
Connection.cs 34KB
ConnectionSettings.cs 1KB
Enum
Description.cs 470B
TypeId.cs 10KB
CauseOfTransmission.cs 1KB
Object
ASdu.cs 9KB
InformationObject.cs 27KB
APdu.cs 4KB
Properties
AssemblyInfo.cs 1KB
Utils
CountDownLatch.cs 633B
ThreadBase.cs 560B
PubSubHub.cs 2KB
PeriodicTaskFactory.cs 1KB
共 68 条
- 1
weixin_42653672
- 粉丝: 93
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论10