using HybirdFrameworkCore.Autofac.Attribute;
using HybirdFrameworkDriver.ModbusTcpMaster;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HybirdFrameworkServices.Plc
{
///
///
///
public class PlcToHost
{
public ModbusProperty ProtocolVersion1 { get; set; } = new(40201); // 协议版本
public ModbusProperty ProtocolVersion2 { get; set; } = new(40202); // 协议版本
public ModbusProperty ProtocolVersion3 { get; set; } = new(40203); // 协议版本
public ModbusProperty CommunicationDiagnosis { get; set; } = new(40204); // 通讯诊断
public ModbusProperty ModeControl { get; set; } = new(40205); // 模式状态
public ModbusProperty DeviceSystemStatus { get; set; } = new(40206); // 设备系统状态
//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提示预警
public ModbusProperty RemoteLocalControlState { get; set; } = new(40207); // 遥本控状态
public ModbusProperty LightStatus { get; set; } = new(40208); // 灯光状态
public ModbusProperty ExhaustFanStatus { get; set; } = new(40209); // 排风扇状态
public ModbusProperty WaterStatusStation { get; set; } = new(40210); // 站内积水状态
public ModbusProperty value09 { get; set; } = new(40211, length: 30); // 备用
public ModbusProperty InPosition { get; set; } = new(40241, length: 40); // 在位状态
public ModbusProperty value11 { get; set; } = new(40281, length: 20); // 备用
public ModbusProperty CarStatus { get; set; } = new(40301); // 载行车设备状态
public ModbusProperty value13 { get; set; } = new(40302); // 备用
public ModbusProperty value14 { get; set; } = new(40303); // 备用
public ModbusProperty value15 { get; set; } = new(40304); // 备用
public ModbusProperty value16 { get; set; } = new(40305); // 备用
public ModbusProperty PercentageTorqueX { get; set; } = new(40306); // x轴扭矩百分比
public ModbusProperty PercentageTorqueY { get; set; } = new(40307); // y轴扭矩百分比
public ModbusProperty PercentageTorqueZ { get; set; } = new(40308); // z轴扭矩百分比
public ModbusProperty value20 { get; set; } = new(40309, length: 92); // 备用
public ModbusProperty RadarStatesIn{ get; set; } = new(40401); // " 入口雷达状态"
public ModbusProperty RadarStatesOut { get; set; } = new(40402); // " 出口雷达状态"
public ModbusProperty SpotPhotoelectricSignal { get; set; } = new(40403); // 到位光电信号
public ModbusProperty PhysicalButtonState { get; set; } = new(40404); // 实体按钮状态
public ModbusProperty LightIn { get; set; } = new(40405); // "三色灯控制通道状态(入口)"
public ModbusProperty LightOut { get; set; } = new(40406); // "三色灯控制通道状态(出口)"
public ModbusProperty TaskType { get; set; } = new(40407); // "任务类型状态(是否允许允许执行任务)"
public ModbusProperty TaskStates { get; set; } = new(40408); // 任务状态
public ModbusProperty OperationalTrainNumber { get; set; } = new(40409); // 执行任务行车号
public ModbusProperty ChannelLocationState { get; set; } = new(40410); // 通道定位状态
public ModbusProperty DeviationX { get; set; } = new(40411); // x偏差
public ModbusProperty DeviationY { get; set; } = new(40412); // y偏差
public ModbusProperty DeviationZ { get; set; } = new(40413); // z偏差
public ModbusProperty value44 { get; set; } = new(40414, length: 7); // 备用
}
}