|
|
using DataBlockHelper.DBHelpers;
|
|
|
using Mesnac.Action.Base;
|
|
|
using Mesnac.Controls.Base;
|
|
|
using Mesnac.Controls.ChemicalWeighing;
|
|
|
using Mesnac.Controls.Default;
|
|
|
using Mesnac.Controls.Feeding;
|
|
|
using Mesnac.Core.Service;
|
|
|
using System;
|
|
|
using System.Collections.Concurrent;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Diagnostics;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading;
|
|
|
using System.Windows.Forms;
|
|
|
using IAction = Mesnac.Action.Base.IAction;
|
|
|
using Timer = System.Windows.Forms.Timer;
|
|
|
using DataTable = System.Data.DataTable;
|
|
|
using Mesnac.Action.ChemicalWeighing.LjMaterial;
|
|
|
using System.Data;
|
|
|
using Mesnac.Action.ChemicalWeighing.MainDetailControl.Entity;
|
|
|
using Mesnac.Action.ChemicalWeighing.RgvPlc;
|
|
|
using System.Reflection;
|
|
|
using DataBlockHelper;
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
{
|
|
|
public class MainDetailControlAction : ChemicalWeighingAction, IAction
|
|
|
{
|
|
|
|
|
|
#region plc读取类 Timer 线程字典 DataTable
|
|
|
|
|
|
private DB2102Helper DB2102 = new DB2102Helper();
|
|
|
private DB2103Helper DB2103 = new DB2103Helper();
|
|
|
private DB2107Helper DB2107 = new DB2107Helper();
|
|
|
private ConcurrentDictionary<string, object> conCurrentCache = new ConcurrentDictionary<string, object>();
|
|
|
|
|
|
private Timer timer;
|
|
|
|
|
|
DataTable ParametersWithPCTable = new DataTable();
|
|
|
DataTable AllAlarmTable = new DataTable();
|
|
|
DataTable LogAlarmTable = new DataTable();
|
|
|
DataTable NowAlarmTable = new DataTable();
|
|
|
DataTable TempTable = new DataTable();
|
|
|
|
|
|
byte[] b2;
|
|
|
byte[] b3;
|
|
|
byte[] b7;
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 控件变量
|
|
|
|
|
|
private List<Control> Controls;
|
|
|
private List<DbMCControl> McControllist;
|
|
|
private DeviceDetailEntity DeviceDetailReportForm = new DeviceDetailEntity();
|
|
|
private PlcReadTempEntity PlcReadTemp = new PlcReadTempEntity();
|
|
|
private DbMCControl AlarmForm = null; //物料列表控件
|
|
|
private MCLabel MCWatchDog;
|
|
|
HslLanternAlarmEntity hslAlarmEntity;
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Run方法
|
|
|
|
|
|
public void Run(RuntimeParameter runtime)
|
|
|
{
|
|
|
|
|
|
base.RunIni(runtime); //必须要调用
|
|
|
|
|
|
McControllist = GetAllDbMCControlsByOption(DbOptionTypes.InitData);//获取所有待初始化控件
|
|
|
|
|
|
this.AlarmForm = McControllist.FirstOrDefault(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey == "AlarmForm");
|
|
|
|
|
|
//this.GetDbMCControlByKey(Mesnac.Basic.DataSourceFactory.MCDbType.Local, "AlarmForm").FirstOrDefault(); //获取物料数据控件
|
|
|
|
|
|
Controls = GetAllControls();
|
|
|
|
|
|
//更细自定义控件报警灯
|
|
|
FillControlHslLanternAlarm();
|
|
|
|
|
|
MCWatchDog =Controls.FirstOrDefault(x => x.Name == "MCWatchDog") as MCLabel;
|
|
|
|
|
|
ParametersWithPCTable.Columns.Add("id", typeof(string));
|
|
|
ParametersWithPCTable.Columns.Add("mode", typeof(bool));
|
|
|
ParametersWithPCTable.Columns.Add("status", typeof(bool));
|
|
|
ParametersWithPCTable.Columns.Add("batch", typeof(int));
|
|
|
ParametersWithPCTable.Columns.Add("step", typeof(int));
|
|
|
ParametersWithPCTable.Columns.Add("stepName", typeof(int));
|
|
|
ParametersWithPCTable.Columns.Add("totalTime", typeof(int));
|
|
|
ParametersWithPCTable.Columns.Add("stepTime", typeof(int));
|
|
|
ParametersWithPCTable.Columns.Add("speed", typeof(float));
|
|
|
ParametersWithPCTable.Columns.Add("currnet", typeof(float));
|
|
|
ParametersWithPCTable.Columns.Add("pressure", typeof(float));
|
|
|
|
|
|
LogAlarmTable.Columns.Add("Equip_Name", typeof(string));
|
|
|
LogAlarmTable.Columns.Add("Alarm_ID", typeof(int));
|
|
|
LogAlarmTable.Columns.Add("Alarm_Cn_Info", typeof(string));
|
|
|
LogAlarmTable.Columns.Add("Alarm_Other_Info", typeof(string));
|
|
|
LogAlarmTable.Columns.Add("Alarm_Occur_Time", typeof(string));
|
|
|
LogAlarmTable.Columns.Add("Alarm_Claer_Time", typeof(string));
|
|
|
LogAlarmTable.Columns.Add("Alarm_Status", typeof(int));
|
|
|
LogAlarmTable.Columns.Add("Alarm_GUID", typeof(string));
|
|
|
|
|
|
NowAlarmTable.Columns.Add("报警设备", typeof(string));
|
|
|
NowAlarmTable.Columns.Add("报警内容", typeof(string));
|
|
|
NowAlarmTable.Columns.Add("报警时间", typeof(string));
|
|
|
|
|
|
TempTable.Columns.Add("报警设备", typeof(string));
|
|
|
TempTable.Columns.Add("报警内容", typeof(string));
|
|
|
TempTable.Columns.Add("报警时间", typeof(string));
|
|
|
|
|
|
AllAlarmTable = DBHelp.GetTable(@"SELECT Alarm_ID, Alarm_Block, Alarm_Word, Alarm_Bit, Alarm_Cn_Info, Alarm_Other_Info FROM Pmt_Alarm");
|
|
|
|
|
|
SetControl();
|
|
|
|
|
|
timer = new Timer();
|
|
|
timer.Interval = 1000;
|
|
|
timer.Enabled = true;
|
|
|
timer.Tick += GetPlcValue;//添加事件
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 线程新建,计时器调用
|
|
|
|
|
|
/// <summary>
|
|
|
/// 新建PLC读取线程
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
private void NewThread(object obj)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
|
|
|
if (conCurrentCache.Count == 0)
|
|
|
{
|
|
|
|
|
|
Stopwatch stopwatch = new Stopwatch();
|
|
|
stopwatch.Start();
|
|
|
|
|
|
conCurrentCache.TryAdd("plc", DateTime.Now);
|
|
|
|
|
|
DB2102 = new DB2102Helper();
|
|
|
DB2103 = new DB2103Helper();
|
|
|
DB2107 = new DB2107Helper();
|
|
|
|
|
|
NewThreadDb2102();
|
|
|
NewThreadDb2103();
|
|
|
NewThreadDb2107();
|
|
|
|
|
|
//SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm3, list[2].Error);
|
|
|
//SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm4, list[3].Error);
|
|
|
//SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm5, list[4].Error);
|
|
|
//SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm6, list[5].Error);
|
|
|
//SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm7, list[6].Error);
|
|
|
//SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm8, list[7].Error);
|
|
|
|
|
|
|
|
|
conCurrentCache.Clear();
|
|
|
|
|
|
stopwatch.Stop();
|
|
|
var send = stopwatch.ElapsedMilliseconds;
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("结束" + send);
|
|
|
|
|
|
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
MesnacServiceManager.Instance.LoggingService.Info("设备细节画面读数线程被过滤");
|
|
|
}
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
conCurrentCache.Clear();
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// Plc读数线程池,定时器退出删除
|
|
|
/// </summary>
|
|
|
private void GetPlcValue(object sender, EventArgs e)
|
|
|
{
|
|
|
if (GetAllDbMCControlsByOption(DbOptionTypes.QueryAndModify).Count == 0)
|
|
|
{
|
|
|
timer.Stop();
|
|
|
timer.Dispose();
|
|
|
}
|
|
|
|
|
|
//目前只有主线程可以
|
|
|
var list = RgvPlcUtil.GetRGVAllError();
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm1, list[0].Error);
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm2, list[1].Error);
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm3, list[2].Error);
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm4, list[3].Error);
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm5, list[4].Error);
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm6, list[5].Error);
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm7, list[6].Error);
|
|
|
SetHslLanternAlarm(hslAlarmEntity.HslLanternAlarm8, list[7].Error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ThreadPool.QueueUserWorkItem(new WaitCallback(NewThread));
|
|
|
|
|
|
AlarmControl();
|
|
|
//现有报警刷新
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 报警管理
|
|
|
|
|
|
private void AlarmControl()
|
|
|
{
|
|
|
//DataTable TempTable = DBHelp.GetTable(@"SELECT
|
|
|
// t2.Alarm_Other_Info,
|
|
|
// t2.Alarm_Cn_Info,
|
|
|
// t1.Alarm_OccurTime
|
|
|
// FROM
|
|
|
// LR_Alarmlog t1
|
|
|
// LEFT JOIN Pmt_Alarm t2 ON t1.Alarm_ID = t2.Alarm_ID
|
|
|
// WHERE
|
|
|
// t1.Alarm_Status = 1
|
|
|
// ORDER BY
|
|
|
// t1.Alarm_OccurTime desc");
|
|
|
|
|
|
b2 = DB2102.bytes;
|
|
|
b3 = DB2103.bytes;
|
|
|
b7 = DB2107.bytes;
|
|
|
|
|
|
TempTable.Rows.Clear();
|
|
|
|
|
|
string nowtime = DateTime.Now.ToString();
|
|
|
//报警点位遍历
|
|
|
foreach (DataRow rows in AllAlarmTable.Rows)
|
|
|
{
|
|
|
if ((int)rows["Alarm_Block"] == 2102 && b2[(int)rows["Alarm_Word"]].GetBit((int)rows["Alarm_bit"]) == true)
|
|
|
{
|
|
|
DataRow dr = TempTable.NewRow();
|
|
|
dr[0] = rows["Alarm_Cn_Info"];
|
|
|
dr[1] = rows["Alarm_Other_Info"];
|
|
|
dr[2] = nowtime;
|
|
|
TempTable.Rows.Add(dr);
|
|
|
}
|
|
|
else if ((int)rows["Alarm_Block"] == 2107 && b7[(int)rows["Alarm_Word"]].GetBit((int)rows["Alarm_bit"]) == true)
|
|
|
{
|
|
|
DataRow dr = TempTable.NewRow();
|
|
|
dr[0] = rows["Alarm_Cn_Info"];
|
|
|
dr[1] = rows["Alarm_Other_Info"];
|
|
|
dr[2] = nowtime;
|
|
|
TempTable.Rows.Add(dr);
|
|
|
}
|
|
|
else if ((int)rows["Alarm_Block"] == 2103 && b3[(int)rows["Alarm_Word"]].GetBit((int)rows["Alarm_bit"]) == true)
|
|
|
{
|
|
|
DataRow dr = TempTable.NewRow();
|
|
|
dr[0] = rows["Alarm_Cn_Info"];
|
|
|
dr[1] = rows["Alarm_Other_Info"];
|
|
|
dr[2] = nowtime;
|
|
|
TempTable.Rows.Add(dr);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (this.AlarmForm != null && this.AlarmForm.BaseControl != null)
|
|
|
{
|
|
|
this.AlarmForm.BaseControl.BindDataSource = null;
|
|
|
this.AlarmForm.BaseControl.BindDataSource = TempTable;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 图像数据读取、控件赋值
|
|
|
|
|
|
/// <summary>
|
|
|
/// DB2102数据读取、控件赋值
|
|
|
/// </summary>
|
|
|
private void NewThreadDb2102()
|
|
|
{
|
|
|
|
|
|
PlcReadTemp.BU1ASF01_Set = DB2102.BU1ASF01.Set;
|
|
|
PlcReadTemp.BU1BSF01_Set = DB2102.BU1BSF01.Set;
|
|
|
PlcReadTemp.BU1CSF01_Set = DB2102.BU1CSF01.Set;
|
|
|
PlcReadTemp.BU1DSF01_Set = DB2102.BU1DSF01.Set;
|
|
|
PlcReadTemp.BU1ESF01_Set = DB2102.BU1ESF01.Set;
|
|
|
PlcReadTemp.BU1FSF01_Set = DB2102.BU1FSF01.Set;
|
|
|
PlcReadTemp.BU1GSF01_Set = DB2102.BU1GSF01.Set;
|
|
|
PlcReadTemp.BU1HSF01_Set = DB2102.BU1HSF01.Set;
|
|
|
PlcReadTemp.BU1ISF01_Set = DB2102.BU1ISF01.Set;
|
|
|
PlcReadTemp.BU1JSF01_Set = DB2102.BU1JSF01.Set;
|
|
|
PlcReadTemp.BU1KSF01_Set = DB2102.BU1KSF01.Set;
|
|
|
PlcReadTemp.BU1LSF01_Set = DB2102.BU1LSF01.Set;
|
|
|
PlcReadTemp.BU1MSF01_Set = DB2102.BU1MSF01.Set;
|
|
|
PlcReadTemp.BU1NSF01_Set = DB2102.BU1NSF01.Set;
|
|
|
PlcReadTemp.BU1OSF01_Set = DB2102.BU1OSF01.Set;
|
|
|
PlcReadTemp.BU1BLT01_Set = DB2102.BU1BLT01.Set;
|
|
|
PlcReadTemp.BU1BLT02_Set = DB2102.BU1BLT02.Set;
|
|
|
PlcReadTemp.BU1BLT03_Set = DB2102.BU1BLT03.Set;
|
|
|
PlcReadTemp.BU1BLT04_Set = DB2102.BU1BLT04.Set;
|
|
|
PlcReadTemp.BU1BLT05_Set = DB2102.BU1BLT05.Set;
|
|
|
PlcReadTemp.BU1BLT06_Set = DB2102.BU1BLT06.Set;
|
|
|
PlcReadTemp.BU1BLT07_Set = DB2102.BU1BLT07.Set;
|
|
|
PlcReadTemp.BU2BLT01_Set = DB2102.BU2BLT01.Set;
|
|
|
PlcReadTemp.BU2BLT02_Set = DB2102.BU2BLT02.Set;
|
|
|
PlcReadTemp.BU2BLT03_Set = DB2102.BU2BLT03.Set;
|
|
|
PlcReadTemp.BU2BLT04_Set = DB2102.BU2BLT04.Set;
|
|
|
PlcReadTemp.BU2BLT05_Set = DB2102.BU2BLT05.Set;
|
|
|
PlcReadTemp.BU3BLT01_Set = DB2102.BU3BLT01.Set;
|
|
|
PlcReadTemp.BU3BLT02_Set = DB2102.BU3BLT02.Set;
|
|
|
PlcReadTemp.BU3BLT03_Set = DB2102.BU3BLT03.Set;
|
|
|
PlcReadTemp.BU3BLT04_Set = DB2102.BU3BLT04.Set;
|
|
|
PlcReadTemp.BU3BLT05_Set = DB2102.BU3BLT05.Set;
|
|
|
PlcReadTemp.BU3BLT06_Set = DB2102.BU3BLT06.Set;
|
|
|
PlcReadTemp.BU3BLT07_Set = DB2102.BU3BLT07.Set;
|
|
|
PlcReadTemp.BU4BLT01_Set = DB2102.BU4BLT01.Set;
|
|
|
PlcReadTemp.BU4BLT02_Set = DB2102.BU4BLT02.Set;
|
|
|
PlcReadTemp.BU4BLT03_Set = DB2102.BU4BLT03.Set;
|
|
|
PlcReadTemp.BU4BLT04_Set = DB2102.BU4BLT04.Set;
|
|
|
PlcReadTemp.BU4BLT05_Set = DB2102.BU4BLT05.Set;
|
|
|
PlcReadTemp.BU4BLT06_Set = DB2102.BU4BLT06.Set;
|
|
|
PlcReadTemp.BU4BLT07_Set = DB2102.BU4BLT07.Set;
|
|
|
PlcReadTemp.BU5BLT01_Set = DB2102.BU5BLT01.Set;
|
|
|
PlcReadTemp.BU5BLT02_Set = DB2102.BU5BLT02.Set;
|
|
|
PlcReadTemp.BU5BLT03_Set = DB2102.BU5BLT03.Set;
|
|
|
PlcReadTemp.BU5BLT04_Set = DB2102.BU5BLT04.Set;
|
|
|
PlcReadTemp.BU1ADB01_Set = DB2102.BU1ADB01.Set;
|
|
|
PlcReadTemp.BU1BDB01_Set = DB2102.BU1BDB01.Set;
|
|
|
PlcReadTemp.BU1CDB01_Set = DB2102.BU1CDB01.Set;
|
|
|
PlcReadTemp.BU1DDB01_Set = DB2102.BU1DDB01.Set;
|
|
|
PlcReadTemp.BU1EDB01_Set = DB2102.BU1EDB01.Set;
|
|
|
PlcReadTemp.BU1FDB01_Set = DB2102.BU1FDB01.Set;
|
|
|
PlcReadTemp.BU1GDB01_Set = DB2102.BU1GDB01.Set;
|
|
|
PlcReadTemp.BU1HDB01_Set = DB2102.BU1HDB01.Set;
|
|
|
PlcReadTemp.BU1IDB01_Set = DB2102.BU1IDB01.Set;
|
|
|
PlcReadTemp.BU1JDB01_Set = DB2102.BU1JDB01.Set;
|
|
|
PlcReadTemp.BU1KDB01_Set = DB2102.BU1KDB01.Set;
|
|
|
PlcReadTemp.BU1LDB01_Set = DB2102.BU1LDB01.Set;
|
|
|
|
|
|
|
|
|
PlcReadTemp.BU1GEB02_Set = DB2102.BU1GEB02.Set;
|
|
|
PlcReadTemp.BU2GEB02_Set = DB2102.BU2GEB02.Set;
|
|
|
PlcReadTemp.BU3GEB02_Set = DB2102.BU3GEB02.Set;
|
|
|
PlcReadTemp.BU4GEB02_Set = DB2102.BU4GEB02.Set;
|
|
|
PlcReadTemp.BU5GEB02_Set = DB2102.BU5GEB02.Set;
|
|
|
PlcReadTemp.BU6GEB02_Set = DB2102.BU6GEB02.Set;
|
|
|
PlcReadTemp.BU7GEB02_Set = DB2102.BU7GEB02.Set;
|
|
|
PlcReadTemp.BU8GEB02_Set = DB2102.BU8GEB02.Set;
|
|
|
PlcReadTemp.BU1DRB01_Set = DB2102.BU1DRB01.Set;
|
|
|
PlcReadTemp.BU2DRB01_Set = DB2102.BU2DRB01.Set;
|
|
|
PlcReadTemp.BU3DRB01_Set = DB2102.BU3DRB01.Set;
|
|
|
PlcReadTemp.BU4DRB01_Set = DB2102.BU4DRB01.Set;
|
|
|
PlcReadTemp.BU1GEB01_Set = DB2102.BU1GEB01.Set;
|
|
|
PlcReadTemp.BU2GEB01_Set = DB2102.BU2GEB01.Set;
|
|
|
PlcReadTemp.BU3GEB01_Set = DB2102.BU3GEB01.Set;
|
|
|
PlcReadTemp.BU4GEB01_Set = DB2102.BU4GEB01.Set;
|
|
|
PlcReadTemp.BU5GEB01_Set = DB2102.BU5GEB01.Set;
|
|
|
PlcReadTemp.BU6GEB01_Set = DB2102.BU6GEB01.Set;
|
|
|
PlcReadTemp.BU7GEB01_Set = DB2102.BU7GEB01.Set;
|
|
|
PlcReadTemp.BU8GEB01_Set = DB2102.BU8GEB01.Set;
|
|
|
PlcReadTemp.BU2ASF01_Set = DB2102.BU2ASF01.Set;
|
|
|
PlcReadTemp.BU2ASF02_Set = DB2102.BU2ASF02.Set;
|
|
|
PlcReadTemp.BU2BSF01_Set = DB2102.BU2BSF01.Set;
|
|
|
PlcReadTemp.BU2BSF02_Set = DB2102.BU2BSF02.Set;
|
|
|
PlcReadTemp.BU2CSF01_Set = DB2102.BU2CSF01.Set;
|
|
|
PlcReadTemp.BU2CSF02_Set = DB2102.BU2CSF02.Set;
|
|
|
PlcReadTemp.BU2DSF01_Set = DB2102.BU2DSF01.Set;
|
|
|
PlcReadTemp.BU2DSF02_Set = DB2102.BU2DSF02.Set;
|
|
|
PlcReadTemp.BUWeter1_Set = DB2102.BUWeter1.Set;
|
|
|
PlcReadTemp.BUWeter2_Set = DB2102.BUWeter2.Set;
|
|
|
PlcReadTemp.BUWeter3_Set = DB2102.BUWeter3.Set;
|
|
|
PlcReadTemp.BUWeter4_Set = DB2102.BUWeter4.Set;
|
|
|
PlcReadTemp.BUWeter5_Set = DB2102.BUWeter5.Set;
|
|
|
PlcReadTemp.BUWeter6_Set = DB2102.BUWeter6.Set;
|
|
|
PlcReadTemp.BUWeter7_Set = DB2102.BUWeter7.Set;
|
|
|
PlcReadTemp.BUWeter8_Set = DB2102.BUWeter8.Set;
|
|
|
|
|
|
PlcReadTemp.BU1ASF01_Alarm = DB2102.BU1ASF01.Alarm;
|
|
|
PlcReadTemp.BU1BSF01_Alarm = DB2102.BU1BSF01.Alarm;
|
|
|
PlcReadTemp.BU1CSF01_Alarm = DB2102.BU1CSF01.Alarm;
|
|
|
PlcReadTemp.BU1DSF01_Alarm = DB2102.BU1DSF01.Alarm;
|
|
|
PlcReadTemp.BU1ESF01_Alarm = DB2102.BU1ESF01.Alarm;
|
|
|
PlcReadTemp.BU1FSF01_Alarm = DB2102.BU1FSF01.Alarm;
|
|
|
PlcReadTemp.BU1GSF01_Alarm = DB2102.BU1GSF01.Alarm;
|
|
|
PlcReadTemp.BU1HSF01_Alarm = DB2102.BU1HSF01.Alarm;
|
|
|
PlcReadTemp.BU1ISF01_Alarm = DB2102.BU1ISF01.Alarm;
|
|
|
PlcReadTemp.BU1JSF01_Alarm = DB2102.BU1JSF01.Alarm;
|
|
|
PlcReadTemp.BU1KSF01_Alarm = DB2102.BU1KSF01.Alarm;
|
|
|
PlcReadTemp.BU1LSF01_Alarm = DB2102.BU1LSF01.Alarm;
|
|
|
PlcReadTemp.BU1MSF01_Alarm = DB2102.BU1MSF01.Alarm;
|
|
|
PlcReadTemp.BU1NSF01_Alarm = DB2102.BU1NSF01.Alarm;
|
|
|
PlcReadTemp.BU1OSF01_Alarm = DB2102.BU1OSF01.Alarm;
|
|
|
PlcReadTemp.BU1BLT01_Alarm = DB2102.BU1BLT01.Alarm;
|
|
|
PlcReadTemp.BU1BLT02_Alarm = DB2102.BU1BLT02.Alarm;
|
|
|
PlcReadTemp.BU1BLT03_Alarm = DB2102.BU1BLT03.Alarm;
|
|
|
PlcReadTemp.BU1BLT04_Alarm = DB2102.BU1BLT04.Alarm;
|
|
|
PlcReadTemp.BU1BLT05_Alarm = DB2102.BU1BLT05.Alarm;
|
|
|
PlcReadTemp.BU1BLT06_Alarm = DB2102.BU1BLT06.Alarm;
|
|
|
PlcReadTemp.BU1BLT07_Alarm = DB2102.BU1BLT07.Alarm;
|
|
|
PlcReadTemp.BU2BLT01_Alarm = DB2102.BU2BLT01.Alarm;
|
|
|
PlcReadTemp.BU2BLT02_Alarm = DB2102.BU2BLT02.Alarm;
|
|
|
PlcReadTemp.BU2BLT03_Alarm = DB2102.BU2BLT03.Alarm;
|
|
|
PlcReadTemp.BU2BLT04_Alarm = DB2102.BU2BLT04.Alarm;
|
|
|
PlcReadTemp.BU2BLT05_Alarm = DB2102.BU2BLT05.Alarm;
|
|
|
PlcReadTemp.BU3BLT01_Alarm = DB2102.BU3BLT01.Alarm;
|
|
|
PlcReadTemp.BU3BLT02_Alarm = DB2102.BU3BLT02.Alarm;
|
|
|
PlcReadTemp.BU3BLT03_Alarm = DB2102.BU3BLT03.Alarm;
|
|
|
PlcReadTemp.BU3BLT04_Alarm = DB2102.BU3BLT04.Alarm;
|
|
|
PlcReadTemp.BU3BLT05_Alarm = DB2102.BU3BLT05.Alarm;
|
|
|
PlcReadTemp.BU3BLT06_Alarm = DB2102.BU3BLT06.Alarm;
|
|
|
PlcReadTemp.BU3BLT07_Alarm = DB2102.BU3BLT07.Alarm;
|
|
|
PlcReadTemp.BU4BLT01_Alarm = DB2102.BU4BLT01.Alarm;
|
|
|
PlcReadTemp.BU4BLT02_Alarm = DB2102.BU4BLT02.Alarm;
|
|
|
PlcReadTemp.BU4BLT03_Alarm = DB2102.BU4BLT03.Alarm;
|
|
|
PlcReadTemp.BU4BLT04_Alarm = DB2102.BU4BLT04.Alarm;
|
|
|
PlcReadTemp.BU4BLT05_Alarm = DB2102.BU4BLT05.Alarm;
|
|
|
PlcReadTemp.BU4BLT06_Alarm = DB2102.BU4BLT06.Alarm;
|
|
|
PlcReadTemp.BU4BLT07_Alarm = DB2102.BU4BLT07.Alarm;
|
|
|
PlcReadTemp.BU5BLT01_Alarm = DB2102.BU5BLT01.Alarm;
|
|
|
PlcReadTemp.BU5BLT02_Alarm = DB2102.BU5BLT02.Alarm;
|
|
|
PlcReadTemp.BU5BLT03_Alarm = DB2102.BU5BLT03.Alarm;
|
|
|
PlcReadTemp.BU5BLT04_Alarm = DB2102.BU5BLT04.Alarm;
|
|
|
PlcReadTemp.BU1ADB01_Alarm = DB2102.BU1ADB01.Alarm;
|
|
|
PlcReadTemp.BU1BDB01_Alarm = DB2102.BU1BDB01.Alarm;
|
|
|
PlcReadTemp.BU1CDB01_Alarm = DB2102.BU1CDB01.Alarm;
|
|
|
PlcReadTemp.BU1DDB01_Alarm = DB2102.BU1DDB01.Alarm;
|
|
|
PlcReadTemp.BU1EDB01_Alarm = DB2102.BU1EDB01.Alarm;
|
|
|
PlcReadTemp.BU1FDB01_Alarm = DB2102.BU1FDB01.Alarm;
|
|
|
PlcReadTemp.BU1GDB01_Alarm = DB2102.BU1GDB01.Alarm;
|
|
|
PlcReadTemp.BU1HDB01_Alarm = DB2102.BU1HDB01.Alarm;
|
|
|
PlcReadTemp.BU1IDB01_Alarm = DB2102.BU1IDB01.Alarm;
|
|
|
PlcReadTemp.BU1JDB01_Alarm = DB2102.BU1JDB01.Alarm;
|
|
|
PlcReadTemp.BU1KDB01_Alarm = DB2102.BU1KDB01.Alarm;
|
|
|
PlcReadTemp.BU1LDB01_Alarm = DB2102.BU1LDB01.Alarm;
|
|
|
|
|
|
PlcReadTemp.BU1GEB02_Alarm = DB2102.BU1GEB02.Alarm;
|
|
|
PlcReadTemp.BU2GEB02_Alarm = DB2102.BU2GEB02.Alarm;
|
|
|
PlcReadTemp.BU3GEB02_Alarm = DB2102.BU3GEB02.Alarm;
|
|
|
PlcReadTemp.BU4GEB02_Alarm = DB2102.BU4GEB02.Alarm;
|
|
|
PlcReadTemp.BU5GEB02_Alarm = DB2102.BU5GEB02.Alarm;
|
|
|
PlcReadTemp.BU6GEB02_Alarm = DB2102.BU6GEB02.Alarm;
|
|
|
PlcReadTemp.BU7GEB02_Alarm = DB2102.BU7GEB02.Alarm;
|
|
|
PlcReadTemp.BU8GEB02_Alarm = DB2102.BU8GEB02.Alarm;
|
|
|
PlcReadTemp.BU1DRB01_Alarm = DB2102.BU1DRB01.Alarm;
|
|
|
PlcReadTemp.BU2DRB01_Alarm = DB2102.BU2DRB01.Alarm;
|
|
|
PlcReadTemp.BU3DRB01_Alarm = DB2102.BU3DRB01.Alarm;
|
|
|
PlcReadTemp.BU4DRB01_Alarm = DB2102.BU4DRB01.Alarm;
|
|
|
PlcReadTemp.BU1GEB01_Alarm = DB2102.BU1GEB01.Alarm;
|
|
|
PlcReadTemp.BU2GEB01_Alarm = DB2102.BU2GEB01.Alarm;
|
|
|
PlcReadTemp.BU3GEB01_Alarm = DB2102.BU3GEB01.Alarm;
|
|
|
PlcReadTemp.BU4GEB01_Alarm = DB2102.BU4GEB01.Alarm;
|
|
|
PlcReadTemp.BU5GEB01_Alarm = DB2102.BU5GEB01.Alarm;
|
|
|
PlcReadTemp.BU6GEB01_Alarm = DB2102.BU6GEB01.Alarm;
|
|
|
PlcReadTemp.BU7GEB01_Alarm = DB2102.BU7GEB01.Alarm;
|
|
|
PlcReadTemp.BU8GEB01_Alarm = DB2102.BU8GEB01.Alarm;
|
|
|
PlcReadTemp.BU2ASF01_Alarm = DB2102.BU2ASF01.Alarm;
|
|
|
PlcReadTemp.BU2ASF02_Alarm = DB2102.BU2ASF02.Alarm;
|
|
|
PlcReadTemp.BU2BSF01_Alarm = DB2102.BU2BSF01.Alarm;
|
|
|
PlcReadTemp.BU2BSF02_Alarm = DB2102.BU2BSF02.Alarm;
|
|
|
PlcReadTemp.BU2CSF01_Alarm = DB2102.BU2CSF01.Alarm;
|
|
|
PlcReadTemp.BU2CSF02_Alarm = DB2102.BU2CSF02.Alarm;
|
|
|
PlcReadTemp.BU2DSF01_Alarm = DB2102.BU2DSF01.Alarm;
|
|
|
PlcReadTemp.BU2DSF02_Alarm = DB2102.BU2DSF02.Alarm;
|
|
|
PlcReadTemp.BUWeter1_Alarm = DB2102.BUWeter1.Alarm;
|
|
|
PlcReadTemp.BUWeter2_Alarm = DB2102.BUWeter2.Alarm;
|
|
|
PlcReadTemp.BUWeter3_Alarm = DB2102.BUWeter3.Alarm;
|
|
|
PlcReadTemp.BUWeter4_Alarm = DB2102.BUWeter4.Alarm;
|
|
|
PlcReadTemp.BUWeter5_Alarm = DB2102.BUWeter5.Alarm;
|
|
|
PlcReadTemp.BUWeter6_Alarm = DB2102.BUWeter6.Alarm;
|
|
|
PlcReadTemp.BUWeter7_Alarm = DB2102.BUWeter7.Alarm;
|
|
|
PlcReadTemp.BUWeter8_Alarm = DB2102.BUWeter8.Alarm;
|
|
|
|
|
|
|
|
|
|
|
|
PlcReadTemp.DV2PCP01_SetL = DB2102.DV2PCP01.SetLeft;
|
|
|
PlcReadTemp.DV2PCP02_SetL = DB2102.DV2PCP02.SetLeft;
|
|
|
PlcReadTemp.DV2PCP03_SetL = DB2102.DV2PCP03.SetLeft;
|
|
|
PlcReadTemp.DV2PCP04_SetL = DB2102.DV2PCP04.SetLeft;
|
|
|
PlcReadTemp.DV2PCP05_SetL = DB2102.DV2PCP05.SetLeft;
|
|
|
PlcReadTemp.DV2PCP06_SetL = DB2102.DV2PCP06.SetLeft;
|
|
|
PlcReadTemp.DV2PCP07_SetL = DB2102.DV2PCP07.SetLeft;
|
|
|
PlcReadTemp.DV2PCP08_SetL = DB2102.DV2PCP08.SetLeft;
|
|
|
PlcReadTemp.DV2PCP09_SetL = DB2102.DV2PCP09.SetLeft;
|
|
|
PlcReadTemp.DV2PCP10_SetL = DB2102.DV2PCP10.SetLeft;
|
|
|
PlcReadTemp.DV2PCP11_SetL = DB2102.DV2PCP11.SetLeft;
|
|
|
PlcReadTemp.DV2PCP12_SetL = DB2102.DV2PCP12.SetLeft;
|
|
|
PlcReadTemp.DV2PCP13_SetL = DB2102.DV2PCP13.SetLeft;
|
|
|
|
|
|
PlcReadTemp.DV2PCP01_SetR = DB2102.DV2PCP01.SetRight;
|
|
|
PlcReadTemp.DV2PCP02_SetR = DB2102.DV2PCP02.SetRight;
|
|
|
PlcReadTemp.DV2PCP03_SetR = DB2102.DV2PCP03.SetRight;
|
|
|
PlcReadTemp.DV2PCP04_SetR = DB2102.DV2PCP04.SetRight;
|
|
|
PlcReadTemp.DV2PCP05_SetR = DB2102.DV2PCP05.SetRight;
|
|
|
PlcReadTemp.DV2PCP06_SetR = DB2102.DV2PCP06.SetRight;
|
|
|
PlcReadTemp.DV2PCP07_SetR = DB2102.DV2PCP07.SetRight;
|
|
|
PlcReadTemp.DV2PCP08_SetR = DB2102.DV2PCP08.SetRight;
|
|
|
PlcReadTemp.DV2PCP09_SetR = DB2102.DV2PCP09.SetRight;
|
|
|
PlcReadTemp.DV2PCP10_SetR = DB2102.DV2PCP10.SetRight;
|
|
|
PlcReadTemp.DV2PCP11_SetR = DB2102.DV2PCP11.SetRight;
|
|
|
PlcReadTemp.DV2PCP12_SetR = DB2102.DV2PCP12.SetRight;
|
|
|
PlcReadTemp.DV2PCP13_SetR = DB2102.DV2PCP13.SetRight;
|
|
|
|
|
|
PlcReadTemp.DV2PCP01_AlarmL = DB2102.DV2PCP01.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP02_AlarmL = DB2102.DV2PCP02.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP03_AlarmL = DB2102.DV2PCP03.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP04_AlarmL = DB2102.DV2PCP04.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP05_AlarmL = DB2102.DV2PCP05.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP06_AlarmL = DB2102.DV2PCP06.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP07_AlarmL = DB2102.DV2PCP07.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP08_AlarmL = DB2102.DV2PCP08.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP09_AlarmL = DB2102.DV2PCP09.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP10_AlarmL = DB2102.DV2PCP10.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP11_AlarmL = DB2102.DV2PCP11.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP12_AlarmL = DB2102.DV2PCP12.AlarmLeftPosition;
|
|
|
PlcReadTemp.DV2PCP13_AlarmL = DB2102.DV2PCP13.AlarmLeftPosition;
|
|
|
|
|
|
PlcReadTemp.DV2PCP01_AlarmR = DB2102.DV2PCP01.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP02_AlarmR = DB2102.DV2PCP02.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP03_AlarmR = DB2102.DV2PCP03.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP04_AlarmR = DB2102.DV2PCP04.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP05_AlarmR = DB2102.DV2PCP05.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP06_AlarmR = DB2102.DV2PCP06.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP07_AlarmR = DB2102.DV2PCP07.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP08_AlarmR = DB2102.DV2PCP08.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP09_AlarmR = DB2102.DV2PCP09.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP10_AlarmR = DB2102.DV2PCP10.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP11_AlarmR = DB2102.DV2PCP11.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP12_AlarmR = DB2102.DV2PCP12.AlarmRightPosition;
|
|
|
PlcReadTemp.DV2PCP13_AlarmR = DB2102.DV2PCP13.AlarmRightPosition;
|
|
|
|
|
|
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP01, PlcReadTemp.DV2PCP01_AlarmR, PlcReadTemp.DV2PCP01_SetR, PlcReadTemp.DV2PCP01_AlarmL, PlcReadTemp.DV2PCP01_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP02, PlcReadTemp.DV2PCP02_AlarmR, PlcReadTemp.DV2PCP02_SetR, PlcReadTemp.DV2PCP02_AlarmL, PlcReadTemp.DV2PCP02_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP03, PlcReadTemp.DV2PCP03_AlarmR, PlcReadTemp.DV2PCP03_SetR, PlcReadTemp.DV2PCP03_AlarmL, PlcReadTemp.DV2PCP03_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP04, PlcReadTemp.DV2PCP04_AlarmR, PlcReadTemp.DV2PCP04_SetR, PlcReadTemp.DV2PCP04_AlarmL, PlcReadTemp.DV2PCP04_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP05, PlcReadTemp.DV2PCP05_AlarmR, PlcReadTemp.DV2PCP05_SetR, PlcReadTemp.DV2PCP05_AlarmL, PlcReadTemp.DV2PCP05_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP06, PlcReadTemp.DV2PCP06_AlarmR, PlcReadTemp.DV2PCP06_SetR, PlcReadTemp.DV2PCP06_AlarmL, PlcReadTemp.DV2PCP06_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP07, PlcReadTemp.DV2PCP07_AlarmR, PlcReadTemp.DV2PCP07_SetR, PlcReadTemp.DV2PCP07_AlarmL, PlcReadTemp.DV2PCP07_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP08, PlcReadTemp.DV2PCP08_AlarmR, PlcReadTemp.DV2PCP08_SetR, PlcReadTemp.DV2PCP08_AlarmL, PlcReadTemp.DV2PCP08_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP09, PlcReadTemp.DV2PCP09_AlarmR, PlcReadTemp.DV2PCP09_SetR, PlcReadTemp.DV2PCP09_AlarmL, PlcReadTemp.DV2PCP09_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP10, PlcReadTemp.DV2PCP10_AlarmR, PlcReadTemp.DV2PCP10_SetR, PlcReadTemp.DV2PCP10_AlarmL, PlcReadTemp.DV2PCP10_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP11, PlcReadTemp.DV2PCP11_AlarmR, PlcReadTemp.DV2PCP11_SetR, PlcReadTemp.DV2PCP11_AlarmL, PlcReadTemp.DV2PCP11_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP12, PlcReadTemp.DV2PCP12_AlarmR, PlcReadTemp.DV2PCP12_SetR, PlcReadTemp.DV2PCP12_AlarmL, PlcReadTemp.DV2PCP12_SetL);
|
|
|
SetThreeWayValve(DeviceDetailReportForm.DV2PCP13, PlcReadTemp.DV2PCP13_AlarmR, PlcReadTemp.DV2PCP13_SetR, PlcReadTemp.DV2PCP13_AlarmL, PlcReadTemp.DV2PCP13_SetL);
|
|
|
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1ASF01, PlcReadTemp.BU1ASF01_Set, PlcReadTemp.BU1ASF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BSF01, PlcReadTemp.BU1BSF01_Set, PlcReadTemp.BU1BSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1CSF01, PlcReadTemp.BU1CSF01_Set, PlcReadTemp.BU1CSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1DSF01, PlcReadTemp.BU1DSF01_Set, PlcReadTemp.BU1DSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1ESF01, PlcReadTemp.BU1ESF01_Set, PlcReadTemp.BU1ESF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1FSF01, PlcReadTemp.BU1FSF01_Set, PlcReadTemp.BU1FSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1GSF01, PlcReadTemp.BU1GSF01_Set, PlcReadTemp.BU1GSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1HSF01, PlcReadTemp.BU1HSF01_Set, PlcReadTemp.BU1HSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1ISF01, PlcReadTemp.BU1ISF01_Set, PlcReadTemp.BU1ISF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1JSF01, PlcReadTemp.BU1JSF01_Set, PlcReadTemp.BU1JSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1KSF01, PlcReadTemp.BU1KSF01_Set, PlcReadTemp.BU1KSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1LSF01, PlcReadTemp.BU1LSF01_Set, PlcReadTemp.BU1LSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1MSF01, PlcReadTemp.BU1MSF01_Set, PlcReadTemp.BU1MSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1NSF01, PlcReadTemp.BU1NSF01_Set, PlcReadTemp.BU1NSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1OSF01, PlcReadTemp.BU1OSF01_Set, PlcReadTemp.BU1OSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BLT01, PlcReadTemp.BU1BLT01_Set, PlcReadTemp.BU1BLT01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BLT02, PlcReadTemp.BU1BLT02_Set, PlcReadTemp.BU1BLT02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BLT03, PlcReadTemp.BU1BLT03_Set, PlcReadTemp.BU1BLT03_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BLT04, PlcReadTemp.BU1BLT04_Set, PlcReadTemp.BU1BLT04_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BLT05, PlcReadTemp.BU1BLT05_Set, PlcReadTemp.BU1BLT05_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BLT06, PlcReadTemp.BU1BLT06_Set, PlcReadTemp.BU1BLT06_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BLT07, PlcReadTemp.BU1BLT07_Set, PlcReadTemp.BU1BLT07_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2BLT01, PlcReadTemp.BU2BLT01_Set, PlcReadTemp.BU2BLT01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2BLT02, PlcReadTemp.BU2BLT02_Set, PlcReadTemp.BU2BLT02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2BLT03, PlcReadTemp.BU2BLT03_Set, PlcReadTemp.BU2BLT03_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2BLT04, PlcReadTemp.BU2BLT04_Set, PlcReadTemp.BU2BLT04_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2BLT05, PlcReadTemp.BU2BLT05_Set, PlcReadTemp.BU2BLT05_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3BLT01, PlcReadTemp.BU3BLT01_Set, PlcReadTemp.BU3BLT01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3BLT02, PlcReadTemp.BU3BLT02_Set, PlcReadTemp.BU3BLT02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3BLT03, PlcReadTemp.BU3BLT03_Set, PlcReadTemp.BU3BLT03_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3BLT04, PlcReadTemp.BU3BLT04_Set, PlcReadTemp.BU3BLT04_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3BLT05, PlcReadTemp.BU3BLT05_Set, PlcReadTemp.BU3BLT05_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3BLT06, PlcReadTemp.BU3BLT06_Set, PlcReadTemp.BU3BLT06_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3BLT07, PlcReadTemp.BU3BLT07_Set, PlcReadTemp.BU3BLT07_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4BLT01, PlcReadTemp.BU4BLT01_Set, PlcReadTemp.BU4BLT01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4BLT02, PlcReadTemp.BU4BLT02_Set, PlcReadTemp.BU4BLT02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4BLT03, PlcReadTemp.BU4BLT03_Set, PlcReadTemp.BU4BLT03_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4BLT04, PlcReadTemp.BU4BLT04_Set, PlcReadTemp.BU4BLT04_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4BLT05, PlcReadTemp.BU4BLT05_Set, PlcReadTemp.BU4BLT05_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4BLT06, PlcReadTemp.BU4BLT06_Set, PlcReadTemp.BU4BLT06_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4BLT07, PlcReadTemp.BU4BLT07_Set, PlcReadTemp.BU4BLT07_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU5BLT01, PlcReadTemp.BU5BLT01_Set, PlcReadTemp.BU5BLT01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU5BLT02, PlcReadTemp.BU5BLT02_Set, PlcReadTemp.BU5BLT02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU5BLT03, PlcReadTemp.BU5BLT03_Set, PlcReadTemp.BU5BLT03_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU5BLT04, PlcReadTemp.BU5BLT04_Set, PlcReadTemp.BU5BLT04_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1ADB01, PlcReadTemp.BU1ADB01_Set, PlcReadTemp.BU1ADB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1BDB01, PlcReadTemp.BU1BDB01_Set, PlcReadTemp.BU1BDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1CDB01, PlcReadTemp.BU1CDB01_Set, PlcReadTemp.BU1CDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1DDB01, PlcReadTemp.BU1DDB01_Set, PlcReadTemp.BU1DDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1EDB01, PlcReadTemp.BU1EDB01_Set, PlcReadTemp.BU1EDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1FDB01, PlcReadTemp.BU1FDB01_Set, PlcReadTemp.BU1FDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1GDB01, PlcReadTemp.BU1GDB01_Set, PlcReadTemp.BU1GDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1HDB01, PlcReadTemp.BU1HDB01_Set, PlcReadTemp.BU1HDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1IDB01, PlcReadTemp.BU1IDB01_Set, PlcReadTemp.BU1IDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1JDB01, PlcReadTemp.BU1JDB01_Set, PlcReadTemp.BU1JDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1KDB01, PlcReadTemp.BU1KDB01_Set, PlcReadTemp.BU1KDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1LDB01, PlcReadTemp.BU1LDB01_Set, PlcReadTemp.BU1LDB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1GEB02, PlcReadTemp.BU1GEB02_Set, PlcReadTemp.BU1GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2GEB02, PlcReadTemp.BU2GEB02_Set, PlcReadTemp.BU2GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3GEB02, PlcReadTemp.BU3GEB02_Set, PlcReadTemp.BU3GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4GEB02, PlcReadTemp.BU4GEB02_Set, PlcReadTemp.BU4GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU5GEB02, PlcReadTemp.BU5GEB02_Set, PlcReadTemp.BU5GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU6GEB02, PlcReadTemp.BU6GEB02_Set, PlcReadTemp.BU6GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU7GEB02, PlcReadTemp.BU7GEB02_Set, PlcReadTemp.BU7GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU8GEB02, PlcReadTemp.BU8GEB02_Set, PlcReadTemp.BU8GEB02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1DRB01, PlcReadTemp.BU1DRB01_Set, PlcReadTemp.BU1DRB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2DRB01, PlcReadTemp.BU2DRB01_Set, PlcReadTemp.BU2DRB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3DRB01, PlcReadTemp.BU3DRB01_Set, PlcReadTemp.BU3DRB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4DRB01, PlcReadTemp.BU4DRB01_Set, PlcReadTemp.BU4DRB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU1GEB01, PlcReadTemp.BU1GEB01_Set, PlcReadTemp.BU1GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2GEB01, PlcReadTemp.BU2GEB01_Set, PlcReadTemp.BU2GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU3GEB01, PlcReadTemp.BU3GEB01_Set, PlcReadTemp.BU3GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU4GEB01, PlcReadTemp.BU4GEB01_Set, PlcReadTemp.BU4GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU5GEB01, PlcReadTemp.BU5GEB01_Set, PlcReadTemp.BU5GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU6GEB01, PlcReadTemp.BU6GEB01_Set, PlcReadTemp.BU6GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU7GEB01, PlcReadTemp.BU7GEB01_Set, PlcReadTemp.BU7GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU8GEB01, PlcReadTemp.BU8GEB01_Set, PlcReadTemp.BU8GEB01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2ASF01, PlcReadTemp.BU2ASF01_Set, PlcReadTemp.BU2ASF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2ASF02, PlcReadTemp.BU2ASF02_Set, PlcReadTemp.BU2ASF02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2BSF01, PlcReadTemp.BU2BSF01_Set, PlcReadTemp.BU2BSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2BSF02, PlcReadTemp.BU2BSF02_Set, PlcReadTemp.BU2BSF02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2CSF01, PlcReadTemp.BU2CSF01_Set, PlcReadTemp.BU2CSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2CSF02, PlcReadTemp.BU2CSF02_Set, PlcReadTemp.BU2CSF02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2DSF01, PlcReadTemp.BU2DSF01_Set, PlcReadTemp.BU2DSF01_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BU2DSF02, PlcReadTemp.BU2DSF02_Set, PlcReadTemp.BU2DSF02_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter1, PlcReadTemp.BUWeter1_Set, PlcReadTemp.BUWeter1_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter2, PlcReadTemp.BUWeter2_Set, PlcReadTemp.BUWeter2_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter3, PlcReadTemp.BUWeter3_Set, PlcReadTemp.BUWeter3_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter4, PlcReadTemp.BUWeter4_Set, PlcReadTemp.BUWeter4_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter5, PlcReadTemp.BUWeter5_Set, PlcReadTemp.BUWeter5_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter6, PlcReadTemp.BUWeter6_Set, PlcReadTemp.BUWeter6_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter7, PlcReadTemp.BUWeter7_Set, PlcReadTemp.BUWeter7_Alarm);
|
|
|
SetLjSwith(DeviceDetailReportForm.BUWeter8, PlcReadTemp.BUWeter8_Set, PlcReadTemp.BUWeter8_Alarm);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// DB2103数据读取、控件赋值
|
|
|
/// </summary>
|
|
|
private void NewThreadDb2103()
|
|
|
{
|
|
|
|
|
|
PlcReadTemp.DM1DRY1_ACT_Speed_Set = DB2103.DM1DRY1.ACT_Speed;
|
|
|
PlcReadTemp.DM1DRY2_ACT_Speed_Set = DB2103.DM1DRY2.ACT_Speed;
|
|
|
PlcReadTemp.DM1DRY3_ACT_Speed_Set = DB2103.DM1DRY3.ACT_Speed;
|
|
|
PlcReadTemp.DM1DRY4_ACT_Speed_Set = DB2103.DM1DRY4.ACT_Speed;
|
|
|
|
|
|
PlcReadTemp.DM1GEM_Set = DB2103.DM1GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM2GEM_Set = DB2103.DM2GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM3GEM_Set = DB2103.DM3GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM4GEM_Set = DB2103.DM4GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM5GEM_Set = DB2103.DM5GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM6GEM_Set = DB2103.DM6GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM7GEM_Set = DB2103.DM7GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM8GEM_Set = DB2103.DM8GEM.ACT_Speed;
|
|
|
PlcReadTemp.DM2ASF01_Set = DB2103.DM2ASF01.ACT_Speed;
|
|
|
PlcReadTemp.DM2BSF01_Set = DB2103.DM2BSF01.ACT_Speed;
|
|
|
PlcReadTemp.DM2CSF01_Set = DB2103.DM2CSF01.ACT_Speed;
|
|
|
PlcReadTemp.DM2DSF01_Set = DB2103.DM2DSF01.ACT_Speed;
|
|
|
|
|
|
PlcReadTemp.DM1ASF01_Set = DB2103.DM1ASF01.Run;
|
|
|
PlcReadTemp.DM1BSF01_Set = DB2103.DM1BSF01.Run;
|
|
|
PlcReadTemp.DM1CSF01_Set = DB2103.DM1CSF01.Run;
|
|
|
PlcReadTemp.DM1DSF01_Set = DB2103.DM1DSF01.Run;
|
|
|
PlcReadTemp.DM1ESF01_Set = DB2103.DM1ESF01.Run;
|
|
|
PlcReadTemp.DM1FSF01_Set = DB2103.DM1FSF01.Run;
|
|
|
PlcReadTemp.DM1GSF01_Set = DB2103.DM1GSF01.Run;
|
|
|
PlcReadTemp.DM1HSF01_Set = DB2103.DM1HSF01.Run;
|
|
|
PlcReadTemp.DM1ISF01_Set = DB2103.DM1ISF01.Run;
|
|
|
PlcReadTemp.DM1JSF01_Set = DB2103.DM1JSF01.Run;
|
|
|
PlcReadTemp.DM1KSF01_Set = DB2103.DM1KSF01.Run;
|
|
|
PlcReadTemp.DM1LSF01_Set = DB2103.DM1LSF01.Run;
|
|
|
PlcReadTemp.DM1MSF01_Set = DB2103.DM1MSF01.Run;
|
|
|
PlcReadTemp.DM1NSF01_Set = DB2103.DM1NSF01.Run;
|
|
|
PlcReadTemp.DM1OSF01_Set = DB2103.DM1OSF01.Running;
|
|
|
|
|
|
if (DB2103.DM2ASF01.Running)
|
|
|
{
|
|
|
//if (DB2103.DM2ASF01.Polarity)
|
|
|
//{
|
|
|
// DM2ASF01L_Set = true;
|
|
|
// DM2ASF01R_Set = false;
|
|
|
//}
|
|
|
//else
|
|
|
//{
|
|
|
// DM2ASF01L_Set = false;
|
|
|
// DM2ASF01R_Set = true;
|
|
|
//}
|
|
|
PlcReadTemp.DM2ASF01L_Set = true;
|
|
|
PlcReadTemp.DM2ASF01R_Set = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
PlcReadTemp.DM2ASF01L_Set = false;
|
|
|
PlcReadTemp.DM2ASF01R_Set = false;
|
|
|
}
|
|
|
|
|
|
if (DB2103.DM2BSF01.Running)
|
|
|
{
|
|
|
//if (DB2103.DM2BSF01.Polarity)
|
|
|
//{
|
|
|
// DM2BSF01L_Set = true;
|
|
|
// DM2BSF01R_Set = false;
|
|
|
//}
|
|
|
//else
|
|
|
//{
|
|
|
// DM2BSF01L_Set = false;
|
|
|
// DM2BSF01R_Set = true;
|
|
|
//}
|
|
|
PlcReadTemp.DM2BSF01L_Set = true;
|
|
|
PlcReadTemp.DM2BSF01R_Set = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
PlcReadTemp.DM2BSF01L_Set = false;
|
|
|
PlcReadTemp.DM2BSF01R_Set = false;
|
|
|
}
|
|
|
|
|
|
if (DB2103.DM2CSF01.Running)
|
|
|
{
|
|
|
//if (DB2103.DM2CSF01.Polarity)
|
|
|
//{
|
|
|
// DM2CSF01L_Set = true;
|
|
|
// DM2CSF01R_Set = false;
|
|
|
//}
|
|
|
//else
|
|
|
//{
|
|
|
// DM2CSF01L_Set = false;
|
|
|
// DM2CSF01R_Set = true;
|
|
|
//}
|
|
|
PlcReadTemp.DM2CSF01L_Set = true;
|
|
|
PlcReadTemp.DM2CSF01R_Set = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
PlcReadTemp.DM2CSF01L_Set = false;
|
|
|
PlcReadTemp.DM2CSF01R_Set = false;
|
|
|
}
|
|
|
|
|
|
if (DB2103.DM2DSF01.Running)
|
|
|
{
|
|
|
//if (DB2103.DM2DSF01.Polarity)
|
|
|
//{
|
|
|
// DM2DSF01L_Set = true;
|
|
|
// DM2DSF01R_Set = false;
|
|
|
//}
|
|
|
//else
|
|
|
//{
|
|
|
// DM2DSF01L_Set = false;
|
|
|
// DM2DSF01R_Set = true;
|
|
|
//}
|
|
|
PlcReadTemp.DM2DSF01L_Set = true;
|
|
|
PlcReadTemp.DM2DSF01R_Set = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
PlcReadTemp.DM2DSF01L_Set = false;
|
|
|
PlcReadTemp.DM2DSF01R_Set = false;
|
|
|
}
|
|
|
|
|
|
PlcReadTemp.DM1ADF01_Set = DB2103.DM1ADF01.Run;
|
|
|
PlcReadTemp.DM1BDF01_Set = DB2103.DM1BDF01.Run;
|
|
|
PlcReadTemp.DM1CDF01_Set = DB2103.DM1CDF01.Run;
|
|
|
PlcReadTemp.DM1DDF01_Set = DB2103.DM1DDF01.Run;
|
|
|
PlcReadTemp.DM1EDF01_Set = DB2103.DM1EDF01.Run;
|
|
|
PlcReadTemp.DM1FDF01_Set = DB2103.DM1FDF01.Run;
|
|
|
PlcReadTemp.DM1GDF01_Set = DB2103.DM1GDF01.Run;
|
|
|
PlcReadTemp.DM1HDF01_Set = DB2103.DM1HDF01.Run;
|
|
|
PlcReadTemp.DM1IDF01_Set = DB2103.DM1IDF01.Run;
|
|
|
PlcReadTemp.DM1JDF01_Set = DB2103.DM1JDF01.Run;
|
|
|
PlcReadTemp.DM1KDF01_Set = DB2103.DM1KDF01.Run;
|
|
|
PlcReadTemp.DM1LDF01_Set = DB2103.DM1LDF01.Run;
|
|
|
PlcReadTemp.DM1ADB01_Set = DB2103.DM1ADB01.Run;
|
|
|
PlcReadTemp.DM1BDB01_Set = DB2103.DM1BDB01.Run;
|
|
|
PlcReadTemp.DM1CDB01_Set = DB2103.DM1CDB01.Run;
|
|
|
PlcReadTemp.DM1DDB01_Set = DB2103.DM1DDB01.Run;
|
|
|
PlcReadTemp.DM1EDB01_Set = DB2103.DM1EDB01.Run;
|
|
|
PlcReadTemp.DM1FDB01_Set = DB2103.DM1FDB01.Run;
|
|
|
PlcReadTemp.DM1GDB01_Set = DB2103.DM1GDB01.Run;
|
|
|
PlcReadTemp.DM1HDB01_Set = DB2103.DM1HDB01.Run;
|
|
|
PlcReadTemp.DM1IDB01_Set = DB2103.DM1IDB01.Run;
|
|
|
PlcReadTemp.DM1JDB01_Set = DB2103.DM1JDB01.Run;
|
|
|
PlcReadTemp.DM1KDB01_Set = DB2103.DM1KDB01.Run;
|
|
|
PlcReadTemp.DM1LDB01_Set = DB2103.DM1LDB01.Run;
|
|
|
PlcReadTemp.DM1DRY1_Running_Set = DB2103.DM1DRY1.Running;
|
|
|
PlcReadTemp.DM1DRY2_Running_Set = DB2103.DM1DRY2.Running;
|
|
|
PlcReadTemp.DM1DRY3_Running_Set = DB2103.DM1DRY3.Running;
|
|
|
PlcReadTemp.DM1DRY4_Running_Set = DB2103.DM1DRY4.Running;
|
|
|
|
|
|
PlcReadTemp.DMWETER1_Set = DB2103.DMWETER1.Running;
|
|
|
PlcReadTemp.DMWETER2_Set = DB2103.DMWETER2.Running;
|
|
|
PlcReadTemp.DMWETER3_Set = DB2103.DMWETER3.Running;
|
|
|
PlcReadTemp.DMWETER4_Set = DB2103.DMWETER4.Running;
|
|
|
PlcReadTemp.DMWETER5_Set = DB2103.DMWETER5.Running;
|
|
|
PlcReadTemp.DMWETER6_Set = DB2103.DMWETER6.Running;
|
|
|
PlcReadTemp.DMWETER7_Set = DB2103.DMWETER7.Running;
|
|
|
PlcReadTemp.DMWETER8_Set = DB2103.DMWETER8.Running;
|
|
|
|
|
|
PlcReadTemp.DMWETER1_Alarm = DB2103.DMWETER1.Alarm;
|
|
|
PlcReadTemp.DMWETER2_Alarm = DB2103.DMWETER2.Alarm;
|
|
|
PlcReadTemp.DMWETER3_Alarm = DB2103.DMWETER3.Alarm;
|
|
|
PlcReadTemp.DMWETER4_Alarm = DB2103.DMWETER4.Alarm;
|
|
|
PlcReadTemp.DMWETER5_Alarm = DB2103.DMWETER5.Alarm;
|
|
|
PlcReadTemp.DMWETER6_Alarm = DB2103.DMWETER6.Alarm;
|
|
|
PlcReadTemp.DMWETER7_Alarm = DB2103.DMWETER7.Alarm;
|
|
|
PlcReadTemp.DMWETER8_Alarm = DB2103.DMWETER8.Alarm;
|
|
|
|
|
|
SetMCLabel(DeviceDetailReportForm.DM1DRY1_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY1_ACT_Speed_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM1DRY2_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY2_ACT_Speed_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM1DRY3_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY3_ACT_Speed_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM1DRY4_ACT_Speed, (float)Math.Round(PlcReadTemp.DM1DRY4_ACT_Speed_Set, 2));
|
|
|
|
|
|
|
|
|
SetMCLabel(DeviceDetailReportForm.DM1GEM, (float)Math.Round(PlcReadTemp.DM1GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM2GEM, (float)Math.Round(PlcReadTemp.DM2GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM3GEM, (float)Math.Round(PlcReadTemp.DM3GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM4GEM, (float)Math.Round(PlcReadTemp.DM4GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM5GEM, (float)Math.Round(PlcReadTemp.DM5GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM6GEM, (float)Math.Round(PlcReadTemp.DM6GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM7GEM, (float)Math.Round(PlcReadTemp.DM7GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM8GEM, (float)Math.Round(PlcReadTemp.DM8GEM_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM2ASF01, (float)Math.Round(PlcReadTemp.DM2ASF01_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM2BSF01, (float)Math.Round(PlcReadTemp.DM2BSF01_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM2CSF01, (float)Math.Round(PlcReadTemp.DM2CSF01_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.DM2DSF01, (float)Math.Round(PlcReadTemp.DM2DSF01_Set, 2));
|
|
|
|
|
|
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1ASF01, PlcReadTemp.DM1ASF01_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1BSF01, PlcReadTemp.DM1BSF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM1CSF01, PlcReadTemp.DM1CSF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM1DSF01, PlcReadTemp.DM1DSF01_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1ESF01, PlcReadTemp.DM1ESF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM1FSF01, PlcReadTemp.DM1FSF01_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1GSF01, PlcReadTemp.DM1GSF01_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1HSF01, PlcReadTemp.DM1HSF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM1ISF01, PlcReadTemp.DM1ISF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM1JSF01, PlcReadTemp.DM1JSF01_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1KSF01, PlcReadTemp.DM1KSF01_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1LSF01, PlcReadTemp.DM1LSF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM1MSF01, PlcReadTemp.DM1MSF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM1NSF01, PlcReadTemp.DM1NSF01_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM1OSF01, PlcReadTemp.DM1OSF01_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM2ASF01L, PlcReadTemp.DM2ASF01L_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM2BSF01L, PlcReadTemp.DM2BSF01L_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM2CSF01L, PlcReadTemp.DM2CSF01L_Set);
|
|
|
SetLSCREWBIG(DeviceDetailReportForm.DM2DSF01L, PlcReadTemp.DM2DSF01L_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM2ASF01R, PlcReadTemp.DM2ASF01R_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM2BSF01R, PlcReadTemp.DM2BSF01R_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM2CSF01R, PlcReadTemp.DM2CSF01R_Set);
|
|
|
SetRSCREWBIG(DeviceDetailReportForm.DM2DSF01R, PlcReadTemp.DM2DSF01R_Set);
|
|
|
|
|
|
|
|
|
SetFan(DeviceDetailReportForm.DM1ADF01, PlcReadTemp.DM1ADF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1BDF01, PlcReadTemp.DM1BDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1CDF01, PlcReadTemp.DM1CDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1DDF01, PlcReadTemp.DM1DDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1EDF01, PlcReadTemp.DM1EDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1FDF01, PlcReadTemp.DM1FDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1GDF01, PlcReadTemp.DM1GDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1HDF01, PlcReadTemp.DM1HDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1IDF01, PlcReadTemp.DM1IDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1JDF01, PlcReadTemp.DM1JDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1KDF01, PlcReadTemp.DM1KDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1LDF01, PlcReadTemp.DM1LDF01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1ADB01, PlcReadTemp.DM1ADB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1BDB01, PlcReadTemp.DM1BDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1CDB01, PlcReadTemp.DM1CDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1DDB01, PlcReadTemp.DM1DDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1EDB01, PlcReadTemp.DM1EDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1FDB01, PlcReadTemp.DM1FDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1GDB01, PlcReadTemp.DM1GDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1HDB01, PlcReadTemp.DM1HDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1IDB01, PlcReadTemp.DM1IDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1JDB01, PlcReadTemp.DM1JDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1KDB01, PlcReadTemp.DM1KDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1LDB01, PlcReadTemp.DM1LDB01_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1DRY1_Running, PlcReadTemp.DM1DRY1_Running_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1DRY2_Running, PlcReadTemp.DM1DRY2_Running_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1DRY3_Running, PlcReadTemp.DM1DRY3_Running_Set);
|
|
|
SetFan(DeviceDetailReportForm.DM1DRY4_Running, PlcReadTemp.DM1DRY4_Running_Set);
|
|
|
SetFan(DeviceDetailReportForm.PM3ADF01, PlcReadTemp.PM3ADF01_Set);
|
|
|
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER1, PlcReadTemp.DMWETER1_Set, PlcReadTemp.DMWETER1_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER11, PlcReadTemp.DMWETER1_Set, PlcReadTemp.DMWETER1_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER2, PlcReadTemp.DMWETER2_Set, PlcReadTemp.DMWETER2_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER22, PlcReadTemp.DMWETER2_Set, PlcReadTemp.DMWETER2_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER3, PlcReadTemp.DMWETER3_Set, PlcReadTemp.DMWETER3_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER33, PlcReadTemp.DMWETER3_Set, PlcReadTemp.DMWETER3_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER4, PlcReadTemp.DMWETER4_Set, PlcReadTemp.DMWETER4_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER44, PlcReadTemp.DMWETER4_Set, PlcReadTemp.DMWETER4_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER5, PlcReadTemp.DMWETER5_Set, PlcReadTemp.DMWETER5_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER55, PlcReadTemp.DMWETER5_Set, PlcReadTemp.DMWETER5_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER6, PlcReadTemp.DMWETER6_Set, PlcReadTemp.DMWETER6_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER66, PlcReadTemp.DMWETER6_Set, PlcReadTemp.DMWETER6_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER7, PlcReadTemp.DMWETER7_Set, PlcReadTemp.DMWETER7_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER77, PlcReadTemp.DMWETER7_Set, PlcReadTemp.DMWETER7_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER8, PlcReadTemp.DMWETER8_Set, PlcReadTemp.DMWETER8_Alarm);
|
|
|
SetSwitchLight(DeviceDetailReportForm.DMWETER88, PlcReadTemp.DMWETER8_Set, PlcReadTemp.DMWETER8_Alarm);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// DB2107数据读取、控件赋值
|
|
|
/// </summary>
|
|
|
private void NewThreadDb2107()
|
|
|
{
|
|
|
|
|
|
ParametersWithPCTable.Rows.Clear();
|
|
|
|
|
|
for (int i = 0; i < 4; i++)
|
|
|
{
|
|
|
DataRow dr = ParametersWithPCTable.NewRow();
|
|
|
dr[0] = "Dryer" + i;
|
|
|
dr[1] = DB2107.Dryer[i].Mode;
|
|
|
dr[2] = DB2107.Dryer[i].Status;
|
|
|
dr[3] = DB2107.Dryer[i].Batch;
|
|
|
dr[4] = DB2107.Dryer[i].Step;
|
|
|
dr[5] = DB2107.Dryer[i].StepCode;
|
|
|
dr[6] = DB2107.Dryer[i].TotalTime;
|
|
|
dr[7] = DB2107.Dryer[i].StepTime;
|
|
|
dr[8] = DB2107.Dryer[i].Speed;
|
|
|
dr[9] = DB2107.Dryer[i].Currnet;
|
|
|
dr[10] = DB2107.Dryer[i].Pressure;
|
|
|
ParametersWithPCTable.Rows.Add(dr);
|
|
|
}
|
|
|
for (int i = 0; i < 8; i++)
|
|
|
{
|
|
|
DataRow dr = ParametersWithPCTable.NewRow();
|
|
|
dr[0] = "Gelater" + i;
|
|
|
dr[1] = DB2107.Gelater[i].Mode;
|
|
|
dr[2] = DB2107.Gelater[i].Status;
|
|
|
dr[3] = DB2107.Gelater[i].Batch;
|
|
|
dr[4] = DB2107.Gelater[i].Step;
|
|
|
dr[5] = DB2107.Gelater[i].StepCode;
|
|
|
dr[6] = DB2107.Gelater[i].TotalTime;
|
|
|
dr[7] = DB2107.Gelater[i].StepTime;
|
|
|
dr[8] = DB2107.Gelater[i].Speed;
|
|
|
dr[9] = DB2107.Gelater[i].Currnet;
|
|
|
dr[10] = DB2107.Gelater[i].Pressure;
|
|
|
ParametersWithPCTable.Rows.Add(dr);
|
|
|
}
|
|
|
for (int i = 0; i < 8; i++)
|
|
|
{
|
|
|
DataRow dr = ParametersWithPCTable.NewRow();
|
|
|
dr[0] = "Weter" + i;
|
|
|
dr[1] = DB2107.Weter[i].Mode;
|
|
|
dr[2] = DB2107.Weter[i].Status;
|
|
|
dr[3] = DB2107.Weter[i].Batch;
|
|
|
dr[4] = DB2107.Weter[i].Step;
|
|
|
dr[5] = DB2107.Weter[i].StepCode;
|
|
|
dr[6] = DB2107.Weter[i].TotalTime;
|
|
|
dr[7] = DB2107.Weter[i].StepTime;
|
|
|
dr[8] = DB2107.Weter[i].Speed;
|
|
|
dr[9] = DB2107.Weter[i].Currnet;
|
|
|
dr[10] = DB2107.Weter[i].Pressure;
|
|
|
ParametersWithPCTable.Rows.Add(dr);
|
|
|
}
|
|
|
|
|
|
var normalStatusWatchDog = DB2107.NormalStatus.WatchDog;
|
|
|
PlcReadTemp.WatchDog_Set = normalStatusWatchDog >= 1 ? true : false;
|
|
|
|
|
|
MCWatchDog.MCValue = normalStatusWatchDog.ToString();
|
|
|
PlcReadTemp.EMStop_Set = DB2107.NormalStatus.EMStop;
|
|
|
|
|
|
PlcReadTemp.Vessel_1_HighLevel_Set = DB2107.Weight.Vessel_1.HighLevel;
|
|
|
PlcReadTemp.Vessel_2_HighLevel_Set = DB2107.Weight.Vessel_2.HighLevel;
|
|
|
PlcReadTemp.Vessel_3_HighLevel_Set = DB2107.Weight.Vessel_3.HighLevel;
|
|
|
PlcReadTemp.Vessel_4_HighLevel_Set = DB2107.Weight.Vessel_4.HighLevel;
|
|
|
PlcReadTemp.Vessel_5_HighLevel_Set = DB2107.Weight.Vessel_5.HighLevel;
|
|
|
PlcReadTemp.Vessel_1_LowLevel_Set = DB2107.Weight.Vessel_1.Lowlevel;
|
|
|
PlcReadTemp.Vessel_2_LowLevel_Set = DB2107.Weight.Vessel_2.Lowlevel;
|
|
|
PlcReadTemp.Vessel_3_LowLevel_Set = DB2107.Weight.Vessel_3.Lowlevel;
|
|
|
PlcReadTemp.Vessel_4_LowLevel_Set = DB2107.Weight.Vessel_4.Lowlevel;
|
|
|
PlcReadTemp.Vessel_5_LowLevel_Set = DB2107.Weight.Vessel_5.Lowlevel;
|
|
|
PlcReadTemp.highLevel_D1_Set = DB2107.Level.HighLevel_D1;
|
|
|
PlcReadTemp.highLevel_D2_Set = DB2107.Level.HighLevel_D2;
|
|
|
PlcReadTemp.highLevel_D3_Set = DB2107.Level.HighLevel_D3;
|
|
|
PlcReadTemp.highLevel_D4_Set = DB2107.Level.HighLevel_D4;
|
|
|
PlcReadTemp.highLevel_D5_Set = DB2107.Level.HighLevel_D5;
|
|
|
PlcReadTemp.highLevel_D6_Set = DB2107.Level.HighLevel_D6;
|
|
|
PlcReadTemp.highLevel_D7_Set = DB2107.Level.HighLevel_D7;
|
|
|
PlcReadTemp.highLevel_D8_Set = DB2107.Level.HighLevel_D8;
|
|
|
PlcReadTemp.highLevel_D9_Set = DB2107.Level.HighLevel_D9;
|
|
|
PlcReadTemp.highLevel_D10_Set = DB2107.Level.HighLevel_D10;
|
|
|
PlcReadTemp.highLevel_D11_Set = DB2107.Level.HighLevel_D11;
|
|
|
PlcReadTemp.highLevel_D12_Set = DB2107.Level.HighLevel_D12;
|
|
|
PlcReadTemp.lowLevel_D1_Set = DB2107.Level.LowLevel_D1;
|
|
|
PlcReadTemp.lowLevel_D2_Set = DB2107.Level.LowLevel_D2;
|
|
|
PlcReadTemp.lowLevel_D3_Set = DB2107.Level.LowLevel_D3;
|
|
|
PlcReadTemp.lowLevel_D4_Set = DB2107.Level.LowLevel_D4;
|
|
|
PlcReadTemp.lowLevel_D5_Set = DB2107.Level.LowLevel_D5;
|
|
|
PlcReadTemp.lowLevel_D6_Set = DB2107.Level.LowLevel_D6;
|
|
|
PlcReadTemp.lowLevel_D7_Set = DB2107.Level.LowLevel_D7;
|
|
|
PlcReadTemp.lowLevel_D8_Set = DB2107.Level.LowLevel_D8;
|
|
|
PlcReadTemp.lowLevel_D9_Set = DB2107.Level.LowLevel_D9;
|
|
|
PlcReadTemp.lowLevel_D10_Set = DB2107.Level.LowLevel_D10;
|
|
|
PlcReadTemp.lowLevel_D11_Set = DB2107.Level.LowLevel_D11;
|
|
|
PlcReadTemp.lowLevel_D12_Set = DB2107.Level.LowLevel_D12;
|
|
|
PlcReadTemp.Hopper_1_HighLevel_Set = DB2107.Weight.Hopper_1.HighLevel;
|
|
|
PlcReadTemp.Hopper_2_HighLevel_Set = DB2107.Weight.Hopper_2.HighLevel;
|
|
|
PlcReadTemp.Hopper_3_HighLevel_Set = DB2107.Weight.Hopper_3.HighLevel;
|
|
|
PlcReadTemp.Hopper_4_HighLevel_Set = DB2107.Weight.Hopper_4.HighLevel;
|
|
|
PlcReadTemp.Hopper_1_LowLevel_Set = DB2107.Weight.Hopper_1.Lowlevel;
|
|
|
PlcReadTemp.Hopper_2_LowLevel_Set = DB2107.Weight.Hopper_2.Lowlevel;
|
|
|
PlcReadTemp.Hopper_3_LowLevel_Set = DB2107.Weight.Hopper_3.Lowlevel;
|
|
|
PlcReadTemp.Hopper_4_LowLevel_Set = DB2107.Weight.Hopper_4.Lowlevel;
|
|
|
PlcReadTemp.WScale_1_HighLevel_Set = DB2107.Weight.WScale_1.HighLevel;
|
|
|
PlcReadTemp.WScale_2_HighLevel_Set = DB2107.Weight.WScale_2.HighLevel;
|
|
|
PlcReadTemp.WScale_3_HighLevel_Set = DB2107.Weight.WScale_3.HighLevel;
|
|
|
PlcReadTemp.WScale_4_HighLevel_Set = DB2107.Weight.WScale_4.HighLevel;
|
|
|
PlcReadTemp.WScale_1_LowLevel_Set = DB2107.Weight.WScale_1.Lowlevel;
|
|
|
PlcReadTemp.WScale_2_LowLevel_Set = DB2107.Weight.WScale_2.Lowlevel;
|
|
|
PlcReadTemp.WScale_3_LowLevel_Set = DB2107.Weight.WScale_3.Lowlevel;
|
|
|
PlcReadTemp.WScale_4_LowLevel_Set = DB2107.Weight.WScale_4.Lowlevel;
|
|
|
|
|
|
PlcReadTemp.topPressure_V1_Set = DB2107.Pressure.TopPressure_V1.ActualValue;
|
|
|
PlcReadTemp.topPressure_V2_Set = DB2107.Pressure.TopPressure_V2.ActualValue;
|
|
|
PlcReadTemp.topPressure_V3_Set = DB2107.Pressure.TopPressure_V3.ActualValue;
|
|
|
PlcReadTemp.topPressure_V4_Set = DB2107.Pressure.TopPressure_V4.ActualValue;
|
|
|
PlcReadTemp.topPressure_V5_Set = DB2107.Pressure.TopPressure_V5.ActualValue;
|
|
|
PlcReadTemp.Vessel_1_ActWeight_Set = DB2107.Weight.Vessel_1.ActWeight;
|
|
|
PlcReadTemp.Vessel_2_ActWeight_Set = DB2107.Weight.Vessel_2.ActWeight;
|
|
|
PlcReadTemp.Vessel_3_ActWeight_Set = DB2107.Weight.Vessel_3.ActWeight;
|
|
|
PlcReadTemp.Vessel_4_ActWeight_Set = DB2107.Weight.Vessel_4.ActWeight;
|
|
|
PlcReadTemp.Vessel_5_ActWeight_Set = DB2107.Weight.Vessel_5.ActWeight;
|
|
|
PlcReadTemp.conveyV1_PV_Set = DB2107.PID.Convey_V1.PV;
|
|
|
PlcReadTemp.conveyV2_PV_Set = DB2107.PID.Convey_V2.PV;
|
|
|
PlcReadTemp.conveyV3_PV_Set = DB2107.PID.Convey_V3.PV;
|
|
|
PlcReadTemp.conveyV5_PV_Set = DB2107.PID.Convey_V5.PV;
|
|
|
PlcReadTemp.mainPress_V1_ActualValue_Set = DB2107.Pressure.MainPress_V1.ActualValue;
|
|
|
PlcReadTemp.mainPress_V2_ActualValue_Set = DB2107.Pressure.MainPress_V2.ActualValue;
|
|
|
PlcReadTemp.mainPress_V3_ActualValue_Set = DB2107.Pressure.MainPress_V3.ActualValue;
|
|
|
PlcReadTemp.mainPress_V5_ActualValue_Set = DB2107.Pressure.MainPress_V5.ActualValue;
|
|
|
PlcReadTemp.purgeV1_PV_Set = DB2107.PID.Purge_V1.PV;
|
|
|
PlcReadTemp.purgeV2_PV_Set = DB2107.PID.Purge_V2.PV;
|
|
|
PlcReadTemp.purgeV3_PV_Set = DB2107.PID.Purge_V3.PV;
|
|
|
PlcReadTemp.purgeV5_PV_Set = DB2107.PID.Purge_V5.PV;
|
|
|
PlcReadTemp.WScale_1_ActWeight_Set = DB2107.Weight.WScale_1.ActWeight;
|
|
|
PlcReadTemp.WScale_2_ActWeight_Set = DB2107.Weight.WScale_2.ActWeight;
|
|
|
PlcReadTemp.WScale_3_ActWeight_Set = DB2107.Weight.WScale_3.ActWeight;
|
|
|
PlcReadTemp.WScale_4_ActWeight_Set = DB2107.Weight.WScale_4.ActWeight;
|
|
|
PlcReadTemp.Hopper_1_ActWeight_Set = DB2107.Weight.Hopper_1.ActWeight;
|
|
|
PlcReadTemp.Hopper_2_ActWeight_Set = DB2107.Weight.Hopper_2.ActWeight;
|
|
|
PlcReadTemp.Hopper_3_ActWeight_Set = DB2107.Weight.Hopper_3.ActWeight;
|
|
|
PlcReadTemp.Hopper_4_ActWeight_Set = DB2107.Weight.Hopper_4.ActWeight;
|
|
|
|
|
|
|
|
|
PlcReadTemp.AS1BLT01_Set = DB2107.Valve.AS1BLT01;
|
|
|
PlcReadTemp.AS1BLT02_Set = DB2107.Valve.AS1BLT02;
|
|
|
PlcReadTemp.AS1BLT03_Set = DB2107.Valve.AS1BLT03;
|
|
|
PlcReadTemp.AS1BLT04_Set = DB2107.Valve.AS1BLT04;
|
|
|
PlcReadTemp.AS1BLT05_Set = DB2107.Valve.AS1BLT05;
|
|
|
PlcReadTemp.AS2BLT01_Set = DB2107.Valve.AS2BLT01;
|
|
|
PlcReadTemp.AS2BLT02_Set = DB2107.Valve.AS2BLT02;
|
|
|
PlcReadTemp.AS2BLT03_Set = DB2107.Valve.AS2BLT03;
|
|
|
PlcReadTemp.AS2BLT04_Set = DB2107.Valve.AS2BLT04;
|
|
|
PlcReadTemp.AS2BLT05_Set = DB2107.Valve.AS2BLT05;
|
|
|
PlcReadTemp.AS3BLT01_Set = DB2107.Valve.AS3BLT01;
|
|
|
PlcReadTemp.AS3BLT02_Set = DB2107.Valve.AS3BLT02;
|
|
|
PlcReadTemp.AS3BLT03_Set = DB2107.Valve.AS3BLT03;
|
|
|
PlcReadTemp.AS3BLT04_Set = DB2107.Valve.AS3BLT04;
|
|
|
PlcReadTemp.AS3BLT05_Set = DB2107.Valve.AS3BLT05;
|
|
|
PlcReadTemp.AS4BLT01_Set = DB2107.Valve.AS4BLT01;
|
|
|
PlcReadTemp.AS4BLT03_Set = DB2107.Valve.AS4BLT03;
|
|
|
PlcReadTemp.AS5BLT01_Set = DB2107.Valve.AS5BLT01;
|
|
|
PlcReadTemp.AS5BLT02_Set = DB2107.Valve.AS5BLT02;
|
|
|
PlcReadTemp.AS5BLT03_Set = DB2107.Valve.AS5BLT03;
|
|
|
PlcReadTemp.AS5BLT04_Set = DB2107.Valve.AS5BLT04;
|
|
|
PlcReadTemp.AS5BLT05_Set = DB2107.Valve.AS5BLT05;
|
|
|
PlcReadTemp.AS2PCP01_Set = DB2107.Valve.AS2PCP01;
|
|
|
PlcReadTemp.AS2PCP02_Set = DB2107.Valve.AS2PCP02;
|
|
|
PlcReadTemp.AS2PCP03_Set = DB2107.Valve.AS2PCP03;
|
|
|
PlcReadTemp.AS1OIS01_Set = DB2107.Valve.AS1OIS01;
|
|
|
PlcReadTemp.AS1OIS02_Set = DB2107.Valve.AS1OIS02;
|
|
|
PlcReadTemp.AS1OIS03_Set = DB2107.Valve.AS1OIS03;
|
|
|
PlcReadTemp.AS2OIS01_Set = DB2107.Valve.AS2OIS01;
|
|
|
PlcReadTemp.AS2OIS02_Set = DB2107.Valve.AS2OIS02;
|
|
|
PlcReadTemp.AS2OIS03_Set = DB2107.Valve.AS2OIS03;
|
|
|
PlcReadTemp.AS3OIS01_Set = DB2107.Valve.AS3OIS01;
|
|
|
PlcReadTemp.AS3OIS02_Set = DB2107.Valve.AS3OIS02;
|
|
|
PlcReadTemp.AS3OIS03_Set = DB2107.Valve.AS3OIS03;
|
|
|
PlcReadTemp.AS4OIS01_Set = DB2107.Valve.AS4OIS01;
|
|
|
PlcReadTemp.AS4OIS02_Set = DB2107.Valve.AS4OIS02;
|
|
|
PlcReadTemp.AS4OIS03_Set = DB2107.Valve.AS4OIS03;
|
|
|
PlcReadTemp.AS1GET01_Set = DB2107.Valve.AS1GET01;
|
|
|
PlcReadTemp.AS1GET02_Set = DB2107.Valve.AS1GET02;
|
|
|
PlcReadTemp.AS2GET01_Set = DB2107.Valve.AS2GET01;
|
|
|
PlcReadTemp.AS2GET02_Set = DB2107.Valve.AS2GET02;
|
|
|
PlcReadTemp.AS3GET01_Set = DB2107.Valve.AS3GET01;
|
|
|
PlcReadTemp.AS3GET02_Set = DB2107.Valve.AS3GET02;
|
|
|
PlcReadTemp.AS4GET01_Set = DB2107.Valve.AS4GET01;
|
|
|
PlcReadTemp.AS4GET02_Set = DB2107.Valve.AS4GET02;
|
|
|
PlcReadTemp.AS5GET01_Set = DB2107.Valve.AS5GET01;
|
|
|
PlcReadTemp.AS5GET02_Set = DB2107.Valve.AS5GET02;
|
|
|
PlcReadTemp.AS6GET01_Set = DB2107.Valve.AS6GET01;
|
|
|
PlcReadTemp.AS6GET02_Set = DB2107.Valve.AS6GET02;
|
|
|
PlcReadTemp.AS7GET01_Set = DB2107.Valve.AS7GET01;
|
|
|
PlcReadTemp.AS7GET02_Set = DB2107.Valve.AS7GET02;
|
|
|
PlcReadTemp.AS8GET01_Set = DB2107.Valve.AS8GET01;
|
|
|
PlcReadTemp.AS8GET02_Set = DB2107.Valve.AS8GET02;
|
|
|
|
|
|
|
|
|
PlcReadTemp.PM1ADF01_Set = DB2107.Valve.PM1ADF01;
|
|
|
PlcReadTemp.PM1BDF01_Set = DB2107.Valve.PM1BDF01;
|
|
|
PlcReadTemp.PM1CDF01_Set = DB2107.Valve.PM1CDF01;
|
|
|
PlcReadTemp.PM1DDF01_Set = DB2107.Valve.PM1DDF01;
|
|
|
PlcReadTemp.PM1EDF01_Set = DB2107.Valve.PM1EDF01;
|
|
|
PlcReadTemp.PM1FDF01_Set = DB2107.Valve.PM1FDF01;
|
|
|
PlcReadTemp.PM1GDF01_Set = DB2107.Valve.PM1GDF01;
|
|
|
PlcReadTemp.PM1HDF01_Set = DB2107.Valve.PM1HDF01;
|
|
|
PlcReadTemp.PM1IDF01_Set = DB2107.Valve.PM1IDF01;
|
|
|
PlcReadTemp.PM1JDF01_Set = DB2107.Valve.PM1JDF01;
|
|
|
PlcReadTemp.PM1KDF01_Set = DB2107.Valve.PM1KDF01;
|
|
|
PlcReadTemp.PM1LDF01_Set = DB2107.Valve.PM1LDF01;
|
|
|
|
|
|
|
|
|
SetStateButton(DeviceDetailReportForm.WatchDog, PlcReadTemp.WatchDog_Set);
|
|
|
SetSystemStateShow(DeviceDetailReportForm.EMStop, PlcReadTemp.EMStop_Set);
|
|
|
|
|
|
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_1_HighLevel, PlcReadTemp.Vessel_1_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_2_HighLevel, PlcReadTemp.Vessel_2_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_3_HighLevel, PlcReadTemp.Vessel_3_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_4_HighLevel, PlcReadTemp.Vessel_4_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_5_HighLevel, PlcReadTemp.Vessel_5_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_1_LowLevel, PlcReadTemp.Vessel_1_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_2_LowLevel, PlcReadTemp.Vessel_2_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_3_LowLevel, PlcReadTemp.Vessel_3_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_4_LowLevel, PlcReadTemp.Vessel_4_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Vessel_5_LowLevel, PlcReadTemp.Vessel_5_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D1, PlcReadTemp.highLevel_D1_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D2, PlcReadTemp.highLevel_D2_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D3, PlcReadTemp.highLevel_D3_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D4, PlcReadTemp.highLevel_D4_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D5, PlcReadTemp.highLevel_D5_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D6, PlcReadTemp.highLevel_D6_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D7, PlcReadTemp.highLevel_D7_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D8, PlcReadTemp.highLevel_D8_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D9, PlcReadTemp.highLevel_D9_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D10, PlcReadTemp.highLevel_D10_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D11, PlcReadTemp.highLevel_D11_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.highLevel_D12, PlcReadTemp.highLevel_D12_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D1, PlcReadTemp.lowLevel_D1_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D2, PlcReadTemp.lowLevel_D2_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D3, PlcReadTemp.lowLevel_D3_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D4, PlcReadTemp.lowLevel_D4_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D5, PlcReadTemp.lowLevel_D5_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D6, PlcReadTemp.lowLevel_D6_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D7, PlcReadTemp.lowLevel_D7_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D8, PlcReadTemp.lowLevel_D8_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D9, PlcReadTemp.lowLevel_D9_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D10, PlcReadTemp.lowLevel_D10_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D11, PlcReadTemp.lowLevel_D11_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.lowLevel_D12, PlcReadTemp.lowLevel_D12_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_1_HighLevel, PlcReadTemp.Hopper_1_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_2_HighLevel, PlcReadTemp.Hopper_2_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_3_HighLevel, PlcReadTemp.Hopper_3_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_4_HighLevel, PlcReadTemp.Hopper_4_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_1_LowLevel, PlcReadTemp.Hopper_1_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_2_LowLevel, PlcReadTemp.Hopper_2_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_3_LowLevel, PlcReadTemp.Hopper_3_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.Hopper_4_LowLevel, PlcReadTemp.Hopper_4_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_1_HighLevel, PlcReadTemp.WScale_1_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_2_HighLevel, PlcReadTemp.WScale_2_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_3_HighLevel, PlcReadTemp.WScale_3_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_4_HighLevel, PlcReadTemp.WScale_4_HighLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_1_LowLevel, PlcReadTemp.WScale_1_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_2_LowLevel, PlcReadTemp.WScale_2_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_3_LowLevel, PlcReadTemp.WScale_3_LowLevel_Set, false);
|
|
|
SetSwitchLight(DeviceDetailReportForm.WScale_4_LowLevel, PlcReadTemp.WScale_4_LowLevel_Set, false);
|
|
|
|
|
|
|
|
|
SetMCLabel(DeviceDetailReportForm.topPressure_V1, (float)Math.Round(PlcReadTemp.topPressure_V2_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.topPressure_V2, (float)Math.Round(PlcReadTemp.topPressure_V2_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.topPressure_V3, (float)Math.Round(PlcReadTemp.topPressure_V3_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.topPressure_V4, (float)Math.Round(PlcReadTemp.topPressure_V4_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.topPressure_V5, (float)Math.Round(PlcReadTemp.topPressure_V5_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Vessel_1_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_1_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Vessel_2_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_2_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Vessel_3_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_3_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Vessel_4_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_4_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Vessel_5_ActWeight, (float)Math.Round(PlcReadTemp.Vessel_5_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.conveyV1_PV, (float)Math.Round(PlcReadTemp.conveyV1_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.conveyV2_PV, (float)Math.Round(PlcReadTemp.conveyV2_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.conveyV3_PV, (float)Math.Round(PlcReadTemp.conveyV3_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.conveyV5_PV, (float)Math.Round(PlcReadTemp.conveyV5_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.mainPress_V1_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V1_ActualValue_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.mainPress_V2_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V2_ActualValue_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.mainPress_V3_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V3_ActualValue_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.mainPress_V5_ActualValue, (float)Math.Round(PlcReadTemp.mainPress_V5_ActualValue_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.purgeV1_PV, (float)Math.Round(PlcReadTemp.purgeV1_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.purgeV2_PV, (float)Math.Round(PlcReadTemp.purgeV2_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.purgeV3_PV, (float)Math.Round(PlcReadTemp.purgeV3_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.purgeV5_PV, (float)Math.Round(PlcReadTemp.purgeV5_PV_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.WScale_1_ActWeight, (float)Math.Round(PlcReadTemp.WScale_1_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.WScale_2_ActWeight, (float)Math.Round(PlcReadTemp.WScale_2_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.WScale_3_ActWeight, (float)Math.Round(PlcReadTemp.WScale_3_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.WScale_4_ActWeight, (float)Math.Round(PlcReadTemp.WScale_4_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Hopper_1_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_1_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Hopper_2_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_2_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Hopper_3_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_3_ActWeight_Set, 2));
|
|
|
SetMCLabel(DeviceDetailReportForm.Hopper_4_ActWeight, (float)Math.Round(PlcReadTemp.Hopper_4_ActWeight_Set, 2));
|
|
|
|
|
|
|
|
|
SetJzf(DeviceDetailReportForm.AS1BLT01, PlcReadTemp.AS1BLT01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1BLT02, PlcReadTemp.AS1BLT02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1BLT03, PlcReadTemp.AS1BLT03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1BLT04, PlcReadTemp.AS1BLT04_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1BLT05, PlcReadTemp.AS1BLT05_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2BLT01, PlcReadTemp.AS2BLT01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2BLT02, PlcReadTemp.AS2BLT02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2BLT03, PlcReadTemp.AS2BLT03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2BLT04, PlcReadTemp.AS2BLT04_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2BLT05, PlcReadTemp.AS2BLT05_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3BLT01, PlcReadTemp.AS3BLT01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3BLT02, PlcReadTemp.AS3BLT02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3BLT03, PlcReadTemp.AS3BLT03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3BLT04, PlcReadTemp.AS3BLT04_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3BLT05, PlcReadTemp.AS3BLT05_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS4BLT01, PlcReadTemp.AS4BLT01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS4BLT03, PlcReadTemp.AS4BLT03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS5BLT01, PlcReadTemp.AS5BLT01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS5BLT02, PlcReadTemp.AS5BLT02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS5BLT03, PlcReadTemp.AS5BLT03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS5BLT04, PlcReadTemp.AS5BLT04_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS5BLT05, PlcReadTemp.AS5BLT05_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2PCP01, PlcReadTemp.AS2PCP01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2PCP02, PlcReadTemp.AS2PCP02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2PCP03, PlcReadTemp.AS2PCP03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1OIS01, PlcReadTemp.AS1OIS01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1OIS02, PlcReadTemp.AS1OIS02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1OIS03, PlcReadTemp.AS1OIS03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2OIS01, PlcReadTemp.AS2OIS01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2OIS02, PlcReadTemp.AS2OIS02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2OIS03, PlcReadTemp.AS2OIS03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3OIS01, PlcReadTemp.AS3OIS01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3OIS02, PlcReadTemp.AS3OIS02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3OIS03, PlcReadTemp.AS3OIS03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS4OIS01, PlcReadTemp.AS4OIS01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS4OIS02, PlcReadTemp.AS4OIS02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS4OIS03, PlcReadTemp.AS4OIS03_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1GET01, PlcReadTemp.AS1GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS1GET02, PlcReadTemp.AS1GET02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2GET01, PlcReadTemp.AS2GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS2GET02, PlcReadTemp.AS2GET02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3GET01, PlcReadTemp.AS3GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS3GET02, PlcReadTemp.AS3GET02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS4GET01, PlcReadTemp.AS4GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS4GET02, PlcReadTemp.AS4GET02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS5GET01, PlcReadTemp.AS5GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS5GET02, PlcReadTemp.AS5GET02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS6GET01, PlcReadTemp.AS6GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS6GET02, PlcReadTemp.AS6GET02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS7GET01, PlcReadTemp.AS7GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS7GET02, PlcReadTemp.AS7GET02_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS8GET01, PlcReadTemp.AS8GET01_Set);
|
|
|
SetJzf(DeviceDetailReportForm.AS8GET02, PlcReadTemp.AS8GET02_Set);
|
|
|
|
|
|
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1ADF01, PlcReadTemp.PM1ADF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1BDF01, PlcReadTemp.PM1BDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1CDF01, PlcReadTemp.PM1CDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1DDF01, PlcReadTemp.PM1DDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1EDF01, PlcReadTemp.PM1EDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1FDF01, PlcReadTemp.PM1FDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1GDF01, PlcReadTemp.PM1GDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1HDF01, PlcReadTemp.PM1HDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1IDF01, PlcReadTemp.PM1IDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1JDF01, PlcReadTemp.PM1JDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1KDF01, PlcReadTemp.PM1KDF01_Set);
|
|
|
SetControlCabinet(DeviceDetailReportForm.PM1LDF01, PlcReadTemp.PM1LDF01_Set);
|
|
|
|
|
|
|
|
|
foreach (DataRow row in ParametersWithPCTable.Rows)
|
|
|
{
|
|
|
string id = row["Id"].ToString();
|
|
|
System.Drawing.Color modeColor = System.Drawing.Color.White;
|
|
|
string mode;
|
|
|
if ((bool)row["mode"])
|
|
|
{
|
|
|
mode = "自动";
|
|
|
modeColor = System.Drawing.Color.Green;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
mode = "手动";
|
|
|
modeColor = System.Drawing.Color.Yellow;
|
|
|
}
|
|
|
string status;
|
|
|
System.Drawing.Color statusColor = System.Drawing.Color.White;
|
|
|
if ((bool)row["status"])
|
|
|
{
|
|
|
status = "运行";
|
|
|
statusColor = System.Drawing.Color.Green;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
status = "空闲";
|
|
|
statusColor = System.Drawing.Color.Yellow;
|
|
|
}
|
|
|
int batch = (int)row["batch"];
|
|
|
int step = (int)row["step"];
|
|
|
string stepName = Convert.ToString(row["stepName"]);
|
|
|
int totalTime = (int)row["totalTime"];
|
|
|
int stepTime = (int)row["stepTime"];
|
|
|
float speed = (float)Math.Round(Convert.ToSingle(row["speed"]), 2);
|
|
|
float current = (float)Math.Round(Convert.ToSingle(row["currnet"]), 2);
|
|
|
float pressure = (float)Math.Round(Convert.ToSingle(row["pressure"]), 2);
|
|
|
|
|
|
//根据ID对应一组控件
|
|
|
switch (id)
|
|
|
{
|
|
|
case "Dryer0":
|
|
|
this.DeviceDetailReportForm.DAMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.DAMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.DAStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.DAStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.DABatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.DAStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.DAStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.DATotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.DAStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.DASpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Dryer1":
|
|
|
this.DeviceDetailReportForm.DBMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.DBMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.DBStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.DBStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.DBBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.DBStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.DBStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.DBTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.DBStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.DBSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Dryer2":
|
|
|
this.DeviceDetailReportForm.DCMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.DCMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.DCStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.DCStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.DCBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.DCStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.DCStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.DCTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.DCStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.DCSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Dryer3":
|
|
|
this.DeviceDetailReportForm.DDMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.DDMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.DDStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.DDStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.DDBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.DDStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.DDStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.DDTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.DDStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.DDSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Weter0":
|
|
|
this.DeviceDetailReportForm.WAMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WAMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WAStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WAStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WABatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WAStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WAStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WATotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WAStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WASpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WACurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WAPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Weter1":
|
|
|
this.DeviceDetailReportForm.WBMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WBMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WBStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WBStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WBBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WBStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WBStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WBTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WBStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WBSpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WBCurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WBPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Weter2":
|
|
|
this.DeviceDetailReportForm.WCMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WCMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WCStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WCStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WCBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WCStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WCStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WCTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WCStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WCSpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WCCurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WCPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Weter3":
|
|
|
this.DeviceDetailReportForm.WDMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WDMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WDStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WDStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WDBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WDStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WDStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WDTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WDStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WDSpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WDCurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WDPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Weter4":
|
|
|
this.DeviceDetailReportForm.WEMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WEMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WEStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WEStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WEBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WEStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WEStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WETotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WEStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WESpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WECurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WEPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Weter5":
|
|
|
this.DeviceDetailReportForm.WFMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WFMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WFStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WFStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WFBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WFStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WFStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WFTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WFStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WFSpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WFCurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WFPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Weter6":
|
|
|
this.DeviceDetailReportForm.WGMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WGMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WGStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WGStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WGBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WGStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WGStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WGTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WGStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WGSpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WGCurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WGPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Weter7":
|
|
|
this.DeviceDetailReportForm.WHMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.WHMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.WHStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.WHStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.WHBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.WHStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.WHStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.WHTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.WHStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.WHSpeed.MCValue = speed;
|
|
|
this.DeviceDetailReportForm.WHCurrent.MCValue = current;
|
|
|
this.DeviceDetailReportForm.WHPressure.MCValue = pressure;
|
|
|
break;
|
|
|
case "Gelater0":
|
|
|
this.DeviceDetailReportForm.GAMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GAMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GAStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GAStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GABatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GAStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GAStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GATotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GAStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GASpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Gelater1":
|
|
|
this.DeviceDetailReportForm.GBMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GBMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GBStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GBStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GBBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GBStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GBStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GBTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GBStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GBSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Gelater2":
|
|
|
this.DeviceDetailReportForm.GCMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GCMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GCStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GCStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GCBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GCStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GCStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GCTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GCStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GCSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Gelater3":
|
|
|
this.DeviceDetailReportForm.GDMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GDMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GDStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GDStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GDBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GDStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GDStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GDTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GDStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GDSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Gelater4":
|
|
|
this.DeviceDetailReportForm.GEMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GEMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GEStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GEStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GEBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GEStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GEStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GETotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GEStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GESpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Gelater5":
|
|
|
this.DeviceDetailReportForm.GFMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GFMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GFStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GFStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GFBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GFStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GFStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GFTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GFStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GFSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Gelater6":
|
|
|
this.DeviceDetailReportForm.GGMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GGMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GGStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GGStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GGBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GGStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GGStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GGTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GGStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GGSpeed.MCValue = speed;
|
|
|
break;
|
|
|
case "Gelater7":
|
|
|
this.DeviceDetailReportForm.GHMode.MCValue = mode;
|
|
|
this.DeviceDetailReportForm.GHMode.ForeColor = modeColor;
|
|
|
this.DeviceDetailReportForm.GHStatus.MCValue = status;
|
|
|
this.DeviceDetailReportForm.GHStatus.ForeColor = statusColor;
|
|
|
this.DeviceDetailReportForm.GHBatch.MCValue = batch;
|
|
|
this.DeviceDetailReportForm.GHStep.MCValue = step;
|
|
|
this.DeviceDetailReportForm.GHStepCode.MCValue = stepName;
|
|
|
this.DeviceDetailReportForm.GHTotalTime.MCValue = totalTime;
|
|
|
this.DeviceDetailReportForm.GHStepTime.MCValue = stepTime;
|
|
|
this.DeviceDetailReportForm.GHSpeed.MCValue = speed;
|
|
|
break;
|
|
|
default: break;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 控件获取
|
|
|
|
|
|
/// <summary>
|
|
|
/// 控件获取
|
|
|
/// </summary>
|
|
|
private void SetControl()
|
|
|
{
|
|
|
|
|
|
#region 报表实体类对应前端控件
|
|
|
|
|
|
DeviceDetailReportForm.DAMode = StringToLable("DAMode");
|
|
|
DeviceDetailReportForm.DAStatus = StringToLable("DAStatus");
|
|
|
DeviceDetailReportForm.DABatch = StringToLable("DABatch");
|
|
|
DeviceDetailReportForm.DAStep = StringToLable("DAStep");
|
|
|
DeviceDetailReportForm.DAStepCode = StringToLable("DAStepCode");
|
|
|
DeviceDetailReportForm.DATotalTime = StringToLable("DATotalTime");
|
|
|
DeviceDetailReportForm.DAStepTime = StringToLable("DAStepTime");
|
|
|
DeviceDetailReportForm.DASpeed = StringToLable("DASpeed");
|
|
|
|
|
|
DeviceDetailReportForm.DBMode = StringToLable("DBMode");
|
|
|
DeviceDetailReportForm.DBStatus = StringToLable("DBStatus");
|
|
|
DeviceDetailReportForm.DBBatch = StringToLable("DBBatch");
|
|
|
DeviceDetailReportForm.DBStep = StringToLable("DBStep");
|
|
|
DeviceDetailReportForm.DBStepCode = StringToLable("DBStepCode");
|
|
|
DeviceDetailReportForm.DBTotalTime = StringToLable("DBTotalTime");
|
|
|
DeviceDetailReportForm.DBStepTime = StringToLable("DBStepTime");
|
|
|
DeviceDetailReportForm.DBSpeed = StringToLable("DBSpeed");
|
|
|
|
|
|
DeviceDetailReportForm.DCMode = StringToLable("DCMode");
|
|
|
DeviceDetailReportForm.DCStatus = StringToLable("DCStatus");
|
|
|
DeviceDetailReportForm.DCBatch = StringToLable("DCBatch");
|
|
|
DeviceDetailReportForm.DCStep = StringToLable("DCStep");
|
|
|
DeviceDetailReportForm.DCStepCode = StringToLable("DCStepCode");
|
|
|
DeviceDetailReportForm.DCTotalTime = StringToLable("DCTotalTime");
|
|
|
DeviceDetailReportForm.DCStepTime = StringToLable("DCStepTime");
|
|
|
DeviceDetailReportForm.DCSpeed = StringToLable("DCSpeed");
|
|
|
|
|
|
DeviceDetailReportForm.DDMode = StringToLable("DDMode");
|
|
|
DeviceDetailReportForm.DDStatus = StringToLable("DDStatus");
|
|
|
DeviceDetailReportForm.DDBatch = StringToLable("DDBatch");
|
|
|
DeviceDetailReportForm.DDStep = StringToLable("DDStep");
|
|
|
DeviceDetailReportForm.DDStepCode = StringToLable("DDStepCode");
|
|
|
DeviceDetailReportForm.DDTotalTime = StringToLable("DDTotalTime");
|
|
|
DeviceDetailReportForm.DDStepTime = StringToLable("DDStepTime");
|
|
|
DeviceDetailReportForm.DDSpeed = StringToLable("DDSpeed");
|
|
|
|
|
|
|
|
|
|
|
|
DeviceDetailReportForm.WAMode = StringToLable("WAMode");
|
|
|
DeviceDetailReportForm.WAStatus = StringToLable("WAStatus");
|
|
|
DeviceDetailReportForm.WABatch = StringToLable("WABatch");
|
|
|
DeviceDetailReportForm.WAStep = StringToLable("WAStep");
|
|
|
DeviceDetailReportForm.WAStepCode = StringToLable("WAStepCode");
|
|
|
DeviceDetailReportForm.WATotalTime = StringToLable("WATotalTime");
|
|
|
DeviceDetailReportForm.WAStepTime = StringToLable("WAStepTime");
|
|
|
DeviceDetailReportForm.WASpeed = StringToLable("WASpeed");
|
|
|
DeviceDetailReportForm.WACurrent = StringToLable("WACurrent");
|
|
|
DeviceDetailReportForm.WAPressure = StringToLable("WAPressure");
|
|
|
|
|
|
DeviceDetailReportForm.WBMode = StringToLable("WBMode");
|
|
|
DeviceDetailReportForm.WBStatus = StringToLable("WBStatus");
|
|
|
DeviceDetailReportForm.WBBatch = StringToLable("WBBatch");
|
|
|
DeviceDetailReportForm.WBStep = StringToLable("WBStep");
|
|
|
DeviceDetailReportForm.WBStepCode = StringToLable("WBStepCode");
|
|
|
DeviceDetailReportForm.WBTotalTime = StringToLable("WBTotalTime");
|
|
|
DeviceDetailReportForm.WBStepTime = StringToLable("WBStepTime");
|
|
|
DeviceDetailReportForm.WBSpeed = StringToLable("WBSpeed");
|
|
|
DeviceDetailReportForm.WBCurrent = StringToLable("WBCurrent");
|
|
|
DeviceDetailReportForm.WBPressure = StringToLable("WBPressure");
|
|
|
|
|
|
DeviceDetailReportForm.WCMode = StringToLable("WCMode");
|
|
|
DeviceDetailReportForm.WCStatus = StringToLable("WCStatus");
|
|
|
DeviceDetailReportForm.WCBatch = StringToLable("WCBatch");
|
|
|
DeviceDetailReportForm.WCStep = StringToLable("WCStep");
|
|
|
DeviceDetailReportForm.WCStepCode = StringToLable("WCStepCode");
|
|
|
DeviceDetailReportForm.WCTotalTime = StringToLable("WCTotalTime");
|
|
|
DeviceDetailReportForm.WCStepTime = StringToLable("WCStepTime");
|
|
|
DeviceDetailReportForm.WCSpeed = StringToLable("WCSpeed");
|
|
|
DeviceDetailReportForm.WCCurrent = StringToLable("WCCurrent");
|
|
|
DeviceDetailReportForm.WCPressure = StringToLable("WCPressure");
|
|
|
|
|
|
DeviceDetailReportForm.WDMode = StringToLable("WDMode");
|
|
|
DeviceDetailReportForm.WDStatus = StringToLable("WDStatus");
|
|
|
DeviceDetailReportForm.WDBatch = StringToLable("WDBatch");
|
|
|
DeviceDetailReportForm.WDStep = StringToLable("WDStep");
|
|
|
DeviceDetailReportForm.WDStepCode = StringToLable("WDStepCode");
|
|
|
DeviceDetailReportForm.WDTotalTime = StringToLable("WDTotalTime");
|
|
|
DeviceDetailReportForm.WDStepTime = StringToLable("WDStepTime");
|
|
|
DeviceDetailReportForm.WDSpeed = StringToLable("WDSpeed");
|
|
|
DeviceDetailReportForm.WDCurrent = StringToLable("WDCurrent");
|
|
|
DeviceDetailReportForm.WDPressure = StringToLable("WDPressure");
|
|
|
|
|
|
DeviceDetailReportForm.WEMode = StringToLable("WEMode");
|
|
|
DeviceDetailReportForm.WEStatus = StringToLable("WEStatus");
|
|
|
DeviceDetailReportForm.WEBatch = StringToLable("WEBatch");
|
|
|
DeviceDetailReportForm.WEStep = StringToLable("WEStep");
|
|
|
DeviceDetailReportForm.WEStepCode = StringToLable("WEStepCode");
|
|
|
DeviceDetailReportForm.WETotalTime = StringToLable("WETotalTime");
|
|
|
DeviceDetailReportForm.WEStepTime = StringToLable("WEStepTime");
|
|
|
DeviceDetailReportForm.WESpeed = StringToLable("WESpeed");
|
|
|
DeviceDetailReportForm.WECurrent = StringToLable("WECurrent");
|
|
|
DeviceDetailReportForm.WEPressure = StringToLable("WEPressure");
|
|
|
|
|
|
DeviceDetailReportForm.WFMode = StringToLable("WFMode");
|
|
|
DeviceDetailReportForm.WFStatus = StringToLable("WFStatus");
|
|
|
DeviceDetailReportForm.WFBatch = StringToLable("WFBatch");
|
|
|
DeviceDetailReportForm.WFStep = StringToLable("WFStep");
|
|
|
DeviceDetailReportForm.WFStepCode = StringToLable("WFStepCode");
|
|
|
DeviceDetailReportForm.WFTotalTime = StringToLable("WFTotalTime");
|
|
|
DeviceDetailReportForm.WFStepTime = StringToLable("WFStepTime");
|
|
|
DeviceDetailReportForm.WFSpeed = StringToLable("WFSpeed");
|
|
|
DeviceDetailReportForm.WFCurrent = StringToLable("WFCurrent");
|
|
|
DeviceDetailReportForm.WFPressure = StringToLable("WFPressure");
|
|
|
|
|
|
DeviceDetailReportForm.WGMode = StringToLable("WGMode");
|
|
|
DeviceDetailReportForm.WGStatus = StringToLable("WGStatus");
|
|
|
DeviceDetailReportForm.WGBatch = StringToLable("WGBatch");
|
|
|
DeviceDetailReportForm.WGStep = StringToLable("WGStep");
|
|
|
DeviceDetailReportForm.WGStepCode = StringToLable("WGStepCode");
|
|
|
DeviceDetailReportForm.WGTotalTime = StringToLable("WGTotalTime");
|
|
|
DeviceDetailReportForm.WGStepTime = StringToLable("WGStepTime");
|
|
|
DeviceDetailReportForm.WGSpeed = StringToLable("WGSpeed");
|
|
|
DeviceDetailReportForm.WGCurrent = StringToLable("WGCurrent");
|
|
|
DeviceDetailReportForm.WGPressure = StringToLable("WGPressure");
|
|
|
|
|
|
DeviceDetailReportForm.WHMode = StringToLable("WHMode");
|
|
|
DeviceDetailReportForm.WHStatus = StringToLable("WHStatus");
|
|
|
DeviceDetailReportForm.WHBatch = StringToLable("WHBatch");
|
|
|
DeviceDetailReportForm.WHStep = StringToLable("WHStep");
|
|
|
DeviceDetailReportForm.WHStepCode = StringToLable("WHStepCode");
|
|
|
DeviceDetailReportForm.WHTotalTime = StringToLable("WHTotalTime");
|
|
|
DeviceDetailReportForm.WHStepTime = StringToLable("WHStepTime");
|
|
|
DeviceDetailReportForm.WHSpeed = StringToLable("WHSpeed");
|
|
|
DeviceDetailReportForm.WHCurrent = StringToLable("WHCurrent");
|
|
|
DeviceDetailReportForm.WHPressure = StringToLable("WHPressure");
|
|
|
|
|
|
|
|
|
|
|
|
DeviceDetailReportForm.GAMode = StringToLable("GAMode");
|
|
|
DeviceDetailReportForm.GAStatus = StringToLable("GAStatus");
|
|
|
DeviceDetailReportForm.GABatch = StringToLable("GABatch");
|
|
|
DeviceDetailReportForm.GAStep = StringToLable("GAStep");
|
|
|
DeviceDetailReportForm.GAStepCode = StringToLable("GAStepCode");
|
|
|
DeviceDetailReportForm.GATotalTime = StringToLable("GATotalTime");
|
|
|
DeviceDetailReportForm.GAStepTime = StringToLable("GAStepTime");
|
|
|
DeviceDetailReportForm.GASpeed = StringToLable("GASpeed");
|
|
|
|
|
|
DeviceDetailReportForm.GBMode = StringToLable("GBMode");
|
|
|
DeviceDetailReportForm.GBStatus = StringToLable("GBStatus");
|
|
|
DeviceDetailReportForm.GBBatch = StringToLable("GBBatch");
|
|
|
DeviceDetailReportForm.GBStep = StringToLable("GBStep");
|
|
|
DeviceDetailReportForm.GBStepCode = StringToLable("GBStepCode");
|
|
|
DeviceDetailReportForm.GBTotalTime = StringToLable("GBTotalTime");
|
|
|
DeviceDetailReportForm.GBStepTime = StringToLable("GBStepTime");
|
|
|
DeviceDetailReportForm.GBSpeed = StringToLable("GBSpeed");
|
|
|
|
|
|
DeviceDetailReportForm.GCMode = StringToLable("GCMode");
|
|
|
DeviceDetailReportForm.GCStatus = StringToLable("GCStatus");
|
|
|
DeviceDetailReportForm.GCBatch = StringToLable("GCBatch");
|
|
|
DeviceDetailReportForm.GCStep = StringToLable("GCStep");
|
|
|
DeviceDetailReportForm.GCStepCode = StringToLable("GCStepCode");
|
|
|
DeviceDetailReportForm.GCTotalTime = StringToLable("GCTotalTime");
|
|
|
DeviceDetailReportForm.GCStepTime = StringToLable("GCStepTime");
|
|
|
DeviceDetailReportForm.GCSpeed = StringToLable("GCSpeed");
|
|
|
|
|
|
DeviceDetailReportForm.GDMode = StringToLable("GDMode");
|
|
|
DeviceDetailReportForm.GDStatus = StringToLable("GDStatus");
|
|
|
DeviceDetailReportForm.GDBatch = StringToLable("GDBatch");
|
|
|
DeviceDetailReportForm.GDStep = StringToLable("GDStep");
|
|
|
DeviceDetailReportForm.GDStepCode = StringToLable("GDStepCode");
|
|
|
DeviceDetailReportForm.GDTotalTime = StringToLable("GDTotalTime");
|
|
|
DeviceDetailReportForm.GDStepTime = StringToLable("GDStepTime");
|
|
|
DeviceDetailReportForm.GDSpeed = StringToLable("GDSpeed");
|
|
|
|
|
|
DeviceDetailReportForm.GEMode = StringToLable("GEMode");
|
|
|
DeviceDetailReportForm.GEStatus = StringToLable("GEStatus");
|
|
|
DeviceDetailReportForm.GEBatch = StringToLable("GEBatch");
|
|
|
DeviceDetailReportForm.GEStep = StringToLable("GEStep");
|
|
|
DeviceDetailReportForm.GEStepCode = StringToLable("GEStepCode");
|
|
|
DeviceDetailReportForm.GETotalTime = StringToLable("GETotalTime");
|
|
|
DeviceDetailReportForm.GEStepTime = StringToLable("GEStepTime");
|
|
|
DeviceDetailReportForm.GESpeed = StringToLable("GESpeed");
|
|
|
|
|
|
DeviceDetailReportForm.GFMode = StringToLable("GFMode");
|
|
|
DeviceDetailReportForm.GFStatus = StringToLable("GFStatus");
|
|
|
DeviceDetailReportForm.GFBatch = StringToLable("GFBatch");
|
|
|
DeviceDetailReportForm.GFStep = StringToLable("GFStep");
|
|
|
DeviceDetailReportForm.GFStepCode = StringToLable("GFStepCode");
|
|
|
DeviceDetailReportForm.GFTotalTime = StringToLable("GFTotalTime");
|
|
|
DeviceDetailReportForm.GFStepTime = StringToLable("GFStepTime");
|
|
|
DeviceDetailReportForm.GFSpeed = StringToLable("GFSpeed");
|
|
|
|
|
|
DeviceDetailReportForm.GGMode = StringToLable("GGMode");
|
|
|
DeviceDetailReportForm.GGStatus = StringToLable("GGStatus");
|
|
|
DeviceDetailReportForm.GGBatch = StringToLable("GGBatch");
|
|
|
DeviceDetailReportForm.GGStep = StringToLable("GGStep");
|
|
|
DeviceDetailReportForm.GGStepCode = StringToLable("GGStepCode");
|
|
|
DeviceDetailReportForm.GGTotalTime = StringToLable("GGTotalTime");
|
|
|
DeviceDetailReportForm.GGStepTime = StringToLable("GGStepTime");
|
|
|
DeviceDetailReportForm.GGSpeed = StringToLable("GGSpeed");
|
|
|
|
|
|
DeviceDetailReportForm.GHMode = StringToLable("GHMode");
|
|
|
DeviceDetailReportForm.GHStatus = StringToLable("GHStatus");
|
|
|
DeviceDetailReportForm.GHBatch = StringToLable("GHBatch");
|
|
|
DeviceDetailReportForm.GHStep = StringToLable("GHStep");
|
|
|
DeviceDetailReportForm.GHStepCode = StringToLable("GHStepCode");
|
|
|
DeviceDetailReportForm.GHTotalTime = StringToLable("GHTotalTime");
|
|
|
DeviceDetailReportForm.GHStepTime = StringToLable("GHStepTime");
|
|
|
DeviceDetailReportForm.GHSpeed = StringToLable("GHSpeed");
|
|
|
#endregion
|
|
|
|
|
|
#region 图像变量对应前端控件
|
|
|
|
|
|
DeviceDetailReportForm.WatchDog = GetStateButton("WatchDog");
|
|
|
DeviceDetailReportForm.EMStop = GetSystemStateShow("EMStop");
|
|
|
|
|
|
DeviceDetailReportForm.Vessel_1_HighLevel = GetSwitchLight("Vessel_1_HighLevel");
|
|
|
DeviceDetailReportForm.Vessel_2_HighLevel = GetSwitchLight("Vessel_2_HighLevel");
|
|
|
DeviceDetailReportForm.Vessel_3_HighLevel = GetSwitchLight("Vessel_3_HighLevel");
|
|
|
DeviceDetailReportForm.Vessel_4_HighLevel = GetSwitchLight("Vessel_4_HighLevel");
|
|
|
DeviceDetailReportForm.Vessel_5_HighLevel = GetSwitchLight("Vessel_5_HighLevel");
|
|
|
DeviceDetailReportForm.Vessel_1_LowLevel = GetSwitchLight("Vessel_1_LowLevel");
|
|
|
DeviceDetailReportForm.Vessel_2_LowLevel = GetSwitchLight("Vessel_2_LowLevel");
|
|
|
DeviceDetailReportForm.Vessel_3_LowLevel = GetSwitchLight("Vessel_3_LowLevel");
|
|
|
DeviceDetailReportForm.Vessel_4_LowLevel = GetSwitchLight("Vessel_4_LowLevel");
|
|
|
DeviceDetailReportForm.Vessel_5_LowLevel = GetSwitchLight("Vessel_5_LowLevel");
|
|
|
DeviceDetailReportForm.highLevel_D1 = GetSwitchLight("highLevel_D1");
|
|
|
DeviceDetailReportForm.highLevel_D2 = GetSwitchLight("highLevel_D2");
|
|
|
DeviceDetailReportForm.highLevel_D3 = GetSwitchLight("highLevel_D3");
|
|
|
DeviceDetailReportForm.highLevel_D4 = GetSwitchLight("highLevel_D4");
|
|
|
DeviceDetailReportForm.highLevel_D5 = GetSwitchLight("highLevel_D5");
|
|
|
DeviceDetailReportForm.highLevel_D6 = GetSwitchLight("highLevel_D6");
|
|
|
DeviceDetailReportForm.highLevel_D7 = GetSwitchLight("highLevel_D7");
|
|
|
DeviceDetailReportForm.highLevel_D8 = GetSwitchLight("highLevel_D8");
|
|
|
DeviceDetailReportForm.highLevel_D9 = GetSwitchLight("highLevel_D9");
|
|
|
DeviceDetailReportForm.highLevel_D10 = GetSwitchLight("highLevel_D10");
|
|
|
DeviceDetailReportForm.highLevel_D11 = GetSwitchLight("highLevel_D11");
|
|
|
DeviceDetailReportForm.highLevel_D12 = GetSwitchLight("highLevel_D12");
|
|
|
DeviceDetailReportForm.lowLevel_D1 = GetSwitchLight("lowLevel_D1");
|
|
|
DeviceDetailReportForm.lowLevel_D2 = GetSwitchLight("lowLevel_D2");
|
|
|
DeviceDetailReportForm.lowLevel_D3 = GetSwitchLight("lowLevel_D3");
|
|
|
DeviceDetailReportForm.lowLevel_D4 = GetSwitchLight("lowLevel_D4");
|
|
|
DeviceDetailReportForm.lowLevel_D5 = GetSwitchLight("lowLevel_D5");
|
|
|
DeviceDetailReportForm.lowLevel_D6 = GetSwitchLight("lowLevel_D6");
|
|
|
DeviceDetailReportForm.lowLevel_D7 = GetSwitchLight("lowLevel_D7");
|
|
|
DeviceDetailReportForm.lowLevel_D8 = GetSwitchLight("lowLevel_D8");
|
|
|
DeviceDetailReportForm.lowLevel_D9 = GetSwitchLight("lowLevel_D9");
|
|
|
DeviceDetailReportForm.lowLevel_D10 = GetSwitchLight("lowLevel_D10");
|
|
|
DeviceDetailReportForm.lowLevel_D11 = GetSwitchLight("lowLevel_D11");
|
|
|
DeviceDetailReportForm.lowLevel_D12 = GetSwitchLight("lowLevel_D12");
|
|
|
DeviceDetailReportForm.Hopper_1_HighLevel = GetSwitchLight("Hopper_1_HighLevel");
|
|
|
DeviceDetailReportForm.Hopper_2_HighLevel = GetSwitchLight("Hopper_2_HighLevel");
|
|
|
DeviceDetailReportForm.Hopper_3_HighLevel = GetSwitchLight("Hopper_3_HighLevel");
|
|
|
DeviceDetailReportForm.Hopper_4_HighLevel = GetSwitchLight("Hopper_4_HighLevel");
|
|
|
DeviceDetailReportForm.Hopper_1_LowLevel = GetSwitchLight("Hopper_1_LowLevel");
|
|
|
DeviceDetailReportForm.Hopper_2_LowLevel = GetSwitchLight("Hopper_2_LowLevel");
|
|
|
DeviceDetailReportForm.Hopper_3_LowLevel = GetSwitchLight("Hopper_3_LowLevel");
|
|
|
DeviceDetailReportForm.Hopper_4_LowLevel = GetSwitchLight("Hopper_4_LowLevel");
|
|
|
DeviceDetailReportForm.WScale_1_HighLevel = GetSwitchLight("WScale_1_HighLevel");
|
|
|
DeviceDetailReportForm.WScale_2_HighLevel = GetSwitchLight("WScale_2_HighLevel");
|
|
|
DeviceDetailReportForm.WScale_3_HighLevel = GetSwitchLight("WScale_3_HighLevel");
|
|
|
DeviceDetailReportForm.WScale_4_HighLevel = GetSwitchLight("WScale_4_HighLevel");
|
|
|
DeviceDetailReportForm.WScale_1_LowLevel = GetSwitchLight("WScale_1_LowLevel");
|
|
|
DeviceDetailReportForm.WScale_2_LowLevel = GetSwitchLight("WScale_2_LowLevel");
|
|
|
DeviceDetailReportForm.WScale_3_LowLevel = GetSwitchLight("WScale_3_LowLevel");
|
|
|
DeviceDetailReportForm.WScale_4_LowLevel = GetSwitchLight("WScale_4_LowLevel");
|
|
|
DeviceDetailReportForm.DMWETER1 = GetSwitchLight("DMWETER1");
|
|
|
DeviceDetailReportForm.DMWETER11 = GetSwitchLight("DMWETER11");
|
|
|
DeviceDetailReportForm.DMWETER2 = GetSwitchLight("DMWETER2");
|
|
|
DeviceDetailReportForm.DMWETER22 = GetSwitchLight("DMWETER22");
|
|
|
DeviceDetailReportForm.DMWETER3 = GetSwitchLight("DMWETER3");
|
|
|
DeviceDetailReportForm.DMWETER33 = GetSwitchLight("DMWETER33");
|
|
|
DeviceDetailReportForm.DMWETER4 = GetSwitchLight("DMWETER4");
|
|
|
DeviceDetailReportForm.DMWETER44 = GetSwitchLight("DMWETER44");
|
|
|
DeviceDetailReportForm.DMWETER5 = GetSwitchLight("DMWETER5");
|
|
|
DeviceDetailReportForm.DMWETER55 = GetSwitchLight("DMWETER55");
|
|
|
DeviceDetailReportForm.DMWETER6 = GetSwitchLight("DMWETER6");
|
|
|
DeviceDetailReportForm.DMWETER66 = GetSwitchLight("DMWETER66");
|
|
|
DeviceDetailReportForm.DMWETER7 = GetSwitchLight("DMWETER7");
|
|
|
DeviceDetailReportForm.DMWETER77 = GetSwitchLight("DMWETER77");
|
|
|
DeviceDetailReportForm.DMWETER8 = GetSwitchLight("DMWETER8");
|
|
|
DeviceDetailReportForm.DMWETER88 = GetSwitchLight("DMWETER88");
|
|
|
|
|
|
DeviceDetailReportForm.topPressure_V1 = GetMCLabel("topPressure_V1");
|
|
|
DeviceDetailReportForm.topPressure_V2 = GetMCLabel("topPressure_V2");
|
|
|
DeviceDetailReportForm.topPressure_V3 = GetMCLabel("topPressure_V3");
|
|
|
DeviceDetailReportForm.topPressure_V4 = GetMCLabel("topPressure_V4");
|
|
|
DeviceDetailReportForm.topPressure_V5 = GetMCLabel("topPressure_V5");
|
|
|
DeviceDetailReportForm.Vessel_1_ActWeight = GetMCLabel("Vessel_1_ActWeight");
|
|
|
DeviceDetailReportForm.Vessel_2_ActWeight = GetMCLabel("Vessel_2_ActWeight");
|
|
|
DeviceDetailReportForm.Vessel_3_ActWeight = GetMCLabel("Vessel_3_ActWeight");
|
|
|
DeviceDetailReportForm.Vessel_4_ActWeight = GetMCLabel("Vessel_4_ActWeight");
|
|
|
DeviceDetailReportForm.Vessel_5_ActWeight = GetMCLabel("Vessel_5_ActWeight");
|
|
|
DeviceDetailReportForm.conveyV1_PV = GetMCLabel("conveyV1_PV");
|
|
|
DeviceDetailReportForm.conveyV2_PV = GetMCLabel("conveyV2_PV");
|
|
|
DeviceDetailReportForm.conveyV3_PV = GetMCLabel("conveyV3_PV");
|
|
|
DeviceDetailReportForm.conveyV5_PV = GetMCLabel("conveyV5_PV");
|
|
|
DeviceDetailReportForm.mainPress_V1_ActualValue = GetMCLabel("mainPress_V1_ActualValue");
|
|
|
DeviceDetailReportForm.mainPress_V2_ActualValue = GetMCLabel("mainPress_V2_ActualValue");
|
|
|
DeviceDetailReportForm.mainPress_V3_ActualValue = GetMCLabel("mainPress_V3_ActualValue");
|
|
|
DeviceDetailReportForm.mainPress_V5_ActualValue = GetMCLabel("mainPress_V5_ActualValue");
|
|
|
DeviceDetailReportForm.purgeV1_PV = GetMCLabel("purgeV1_PV");
|
|
|
DeviceDetailReportForm.purgeV2_PV = GetMCLabel("purgeV2_PV");
|
|
|
DeviceDetailReportForm.purgeV3_PV = GetMCLabel("purgeV3_PV");
|
|
|
DeviceDetailReportForm.purgeV5_PV = GetMCLabel("purgeV5_PV");
|
|
|
DeviceDetailReportForm.WScale_1_ActWeight = GetMCLabel("WScale_1_ActWeight");
|
|
|
DeviceDetailReportForm.WScale_2_ActWeight = GetMCLabel("WScale_2_ActWeight");
|
|
|
DeviceDetailReportForm.WScale_3_ActWeight = GetMCLabel("WScale_3_ActWeight");
|
|
|
DeviceDetailReportForm.WScale_4_ActWeight = GetMCLabel("WScale_4_ActWeight");
|
|
|
DeviceDetailReportForm.DM1DRY1_ACT_Speed = GetMCLabel("DM1DRY1_ACT_Speed");
|
|
|
DeviceDetailReportForm.DM1DRY2_ACT_Speed = GetMCLabel("DM1DRY2_ACT_Speed");
|
|
|
DeviceDetailReportForm.DM1DRY3_ACT_Speed = GetMCLabel("DM1DRY3_ACT_Speed");
|
|
|
DeviceDetailReportForm.DM1DRY4_ACT_Speed = GetMCLabel("DM1DRY4_ACT_Speed");
|
|
|
DeviceDetailReportForm.Hopper_1_ActWeight = GetMCLabel("Hopper_1_ActWeight");
|
|
|
DeviceDetailReportForm.Hopper_2_ActWeight = GetMCLabel("Hopper_2_ActWeight");
|
|
|
DeviceDetailReportForm.Hopper_3_ActWeight = GetMCLabel("Hopper_3_ActWeight");
|
|
|
DeviceDetailReportForm.Hopper_4_ActWeight = GetMCLabel("Hopper_4_ActWeight");
|
|
|
DeviceDetailReportForm.DM1GEM = GetMCLabel("DM1GEM");
|
|
|
DeviceDetailReportForm.DM2GEM = GetMCLabel("DM2GEM");
|
|
|
DeviceDetailReportForm.DM3GEM = GetMCLabel("DM3GEM");
|
|
|
DeviceDetailReportForm.DM4GEM = GetMCLabel("DM4GEM");
|
|
|
DeviceDetailReportForm.DM5GEM = GetMCLabel("DM5GEM");
|
|
|
DeviceDetailReportForm.DM6GEM = GetMCLabel("DM6GEM");
|
|
|
DeviceDetailReportForm.DM7GEM = GetMCLabel("DM7GEM");
|
|
|
DeviceDetailReportForm.DM8GEM = GetMCLabel("DM8GEM");
|
|
|
DeviceDetailReportForm.DM2ASF01 = GetMCLabel("DM2ASF01");
|
|
|
DeviceDetailReportForm.DM2BSF01 = GetMCLabel("DM2BSF01");
|
|
|
DeviceDetailReportForm.DM2CSF01 = GetMCLabel("DM2CSF01");
|
|
|
DeviceDetailReportForm.DM2DSF01 = GetMCLabel("DM2DSF01");
|
|
|
|
|
|
DeviceDetailReportForm.DM1ASF01 = GetRSCREWBIG("DM1ASF01");
|
|
|
DeviceDetailReportForm.DM1BSF01 = GetRSCREWBIG("DM1BSF01");
|
|
|
DeviceDetailReportForm.DM1CSF01 = GetLSCREWBIG("DM1CSF01");
|
|
|
DeviceDetailReportForm.DM1DSF01 = GetLSCREWBIG("DM1DSF01");
|
|
|
DeviceDetailReportForm.DM1ESF01 = GetRSCREWBIG("DM1ESF01");
|
|
|
DeviceDetailReportForm.DM1FSF01 = GetLSCREWBIG("DM1FSF01");
|
|
|
DeviceDetailReportForm.DM1GSF01 = GetRSCREWBIG("DM1GSF01");
|
|
|
DeviceDetailReportForm.DM1HSF01 = GetRSCREWBIG("DM1HSF01");
|
|
|
DeviceDetailReportForm.DM1ISF01 = GetLSCREWBIG("DM1ISF01");
|
|
|
DeviceDetailReportForm.DM1JSF01 = GetLSCREWBIG("DM1JSF01");
|
|
|
DeviceDetailReportForm.DM1KSF01 = GetRSCREWBIG("DM1KSF01");
|
|
|
DeviceDetailReportForm.DM1LSF01 = GetRSCREWBIG("DM1LSF01");
|
|
|
DeviceDetailReportForm.DM1MSF01 = GetLSCREWBIG("DM1MSF01");
|
|
|
DeviceDetailReportForm.DM1NSF01 = GetLSCREWBIG("DM1NSF01");
|
|
|
DeviceDetailReportForm.DM1OSF01 = GetRSCREWBIG("DM1OSF01");
|
|
|
DeviceDetailReportForm.DM2ASF01L = GetLSCREWBIG("DM2ASF01L");
|
|
|
DeviceDetailReportForm.DM2BSF01L = GetLSCREWBIG("DM2BSF01L");
|
|
|
DeviceDetailReportForm.DM2CSF01L = GetLSCREWBIG("DM2CSF01L");
|
|
|
DeviceDetailReportForm.DM2DSF01L = GetLSCREWBIG("DM2DSF01L");
|
|
|
DeviceDetailReportForm.DM2ASF01R = GetRSCREWBIG("DM2ASF01R");
|
|
|
DeviceDetailReportForm.DM2BSF01R = GetRSCREWBIG("DM2BSF01R");
|
|
|
DeviceDetailReportForm.DM2CSF01R = GetRSCREWBIG("DM2CSF01R");
|
|
|
DeviceDetailReportForm.DM2DSF01R = GetRSCREWBIG("DM2DSF01R");
|
|
|
|
|
|
DeviceDetailReportForm.AS1BLT01 = GetJzf("AS1BLT01");
|
|
|
DeviceDetailReportForm.AS1BLT02 = GetJzf("AS1BLT02");
|
|
|
DeviceDetailReportForm.AS1BLT03 = GetJzf("AS1BLT03");
|
|
|
DeviceDetailReportForm.AS1BLT04 = GetJzf("AS1BLT04");
|
|
|
DeviceDetailReportForm.AS1BLT05 = GetJzf("AS1BLT05");
|
|
|
DeviceDetailReportForm.AS2BLT01 = GetJzf("AS2BLT01");
|
|
|
DeviceDetailReportForm.AS2BLT02 = GetJzf("AS2BLT02");
|
|
|
DeviceDetailReportForm.AS2BLT03 = GetJzf("AS2BLT03");
|
|
|
DeviceDetailReportForm.AS2BLT04 = GetJzf("AS2BLT04");
|
|
|
DeviceDetailReportForm.AS2BLT05 = GetJzf("AS2BLT05");
|
|
|
DeviceDetailReportForm.AS3BLT01 = GetJzf("AS3BLT01");
|
|
|
DeviceDetailReportForm.AS3BLT02 = GetJzf("AS3BLT02");
|
|
|
DeviceDetailReportForm.AS3BLT03 = GetJzf("AS3BLT03");
|
|
|
DeviceDetailReportForm.AS3BLT04 = GetJzf("AS3BLT04");
|
|
|
DeviceDetailReportForm.AS3BLT05 = GetJzf("AS3BLT05");
|
|
|
DeviceDetailReportForm.AS4BLT01 = GetJzf("AS4BLT01");
|
|
|
DeviceDetailReportForm.AS4BLT03 = GetJzf("AS4BLT03");
|
|
|
DeviceDetailReportForm.AS5BLT01 = GetJzf("AS5BLT01");
|
|
|
DeviceDetailReportForm.AS5BLT02 = GetJzf("AS5BLT02");
|
|
|
DeviceDetailReportForm.AS5BLT03 = GetJzf("AS5BLT03");
|
|
|
DeviceDetailReportForm.AS5BLT04 = GetJzf("AS5BLT04");
|
|
|
DeviceDetailReportForm.AS5BLT05 = GetJzf("AS5BLT05");
|
|
|
DeviceDetailReportForm.AS2PCP01 = GetJzf("AS2PCP01");
|
|
|
DeviceDetailReportForm.AS2PCP02 = GetJzf("AS2PCP02");
|
|
|
DeviceDetailReportForm.AS2PCP03 = GetJzf("AS2PCP03");
|
|
|
DeviceDetailReportForm.AS1OIS01 = GetJzf("AS1OIS01");
|
|
|
DeviceDetailReportForm.AS1OIS02 = GetJzf("AS1OIS02");
|
|
|
DeviceDetailReportForm.AS1OIS03 = GetJzf("AS1OIS03");
|
|
|
DeviceDetailReportForm.AS2OIS01 = GetJzf("AS2OIS01");
|
|
|
DeviceDetailReportForm.AS2OIS02 = GetJzf("AS2OIS02");
|
|
|
DeviceDetailReportForm.AS2OIS03 = GetJzf("AS2OIS03");
|
|
|
DeviceDetailReportForm.AS3OIS01 = GetJzf("AS3OIS01");
|
|
|
DeviceDetailReportForm.AS3OIS02 = GetJzf("AS3OIS02");
|
|
|
DeviceDetailReportForm.AS3OIS03 = GetJzf("AS3OIS03");
|
|
|
DeviceDetailReportForm.AS4OIS01 = GetJzf("AS4OIS01");
|
|
|
DeviceDetailReportForm.AS4OIS02 = GetJzf("AS4OIS02");
|
|
|
DeviceDetailReportForm.AS4OIS03 = GetJzf("AS4OIS03");
|
|
|
DeviceDetailReportForm.AS1GET01 = GetJzf("AS1GET01");
|
|
|
DeviceDetailReportForm.AS1GET02 = GetJzf("AS1GET02");
|
|
|
DeviceDetailReportForm.AS2GET01 = GetJzf("AS2GET01");
|
|
|
DeviceDetailReportForm.AS2GET02 = GetJzf("AS2GET02");
|
|
|
DeviceDetailReportForm.AS3GET01 = GetJzf("AS3GET01");
|
|
|
DeviceDetailReportForm.AS3GET02 = GetJzf("AS3GET02");
|
|
|
DeviceDetailReportForm.AS4GET01 = GetJzf("AS4GET01");
|
|
|
DeviceDetailReportForm.AS4GET02 = GetJzf("AS4GET02");
|
|
|
DeviceDetailReportForm.AS5GET01 = GetJzf("AS5GET01");
|
|
|
DeviceDetailReportForm.AS5GET02 = GetJzf("AS5GET02");
|
|
|
DeviceDetailReportForm.AS6GET01 = GetJzf("AS6GET01");
|
|
|
DeviceDetailReportForm.AS6GET02 = GetJzf("AS6GET02");
|
|
|
DeviceDetailReportForm.AS7GET01 = GetJzf("AS7GET01");
|
|
|
DeviceDetailReportForm.AS7GET02 = GetJzf("AS7GET02");
|
|
|
DeviceDetailReportForm.AS8GET01 = GetJzf("AS8GET01");
|
|
|
DeviceDetailReportForm.AS8GET02 = GetJzf("AS8GET02");
|
|
|
|
|
|
DeviceDetailReportForm.DM1ADF01 = GetFan("DM1ADF01");
|
|
|
DeviceDetailReportForm.DM1BDF01 = GetFan("DM1BDF01");
|
|
|
DeviceDetailReportForm.DM1CDF01 = GetFan("DM1CDF01");
|
|
|
DeviceDetailReportForm.DM1DDF01 = GetFan("DM1DDF01");
|
|
|
DeviceDetailReportForm.DM1EDF01 = GetFan("DM1EDF01");
|
|
|
DeviceDetailReportForm.DM1FDF01 = GetFan("DM1FDF01");
|
|
|
DeviceDetailReportForm.DM1GDF01 = GetFan("DM1GDF01");
|
|
|
DeviceDetailReportForm.DM1HDF01 = GetFan("DM1HDF01");
|
|
|
DeviceDetailReportForm.DM1IDF01 = GetFan("DM1IDF01");
|
|
|
DeviceDetailReportForm.DM1JDF01 = GetFan("DM1JDF01");
|
|
|
DeviceDetailReportForm.DM1KDF01 = GetFan("DM1KDF01");
|
|
|
DeviceDetailReportForm.DM1LDF01 = GetFan("DM1LDF01");
|
|
|
DeviceDetailReportForm.DM1ADB01 = GetFan("DM1ADB01");
|
|
|
DeviceDetailReportForm.DM1BDB01 = GetFan("DM1BDB01");
|
|
|
DeviceDetailReportForm.DM1CDB01 = GetFan("DM1CDB01");
|
|
|
DeviceDetailReportForm.DM1DDB01 = GetFan("DM1DDB01");
|
|
|
DeviceDetailReportForm.DM1EDB01 = GetFan("DM1EDB01");
|
|
|
DeviceDetailReportForm.DM1FDB01 = GetFan("DM1FDB01");
|
|
|
DeviceDetailReportForm.DM1GDB01 = GetFan("DM1GDB01");
|
|
|
DeviceDetailReportForm.DM1HDB01 = GetFan("DM1HDB01");
|
|
|
DeviceDetailReportForm.DM1IDB01 = GetFan("DM1IDB01");
|
|
|
DeviceDetailReportForm.DM1JDB01 = GetFan("DM1JDB01");
|
|
|
DeviceDetailReportForm.DM1KDB01 = GetFan("DM1KDB01");
|
|
|
DeviceDetailReportForm.DM1LDB01 = GetFan("DM1LDB01");
|
|
|
DeviceDetailReportForm.DM1DRY1_Running = GetFan("DM1DRY1_Running");
|
|
|
DeviceDetailReportForm.DM1DRY2_Running = GetFan("DM1DRY2_Running");
|
|
|
DeviceDetailReportForm.DM1DRY3_Running = GetFan("DM1DRY3_Running");
|
|
|
DeviceDetailReportForm.DM1DRY4_Running = GetFan("DM1DRY4_Running");
|
|
|
DeviceDetailReportForm.PM3ADF01 = GetFan("PM3ADF01");
|
|
|
|
|
|
DeviceDetailReportForm.PM1ADF01 = GetControlCabinet("PM1ADF01");
|
|
|
DeviceDetailReportForm.PM1BDF01 = GetControlCabinet("PM1BDF01");
|
|
|
DeviceDetailReportForm.PM1CDF01 = GetControlCabinet("PM1CDF01");
|
|
|
DeviceDetailReportForm.PM1DDF01 = GetControlCabinet("PM1DDF01");
|
|
|
DeviceDetailReportForm.PM1EDF01 = GetControlCabinet("PM1EDF01");
|
|
|
DeviceDetailReportForm.PM1FDF01 = GetControlCabinet("PM1FDF01");
|
|
|
DeviceDetailReportForm.PM1GDF01 = GetControlCabinet("PM1GDF01");
|
|
|
DeviceDetailReportForm.PM1HDF01 = GetControlCabinet("PM1HDF01");
|
|
|
DeviceDetailReportForm.PM1IDF01 = GetControlCabinet("PM1IDF01");
|
|
|
DeviceDetailReportForm.PM1JDF01 = GetControlCabinet("PM1JDF01");
|
|
|
DeviceDetailReportForm.PM1KDF01 = GetControlCabinet("PM1KDF01");
|
|
|
DeviceDetailReportForm.PM1LDF01 = GetControlCabinet("PM1LDF01");
|
|
|
|
|
|
DeviceDetailReportForm.BU1ASF01 = GetLjSwith("BU1ASF01");
|
|
|
DeviceDetailReportForm.BU1BSF01 = GetLjSwith("BU1BSF01");
|
|
|
DeviceDetailReportForm.BU1CSF01 = GetLjSwith("BU1CSF01");
|
|
|
DeviceDetailReportForm.BU1DSF01 = GetLjSwith("BU1DSF01");
|
|
|
DeviceDetailReportForm.BU1ESF01 = GetLjSwith("BU1ESF01");
|
|
|
DeviceDetailReportForm.BU1FSF01 = GetLjSwith("BU1FSF01");
|
|
|
DeviceDetailReportForm.BU1GSF01 = GetLjSwith("BU1GSF01");
|
|
|
DeviceDetailReportForm.BU1HSF01 = GetLjSwith("BU1HSF01");
|
|
|
DeviceDetailReportForm.BU1ISF01 = GetLjSwith("BU1ISF01");
|
|
|
DeviceDetailReportForm.BU1JSF01 = GetLjSwith("BU1JSF01");
|
|
|
DeviceDetailReportForm.BU1KSF01 = GetLjSwith("BU1KSF01");
|
|
|
DeviceDetailReportForm.BU1LSF01 = GetLjSwith("BU1LSF01");
|
|
|
DeviceDetailReportForm.BU1MSF01 = GetLjSwith("BU1MSF01");
|
|
|
DeviceDetailReportForm.BU1NSF01 = GetLjSwith("BU1NSF01");
|
|
|
DeviceDetailReportForm.BU1OSF01 = GetLjSwith("BU1OSF01");
|
|
|
DeviceDetailReportForm.BU1BLT01 = GetLjSwith("BU1BLT01");
|
|
|
DeviceDetailReportForm.BU1BLT02 = GetLjSwith("BU1BLT02");
|
|
|
DeviceDetailReportForm.BU1BLT03 = GetLjSwith("BU1BLT03");
|
|
|
DeviceDetailReportForm.BU1BLT04 = GetLjSwith("BU1BLT04");
|
|
|
DeviceDetailReportForm.BU1BLT05 = GetLjSwith("BU1BLT05");
|
|
|
DeviceDetailReportForm.BU1BLT06 = GetLjSwith("BU1BLT06");
|
|
|
DeviceDetailReportForm.BU1BLT07 = GetLjSwith("BU1BLT07");
|
|
|
DeviceDetailReportForm.BU2BLT01 = GetLjSwith("BU2BLT01");
|
|
|
DeviceDetailReportForm.BU2BLT02 = GetLjSwith("BU2BLT02");
|
|
|
DeviceDetailReportForm.BU2BLT03 = GetLjSwith("BU2BLT03");
|
|
|
DeviceDetailReportForm.BU2BLT04 = GetLjSwith("BU2BLT04");
|
|
|
DeviceDetailReportForm.BU2BLT05 = GetLjSwith("BU2BLT05");
|
|
|
DeviceDetailReportForm.BU3BLT01 = GetLjSwith("BU3BLT01");
|
|
|
DeviceDetailReportForm.BU3BLT02 = GetLjSwith("BU3BLT02");
|
|
|
DeviceDetailReportForm.BU3BLT03 = GetLjSwith("BU3BLT03");
|
|
|
DeviceDetailReportForm.BU3BLT04 = GetLjSwith("BU3BLT04");
|
|
|
DeviceDetailReportForm.BU3BLT05 = GetLjSwith("BU3BLT05");
|
|
|
DeviceDetailReportForm.BU3BLT06 = GetLjSwith("BU3BLT06");
|
|
|
DeviceDetailReportForm.BU3BLT07 = GetLjSwith("BU3BLT07");
|
|
|
DeviceDetailReportForm.BU4BLT01 = GetLjSwith("BU4BLT01");
|
|
|
DeviceDetailReportForm.BU4BLT02 = GetLjSwith("BU4BLT02");
|
|
|
DeviceDetailReportForm.BU4BLT03 = GetLjSwith("BU4BLT03");
|
|
|
DeviceDetailReportForm.BU4BLT04 = GetLjSwith("BU4BLT04");
|
|
|
DeviceDetailReportForm.BU4BLT05 = GetLjSwith("BU4BLT05");
|
|
|
DeviceDetailReportForm.BU4BLT06 = GetLjSwith("BU4BLT06");
|
|
|
DeviceDetailReportForm.BU4BLT07 = GetLjSwith("BU4BLT07");
|
|
|
DeviceDetailReportForm.BU5BLT01 = GetLjSwith("BU5BLT01");
|
|
|
DeviceDetailReportForm.BU5BLT02 = GetLjSwith("BU5BLT02");
|
|
|
DeviceDetailReportForm.BU5BLT03 = GetLjSwith("BU5BLT03");
|
|
|
DeviceDetailReportForm.BU5BLT04 = GetLjSwith("BU5BLT04");
|
|
|
DeviceDetailReportForm.BU1ADB01 = GetLjSwith("BU1ADB01");
|
|
|
DeviceDetailReportForm.BU1BDB01 = GetLjSwith("BU1BDB01");
|
|
|
DeviceDetailReportForm.BU1CDB01 = GetLjSwith("BU1CDB01");
|
|
|
DeviceDetailReportForm.BU1DDB01 = GetLjSwith("BU1DDB01");
|
|
|
DeviceDetailReportForm.BU1EDB01 = GetLjSwith("BU1EDB01");
|
|
|
DeviceDetailReportForm.BU1FDB01 = GetLjSwith("BU1FDB01");
|
|
|
DeviceDetailReportForm.BU1GDB01 = GetLjSwith("BU1GDB01");
|
|
|
DeviceDetailReportForm.BU1HDB01 = GetLjSwith("BU1HDB01");
|
|
|
DeviceDetailReportForm.BU1IDB01 = GetLjSwith("BU1IDB01");
|
|
|
DeviceDetailReportForm.BU1JDB01 = GetLjSwith("BU1JDB01");
|
|
|
DeviceDetailReportForm.BU1KDB01 = GetLjSwith("BU1KDB01");
|
|
|
DeviceDetailReportForm.BU1LDB01 = GetLjSwith("BU1LDB01");
|
|
|
DeviceDetailReportForm.BU1GEB02 = GetLjSwith("BU1GEB02");
|
|
|
DeviceDetailReportForm.BU2GEB02 = GetLjSwith("BU2GEB02");
|
|
|
DeviceDetailReportForm.BU3GEB02 = GetLjSwith("BU3GEB02");
|
|
|
DeviceDetailReportForm.BU4GEB02 = GetLjSwith("BU4GEB02");
|
|
|
DeviceDetailReportForm.BU5GEB02 = GetLjSwith("BU5GEB02");
|
|
|
DeviceDetailReportForm.BU6GEB02 = GetLjSwith("BU6GEB02");
|
|
|
DeviceDetailReportForm.BU7GEB02 = GetLjSwith("BU7GEB02");
|
|
|
DeviceDetailReportForm.BU8GEB02 = GetLjSwith("BU8GEB02");
|
|
|
DeviceDetailReportForm.BU1DRB01 = GetLjSwith("BU1DRB01");
|
|
|
DeviceDetailReportForm.BU2DRB01 = GetLjSwith("BU2DRB01");
|
|
|
DeviceDetailReportForm.BU3DRB01 = GetLjSwith("BU3DRB01");
|
|
|
DeviceDetailReportForm.BU4DRB01 = GetLjSwith("BU4DRB01");
|
|
|
DeviceDetailReportForm.BU1GEB01 = GetLjSwith("BU1GEB01");
|
|
|
DeviceDetailReportForm.BU2GEB01 = GetLjSwith("BU2GEB01");
|
|
|
DeviceDetailReportForm.BU3GEB01 = GetLjSwith("BU3GEB01");
|
|
|
DeviceDetailReportForm.BU4GEB01 = GetLjSwith("BU4GEB01");
|
|
|
DeviceDetailReportForm.BU5GEB01 = GetLjSwith("BU5GEB01");
|
|
|
DeviceDetailReportForm.BU6GEB01 = GetLjSwith("BU6GEB01");
|
|
|
DeviceDetailReportForm.BU7GEB01 = GetLjSwith("BU7GEB01");
|
|
|
DeviceDetailReportForm.BU8GEB01 = GetLjSwith("BU8GEB01");
|
|
|
DeviceDetailReportForm.BU2ASF01 = GetLjSwith("BU2ASF01");
|
|
|
DeviceDetailReportForm.BU2ASF02 = GetLjSwith("BU2ASF02");
|
|
|
DeviceDetailReportForm.BU2BSF01 = GetLjSwith("BU2BSF01");
|
|
|
DeviceDetailReportForm.BU2BSF02 = GetLjSwith("BU2BSF02");
|
|
|
DeviceDetailReportForm.BU2CSF01 = GetLjSwith("BU2CSF01");
|
|
|
DeviceDetailReportForm.BU2CSF02 = GetLjSwith("BU2CSF02");
|
|
|
DeviceDetailReportForm.BU2DSF01 = GetLjSwith("BU2DSF01");
|
|
|
DeviceDetailReportForm.BU2DSF02 = GetLjSwith("BU2DSF02");
|
|
|
DeviceDetailReportForm.BUWeter1 = GetLjSwith("BUWeter1");
|
|
|
DeviceDetailReportForm.BUWeter2 = GetLjSwith("BUWeter2");
|
|
|
DeviceDetailReportForm.BUWeter3 = GetLjSwith("BUWeter3");
|
|
|
DeviceDetailReportForm.BUWeter4 = GetLjSwith("BUWeter4");
|
|
|
DeviceDetailReportForm.BUWeter5 = GetLjSwith("BUWeter5");
|
|
|
DeviceDetailReportForm.BUWeter6 = GetLjSwith("BUWeter6");
|
|
|
DeviceDetailReportForm.BUWeter7 = GetLjSwith("BUWeter7");
|
|
|
DeviceDetailReportForm.BUWeter8 = GetLjSwith("BUWeter8");
|
|
|
|
|
|
DeviceDetailReportForm.DV2PCP01 = GetThreeWayValve("DV2PCP01");
|
|
|
DeviceDetailReportForm.DV2PCP02 = GetThreeWayValve("DV2PCP02");
|
|
|
DeviceDetailReportForm.DV2PCP03 = GetThreeWayValve("DV2PCP03");
|
|
|
DeviceDetailReportForm.DV2PCP04 = GetThreeWayValve("DV2PCP04");
|
|
|
DeviceDetailReportForm.DV2PCP05 = GetThreeWayValve("DV2PCP05");
|
|
|
DeviceDetailReportForm.DV2PCP06 = GetThreeWayValve("DV2PCP06");
|
|
|
DeviceDetailReportForm.DV2PCP07 = GetThreeWayValve("DV2PCP07");
|
|
|
DeviceDetailReportForm.DV2PCP08 = GetThreeWayValve("DV2PCP08");
|
|
|
DeviceDetailReportForm.DV2PCP09 = GetThreeWayValve("DV2PCP09");
|
|
|
DeviceDetailReportForm.DV2PCP10 = GetThreeWayValve("DV2PCP10");
|
|
|
DeviceDetailReportForm.DV2PCP11 = GetThreeWayValve("DV2PCP11");
|
|
|
DeviceDetailReportForm.DV2PCP12 = GetThreeWayValve("DV2PCP12");
|
|
|
DeviceDetailReportForm.DV2PCP13 = GetThreeWayValve("DV2PCP13");
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
public MCLabel StringToLable(string lableName)
|
|
|
{
|
|
|
return McControllist.Where(t => t.BaseControl.MCKey != null && t.BaseControl.MCKey == lableName).FirstOrDefault().BaseControl as MCLabel;
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region 图像控件交互
|
|
|
|
|
|
/// <summary>
|
|
|
/// 看门狗
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetStateButton(StateButton obj, bool set)
|
|
|
{
|
|
|
if (set == true)
|
|
|
{
|
|
|
obj.Status = StateButton.Statuses.sssRun;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = StateButton.Statuses.sssStop;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public StateButton GetStateButton(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as StateButton;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 停止状态
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetSystemStateShow(SystemStateShow obj, bool set)
|
|
|
{
|
|
|
if (set == true)
|
|
|
{
|
|
|
obj.Status = SystemStateShow.Statuses.sssRun;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = SystemStateShow.Statuses.sssStop;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public SystemStateShow GetSystemStateShow(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as SystemStateShow;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 指示灯
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
/// <param name="alarm"></param>
|
|
|
public void SetSwitchLight(SwitchLight obj, bool set, bool alarm)
|
|
|
{
|
|
|
if (set == true && alarm == false)
|
|
|
{
|
|
|
obj.Status = SwitchLight.Statuses.ylMove;
|
|
|
}
|
|
|
else if(alarm == true)
|
|
|
{
|
|
|
obj.Status = SwitchLight.Statuses.ylAlarm;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = SwitchLight.Statuses.ylNormal;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public SwitchLight GetSwitchLight(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as SwitchLight;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 阀门
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
/// <param name="alarm"></param>
|
|
|
public void SetLjSwith(LjSwith obj, bool set, bool alarm)
|
|
|
{
|
|
|
if (set == true && alarm == false)
|
|
|
{
|
|
|
obj.Set = true;
|
|
|
obj.Alarm = false;
|
|
|
}
|
|
|
else if(alarm == true)
|
|
|
{
|
|
|
obj.Set = false;
|
|
|
obj.Alarm = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Set = false;
|
|
|
obj.Alarm = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public LjSwith GetLjSwith(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as LjSwith;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 螺旋给料器R
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetRSCREWBIG(RSCREWBIG obj, bool set)
|
|
|
{
|
|
|
if (set == true)
|
|
|
{
|
|
|
obj.Status = RSCREWBIG.Statuses.ylMove;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = RSCREWBIG.Statuses.ylNormal;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public RSCREWBIG GetRSCREWBIG(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as RSCREWBIG;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 螺旋给料器L
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetLSCREWBIG(LSCREWBIG obj, bool set)
|
|
|
{
|
|
|
if (set == true)
|
|
|
{
|
|
|
obj.Status = LSCREWBIG.Statuses.ylMove;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = LSCREWBIG.Statuses.ylNormal;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public LSCREWBIG GetLSCREWBIG(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as LSCREWBIG;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 脚座阀
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetJzf(Jzf obj, bool set)
|
|
|
{
|
|
|
if (set == true)
|
|
|
{
|
|
|
obj.Status = Jzf.Statuses.TurnOn;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = Jzf.Statuses.TurnOff;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public Jzf GetJzf(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as Jzf;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 文本标签
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetMCLabel(MCLabel obj, float set)
|
|
|
{
|
|
|
obj.Text = Convert.ToString(set);
|
|
|
}
|
|
|
|
|
|
public MCLabel GetMCLabel(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as MCLabel;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 三通
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="alarmr"></param>
|
|
|
/// <param name="setr"></param>
|
|
|
/// <param name="alarml"></param>
|
|
|
/// <param name="setl"></param>
|
|
|
public void SetThreeWayValve(ThreeWayValve obj, bool alarmr, bool setr, bool alarml, bool setl)
|
|
|
{
|
|
|
obj.ZLTValue = setr;
|
|
|
obj.ZLDValue = setl;
|
|
|
obj.ALMTValue = alarmr;
|
|
|
obj.ALMDValue = alarml;
|
|
|
}
|
|
|
|
|
|
public ThreeWayValve GetThreeWayValve(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as ThreeWayValve;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 风扇电机
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetFan(Fan obj, bool set)
|
|
|
{
|
|
|
if (set == true)
|
|
|
{
|
|
|
obj.Status = Fan.Statuses.zsTurnOn;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = Fan.Statuses.zsTurnOff;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public Fan GetFan(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as Fan;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 称量柜
|
|
|
/// </summary>
|
|
|
/// <param name="obj"></param>
|
|
|
/// <param name="set"></param>
|
|
|
public void SetControlCabinet(ControlCabinet obj, bool set)
|
|
|
{
|
|
|
if (set == true)
|
|
|
{
|
|
|
obj.Status = ControlCabinet.Statuses.TurnOn;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
obj.Status = ControlCabinet.Statuses.TurnOff;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public ControlCabinet GetControlCabinet(string name)
|
|
|
{
|
|
|
return Controls.First(x => x.Name == name) as ControlCabinet;
|
|
|
}
|
|
|
|
|
|
public void SetHslLanternAlarm(HslLanternAlarm lanternAlarm, bool error)
|
|
|
{
|
|
|
|
|
|
|
|
|
if (lanternAlarm.IsAlarm == error)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
lanternAlarm.IsAlarm = error;
|
|
|
|
|
|
}
|
|
|
|
|
|
private void FillControlHslLanternAlarm()
|
|
|
{
|
|
|
hslAlarmEntity = new HslLanternAlarmEntity();
|
|
|
var sourceType = hslAlarmEntity.GetType();
|
|
|
PropertyInfo[] sourcePropertyInfoList = sourceType.GetProperties();
|
|
|
foreach (PropertyInfo sourceProperty in sourcePropertyInfoList)
|
|
|
{
|
|
|
string name = sourceProperty.Name;
|
|
|
var pro = Controls.FirstOrDefault(x => x.Name == name) as HslLanternAlarm;
|
|
|
sourceProperty.SetValue(hslAlarmEntity, pro);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
}
|