添加项目文件。

This commit is contained in:
2026-04-30 11:34:41 +08:00
parent a8539ccaac
commit 80635aa46e
181 changed files with 16378 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SamplePre.Communication
{
/// <summary>
/// 通讯协议类型枚举
/// </summary>
public enum CommProtocolType
{
S7 = 0,
ModbusTcp = 1,
ModbusRtu = 2
}
/// <summary>
/// 通讯状态枚举
/// </summary>
public enum CommunicationState
{
Disconnected = 0,
Connected = 1,
Connecting = 2,
Error = 3
}
/// <summary>
/// 通讯数据类型枚举
/// </summary>
public enum CommDataType
{
Bit, // 位
Byte, // 字节
Int16, // 16位整数
Int32, // 32位整数
Float // 浮点型
}
}