dep
杨威 4 months ago
parent cbdb96cd72
commit deb04ca8b2

@ -1399,7 +1399,7 @@ namespace Mesnac.Action.ChemicalWeighing.Qu
//Hsldq1
var dq = plc.ReadBool("DB2102.245.0").Content;
var dq = plc.ReadBool("DB2119.21.0").Content;
if (dq)
{
Hsldq1.LanternBackground = System.Drawing.Color.Green;
@ -1409,7 +1409,7 @@ namespace Mesnac.Action.ChemicalWeighing.Qu
Hsldq1.LanternBackground = System.Drawing.Color.Gray;
}
dq = plc.ReadBool("DB2102.247.0").Content;
dq = plc.ReadBool("DB2119.21.2").Content;
if (dq)
{
Hsldq2.LanternBackground = System.Drawing.Color.Green;
@ -1420,7 +1420,7 @@ namespace Mesnac.Action.ChemicalWeighing.Qu
}
dq = plc.ReadBool("DB2102.244.7").Content;
dq = plc.ReadBool("DB2119.20.7").Content;
if (dq)
{
HslKq1.LanternBackground = System.Drawing.Color.Green;
@ -1430,7 +1430,7 @@ namespace Mesnac.Action.ChemicalWeighing.Qu
HslKq1.LanternBackground = System.Drawing.Color.Gray;
}
dq = plc.ReadBool("DB2102.246.7").Content;
dq = plc.ReadBool("DB2119.21.1").Content;
if (dq)
{
HslKq2.LanternBackground = System.Drawing.Color.Green;
@ -1441,6 +1441,25 @@ namespace Mesnac.Action.ChemicalWeighing.Qu
}
var byt = plc.Read("DB2119.19.0", 2).Content;
var at = byt[0];
Set(H1, at.GetBit(0));
Set(H2, at.GetBit(1));
Set(H3, at.GetBit(2));
Set(H4, at.GetBit(3));
Set(H5, at.GetBit(4));
Set(H6, at.GetBit(5));
Set(H7, at.GetBit(6));
Set(H8, at.GetBit(7));
at = byt[1];
Set(H9, at.GetBit(0));
Set(H10, at.GetBit(1));
Set(H11, at.GetBit(2));
Set(H12, at.GetBit(3));
Set(H13, at.GetBit(4));
Set(H14, at.GetBit(5));
Set(H15, at.GetBit(6));
}

@ -116,14 +116,14 @@
<Property name="Name">HslSwitchz8</Property>
<Property name="Size">70, 90</Property>
</Object>
<Object type="Mesnac.Controls.ChemicalWeighing.HslSwitch, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="HslSwitchz7" children="Controls">
<Object type="Mesnac.Controls.ChemicalWeighing.HslSwitch, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="HslSwitchz6" children="Controls">
<Property name="Location">28, 471</Property>
<Property name="Name">HslSwitchz7</Property>
<Property name="Name">HslSwitchz6</Property>
<Property name="Size">70, 90</Property>
</Object>
<Object type="Mesnac.Controls.ChemicalWeighing.HslSwitch, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="HslSwitchz6" children="Controls">
<Object type="Mesnac.Controls.ChemicalWeighing.HslSwitch, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="HslSwitchz7" children="Controls">
<Property name="Location">28, 561</Property>
<Property name="Name">HslSwitchz6</Property>
<Property name="Name">HslSwitchz7</Property>
<Property name="Size">70, 90</Property>
</Object>
<Object type="Mesnac.Controls.ChemicalWeighing.HslSwitch, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="HslSwitchz5" children="Controls">

Loading…
Cancel
Save