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