|
|
|
@ -19,7 +19,7 @@ namespace Aucma.Core.DataCollector.Factory
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 采集成品分垛设备报警信息
|
|
|
|
|
/// 采集成品A库分垛设备报警信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="deviceAlarmInfos"></param>
|
|
|
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
|
|
@ -29,13 +29,14 @@ namespace Aucma.Core.DataCollector.Factory
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var deviceParams1 = base._deviceParamServices.Query(x => x.DeviceCode == "E00023");
|
|
|
|
|
|
|
|
|
|
if (_plc != null)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}采集成品分垛设备报警信息");
|
|
|
|
|
var plc = _plc.plc;
|
|
|
|
|
|
|
|
|
|
var deviceParams = base._deviceParamServices.Query(x => x.DeviceCode == "E00002");
|
|
|
|
|
var deviceParams = base._deviceParamServices.Query(x => x.DeviceCode == "E00023");
|
|
|
|
|
|
|
|
|
|
if (deviceParams != null)
|
|
|
|
|
{
|
|
|
|
@ -94,7 +95,7 @@ namespace Aucma.Core.DataCollector.Factory
|
|
|
|
|
{
|
|
|
|
|
if (_plc != null)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}采集设备用电数据");
|
|
|
|
|
Console.WriteLine($"{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}采集成品分垛设备用电数据");
|
|
|
|
|
var plc = _plc.plc;
|
|
|
|
|
|
|
|
|
|
deviceElectricitys = new List<Record_DeviceElectricity>();
|
|
|
|
@ -104,7 +105,8 @@ namespace Aucma.Core.DataCollector.Factory
|
|
|
|
|
|
|
|
|
|
Record_DeviceElectricity _deviceElectricity_ground = new Record_DeviceElectricity()
|
|
|
|
|
{
|
|
|
|
|
MonitorId = "E0003"
|
|
|
|
|
// A库B区域
|
|
|
|
|
MonitorId = "E00023_0002"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
base.ReadDeviceElectricity(ground, plc, ref _deviceElectricity_ground);
|
|
|
|
@ -115,7 +117,8 @@ namespace Aucma.Core.DataCollector.Factory
|
|
|
|
|
|
|
|
|
|
Record_DeviceElectricity _deviceElectricity_platform = new Record_DeviceElectricity()
|
|
|
|
|
{
|
|
|
|
|
MonitorId = "E0004"
|
|
|
|
|
// A库A区域
|
|
|
|
|
MonitorId = "E00023_0001"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
base.ReadDeviceElectricity(platform, plc, ref _deviceElectricity_platform);
|
|
|
|
|