|
|
@ -55,7 +55,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
|
|
|
|
|
|
|
Dictionary<int, int> WetStatus = new Dictionary<int, int>();
|
|
|
|
Dictionary<int, int> WetStatus = new Dictionary<int, int>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//DataTable ParametersWithPCTable = new DataTable();
|
|
|
|
//DataTable ParametersWithPCTable = new DataTable();
|
|
|
|
|
|
|
|
|
|
|
@ -89,7 +89,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
//控件实体类
|
|
|
|
//控件实体类
|
|
|
|
HslLanternAlarmEntity HslAlarmE = new HslLanternAlarmEntity();
|
|
|
|
HslLanternAlarmEntity HslAlarmE = new HslLanternAlarmEntity();
|
|
|
|
|
|
|
|
|
|
|
|
// HslAgvCarEntity hslAgvCarEntity = new HslAgvCarEntity();
|
|
|
|
// HslAgvCarEntity hslAgvCarEntity = new HslAgvCarEntity();
|
|
|
|
|
|
|
|
|
|
|
|
HslLanternSimpleEntity HslLanternSimpleE = new HslLanternSimpleEntity();
|
|
|
|
HslLanternSimpleEntity HslLanternSimpleE = new HslLanternSimpleEntity();
|
|
|
|
MCLabelEntity LabelE = new MCLabelEntity();
|
|
|
|
MCLabelEntity LabelE = new MCLabelEntity();
|
|
|
@ -180,8 +180,8 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
private void SetAllControls()
|
|
|
|
private void SetAllControls()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ControlsHelper.ControlImport<HslLanternAlarm>(HslAlarmE, Controls);
|
|
|
|
ControlsHelper.ControlImport<HslLanternAlarm>(HslAlarmE, Controls);
|
|
|
|
// ControlsHelper.ControlImport<HslAgvCar>(hslAgvCarEntity, Controls);
|
|
|
|
// ControlsHelper.ControlImport<HslAgvCar>(hslAgvCarEntity, Controls);
|
|
|
|
|
|
|
|
|
|
|
|
ControlsHelper.ControlImport<HslLanternSimple>(HslLanternSimpleE, Controls);
|
|
|
|
ControlsHelper.ControlImport<HslLanternSimple>(HslLanternSimpleE, Controls);
|
|
|
|
ControlsHelper.ControlImport<MCLabel>(LabelE, Controls);
|
|
|
|
ControlsHelper.ControlImport<MCLabel>(LabelE, Controls);
|
|
|
|
ControlsHelper.ControlImport<SwitchLight>(LightE, Controls);
|
|
|
|
ControlsHelper.ControlImport<SwitchLight>(LightE, Controls);
|
|
|
@ -257,7 +257,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
|
|
|
|
|
|
|
conCurrentCache.Clear();
|
|
|
|
conCurrentCache.Clear();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -285,22 +285,22 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
Timer1_Tick();
|
|
|
|
Timer1_Tick();
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (UserJudge.IsNormalUser())
|
|
|
|
if (UserJudge.IsNormalUser())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ReportReadDb.ReadReport();
|
|
|
|
ReportReadDb.ReadReport();
|
|
|
|
ReportReadDb.ReadFeededDry();
|
|
|
|
ReportReadDb.ReadFeededDry();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception)
|
|
|
|
catch (Exception)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -318,7 +318,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
ControlsHelper.SetMCLabel(LabelE.LineKind7, dict[7]);
|
|
|
|
ControlsHelper.SetMCLabel(LabelE.LineKind7, dict[7]);
|
|
|
|
ControlsHelper.SetMCLabel(LabelE.LineKind8, dict[8]);
|
|
|
|
ControlsHelper.SetMCLabel(LabelE.LineKind8, dict[8]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var reachSingle = RgvPlcUtil.GetRGVAllError();
|
|
|
|
var reachSingle = RgvPlcUtil.GetRGVAllError();
|
|
|
|
var mixSingle = Db3000Helper.ReadDb();
|
|
|
|
var mixSingle = Db3000Helper.ReadDb();
|
|
|
@ -411,7 +411,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
ControlsHelper.SetHsl(HslLanternSimpleE.FeededPDG7, ch.G7);
|
|
|
|
ControlsHelper.SetHsl(HslLanternSimpleE.FeededPDG7, ch.G7);
|
|
|
|
ControlsHelper.SetHsl(HslLanternSimpleE.FeededPDG8, ch.G8);
|
|
|
|
ControlsHelper.SetHsl(HslLanternSimpleE.FeededPDG8, ch.G8);
|
|
|
|
|
|
|
|
|
|
|
|
var db2105=new DB2105Helper();
|
|
|
|
var db2105 = new DB2105Helper();
|
|
|
|
ControlsHelper.SetHslFeededCW1(HslLanternSimpleE.FeededCW1, db2105.FeededCW1);
|
|
|
|
ControlsHelper.SetHslFeededCW1(HslLanternSimpleE.FeededCW1, db2105.FeededCW1);
|
|
|
|
ControlsHelper.SetHslFeededCW1(HslLanternSimpleE.FeededCW2, db2105.FeededCW2);
|
|
|
|
ControlsHelper.SetHslFeededCW1(HslLanternSimpleE.FeededCW2, db2105.FeededCW2);
|
|
|
|
ControlsHelper.SetHslFeededCW1(HslLanternSimpleE.FeededCW3, db2105.FeededCW3);
|
|
|
|
ControlsHelper.SetHslFeededCW1(HslLanternSimpleE.FeededCW3, db2105.FeededCW3);
|
|
|
|