Commit 47867336 LN

界面调整

1 个父辈 60a0a316
...@@ -39,8 +39,7 @@ namespace OnlineStore.ACSingleStore ...@@ -39,8 +39,7 @@ namespace OnlineStore.ACSingleStore
chbDebug.Checked = boxBean.IsDebug; chbDebug.Checked = boxBean.IsDebug;
this.ShowInTaskbar = true; this.ShowInTaskbar = true;
groupBox3.Text = "设备["+boxBean.CID+"]状态"; tabPage2.Text = " 设备[" + boxBean.CID + "]状态 ";
this.Opacity = 1; this.Opacity = 1;
LoadOk = true; LoadOk = true;
...@@ -244,6 +243,13 @@ namespace OnlineStore.ACSingleStore ...@@ -244,6 +243,13 @@ namespace OnlineStore.ACSingleStore
lblWarnMsg.Text = msg; lblWarnMsg.Text = msg;
} }
} }
if (HuichuanLibrary.HCBoardManager.CardInitOk())
{
ReadA(boxBean.Config.Middle_Axis, lblActual1, lblTargetP1, lblTargetP1);
ReadA(boxBean.Config.UpDown_Axis, lblActual2, lblTargetP2, lblTargetP2);
ReadA(boxBean.Config.InOut_Axis, lblActual3, lblTargetP3, lblTargetP3);
ReadA(boxBean.Config.Comp_Axis, lblActual4, lblTargetP4, lblTargetP4);
}
if (boxBean.autoNext) if (boxBean.autoNext)
{ {
string msg = boxBean.autoMsg; string msg = boxBean.autoMsg;
...@@ -261,13 +267,7 @@ namespace OnlineStore.ACSingleStore ...@@ -261,13 +267,7 @@ namespace OnlineStore.ACSingleStore
} }
} }
catch (Exception ex) { } catch (Exception ex) { }
if (AxisManager.UseHCBoard)
{
ReadA(boxBean.Config.Middle_Axis, lblActual1, lblTargetP1, lblTargetP1);
ReadA(boxBean.Config.UpDown_Axis, lblActual2, lblTargetP2, lblTargetP2);
ReadA(boxBean.Config.InOut_Axis, lblActual3, lblTargetP3, lblTargetP3);
ReadA(boxBean.Config.Comp_Axis, lblActual4, lblTargetP4, lblTargetP4);
}
} }
else else
{ {
......
...@@ -68,7 +68,7 @@ namespace OnlineStore.ACSingleStore ...@@ -68,7 +68,7 @@ namespace OnlineStore.ACSingleStore
{ {
FrmBox frm = new FrmBox(); FrmBox frm = new FrmBox();
frm.boxBean = box; frm.boxBean = box;
AddForm(box.Name, frm); AddForm(box.Name+" ", frm);
} }
LoadOk = true; LoadOk = true;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!