You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

448 lines
19 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using HybirdFrameworkDriver.ModbusTcpMaster;
namespace Service.Plc.Msg
{
public class HostToPlc
{
public ModbusProperty<short> ProtocolVersion1 { get; set; } = new(40001); // 协议版本
public ModbusProperty<short> ProtocolVersion2 { get; set; } = new(40002); // 协议版本
public ModbusProperty<short> ProtocolVersion3 { get; set; } = new(40003); // 协议版本
/// <summary>
/// 通讯诊断
/// 站控PC心跳0、1 跳变)
/// </summary>
public ModbusProperty<ushort> CommunicationDiagnosis { get; set; } = new(40004); //
/// <summary>
/// 模式控制
/// <para>0无操作</para>
/// <para>1000自动</para>
/// <para>1010手动</para>
/// </summary>
public ModbusProperty<ushort> ModeControl { get; set; } = new(40005); //
/// <summary>
/// 设备控制
/// <para>0:无操作</para>
/// <para>1000:复位</para>
/// <para>1010:启动</para>
/// <para>1020:暂停</para>
/// <para>1030:急停</para>
/// <para>1050:整站断电</para>
/// </summary>
public ModbusProperty<ushort> EquipmentControl { get; set; } = new(40006); //
/// <summary>
/// 排风扇控制
/// <para>0无操作</para>
/// <para>1000全部打开</para>
/// <para>1010全部关闭</para>
/// <para>1020预留</para>
/// </summary>
public ModbusProperty<ushort> ExhaustFanControl { get; set; } = new(40007); //
/// <summary>
/// 灯光控制
/// <para>0无操作</para>
/// <para>1000全部打开</para>
/// <para>1010全部关闭</para>
/// </summary>
public ModbusProperty<ushort> LightingControl { get; set; } = new(40008); //
/// <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(40009);
/// <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(40010);
public ModbusProperty<ushort> Standby1 { get; set; } = new(40011); // 备用
public ModbusProperty<ushort> Standby2 { get; set; } = new(40012); // 备用
public ModbusProperty<ushort> Standby3 { get; set; } = new(40013); // 备用
public ModbusProperty<ushort> Standby4 { get; set; } = new(40014); // 备用
public ModbusProperty<ushort> Standby5 { get; set; } = new(40015); // 备用
public ModbusProperty<ushort> Standby6 { get; set; } = new(40016); // 备用
public ModbusProperty<ushort> Standby7 { get; set; } = new(40017); // 备用
public ModbusProperty<ushort> Standby8 { get; set; } = new(40018); // 备用
public ModbusProperty<ushort> Standby9 { get; set; } = new(40019); // 备用
public ModbusProperty<ushort> Standby10 { get; set; } = new(40020); // 备用
#region 默认20个舱位信息预留20舱位地用于扩展
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus01 { get; set; } = new(40021);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus02 { get; set; } = new(40022);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus03 { get; set; } = new(40023);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus04 { get; set; } = new(40024);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus05 { get; set; } = new(40025);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus06 { get; set; } = new(40026);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus07 { get; set; } = new(40027);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus08 { get; set; } = new(40028);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus09 { get; set; } = new(40029);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus10 { get; set; } = new(40030);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus11 { get; set; } = new(40031);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus12 { get; set; } = new(40032);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus13 { get; set; } = new(40033);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus14 { get; set; } = new(40034);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus15 { get; set; } = new(40035);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus16 { get; set; } = new(40036);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus17 { get; set; } = new(40037);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus18 { get; set; } = new(40038);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus19 { get; set; } = new(40039);
/// <summary>
/// 仓位充电状态
/// <para>0未知</para>
/// <para>1000空闲</para>
/// <para>1010充电</para>
/// </summary>
public ModbusProperty<short> ChargingStatus20 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus21 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus22 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus23 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus24 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus25 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus26 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus27 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus28 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus29 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus30 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus31 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus32 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus33 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus34 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus35 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus36 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus37 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus38 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus39 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus40 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus41 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus42 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus43 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus44 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus45 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus46 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus47 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus48 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus49 { get; set; } = new(40040);
public ModbusProperty<short> ChargingStatus50 { get; set; } = new(40040);
#endregion
#region 电池型号单一,可以不填
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType01 { get; set; } = new(40061);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType02 { get; set; } = new(40062);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType03 { get; set; } = new(40063);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType04 { get; set; } = new(40064);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType05 { get; set; } = new(40065);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType06 { get; set; } = new(40066);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType07 { get; set; } = new(40067);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType08 { get; set; } = new(40068);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType09 { get; set; } = new(40069);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType10 { get; set; } = new(40070);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType11 { get; set; } = new(40071);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType12 { get; set; } = new(40072);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType13 { get; set; } = new(40073);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType14 { get; set; } = new(40074);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType15 { get; set; } = new(40075);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType16 { get; set; } = new(40076);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType17 { get; set; } = new(40077);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType18 { get; set; } = new(40078);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType19 { get; set; } = new(40079);
/// <summary>
/// 仓位所在电池型号
/// </summary>
public ModbusProperty<short> BatteryType20 { get; set; } = new(40080);
#endregion
/// <summary>
/// 车辆驻车位置
/// <para>0 无效</para>
/// <para>2=2#换电位</para>
/// <para>3=3#换电位</para>
/// <para>4=4#换电位</para>
/// <para>5=5#换电位</para>
/// <para>6=6#换电位</para>
/// </summary>
public ModbusProperty<ushort> VehicleParkingLocation { get; set; } = new(40101);
/// <summary>
/// 车辆驻车状态
/// <para>0=车辆状态未知</para>
/// <para>1=车辆运动中</para>
/// <para>2=车辆停止、驻停</para>
/// </summary>
public ModbusProperty<ushort> VehicleParkingStatus { get; set; } = new(40102);
/// <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> LightIn2 { get; set; } = new(40103);
/// <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> LightOut2 { get; set; } = new(40104);
/// <summary>
/// 电池包锁止状态 0加锁1000解锁
/// </summary>
public ModbusProperty<ushort> StopCommand { get; set; } = new(40105);
public ModbusProperty<string> Standby11 { get; set; } = new(40106); //备用
public ModbusProperty<string> Standby12 { get; set; } = new(40107); //备用
public ModbusProperty<string> Standby13 { get; set; } = new(40108); //备用
public ModbusProperty<string> Standby14 { get; set; } = new(40109); //备用
public ModbusProperty<string> Standby15 { get; set; } = new(40110); //备用
/// <summary>
/// 任务类型
/// <para>0.待机</para>
/// <para>1.任务异常结束</para>
/// <para>2.换电任务</para>
/// <para>3.入库任务</para>
/// <para>4.出库任务</para>
/// <para>5.维护任务</para>
/// <para>6.调库任务</para>
/// <para>7.消防任务</para>
/// </summary>
public ModbusProperty<ushort> TaskType { get; set; } = new(40111);
/// <summary>
/// 入仓位选择
/// 站控直接下发仓位1-8
/// PLC来区分左右仓位区别
/// </summary>
public ModbusProperty<ushort> EntrySelection { get; set; } = new(40112);
/// <summary>
/// 出仓仓位选择
/// 站控直接下发仓位1-8
/// PLC来区分左右仓位区别
/// </summary>
public ModbusProperty<ushort> ExitSelection { get; set; } = new(40113);
/// <summary>
/// 电池包类型
/// </summary>
public ModbusProperty<ushort> BatteryPackType { get; set; } = new(40114);
/// <summary>
/// 任务使能
/// <para>0无操作</para>
/// <para>1000任务使能</para>
/// </summary>
public ModbusProperty<ushort> TaskEnablement { get; set; } = new(40115);
/// <summary>
/// 卷帘门控制
/// <para>0:无操作</para>
/// <para>1000请求开启</para>
/// <para>1010请求关闭</para>
/// </summary>
public ModbusProperty<ushort> RollerShutter { get; set; } = new(40116);
/// <summary>
/// 除换电任务外放仓位选择
/// 站控直接下发仓位1-8右侧电池仓
/// 站控直接下发仓位11-18左仓电池仓
/// </summary>
public ModbusProperty<ushort> EntrySelection2 { get; set; } = new(40117);
/// <summary>
/// 除换电任务外取仓位选择
/// 站控直接下发仓位1-8右侧电池仓
/// 站控直接下发仓位11-18左仓电池仓
/// </summary>
public ModbusProperty<ushort> ExitSelection2 { get; set; } = new(40118);
}
}