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