using YGUV.Lib; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YG.Config.DefaultList { /// /// COM口数据项 /// public class ComConfig : Notify { /// /// 加载文件路径 /// public string filepath { get; set; } = ""; /// /// 设备名称 /// public string DeviceEnum { get; set; } = ""; /// /// 串口名称 /// public string SerialPortName { get; set; } = ""; /// /// 波特率 /// public string SerialBuard { get; set; } = "115200"; /// /// 电流设备名称 /// public string galvanicName { get; set; } = ""; /// /// 是否启用 /// public bool Enable { get; set; } = true; /// /// 飞扬板卡的下标 /// public string FY3400Index { get; set; } = "0"; /// /// 串口超时时间 /// public int ComTimeOut { get; set; } = 2500; /// /// 电流设备通道 /// public string Gindex { get; set; } = "0,2,5"; /// /// /// } public class PLCConfig { /// /// 设备名称 /// public string DeviceEnum { get; set; } = ""; // public Common.DeviceEnum DeviceEnum { get; set; } = Common.DeviceEnum.其他; /// /// 设备名称 /// public string HostIp { get; set; } = ""; /// /// 串口名称 /// public string PlcIpAddress { get; set; } = ""; /// /// 波特率 /// public int Port { get; set; } = 9600; /// /// 是否启用 /// public bool Enable { get; set; } = true; } }