|
|
|
|
using DotNetty.Transport.Channels;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace HybirdFrameworkServices
|
|
|
|
|
{
|
|
|
|
|
public class CmnChargingsEqmInfo
|
|
|
|
|
{
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
private static object lockObj = new object(); //<2F>߳<EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>
|
|
|
|
|
#endregion <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
#region <20>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>վ<EFBFBD><D5BE><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal static string _station_no = "";
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD>վ<EFBFBD><D5BE><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static string F_StationNo
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _station_no;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
lock (lockObj)
|
|
|
|
|
{
|
|
|
|
|
_station_no = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>λ<EFBFBD>г<EFBFBD><D0B3><EFBFBD>ʵʱ<CAB5><CAB1><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal static float[] _bin_powers = new float[7] { 0, 0, 0, 0, 0, 0, 0 };
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <20><>λ<EFBFBD>г<EFBFBD><D0B3><EFBFBD>ʵʱ<CAB5><CAB1><EFBFBD><EFBFBD>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static float[] F_BinPowers
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _bin_powers;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
lock (lockObj)
|
|
|
|
|
{
|
|
|
|
|
_bin_powers = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion <20>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>
|
|
|
|
|
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 <20><><EFBFBD><EFBFBD><EFBFBD>ֶ<EFBFBD>
|
|
|
|
|
|
|
|
|
|
#region <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״ֵ̬
|
|
|
|
|
|
|
|
|
|
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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>״ֵ̬
|
|
|
|
|
}
|
|
|
|
|
}
|