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.

119 lines
5.1 KiB

using BatCharging.Service;
using DotNetty.Transport.Channels;
using System;
namespace BatCharging.Manager
{
public class CmnChargingsEqmInfo
{
#region 定义锁
private static object lockObj = new object(); //线程同步锁
#endregion 定义锁
#region 字段属性
/// <summary>
/// 换电站编码
/// </summary>
internal static string _station_no = "";
/// <summary>
/// 换电站编码
/// </summary>
public static string F_StationNo
{
get
{
return _station_no;
}
set
{
lock (lockObj)
{
_station_no = value;
}
}
}
/// <summary>
/// 仓位中充电实时功率
/// </summary>
internal static float[] _bin_powers = new float[7] { 0, 0, 0, 0, 0, 0, 0 };
/// <summary>
/// 仓位中充电实时功率
/// </summary>
public static float[] F_BinPowers
{
get
{
return _bin_powers;
}
set
{
lock (lockObj)
{
_bin_powers = value;
}
}
}
#endregion 字段属性
#region 基础字段
public static string _OUTCHR01IPADDR = "172.0.30.30";
public static string _OUTCHR02IPADDR = "172.0.30.31";
public static string _OUTCHR03IPADDR = "172.0.30.32";
public static string _OUTCHR04IPADDR = "172.0.30.33";
public static int _OUTCHR01PORT = 4567;
public static int _OUTCHR02PORT = 4567;
public static int _OUTCHR03PORT = 4567;
public static int _OUTCHR04PORT = 4567;
public static IChannelId _ID;
public static string _CHR0IPADDR = "0.0.0.0";
public static int _CHR0PORT = 4567;
public static string _EQMCODE = "";
public volatile static ChargerMgrTool _CHR01 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR02 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR03 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR04 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR05 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR06 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR07 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR08 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR09 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR10 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR11 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR12 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR13 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR14 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR15 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR16 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR17 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR18 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR19 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR20 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR21 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR22 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR23 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
public volatile static ChargerMgrTool _CHR24 = new ChargerMgrTool(_ID, _CHR0IPADDR, _CHR0PORT, _EQMCODE);
#endregion 基础字段
#region 充电机工作状态值
public static byte _CHR01WORKVAL = 0;
public static byte _CHR02WORKVAL = 0;
public static byte _CHR03WORKVAL = 0;
public static byte _CHR04WORKVAL = 0;
public static byte _CHR05WORKVAL = 0;
public static byte _CHR06WORKVAL = 0;
public static byte _CHR07WORKVAL = 0;
public static byte[] _CHRSWORKVAL = new byte[] { 0, 0, 0, 0, 0, 0, 0 };
#endregion 充电机工作状态值
}
}