355 lines
13 KiB
C#
355 lines
13 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace zpytest
|
|
{
|
|
public class Domain
|
|
{
|
|
public class environment
|
|
{
|
|
public float Cur_48_in { get; set; }
|
|
//接驳版1 24v开关电流
|
|
public float Cur_Switch24_1_1 { get; set; }
|
|
public float Cur_Switch24_1_2 { get; set; }
|
|
public float Cur_Switch24_1_3 { get; set; }
|
|
public float Cur_Switch24_1_4 { get; set; }
|
|
public float Cur_Switch24_1_5 { get; set; }
|
|
//接驳版2 24v开关电流
|
|
public float Cur_Switch24_2_1 { get; set; }
|
|
public float Cur_Switch24_2_2 { get; set; }
|
|
public float Cur_Switch24_2_3 { get; set; }
|
|
public float Cur_Switch24_2_4 { get; set; }
|
|
public float Cur_Switch24_2_5 { get; set; }
|
|
//接驳版3 24v开关电流
|
|
public float Cur_Switch24_3_1 { get; set; }
|
|
public float Cur_Switch24_3_2 { get; set; }
|
|
public float Cur_Switch24_3_3 { get; set; }
|
|
public float Cur_Switch24_3_4 { get; set; }
|
|
public float Cur_Switch24_3_5 { get; set; }
|
|
//接驳版3 12v开关电流
|
|
public float Cur_Switch12_1_1 { get; set; }
|
|
public float Cur_Switch12_1_2 { get; set; }
|
|
public float Cur_Switch12_1_3 { get; set; }
|
|
public float Cur_Switch12_1_4 { get; set; }
|
|
public float Cur_Switch12_1_5 { get; set; }
|
|
//温度4 湿度1 漏水2
|
|
public float Tem1_1_1 { get; set; }
|
|
public float Tem1_1_2 { get; set; }
|
|
public float Tem1_1_3 { get; set; }
|
|
public float Tem1_1_4 { get; set; }
|
|
public float Hum1_1_1 { get; set; }
|
|
public float LK1_1_1 { get; set; }
|
|
public float LK1_1_2 { get; set; }
|
|
//48V 24V 12V接地
|
|
public float Ground_48 { get; set; }
|
|
public float Ground_24 { get; set; }
|
|
public float Ground_12 { get; set; }
|
|
}
|
|
|
|
|
|
|
|
public class Clock
|
|
{
|
|
//工作天数
|
|
public short Dayout { get; set; }
|
|
//每一路的工作时间
|
|
public short JS01 { get; set; }
|
|
public short JS02 { get; set; }
|
|
public short JS03 { get; set; }
|
|
public short JS04 { get; set; }
|
|
public short JS05 { get; set; }
|
|
public short JS06 { get; set; }
|
|
public short JS07 { get; set; }
|
|
public short JS08 { get; set; }
|
|
public short JS09 { get; set; }
|
|
public short JS10 { get; set; }
|
|
public short JS11 { get; set; }
|
|
public short JS12 { get; set; }
|
|
public short JS13 { get; set; }
|
|
public short JS14 { get; set; }
|
|
public short JS15 { get; set; }
|
|
public short JS16 { get; set; }
|
|
public short JS17 { get; set; }
|
|
public short JS18 { get; set; }
|
|
public short JS19 { get; set; }
|
|
public short JS20 { get; set; }
|
|
public short JS21 { get; set; }
|
|
public short JS22 { get; set; }
|
|
public short JS23 { get; set; }
|
|
public short JS24 { get; set; }
|
|
public short JS25 { get; set; }
|
|
public short JS26 { get; set; }
|
|
public short JS27 { get; set; }
|
|
|
|
//定义每一路的关闭时间
|
|
public short KS01 { get; set; }
|
|
public short KS02 { get; set; }
|
|
public short KS03 { get; set; }
|
|
public short KS04 { get; set; }
|
|
public short KS05 { get; set; }
|
|
public short KS06 { get; set; }
|
|
public short KS07 { get; set; }
|
|
public short KS08 { get; set; }
|
|
public short KS09 { get; set; }
|
|
public short KS10 { get; set; }
|
|
public short KS11 { get; set; }
|
|
public short KS12 { get; set; }
|
|
public short KS13 { get; set; }
|
|
public short KS14 { get; set; }
|
|
public short KS15 { get; set; }
|
|
public short KS16 { get; set; }
|
|
public short KS17 { get; set; }
|
|
public short KS18 { get; set; }
|
|
public short KS19 { get; set; }
|
|
public short KS20 { get; set; }
|
|
public short KS21 { get; set; }
|
|
public short KS22 { get; set; }
|
|
public short KS23 { get; set; }
|
|
public short KS24 { get; set; }
|
|
public short KS25 { get; set; }
|
|
public short KS26 { get; set; }
|
|
public short KS27 { get; set; }
|
|
}
|
|
|
|
public class Digital
|
|
{
|
|
//接地控制上位机结构体信号6
|
|
public bool GroundVCC_48 { get; set; }
|
|
public bool GroundGND_48 { get; set; }
|
|
public bool GroundVCC_24 { get; set; }
|
|
public bool GroundGND_24 { get; set; }
|
|
public bool GroundVCC_12 { get; set; }
|
|
public bool GroundGND_12 { get; set; }
|
|
//电源模块使能上位机结构体控制2+2
|
|
public bool Enable24_1 { get; set; }
|
|
public bool Enable24_2 { get; set; }
|
|
public bool Enable12_1 { get; set; }
|
|
public bool Enable12_2 { get; set; }
|
|
//开关控制上位机结构体控制20
|
|
public bool Switch24_1_1 { get; set; }
|
|
public bool Switch24_1_2 { get; set; }
|
|
public bool Switch24_1_3 { get; set; }
|
|
public bool Switch24_1_4 { get; set; }
|
|
public bool Switch24_1_5 { get; set; }
|
|
public bool Switch24_2_1 { get; set; }
|
|
public bool Switch24_2_2 { get; set; }
|
|
public bool Switch24_2_3 { get; set; }
|
|
public bool Switch24_2_4 { get; set; }
|
|
public bool Switch24_2_5 { get; set; }
|
|
public bool Switch24_3_1 { get; set; }
|
|
public bool Switch24_3_2 { get; set; }
|
|
public bool Switch24_3_3 { get; set; }
|
|
public bool Switch24_3_4 { get; set; }
|
|
public bool Switch24_3_5 { get; set; }
|
|
public bool Switch12_1_1 { get; set; }
|
|
public bool Switch12_1_2 { get; set; }
|
|
public bool Switch12_1_3 { get; set; }
|
|
public bool Switch12_1_4 { get; set; }
|
|
public bool Switch12_1_5 { get; set; }
|
|
//内部设备控制上位机结构体控制4
|
|
public bool GKJ { get; set; }
|
|
public bool JHJ { get; set; }
|
|
public bool CK1 { get; set; }
|
|
public bool CK2 { get; set; }
|
|
//数字输出信号灯
|
|
public bool EnableSignal24_1 { get; set; }
|
|
public bool EnableSignal24_2 { get; set; }
|
|
public bool EnableSignal12_1 { get; set; }
|
|
public bool EnableSignal12_2 { get; set; }
|
|
|
|
public bool SwitchSignal24_1_1 { get; set; }
|
|
public bool SwitchSignal24_1_2 { get; set; }
|
|
public bool SwitchSignal24_1_3 { get; set; }
|
|
public bool SwitchSignal24_1_4 { get; set; }
|
|
public bool SwitchSignal24_1_5 { get; set; }
|
|
|
|
public bool SwitchSignal24_2_1 { get; set; }
|
|
public bool SwitchSignal24_2_2 { get; set; }
|
|
public bool SwitchSignal24_2_3 { get; set; }
|
|
public bool SwitchSignal24_2_4 { get; set; }
|
|
public bool SwitchSignal24_2_5 { get; set; }
|
|
|
|
public bool SwitchSignal24_3_1 { get; set; }
|
|
public bool SwitchSignal24_3_2 { get; set; }
|
|
public bool SwitchSignal24_3_3 { get; set; }
|
|
public bool SwitchSignal24_3_4 { get; set; }
|
|
public bool SwitchSignal24_3_5 { get; set; }
|
|
|
|
public bool SwitchSignal12_1_1 { get; set; }
|
|
public bool SwitchSignal12_1_2 { get; set; }
|
|
public bool SwitchSignal12_1_3 { get; set; }
|
|
public bool SwitchSignal12_1_4 { get; set; }
|
|
public bool SwitchSignal12_1_5 { get; set; }
|
|
|
|
public bool GKJSignal { get; set; }
|
|
public bool JHJSignal { get; set; }
|
|
public bool CK1Signal { get; set; }
|
|
public bool CK2Signal { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 串口参数配置
|
|
/// </summary>
|
|
public class serialport_set
|
|
{
|
|
public int id { get; set; }
|
|
public string datetime { get; set; }
|
|
public string para_name { get; set; }
|
|
public string port_name { get; set; }
|
|
public string baudrate { get; set; }
|
|
public string parity { get; set; }
|
|
public string databits { get; set; }
|
|
public string stopbits { get; set; }
|
|
}
|
|
|
|
public class YLSYG_Data
|
|
{
|
|
public float v_in { get; set; }
|
|
public float v_yg { get; set; }
|
|
public float nd_yg { get; set; }
|
|
}
|
|
public class DHFJYG_Data
|
|
{
|
|
public float v_in { get; set; }
|
|
public float v_yg { get; set; }
|
|
public float nd_yg { get; set; }
|
|
}
|
|
public class WSWYG_Data
|
|
{
|
|
public float v_in { get; set; }
|
|
public float v_yg { get; set; }
|
|
public float nd_yg { get; set; }
|
|
}
|
|
public class LDMYG_Data
|
|
{
|
|
public float v_in { get; set; }
|
|
public float v_yg { get; set; }
|
|
public float nd_yg { get; set; }
|
|
}
|
|
|
|
public class CZT_Data
|
|
{
|
|
public float Tem { get; set; }
|
|
public float Hum { get; set; }
|
|
public float Count { get; set; }
|
|
}
|
|
|
|
|
|
public class ZPY_Data
|
|
{
|
|
public float data1 { get; set; }
|
|
public float data2 { get; set; }
|
|
public float data3 { get; set; }
|
|
public float data4 { get; set; }
|
|
public float data5 { get; set; }
|
|
public float data6 { get; set; }
|
|
public float data7 { get; set; }
|
|
public float data8 { get; set; }
|
|
public float data9 { get; set; }
|
|
public float data10 { get; set; }
|
|
}
|
|
public class ZPY_State
|
|
{
|
|
public float temp { get; set; }
|
|
public float hum { get; set; }
|
|
public float pre { get; set; }
|
|
}
|
|
//闪烁晶体
|
|
public class state_SSJT
|
|
{
|
|
public int count { set; get; }
|
|
public float front_temp { set; get; }
|
|
public float voltage { set; get; }
|
|
public string time { set; get; }
|
|
public string angle { set; get; }
|
|
public float temp { set; get; }
|
|
public float hum { set; get; }
|
|
public int Count_rate { set; get; }
|
|
public bool state { set; get; } //工作状态
|
|
public float data_flash { set; get; }//flash数据剩余容量
|
|
public float state_flash { set; get; }//flash状态剩余容量
|
|
public int channel_count { set; get; }//通道数量
|
|
}
|
|
|
|
public class data_SSJT
|
|
{
|
|
public string time { set; get; }
|
|
public int channel_count { set; get; }
|
|
public int fragment_count { set; get; }
|
|
public string data { set; get; }
|
|
}
|
|
|
|
|
|
//气象色谱仪
|
|
public class state_QXSP
|
|
{
|
|
public float temp_spz { set; get; }
|
|
public float temp_jcq { set; get; }
|
|
public float temp_ltf { set; get; }
|
|
public float temp_brg { set; get; }
|
|
public float temp_fjz { set; get; }
|
|
public float pre_cyg { set; get; }
|
|
public float pre_zq { set; get; }
|
|
public float pre_gd { set; get; }
|
|
public float pre { set; get; }
|
|
public float temp { set; get; }
|
|
public float hum { set; get; }
|
|
}
|
|
|
|
public class data_QXSP
|
|
{
|
|
public float date_np { set; get; }
|
|
}
|
|
|
|
public class MEMS
|
|
{
|
|
public float pre { set; get; }
|
|
public float hum { set; get; }
|
|
public float tem { set; get; }
|
|
public float data1 { set; get; }
|
|
public float data2 { set; get; }
|
|
public float data3 { set; get; }
|
|
public float data4 { set; get; }
|
|
public float data5 { set; get; }
|
|
public float data6 { set; get; }
|
|
public float data7 { set; get; }
|
|
public float data8 { set; get; }
|
|
public float data9 { set; get; }
|
|
public float data10 { set; get; }
|
|
public float data11 { set; get; }
|
|
public float data12 { set; get; }
|
|
public float data13 { set; get; }
|
|
public float data14 { set; get; }
|
|
public float data15 { set; get; }
|
|
public float data16 { set; get; }
|
|
public float data17 { set; get; }
|
|
public float data18 { set; get; }
|
|
public float data19 { set; get; }
|
|
public float data20 { set; get; }
|
|
}
|
|
|
|
public class RJQGP
|
|
{
|
|
public float nd1 { set; get; }
|
|
public float nd2 { set; get; }
|
|
public float nd3 { set; get; }
|
|
public float nd4 { set; get; }
|
|
public float temp { set; get; }
|
|
public float hum { set; get; }
|
|
}
|
|
|
|
public class RJQGP2
|
|
{
|
|
public float nd1 { set; get; }
|
|
public float nd2 { set; get; }
|
|
public float nd3 { set; get; }
|
|
public float nd4 { set; get; }
|
|
public float temp { set; get; }
|
|
public float hum { set; get; }
|
|
}
|
|
|
|
}
|
|
}
|