资源简介
C#编写101协议动态链接库dll,包括遥信 遥测 遥控,及定值参数
代码片段和文件信息
// zhengshuiqing
// Type: IEC101Lib.IEC101
// Assembly: IEC101Lib Version=1.0.0.0 Culture=neutral PublicKeyToken=null
using CommonInfoLib;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace IEC101Lib
{
public class IEC101
{
//新建两个遥测和遥信表
private YCPointTable[] ycpoint = new YCPointTable[200];
private YXPointTable[] yxpoint = new YXPointTable[200];
private YCPointTable[] ycpointall = new YCPointTable[200];
private YXPointTable[] yxpointall = new YXPointTable[200];
//定义发送报文
private byte[] _dataSend = new byte[2000];
public int OverTime = 10;
public int RepeatTimes = 2;
public bool IsDoubleYK = true;
public bool IsDoubleSOE = true;
private bool _isYCNegative = true;
private const string LIBVER = “Ver1.01“;
private frameConfig _frameconfig;
private byte[] _addr;
private uint _addru;
private ParaSubInfo[] _paraAddr;
private int _FCB;
private YKPointTable[] ykpoint;
private YKPointTable[] ykpointall;
public bool IsSubStation;
public bool linkStatus;
public CommStatus SendStatus;
public CommStatus RecStatus;
public byte[] Sendframe
{
get
{
return this._dataSend;
}
set
{
this._dataSend = new byte[value.Length];
Array.Copy((Array) value (Array) this._dataSend value.Length);
}
}
public int linkAddrBits
{
get
{
return this._frameconfig.linkAddrBits;
}
}
public int InfoAddrBits
{
get
{
return this._frameconfig.InfoAddrBits;
}
}
public int TransBits
{
get
{
return this._frameconfig.TransBits;
}
}
public int CommonAddrBits
{
get
{
return this._frameconfig.CommonAddrBits;
}
}
public int ParaType
{
get
{
return this._frameconfig.ParaType;
}
}
public int CommMode
{
get
{
return this._frameconfig.Procotol;
}
}
public bool TransMode
{
get
{
return this._frameconfig.TransMode != 0;
}
}
public bool IsInitOver
{
get
{
return this._frameconfig.IsOverInit != 0;
}
}
public bool IsSendReq
{
get
{
return this._frameconfig.IsSendReq != 0;
}
}
public bool IsYCNegative
{
get
{
return this._isYCNegative;
}
set
{
this._isYCNegative = value;
}
}
public string GetVer()
{
return “Ver1.01“;
}
public bool Encrypt_Check(string CheckCode)
{
return true;
}
public void SetPointTable(YXPointTable[] yx YCPointTable[] yc YKPointTable[] yk)
{
this.yxpoint = n
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 664 2017-11-10 16:26 IEC101Lib\Backup\AssemblyInfo.cs
文件 229756 2017-11-10 16:26 IEC101Lib\Backup\IEC101Lib.cs
文件 2016 2017-11-10 16:26 IEC101Lib\Backup\IEC101Lib.csproj
文件 904 2017-11-10 16:26 IEC101Lib\Backup\IEC101Lib.sln
文件 12288 2016-02-24 15:19 IEC101Lib\bin\Debug\CommonInfoLib.dll
文件 69632 2017-11-13 21:47 IEC101Lib\bin\Debug\IEC101Lib.dll
文件 206336 2017-11-13 21:47 IEC101Lib\bin\Debug\IEC101Lib.pdb
文件 237484 2017-11-13 20:58 IEC101Lib\IEC101Lib.cs
文件 3340 2017-11-13 21:47 IEC101Lib\IEC101Lib.csproj
文件 453 2017-11-10 16:29 IEC101Lib\IEC101Lib.csproj.user
文件 165376 2017-11-10 16:26 IEC101Lib\IEC101Lib.pdb
文件 981 2017-11-10 16:28 IEC101Lib\IEC101Lib.sln
..A..H. 36352 2017-11-14 10:29 IEC101Lib\IEC101Lib.v12.suo
文件 12288 2016-02-24 15:19 IEC101Lib\lib\CommonInfoLib.dll
文件 5916 2017-11-14 09:07 IEC101Lib\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 1166 2017-11-13 20:59 IEC101Lib\obj\Debug\IEC101Lib.csproj.FileListAbsolute.txt
文件 7552 2017-11-13 20:59 IEC101Lib\obj\Debug\IEC101Lib.csprojResolveAssemblyReference.cache
文件 69632 2017-11-13 21:47 IEC101Lib\obj\Debug\IEC101Lib.dll
文件 206336 2017-11-13 21:47 IEC101Lib\obj\Debug\IEC101Lib.pdb
文件 0 2017-11-10 16:29 IEC101Lib\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2017-11-10 16:29 IEC101Lib\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
文件 0 2017-11-10 16:29 IEC101Lib\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
文件 35696 2017-11-10 16:28 IEC101Lib\UpgradeLog.htm
目录 0 2017-11-10 16:28 IEC101Lib\obj\Debug\TempPE
目录 0 2017-11-27 15:38 IEC101Lib\bin\Debug
目录 0 2017-11-13 21:47 IEC101Lib\bin\Release
目录 0 2017-11-27 15:38 IEC101Lib\obj\Debug
目录 0 2017-11-27 15:38 IEC101Lib\Backup
目录 0 2017-11-27 15:38 IEC101Lib\bin
目录 0 2017-11-27 15:38 IEC101Lib\lib
............此处省略5个文件信息
相关资源
- 104协议dll源代码C#
- Astrolog可用于C#的Dll
- AopSdk.dll
- S7.NET.DLL及官方指导文件.rar
- _01_DllPrctise.zip
- 基于OPCDAAuto.dll的opc运用的简单
- C#连接MySQL需要的MySql.Data.dll,MySql.W
- IrisSkin2.dll
- DynamicDataDisplay.dll
- C#调用SynoAPIEx.dll接口采集指纹信息+绘
- C#动态编译DLL到内存,并调用执行
- C# MySQL 数据库操作类 (包含MySql.Dat
- SevenZipSharp.dll和7z.dll
- C# 动态链接机制 插件平台AppDomain对
- C# Sftp上传文件 DiffieHellman.dll org.ment
- labvIEW调用c#的DLL,以获取硬盘码为例
- asp.net用OpenPop.dll获取邮件列表和内容
- C#读取和导出EXCEL类库 AppLibrary.dll
-
IronPython.dll和Microsoft.sc
ripting.dll - System.Windows.Forms.DataVisualization.dll
- ASP.NET System.Web.Http.dll
- C# 引用不同文件夹下的Dll文件
- C#调用Delphi的dll以实现标准的AES加密解
- C#串口通信DLLVisual Studio 2005
- LitJson.dll C# 与 unity 可用的Json处理插
- c# / VB 调用refprop.dll
- Microsoft.DirectX.DirectSound.dll和Microsoft.
- Unity不用Dll直接读取BMP图片并转为Te
- c# TTS语音 附带 DotNetSpeech.dll语音类库
- c#并口操作 INPOUT32.DLL
评论
共有 条评论