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.

184 lines
6.8 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
{
/// <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);
}
}