using HybirdFrameworkDriver.ModbusTcpMaster; namespace Service.Plc.Msg { public class HostToPlc { /// /// 通讯诊断 /// 站控PC心跳(0、1 跳变) /// public ModbusProperty CommunicationDiagnosis { get; set; } = new(40001); /// /// 模式控制 /// 0:无操作 /// 1000:自动 /// 1010:手动 /// public ModbusProperty ModeControl { get; set; } = new(40002); /// /// 设备控制 /// 0:无操作 /// 1000:复位 /// 1010:启动 /// 1020:暂停 /// 1030:急停 /// 1050:整站断电 /// public ModbusProperty EquipmentControl { get; set; } = new(40003); /// /// 入仓位选择 /// 0:无操作 /// 范围:1-20 /// 1:缓存位舱位号 /// 2-20 电池存储舱位 /// public ModbusProperty EntrySelection { get; set; } = new(40004); /// /// 出仓仓位选择 /// 0:无操作 /// 范围:1-20 /// 1:缓存位舱位号 /// 2-20 电池存储舱位 /// public ModbusProperty ExitSelection { get; set; } = new(40005); /// /// 启动换电任务 0:无操作 1000:解锁成功,开始换电 /// public ModbusProperty StartTaskSwap { get; set; } = new(40006); /// /// 消防仓位选择 /// public ModbusProperty FireStationSelection { get; set; } = new(40007); /// /// 启动消防任务 /// public ModbusProperty StartTaskFire { get; set; } = new(40008); /// /// 移出舱位选择 /// public ModbusProperty MoveOutOfShippingOptions { get; set; } = new(40009); /// /// 移入舱位选择 /// public ModbusProperty TransferToShippingOptions { get; set; } = new(40010); /// /// 启动移仓任务 /// public ModbusProperty StartTaskMove { get; set; } = new(40011); /// /// 拍照准备 /// public ModbusProperty PhotoPreparation { get; set; } = new(40012); /// /// 启动拍照 /// public ModbusProperty StartPhoto { get; set; } = new(40013); /// /// 行车回归初始位 /// public ModbusProperty Regression { get; set; } = new(40014); /// /// 电池解锁状态 /// public ModbusProperty BatteryUnlockedState { get; set; } = new(40015); /// /// 驻车电池锁止状态 /// public ModbusProperty ParkingBatteryLockedStatus { get; set; } = new(40018); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus01 { get; set; } = new(40030); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus02 { get; set; } = new(40031); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus03 { get; set; } = new(40032); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus04 { get; set; } = new(40033); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus05 { get; set; } = new(40034); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus06 { get; set; } = new(40035); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus07 { get; set; } = new(40036); /// /// 仓位充电状态 /// 0:未充电、 /// 0:在充电、 /// public ModbusProperty ChargingStatus08 { get; set; } = new(40037); /// /// 排风扇控制 /// 0:无操作 /// 1000:全部打开 /// 1010:全部关闭 /// 1020:预留 /// public ModbusProperty ExhaustFanControl { get; set; } = new(40200); /// /// 灯光控制 /// 0:无操作 /// 1000:全部打开 /// 1010:全部关闭 /// public ModbusProperty LightingControl { get; set; } = new(40201); /// /// 三色灯控制整站状态(入口) /// 0:无效值 /// 1000:绿灯 /// 1010:绿灯闪烁 /// 1020:红灯 /// 1030:红灯闪烁 /// 1040:黄灯 /// 1050:黄灯闪烁 /// 1100:所有灯亮 /// public ModbusProperty LightIn { get; set; } = new(40202); /// /// 三色灯控制整站状态(出口) /// 0:无效值 /// 1000:绿灯 /// 1010:绿灯闪烁 /// 1020:红灯 /// 1030:红灯闪烁 /// 1040:黄灯 /// 1050:黄灯闪烁 /// 1100:所有灯亮 /// public ModbusProperty LightOut { get; set; } = new(40203); } }