using HybirdFrameworkDriver.ModbusTcpMaster; namespace Service.Plc.Msg { public class HostToPlc { public ModbusProperty ProtocolVersion1 { get; set; } = new(40001); // 协议版本 public ModbusProperty ProtocolVersion2 { get; set; } = new(40002); // 协议版本 public ModbusProperty ProtocolVersion3 { get; set; } = new(40003); // 协议版本 /// /// 通讯诊断 /// 站控PC心跳(0、1 跳变) /// public ModbusProperty CommunicationDiagnosis { get; set; } = new(40004); // /// /// 模式控制 /// 0:无操作 /// 1000:自动 /// 1010:手动 /// public ModbusProperty ModeControl { get; set; } = new(40005); // /// /// 设备控制 /// 0:无操作 /// 1000:复位 /// 1010:启动 /// 1020:暂停 /// 1030:急停 /// 1050:整站断电 /// public ModbusProperty EquipmentControl { get; set; } = new(40006); // /// /// 排风扇控制 /// 0:无操作 /// 1000:全部打开 /// 1010:全部关闭 /// 1020:预留 /// public ModbusProperty ExhaustFanControl { get; set; } = new(40007); // /// /// 灯光控制 /// 0:无操作 /// 1000:全部打开 /// 1010:全部关闭 /// public ModbusProperty LightingControl { get; set; } = new(40008); // public ModbusProperty Standby1 { get; set; } = new(40009); // 备用 public ModbusProperty Standby2 { get; set; } = new(40010); // 备用 /// /// 对时时钟:秒 /// public ModbusProperty Seconds { get; set; } = new(40011); /// /// 对时时钟:分 /// public ModbusProperty Points { get; set; } = new(40012); /// /// 对时时钟:时 /// public ModbusProperty Hour { get; set; } = new(40013); /// /// 对时时钟:天 /// public ModbusProperty Day { get; set; } = new(40014); /// /// 对时时钟:月 /// public ModbusProperty Month { get; set; } = new(40015); /// /// 对时时钟:年 /// public ModbusProperty Years { get; set; } = new(40016); public ModbusProperty Standby3 { get; set; } = new(40017, length: 4); // 备用3 //public ModbusProperty ChargingStatus { get; set; } = new(40021, length: 40); // 仓位充电状态 /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus01 { get; set; } = new(40021); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus02 { get; set; } = new(40022); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus03 { get; set; } = new(40023); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus04 { get; set; } = new(40024); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus05 { get; set; } = new(40025); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus06 { get; set; } = new(40026); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus07 { get; set; } = new(40027); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus08 { get; set; } = new(40028); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus09 { get; set; } = new(40029); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus10 { get; set; } = new(40030); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus11 { get; set; } = new(40031); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus12 { get; set; } = new(40032); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus13 { get; set; } = new(40033); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus14 { get; set; } = new(40034); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus15 { get; set; } = new(40035); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus16 { get; set; } = new(40036); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus17 { get; set; } = new(40037); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus18 { get; set; } = new(40038); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus19 { get; set; } = new(40039); /// /// 仓位充电状态 /// 0:未知 /// 1000:空闲 /// 1010:充电 /// public ModbusProperty ChargingStatus20 { get; set; } = new(40040); //public ModbusProperty BatteryType { get; set; } = new(40061, length: 40); // 仓位所在电池型号 /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType01 { get; set; } = new(40061); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType02 { get; set; } = new(40062); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType03 { get; set; } = new(40063); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType04 { get; set; } = new(40064); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType05 { get; set; } = new(40065); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType06 { get; set; } = new(40066); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType07 { get; set; } = new(40067); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType08 { get; set; } = new(40068); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType09 { get; set; } = new(40069); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType10 { get; set; } = new(40070); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType11 { get; set; } = new(40071); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType12 { get; set; } = new(40072); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType13 { get; set; } = new(40073); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType14 { get; set; } = new(40074); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType15 { get; set; } = new(40075); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType16 { get; set; } = new(40076); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType17 { get; set; } = new(40077); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType18 { get; set; } = new(40078); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType19 { get; set; } = new(40079); /// /// 仓位所在电池型号 /// public ModbusProperty BatteryType20 { get; set; } = new(40080); /// /// 车辆驻车位置 /// 0 无效 /// 2=2#换电位 /// 3=3#换电位 /// 4=4#换电位 /// 5=5#换电位 /// 6=6#换电位 /// public ModbusProperty VehicleParkingLocation { get; set; } = new(40101); /// /// 车辆驻车状态 /// 0=车辆状态未知 /// 1=车辆运动中 /// 2=车辆停止、驻停 /// public ModbusProperty VehicleParkingStatus { get; set; } = new(40102); /// /// 三色灯控制整站状态(入口) /// 0:无效值 /// 1000:绿灯 /// 1010:绿灯闪烁 /// 1020:红灯 /// 1030:红灯闪烁 /// 1040:黄灯 /// 1050:黄灯闪烁 /// 1100:所有灯亮 /// public ModbusProperty LightIn { get; set; } = new(40103); /// /// 三色灯控制整站状态(出口) /// 0:无效值 /// 1000:绿灯 /// 1010:绿灯闪烁 /// 1020:红灯 /// 1030:红灯闪烁 /// 1040:黄灯 /// 1050:黄灯闪烁 /// 1100:所有灯亮 /// public ModbusProperty LightOut { get; set; } = new(40104); /// /// 电池包锁止异常,暂停命令 0:无命令;1000:暂停使能 /// public ModbusProperty StopCommand { get; set; } = new(40105); public ModbusProperty Standby4 { get; set; } = new(40106, length: 5); // 备用4 /// /// 任务类型 /// 0.无任务 /// 1.换电任务 /// 2.移舱任务 /// 3.移出任务 /// 4.移入任务 /// 5.消防任务 /// public ModbusProperty TaskType { get; set; } = new(40111); /// /// 入仓位选择 /// 0:无操作 /// 范围:1-20 /// 1:缓存位舱位号 /// 2-20 电池存储舱位 /// public ModbusProperty EntrySelection { get; set; } = new(40112); /// /// 出仓仓位选择 /// 0:无操作 /// 范围:1-20 /// 1:缓存位舱位号 /// 2-20 电池存储舱位 /// public ModbusProperty ExitSelection { get; set; } = new(40113); /// /// 电池包类型 /// public ModbusProperty BatteryPackType { get; set; } = new(40114); /// /// 0:无操作 /// 1000:任务使能 /// public ModbusProperty TaskEnablement { get; set; } = new(40115); } }