测试网

dep
杨威 4 months ago
parent ee381bf3af
commit 57d07a051b

@ -547,28 +547,28 @@ namespace Mesnac.Action.ChemicalWeighing.Qu
private void McD_Click(object sender, EventArgs e) private void McD_Click(object sender, EventArgs e)
{ {
var sss = "DB2119.28.3"; var sss = "DB2119.14.3";
bool a = PlcConnect.Instance.ReadBool(sss).Content; bool a = PlcConnect.Instance.ReadBool(sss).Content;
PlcConnect.Instance.Write(sss, !a); PlcConnect.Instance.Write(sss, !a);
} }
private void McC_Click(object sender, EventArgs e) private void McC_Click(object sender, EventArgs e)
{ {
var sss = "DB2119.28.2"; var sss = "DB2119.14.2";
bool a = PlcConnect.Instance.ReadBool(sss).Content; bool a = PlcConnect.Instance.ReadBool(sss).Content;
PlcConnect.Instance.Write(sss, !a); PlcConnect.Instance.Write(sss, !a);
} }
private void McB_Click(object sender, EventArgs e) private void McB_Click(object sender, EventArgs e)
{ {
var sss = "DB2119.28.1"; var sss = "DB2119.14.1";
bool a = PlcConnect.Instance.ReadBool(sss).Content; bool a = PlcConnect.Instance.ReadBool(sss).Content;
PlcConnect.Instance.Write(sss, !a); PlcConnect.Instance.Write(sss, !a);
} }
private void McA_Click(object sender, EventArgs e) private void McA_Click(object sender, EventArgs e)
{ {
var sss = "DB2119.28.0"; var sss = "DB2119.14.0";
bool a = PlcConnect.Instance.ReadBool(sss).Content; bool a = PlcConnect.Instance.ReadBool(sss).Content;
PlcConnect.Instance.Write(sss, !a); PlcConnect.Instance.Write(sss, !a);
} }
@ -1102,7 +1102,7 @@ namespace Mesnac.Action.ChemicalWeighing.Qu
var bit = PlcConnect.Instance.ReadByte("DB2119.28.0").Content; var bit = PlcConnect.Instance.ReadByte("DB2119.14.0").Content;
var a1 = bit.GetBit(0); var a1 = bit.GetBit(0);
if (a1) if (a1)

Loading…
Cancel
Save