This commit is contained in:
gongxh
2022-06-01 14:33:10 +08:00
parent ae42a43f15
commit a7afd29d82
8 changed files with 4436 additions and 269 deletions

View File

@@ -32,6 +32,8 @@ namespace CleanMachineHMI.FrmUserControl
private void frmIOMonitorNew_Load(object sender, EventArgs e)
{
initControl();
this.SetFormControlText();
PlcOperationHelper.Instance.readIO = true;
PlcOperationHelper.Instance.OnShowX_Y_Status += Show_X_Y_Status;
}
@@ -154,7 +156,7 @@ namespace CleanMachineHMI.FrmUserControl
IO.Code = "Y" + Convert.ToString((int.Parse(item.PlcItemPriAddress) ), 8).PadLeft(2, '0');
IO.IOName = this.T(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
this.flowLayoutPanel1.Controls.Add(IO);
buttons.Add(item, IO);
//if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)