|
|
|
@ -198,8 +198,61 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
|
|
|
|
|
DBOtherSetData();
|
|
|
|
|
|
|
|
|
|
AlarmControl();
|
|
|
|
|
SetSilo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 显示高低料位
|
|
|
|
|
/// </summary>
|
|
|
|
|
public void SetSilo()
|
|
|
|
|
{
|
|
|
|
|
var db139 = new DB139Helper();
|
|
|
|
|
// ControlsImprot.SetSwitchLight
|
|
|
|
|
var obj = SwitchlightE.HSiloA;
|
|
|
|
|
var list= db139.LowLevel;
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloA, list[0]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloB, list[1]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloC, list[2]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloD, list[3]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloE, list[4]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloF, list[5]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloG, list[6]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloH, list[7]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloI, list[8]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloJ, list[9]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[13]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloO, list[14]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list = db139.HowLevel;
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloA, list[0]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloB, list[1]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloC, list[2]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloD, list[3]);
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloE, list[4]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloF, list[5]);
|
|
|
|
|
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloG, list[6]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloH, list[7]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloI, list[8]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloJ, list[9]);
|
|
|
|
|
|
|
|
|
|
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]);
|
|
|
|
|
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]);
|
|
|
|
|
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]);
|
|
|
|
|
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[13]);
|
|
|
|
|
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloO, list[10]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region plc读取前端控件值写入
|
|
|
|
|
|
|
|
|
|
private void DB1GetData()
|
|
|
|
|