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