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.

594 lines
18 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.PlcAfrica.Msg;
public class PlcAfricaMsg
{
/// <summary>
/// 当前换电模式
/// 0-无效
/// 1-手动模式
/// 2-自动模式
/// 3-本地模式
/// </summary>
public ModbusProperty<ushort> PowerChangeMode {get;set;}= new(47000);
/// <summary>
/// PLC/换电机器人状态
/// 0-启动/未就绪
/// 1-就绪
/// 2-工作中
/// 3-自动/单步操作完成
/// </summary>
public ModbusProperty<ushort> PowerChangeModeRobot {get;set;}= new(47001);
/// <summary>
/// 暂停状态
/// 0位-暂停true为暂停1位-急停状态(true为急停)
/// </summary>
public ModbusProperty<ushort> SuspendedState {get;set;}= new(47002,start:0,length:2,type:ModbusDataType.Bit);
/// <summary>
/// 交通灯灯光功能
/// 0-不亮1-亮红灯2-绿灯3-绿灯闪
/// </summary>
public ModbusProperty<ushort> TrafficLightFunction {get;set;}= new(47003);
/// <summary>
/// 被换车辆车型的标定
/// </summary>
public ModbusProperty<ushort> ModelCalibration {get;set;}= new(47004);
/// <summary>
/// 放电池仓位代码
/// 0-无
/// 1-1仓
/// 2-2仓
/// 3-3仓
/// “-”“
/// 110-维修仓1预留
/// 119-消防仓
/// </summary>
public ModbusProperty<ushort> BatteryLocationCodeIn {get;set;}= new(47008);
/// <summary>
/// 取电池仓位代码
/// </summary>
public ModbusProperty<ushort> BatteryLocationCodeUp {get;set;}= new(47009);
/// <summary>
/// 站控操作指令
/// </summary>
public ModbusProperty<ushort> OperationInstruction {get;set;}= new(47010);
/// <summary>
/// 换电模式切换
/// 0
/// 1切换至手动模式指令
/// 2切换至自动模式指令
/// 3切换至单步模式指令
/// </summary>
public ModbusProperty<ushort> ChangePowerMode {get;set;}= new(47011);
/// <summary>
/// 站控指令反馈
/// </summary>
public ModbusProperty<ushort> StationCommandFeedback {get;set;}= new(47012);
/// <summary>
/// 车上亏电电池高度
/// </summary>
public ModbusProperty<ushort> BatteryHeight {get;set;}= new(47014);
/// <summary>
/// 车上亏电电池长度
/// </summary>
public ModbusProperty<ushort> BatteryLength {get;set;}= new(47018);
/// <summary>
/// 车上亏电电池宽度
/// </summary>
public ModbusProperty<ushort> BatteryWidth {get;set;}= new(47022);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby01 {get;set;}= new(47050,start:0,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby02 {get;set;}= new(47050,start:1,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby03 {get;set;}= new(47050,start:2,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby04 {get;set;}= new(47050,start:3,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 充电机散热风扇1 0-关闭排风扇1-开启排风
/// </summary>
public ModbusProperty<bool> ChargerCoolingFan1 {get;set;}= new(47050,start:4,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 充电机散热风扇2
/// </summary>
public ModbusProperty<bool> ChargerCoolingFan2 {get;set;}= new(47050,start:5,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 充电机散热风扇3
/// </summary>
public ModbusProperty<bool> ChargerCoolingFan3 {get;set;}= new(47050,start:6,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 充电机散热风扇4
/// </summary>
public ModbusProperty<bool> ChargerCoolingFan4 {get;set;}= new(47050,start:7,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby05 {get;set;}= new(47050,start:8,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby06 {get;set;}= new(47050,start:9,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby07 {get;set;}= new(47050,start:10,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 备用
/// </summary>
public ModbusProperty<bool> standby08 {get;set;}= new(47050,start:11,length:1,type:ModbusDataType.Bit);
/// <summary>
/// PLC向站控发送关机指令 0-无动作
/// 1-断电关机
/// </summary>
public ModbusProperty<ushort> SendShutdown {get;set;}= new(48002);
/// <summary>
/// 当前自动流程动作代码
/// </summary>
public ModbusProperty<ushort> ActionCode {get;set;}= new(48000);
/// <summary>
/// 电池定位伺服位移
/// </summary>
public ModbusProperty<ushort> BatteryPositioning {get;set;}= new(49016);
/// <summary>
/// y位移
/// </summary>
public ModbusProperty<ushort> YDisplacement {get;set;}= new(49020);
/// <summary>
/// x位移
/// </summary>
public ModbusProperty<ushort> XDisplacement {get;set;}= new(49024);
/// <summary>
/// z位移
/// </summary>
public ModbusProperty<ushort> ZDisplacement {get;set;}= new(49028);
/// <summary>
/// 当前生效故障码1
/// </summary>
public ModbusProperty<ushort> FaultCode1 {get;set;}= new(49032);
/// <summary>
/// 当前生效故障码2
/// </summary>
public ModbusProperty<ushort> FaultCode2 {get;set;}= new(49033);
/// <summary>
/// 当前生效故障码3
/// </summary>
public ModbusProperty<ushort> FaultCode3 {get;set;}= new(49034);
/// <summary>
/// 当前生效故障码4
/// </summary>
public ModbusProperty<ushort> FaultCode4 {get;set;}= new(49035);
/// <summary>
/// 当前生效故障码5
/// </summary>
public ModbusProperty<ushort> FaultCode5 {get;set;}= new(49036);
/// <summary>
/// 当前生效故障码6
/// </summary>
public ModbusProperty<ushort> FaultCode6 {get;set;}= new(49037);
/// <summary>
/// 当前生效故障码7
/// </summary>
public ModbusProperty<ushort> FaultCode7 {get;set;}= new(49038);
/// <summary>
/// 当前生效故障码8
/// </summary>
public ModbusProperty<ushort> FaultCode8 {get;set;}= new(49039);
/// <summary>
/// 当前生效故障码9
/// </summary>
public ModbusProperty<ushort> FaultCode9 {get;set;}= new(49040);
/// <summary>
/// 当前生效故障码10
/// </summary>
public ModbusProperty<ushort> FaultCode10 {get;set;}= new(49041);
/// <summary>
/// 转锁传感器1
/// </summary>
public ModbusProperty<bool> TwistlockSensor1 {get;set;}= new(49042,start:0,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 转锁传感器2
/// </summary>
public ModbusProperty<bool> TwistlockSensor2 {get;set;}= new(49042,start:1,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 吊具落座传感器1
/// </summary>
public ModbusProperty<bool> SpreaderSeatSensor1 {get;set;}= new(49042,start:2,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 吊具落座传感器2
/// </summary>
public ModbusProperty<bool> SpreaderSeatSensor2 {get;set;}= new(49042,start:3,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 光栅状态
/// </summary>
public ModbusProperty<bool> RasterState {get;set;}= new(49042,start:4,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 车辆到位传感器
/// </summary>
public ModbusProperty<bool> VehiclePositionSensor {get;set;}= new(49042,start:5,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 转锁传感器3
/// </summary>
public ModbusProperty<bool> TwistlockSensor3 {get;set;}= new(49042,start:6,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 转锁传感器4
/// </summary>
public ModbusProperty<bool> TwistlockSensor4 {get;set;}= new(49042,start:7,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 吊具落座传感器3
/// </summary>
public ModbusProperty<bool> SpreaderSeatSensor3 {get;set;}= new(49042,start:8,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 吊具落座传感器4
/// </summary>
public ModbusProperty<bool> SpreaderSeatSensor4 {get;set;}= new(49042,start:9,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 吊具电池有无
/// </summary>
public ModbusProperty<bool> SlingDatteryAvailable {get;set;}= new(49042,start:10,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 仓门全部关闭
/// </summary>
public ModbusProperty<bool> AllWarehouseDoorsClosed {get;set;}= new(49042,start:11,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 仓门全部打开
/// </summary>
public ModbusProperty<bool> AllBarnDoorsOpen {get;set;}= new(49042,start:12,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 预留
/// </summary>
public ModbusProperty<bool> reserve01 {get;set;}= new(49042,start:13,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 预留
/// </summary>
public ModbusProperty<bool> reserve02 {get;set;}= new(49042,start:14,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 预留
/// </summary>
public ModbusProperty<bool> reserve03 {get;set;}= new(49042,start:15,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机1落座传感器1 0-不在位1-在位
/// </summary>
public ModbusProperty<bool> Loader1SeatSensor1 {get;set;}= new(49043,start:0,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机1落座传感器2
/// </summary>
public ModbusProperty<bool> Loader1SeatSensor2 {get;set;}= new(49043,start:1,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机2落座传感器1
/// </summary>
public ModbusProperty<bool> Loader2SeatSensor1 {get;set;}= new(49043,start:1,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机2落座传感器2
/// </summary>
public ModbusProperty<bool> Loader2SeatSensor2 {get;set;}= new(49043,start:3,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机3落座传感器1
/// </summary>
public ModbusProperty<bool> Loader3SeatSensor1 {get;set;}= new(49043,start:2,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机3落座传感器2
/// </summary>
public ModbusProperty<bool> Loader3SeatSensor2 {get;set;}= new(49043,start:5,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机4落座传感器1
/// </summary>
public ModbusProperty<bool> Loader4SeatSensor1 {get;set;}= new(49043,start:3,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机4落座传感器2
/// </summary>
public ModbusProperty<bool> Loader4SeatSensor2 {get;set;}= new(49043,start:7,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机5落座传感器1
/// </summary>
public ModbusProperty<bool> Loader5SeatSensor1 {get;set;}= new(49043,start:8,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机5落座传感器2
/// </summary>
public ModbusProperty<bool> Loader5SeatSensor2 {get;set;}= new(49043,start:9,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机6落座传感器1
/// </summary>
public ModbusProperty<bool> Loader6SeatSensor1 {get;set;}= new(49043,start:10,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机6落座传感器2
/// </summary>
public ModbusProperty<bool> Loader6SeatSensor2 {get;set;}= new(49043,start:11,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机7落座传感器1
/// </summary>
public ModbusProperty<bool> Loader7SeatSensor1 {get;set;}= new(49043,start:12,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机7落座传感器2
/// </summary>
public ModbusProperty<bool> Loader7SeatSensor2 {get;set;}= new(49043,start:13,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机8落座传感器1
/// </summary>
public ModbusProperty<bool> Loader8SeatSensor1 {get;set;}= new(49043,start:14,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 加载机8落座传感器2
/// </summary>
public ModbusProperty<bool> Loader8SeatSensor2 {get;set;}= new(49043,start:15,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 换电机器人设备编号
/// </summary>
public ModbusProperty<string> RobotNumber {get;set;}= new(49110,length:20);
/// <summary>
/// PLC软件版本
/// </summary>
public ModbusProperty<ushort> PlcSoftwareVersion {get;set;}= new(49130);
/// <summary>
/// PLC硬件版本
/// </summary>
public ModbusProperty<ushort> PlcHardwareVersion {get;set;}= new(49140);
/// <summary>
/// 架载机状态
/// </summary>
public ModbusProperty<ushort> BoardStatus1 {get;set;}= new(49150,start:0,length:2,type:ModbusDataType.Bit);
public ModbusProperty<ushort> BoardStatus2 {get;set;}= new(49150,start:2,length:2,type:ModbusDataType.Bit);
public ModbusProperty<ushort> BoardStatus3 {get;set;}= new(49150,start:4,length:2,type:ModbusDataType.Bit);
public ModbusProperty<ushort> BoardStatus4 {get;set;}= new(49150,start:6,length:2,type:ModbusDataType.Bit);
/// <summary>
/// TBOX解锁
/// </summary>
public ModbusProperty<ushort> TboxUnlock {get;set;}= new(49151);
/// <summary>
/// 充电机1#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn1 {get;set;}= new(49450);
/// <summary>
/// 充电机1#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut1 {get;set;}= new(49451);
/// <summary>
/// 充电机2#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn2 {get;set;}= new(49452);
/// <summary>
/// 充电机2#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut2 {get;set;}= new(49453);
/// <summary>
/// 充电机3#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn3 {get;set;}= new(49454);
/// <summary>
/// 充电机3#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut3 {get;set;}= new(49455);
/// <summary>
/// 充电机4#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn4 {get;set;}= new(49456);
/// <summary>
/// 充电机4#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut4 {get;set;}= new(49457);
/// <summary>
/// 充电机5#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn5 {get;set;}= new(49458);
/// <summary>
/// 充电机5#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut5 {get;set;}= new(49459);
/// <summary>
/// 充电机6#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn6 {get;set;}= new(49460);
/// <summary>
/// 充电机6#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut6 {get;set;}= new(49461);
/// <summary>
/// 充电机7#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn7 {get;set;}= new(49462);
/// <summary>
/// 充电机7#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut7 {get;set;}= new(49463);
/// <summary>
/// 充电机8#进口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempIn8 {get;set;}= new(49464);
/// <summary>
/// 充电机8#出口温度
/// </summary>
public ModbusProperty<ushort> ChargerTempOut8 {get;set;}= new(49465);
/// <summary>
/// 消防报警信号
/// </summary>
public ModbusProperty<ushort> FireAlarmSignal {get;set;}= new(49467);
/// <summary>
/// 取电池规格(长)
/// </summary>
public ModbusProperty<ushort> BatterySizeTakeLength {get;set;}= new(49468);
/// <summary>
/// 取电池规格(宽)
/// </summary>
public ModbusProperty<ushort> BatterySizeTakeWidth {get;set;}= new(49469);
/// <summary>
/// 取电池规格(高)
/// </summary>
public ModbusProperty<ushort> BatterySizeTakeHigh {get;set;}= new(49470);
/// <summary>
/// 取电池规格(重量)
/// </summary>
public ModbusProperty<ushort> BatteryTakeWeight {get;set;}= new(49471);
/// <summary>
/// 放电池规格(长)
/// </summary>
public ModbusProperty<ushort> BatterySizePutLength {get;set;}= new(49472);
/// <summary>
/// 放电池规格(宽)
/// </summary>
public ModbusProperty<ushort> BatterySizePutWidth {get;set;}= new(49473);
/// <summary>
/// 放电池规格(高)
/// </summary>
public ModbusProperty<ushort> BatterySizePutHigh {get;set;}= new(49474);
/// <summary>
/// 放电池规格(重量)
/// </summary>
public ModbusProperty<ushort> BatteryWeight {get;set;}= new(49475);
/// <summary>
/// X轴伺服故障码
/// </summary>
public ModbusProperty<ushort> XAxisServoFaultCode {get;set;}= new(49476);
/// <summary>
/// 备用(伺服故障码)
/// </summary>
public ModbusProperty<ushort> BackupServoFaultCode {get;set;}= new(49478);
/// <summary>
/// Y轴伺服故障码
/// </summary>
public ModbusProperty<ushort> YAxisServoFaultCode {get;set;}= new(49480);
/// <summary>
/// Z轴伺服故障码
/// </summary>
public ModbusProperty<ushort> ZAxisServoFaultCode {get;set;}= new(49482);
/// <summary>
/// 电池定位伺服故障码
/// </summary>
public ModbusProperty<ushort> BatteryLocationFaultCode {get;set;}= new(49484);
/// <summary>
/// 原点位置状态
/// </summary>
public ModbusProperty<ushort> OriginPositionState {get;set;}= new(49436);
/// <summary>
/// 回原点状态
/// </summary>
public ModbusProperty<ushort> BackOriginState {get;set;}= new(49437);
/// <summary>
/// 中转仓落座传感器1
/// </summary>
public ModbusProperty<bool> TransferBinSeatSensor1 {get;set;}= new(49438,start:0,length:1,type:ModbusDataType.Bit);
/// <summary>
/// 中转仓落座传感器2
/// </summary>
public ModbusProperty<bool> TransferBinSeatSensor2 {get;set;}= new(49438,start:1,length:1,type:ModbusDataType.Bit);
}