using HybirdFrameworkDriver.ModbusTcpMaster;
namespace Service.Plc.Msg
{
///
///
///
public class PlcToHost
{
///
/// 通讯诊断 站控PC心跳(0、1 跳变)
///
public ModbusProperty CommunicationDiagnosis { get; set; } = new(40100);
///
/// 模式状态
/// 0:无效值
/// 1000:手动模式
/// 1010:自动模式
///
public ModbusProperty ModeControl { get; set; } = new(40101);
///
/// 设备系统状态
///
public ModbusProperty DeviceSystemStatus { get; set; } = new(40102);
//public ModbusProperty type00 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT0:复位
//public ModbusProperty type01 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT1:启动
//public ModbusProperty type02 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT2:暂停
//public ModbusProperty type03 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT3:急停
//public ModbusProperty type04 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT4:
//public ModbusProperty type05 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT5:整站断电
//public ModbusProperty type06 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT6:自动运行中
//public ModbusProperty type07 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT7:PLC停机报警
//public ModbusProperty type08 { get; set; } = new(400206,length:1, type: ModbusDataType.Bit); //BIT8:PLC提示预警
///
/// 遥本控状态
/// 0:无效值
/// 1000:本地控制
/// 1010:远程控制
///
public ModbusProperty RemoteLocalControlState { get; set; } = new(40103);
///
/// 灯光状态
/// 0:无状态
/// 1000:已全部打开
/// 1010:已全部关闭
///
public ModbusProperty LightStatus { get; set; } = new(40300);
///
/// 排风扇状态
/// 0:无状态
/// 1000:已全部打开
/// 1010:已全部关闭
///
public ModbusProperty ExhaustFanStatus { get; set; } = new(40301);
///
/// 站内积水状态
/// BIT0:积水预警
/// BIT1:积水报警
///
public ModbusProperty WaterStatusStation { get; set; } = new(40302);
#region 舱位状态 bit0:有料检测 Bit1:有料检测开关故障
public ModbusProperty MaterialDetec01 { get; set; } = new(40130);
public ModbusProperty MaterialDetec02 { get; set; } = new(40131);
public ModbusProperty MaterialDetec03 { get; set; } = new(40132);
public ModbusProperty MaterialDetec04 { get; set; } = new(40133);
public ModbusProperty MaterialDetec05 { get; set; } = new(40134);
public ModbusProperty MaterialDetec06 { get; set; } = new(40135);
public ModbusProperty MaterialDetec07 { get; set; } = new(40136);
public ModbusProperty MaterialDetec08 { get; set; } = new(40137);
#endregion 舱位状态
///
/// 载行车设备状态
/// 0:无效值
/// 1000:待机中
/// 1001:定位识别中
/// 1100:取电池中
/// 1101:取电池完成
/// 1102:取电池动作故障
/// 1200:放电池中
/// 1201:放电池完成
/// 1202:放电池动作故障
///
public ModbusProperty CarStatus { get; set; } = new(40104);
///
/// 入口雷达状态
/// 0:未触发
/// 1000:感应触发
///
public ModbusProperty RadarStatesIn { get; set; } = new(40110);
///
/// 出口雷达状态
/// 0:未触发
/// 1000:感应触发
///
public ModbusProperty RadarStatesOut { get; set; } = new(40111);
///
/// 实体按钮状态
/// 0:无状态
/// 1000:已拍按钮
///
public ModbusProperty PhysicalButtonState { get; set; } = new(40112);
///
/// 在拍照位
/// 0:无状态
/// 1000:已拍按钮
///
public ModbusProperty CarInPhotoPosition { get; set; } = new(40113);
///
/// 三色灯控制通道状态(入口)
/// 0:无颜色
/// 1000:绿灯
/// 1010:绿灯闪烁
/// 1020:红灯
/// 1030:红灯闪烁
/// 1040:黄灯
/// 1050:黄灯闪烁
/// 1100:所有灯亮
///
//public ModbusProperty LightIn { get; set; } = new(40405);
///
/// 三色灯控制通道状态(出口)
/// 0:无颜色
/// 1000:绿灯
/// 1010:绿灯闪烁
/// 1020:红灯
/// 1030:红灯闪烁
/// 1040:黄灯
/// 1050:黄灯闪烁移舱任务
/// 1100:所有灯亮
///
//public ModbusProperty LightOut { get; set; } = new(40406);
///
/// 任务类型状态(是否允许允许执行任务)
/// 0.无任务 (不允许换电)
/// 1.换电任务
/// 2.移舱任务
/// 3.移出任务
/// 4.移入任务
/// 5.消防任务
///
//public ModbusProperty TaskType { get; set; } = new(40407);
///
/// 任务状态
/// 0:无效值
/// 1000:准备中(Not Ready)
/// 1001:待机中(Ready)
/// 1002:电池拆卸中
/// 1003:电池入库搬运中
/// 1004:电池出库搬运中
/// 1005:电池安装中
/// 1006:电池安装完成
/// 1007:航车回归至安全位置
/// 1008: 缓存-放仓位, 移仓状态
/// 1100:消防任务 执行中
/// 1101:消防任务 出现异常
/// 1200:移仓任务 执行中
/// 1201:移仓任务 出现异常
/// 9000:任务完成
///
//public ModbusProperty TaskStates { get; set; } = new(40408);
///
/// 通道定位状态
/// 0:无效值
/// 1000;拍照OK
/// 1010;拍照NG
/// 1020;拍照超限,请移车
///
public ModbusProperty ChannelLocationState { get; set; } = new(40114);
///
/// 换电过程状态
/// 0:无效值
/// 1000:准备中(Not Ready)
/// 1001:待机中(Ready)
/// 1002:电池拆卸中
/// 1003:电池入库搬运中
/// 1004:电池出库搬运中
/// 1005:电池安装中
/// 1006:电池安装完成
/// 1007:航车回归至安全位置
/// 1008: 缓存-放仓位, 移仓状态
///
public ModbusProperty StatusPowerChangeProcess { get; set; } = new(40105);
///
/// 消防任务状态
/// 0:等待消防任务
/// 1000:消防任务 执行中
/// 1001:消防任务 正常完成
/// 1009:消防任务 出现异常
///
public ModbusProperty FireFightingTaskStatus { get; set; } = new(40106);
///
/// 移仓状态
/// 0:等待移仓任务
/// 1001:移仓任务 执行中
/// 1002:移仓任务 正常完成
/// 1009:移仓任务 出现异常
///
public ModbusProperty MovingCondition { get; set; } = new(40107);
///
/// 是否允许换电 0:无效值1000:不允许 1010:已允许
///
public ModbusProperty WhetherAllowPowerChange { get; set; } = new(40108);
#region 一级故障
///
///
///
public ModbusProperty FaultDataReservationFirst { get; set; } = new(40350);
#endregion
#region 二级故障
public ModbusProperty FaultDataReservationSecond { get; set; } = new(40400);
#endregion
#region 三级故障
public ModbusProperty FaultDataReservationThree { get; set; } = new(40500);
#endregion
}
}