Commit 1961b0e8 authored by 周磊's avatar 周磊

1.版本变更为1.8.8

2.TCD桥流显示状态
3.增加HMI更新mac区分
4.温度改为一个小数
5.优化联机和hmi更新搜索
6扩展epc,支持6路(前进样,后进样,检测1,检测2,检测3,辅助)
7.添加物联接口
parent c533fa80
......@@ -216,13 +216,13 @@ namespace GcDevicePc.CK_UI
if (globaldata.m_hwconfig.hwconfiginfo.u16StartType != 2)
{
hflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC1_2_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC1_2_Set / 10.0f).ToString("#0");
hflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC_Det1_2_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC_Det1_2_Set / 10.0f).ToString("#0");
hflow.BackColor = waringcolor;
airflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC1_3_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC1_3_Set / 10.0f).ToString("#0");
airflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC_Det1_3_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC_Det1_3_Set / 10.0f).ToString("#0");
airflow.BackColor = waringcolor;
foneflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC2_1_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC2_1_Set / 10.0f).ToString("#0");
foneflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC_Aux1_1_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC_Aux1_1_Set / 10.0f).ToString("#0");
foneflow.BackColor = waringcolor;
ftwoflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC2_2_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC2_2_Set / 10.0f).ToString("#0");
ftwoflow.Text = (globaldata.m_dpbuffer.ShowList.showepc.EPC_Aux1_2_Cur / 10.0f).ToString("#0.0") + "/" + (globaldata.m_dpbuffer.ShowList.showepc.EPC_Aux1_2_Set / 10.0f).ToString("#0");
ftwoflow.BackColor = waringcolor;
}
else
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -587,7 +587,7 @@ namespace GcDevicePc.Common
int ret = -1;
try
{
ret = GetEPCHoldingReg(700, 16, ref data);
ret = GetEPCHoldingReg(700, 48, ref data);
}
catch (Exception e)
{
......
......@@ -461,10 +461,10 @@ namespace GcDevicePc.Common
}
break;
case 1001:
value = globaldata.m_dpbuffer.ShowList.showepc.EPC1_2_Cur;
value = globaldata.m_dpbuffer.ShowList.showepc.EPC_Det1_2_Cur;
break;
case 1002:
value = globaldata.m_dpbuffer.ShowList.showepc.EPC1_3_Cur;
value = globaldata.m_dpbuffer.ShowList.showepc.EPC_Det1_3_Cur;
break;
case 1003:
//value = CKVocAnalyzer.GlobalCKV.adjustTwo.;
......@@ -523,6 +523,54 @@ namespace GcDevicePc.Common
case 1507:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[14];
break;
case 1511:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[16];
break;
case 1512:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[18];
break;
case 1513:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[20];
break;
case 1514:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[22];
break;
case 1515:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[24];
break;
case 1516:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[26];
break;
case 1517:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[28];
break;
case 1518:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[30];
break;
case 1519:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[32];
break;
case 1520:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[34];
break;
case 1521:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[36];
break;
case 1522:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[38];
break;
case 1523:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[40];
break;
case 1524:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[42];
break;
case 1525:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[44];
break;
case 1526:
value = globaldata.m_hmibuffer.gcinfo.EPCStatus[46];
break;
case 1508:
value = globaldata.m_hmibuffer.gcinfo.HmiAbnormal[0];
break;
......@@ -1381,8 +1429,8 @@ namespace GcDevicePc.Common
double fAutoDisO2Input;
double fAutoDisO2Product;
fAutoDisO2Slope = Convert.ToDouble(Sys_ini.Get_Sys_CpdCount_OxygenSlope());
fAutoDisO2Intercept =Convert.ToDouble( Sys_ini.Get_Sys_CpdCount_OxygenIntercept());
fAutoDisO2Input =Convert.ToDouble( Sys_ini.Get_Sys_OxyCpdCount_OxyValue());
fAutoDisO2Intercept = Convert.ToDouble(Sys_ini.Get_Sys_CpdCount_OxygenIntercept());
fAutoDisO2Input = Convert.ToDouble(Sys_ini.Get_Sys_OxyCpdCount_OxyValue());
if (fAutoDisO2Input == 21)
{
fAutoDisO2Product = 1;
......
......@@ -423,6 +423,7 @@ namespace GcDevicePc.ConfigDlg
else
{
MessageBox.Show("删除失败,不能删除第一行!");
return;
}
string[] sStage = new string[5];
......
......@@ -202,11 +202,11 @@ namespace GcDevicePc.ConfigMethod
if (!string.IsNullOrEmpty((sender as TextBox).Text))
{
double nextnum = Convert.ToDouble((sender as TextBox).Text);
if (nextnum < 5)
{
MessageBox.Show("流量设置不能小于5");
(sender as TextBox).Text = hlastnum.ToString();
}
//if (nextnum < 5)
//{
// MessageBox.Show("流量设置不能小于5");
// (sender as TextBox).Text = hlastnum.ToString();
//}
if (nextnum > 200)
{
MessageBox.Show("流量设置不能大于200");
......
......@@ -302,18 +302,28 @@ namespace GcDevicePc.ConfigMethod
{
ProUpTab.Rows[i].Cells[2].Value = dData < 0 ? "0.00" : globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp.ToString();
if(bEnglishLanguage == false)
MessageBox.Show($"The input value is 0-{globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp}的区间内");
{
MessageBox.Show($"The input value is 0-{globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp}的区间内");
}
else
MessageBox.Show($"The input value is 0-{globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp}");
{
MessageBox.Show($"The input value is 0-{globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp}");
}
return;
}
}
else if(ProUpTab.Rows[i].Cells[2].Value.ToString() != "")
{
ProUpTab.Rows[i].Cells[2].Value = "0.00";
if(bEnglishLanguage == false)
{
MessageBox.Show($"输入值不在0-{globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp}的区间内");
}
else
MessageBox.Show($"The input value is 0-{globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp}");
{
MessageBox.Show($"The input value is 0-{globaldata.m_hwconfig.hwconfiginfo.u16ColPTemp}");
}
return;
}
}
if (ProUpTab.Rows[i].Cells[3].Value != null )
......@@ -329,18 +339,29 @@ namespace GcDevicePc.ConfigMethod
{
ProUpTab.Rows[i].Cells[3].Value = dData < 0 ? "0.00" : "1080.00";
if(bEnglishLanguage == false)
MessageBox.Show("输入值不在0-1080的区间内");
{
MessageBox.Show("输入值不在0-1080的区间内");
}
else
MessageBox.Show("The input value is not in the range of 0 to 1080");
{
MessageBox.Show("The input value is not in the range of 0 to 1080");
}
return;
}
}
else if(ProUpTab.Rows[i].Cells[3].Value.ToString() != "")
{
ProUpTab.Rows[i].Cells[3].Value = "0.00";
if(bEnglishLanguage == false)
{
MessageBox.Show("输入值不在0-1080的区间内");
}
else
MessageBox.Show("The input value is not in the range of 0 to 1080");
{
MessageBox.Show("The input value is not in the range of 0 to 1080");
}
return;
}
}
if (ProUpTab.Rows[i].Cells[3].Value != null && ProUpTab.Rows[i].Cells[2].Value != null && ProUpTab.Rows[i].Cells[1].Value != null)
......@@ -388,9 +409,14 @@ namespace GcDevicePc.ConfigMethod
catch
{
if(bEnglishLanguage == false)
{
MessageBox.Show("请检查程升表中的数据是否正确!");
}
else
MessageBox.Show("Please check if the data in the rise chart is correct");
{
MessageBox.Show("Please check if the data in the rise chart is correct");
}
return;
}
try
......@@ -462,9 +488,15 @@ namespace GcDevicePc.ConfigMethod
else
{
if(bEnglishLanguage == false)
MessageBox.Show("删除失败,不能删除第一行!");
{
MessageBox.Show("删除失败,不能删除第一行!");
}
else
MessageBox.Show("Delete failed. The first row cannot be deleted");
{
MessageBox.Show("Delete failed. The first row cannot be deleted");
}
return;
}
string[] sStage = new string[5];
......
......@@ -399,21 +399,33 @@ namespace GcDevicePc.ConfigMethod.injectionport
if (!string.IsNullOrEmpty((sender as TextBox).Text))
{
double nextnum = Convert.ToDouble((sender as TextBox).Text);
if (nextnum < 5)
{
if(bEnglishLanguage == false)
MessageBox.Show("流量设置不能小于5");
else
MessageBox.Show("The flow setting cannot be less than 5");
(sender as TextBox).Text = lastnum.ToString();
}
//if (nextnum < 5)
//{
// if(bEnglishLanguage == false)
// {
// MessageBox.Show("流量设置不能小于5");
// }
// else
// {
// MessageBox.Show("The flow setting cannot be less than 5");
// }
// (sender as TextBox).Text = lastnum.ToString();
// return;
//}
if (nextnum > 200)
{
if(bEnglishLanguage == false)
MessageBox.Show("流量设置不能大于200");
{
MessageBox.Show("流量设置不能大于200");
(sender as TextBox).Text = lastnum.ToString();
}
else
MessageBox.Show("The flow setting cannot be greater than 200");
(sender as TextBox).Text = lastnum.ToString();
{
MessageBox.Show("The flow setting cannot be greater than 200");
(sender as TextBox).Text = lastnum.ToString();
}
return;
}
}
}
......
This diff is collapsed.
......@@ -39,10 +39,16 @@ namespace GcDevicePc.DeviceConfigUI
{
//this.AuxHeaterNum.SelectedIndex = this.hWConfig.hwconfiginfo.u16AuxHeaterNum;
this.AuxHeater1.Checked = this.hWConfig.hwconfiginfo.u16AuxHeater1 == 1 ? true : false;
this.checkBox_EPC_AUX1_1.Checked=this.hWConfig.hwconfiginfo.u16Aux1Epc1== 1 ? true : false;
this.checkBox_EPC_AUX1_2.Checked=this.hWConfig.hwconfiginfo.u16Aux1Epc2== 1 ? true : false;
this.checkBox_EPC_AUX1_3.Checked=this.hWConfig.hwconfiginfo.u16Aux1Epc3== 1 ? true : false;
this.AuxHeaterName1.Text = this.hWConfig.hwconfiginfo.u16AuxHeaterName1;
this.AuxHeaterPTemp1.Text = this.hWConfig.hwconfiginfo.u16AuxHeaterPTemp1.ToString();
this.AuxHeater2.Checked = this.hWConfig.hwconfiginfo.u16AuxHeater2 == 1 ? true : false;
this.checkBox_EPC_AUX2_1.Checked=this.hWConfig.hwconfiginfo.u16Aux2Epc1== 1 ? true : false;
this.checkBox_EPC_AUX2_2.Checked=this.hWConfig.hwconfiginfo.u16Aux2Epc2== 1 ? true : false;
this.checkBox_EPC_AUX2_3.Checked=this.hWConfig.hwconfiginfo.u16Aux2Epc3== 1 ? true : false;
this.AuxHeaterName2.Text = this.hWConfig.hwconfiginfo.u16AuxHeaterName2;
this.AuxHeaterPTemp2.Text = this.hWConfig.hwconfiginfo.u16AuxHeaterPTemp2.ToString();
......@@ -63,9 +69,15 @@ namespace GcDevicePc.DeviceConfigUI
this.hWConfig.hwconfiginfo.u16AuxHeaterNum = (this.AuxHeater1.Checked ? 1 : 0) + (this.AuxHeater2.Checked ? 1 : 0);
this.hWConfig.hwconfiginfo.u16AuxHeater1 = this.AuxHeater1.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Aux1Epc1 = this.checkBox_EPC_AUX1_1.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Aux1Epc2 = this.checkBox_EPC_AUX1_2.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Aux1Epc3 = this.checkBox_EPC_AUX1_3.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16AuxHeaterName1 = this.AuxHeaterName1.Text;
this.hWConfig.hwconfiginfo.u16AuxHeaterPTemp1 = int.Parse(this.AuxHeaterPTemp1.Text);
this.hWConfig.hwconfiginfo.u16AuxHeater2 = this.AuxHeater2.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Aux2Epc1 = this.checkBox_EPC_AUX2_1.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Aux2Epc2 = this.checkBox_EPC_AUX2_2.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Aux2Epc3 = this.checkBox_EPC_AUX2_3.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16AuxHeaterName2 = this.AuxHeaterName2.Text;
this.hWConfig.hwconfiginfo.u16AuxHeaterPTemp2 = int.Parse(this.AuxHeaterPTemp2.Text);
}
......
......@@ -117,7 +117,135 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="checkBox_EPC_AUX2_3.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="checkBox_EPC_AUX2_3.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="checkBox_EPC_AUX2_3.Location" type="System.Drawing.Point, System.Drawing">
<value>551, 157</value>
</data>
<data name="checkBox_EPC_AUX2_3.Size" type="System.Drawing.Size, System.Drawing">
<value>66, 19</value>
</data>
<data name="checkBox_EPC_AUX2_3.TabIndex" type="System.Int32, mscorlib">
<value>18</value>
</data>
<data name="checkBox_EPC_AUX2_3.Text" xml:space="preserve">
<value>flow3</value>
</data>
<data name="checkBox_EPC_AUX2_3.ToolTip" xml:space="preserve">
<value />
</data>
<data name="checkBox_EPC_AUX2_2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox_EPC_AUX2_2.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="checkBox_EPC_AUX2_2.Location" type="System.Drawing.Point, System.Drawing">
<value>459, 157</value>
</data>
<data name="checkBox_EPC_AUX2_2.Size" type="System.Drawing.Size, System.Drawing">
<value>66, 19</value>
</data>
<data name="checkBox_EPC_AUX2_2.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
</data>
<data name="checkBox_EPC_AUX2_2.Text" xml:space="preserve">
<value>flow2</value>
</data>
<data name="checkBox_EPC_AUX2_2.ToolTip" xml:space="preserve">
<value />
</data>
<data name="checkBox_EPC_AUX2_1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox_EPC_AUX2_1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="checkBox_EPC_AUX2_1.Location" type="System.Drawing.Point, System.Drawing">
<value>367, 157</value>
</data>
<data name="checkBox_EPC_AUX2_1.Size" type="System.Drawing.Size, System.Drawing">
<value>66, 19</value>
</data>
<data name="checkBox_EPC_AUX2_1.TabIndex" type="System.Int32, mscorlib">
<value>16</value>
</data>
<data name="checkBox_EPC_AUX2_1.Text" xml:space="preserve">
<value>flow1</value>
</data>
<data name="checkBox_EPC_AUX2_1.ToolTip" xml:space="preserve">
<value />
</data>
<data name="checkBox_EPC_AUX1_3.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox_EPC_AUX1_3.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="checkBox_EPC_AUX1_3.Location" type="System.Drawing.Point, System.Drawing">
<value>206, 157</value>
</data>
<data name="checkBox_EPC_AUX1_3.Size" type="System.Drawing.Size, System.Drawing">
<value>66, 19</value>
</data>
<data name="checkBox_EPC_AUX1_3.TabIndex" type="System.Int32, mscorlib">
<value>15</value>
</data>
<data name="checkBox_EPC_AUX1_3.Text" xml:space="preserve">
<value>flow3</value>
</data>
<data name="checkBox_EPC_AUX1_3.ToolTip" xml:space="preserve">
<value />
</data>
<data name="checkBox_EPC_AUX1_2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox_EPC_AUX1_2.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="checkBox_EPC_AUX1_2.Location" type="System.Drawing.Point, System.Drawing">
<value>114, 157</value>
</data>
<data name="checkBox_EPC_AUX1_2.Size" type="System.Drawing.Size, System.Drawing">
<value>66, 19</value>
</data>
<data name="checkBox_EPC_AUX1_2.TabIndex" type="System.Int32, mscorlib">
<value>14</value>
</data>
<data name="checkBox_EPC_AUX1_2.Text" xml:space="preserve">
<value>flow2</value>
</data>
<data name="checkBox_EPC_AUX1_2.ToolTip" xml:space="preserve">
<value />
</data>
<data name="checkBox_EPC_AUX1_1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox_EPC_AUX1_1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="checkBox_EPC_AUX1_1.Location" type="System.Drawing.Point, System.Drawing">
<value>22, 157</value>
</data>
<data name="checkBox_EPC_AUX1_1.Size" type="System.Drawing.Size, System.Drawing">
<value>66, 19</value>
</data>
<data name="checkBox_EPC_AUX1_1.TabIndex" type="System.Int32, mscorlib">
<value>13</value>
</data>
<data name="checkBox_EPC_AUX1_1.Text" xml:space="preserve">
<value>flow1</value>
</data>
<data name="checkBox_EPC_AUX1_1.ToolTip" xml:space="preserve">
<value />
</data>
<data name="label6.Location" type="System.Drawing.Point, System.Drawing">
<value>346, 53</value>
</data>
......
This diff is collapsed.
......@@ -17,7 +17,7 @@ namespace GcDevicePc.DeviceConfigUI
#region 私有变量
private HWConfig hWConfig;
private bool bEnglishLanguage = Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en") ? true :false;
private bool bEnglishLanguage = Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en") ? true : false;
#endregion
#region 构造函数
......@@ -41,16 +41,25 @@ namespace GcDevicePc.DeviceConfigUI
{
this.DetNum.SelectedIndex = this.hWConfig.hwconfiginfo.u16DetNum;
this.DetFront.Checked = this.hWConfig.hwconfiginfo.u16DetFront == 1 ? true : false;
this.checkBox_EPC_DET1_1.Checked = this.hWConfig.hwconfiginfo.u16Det1Epc1 == 1 ? true : false;
this.checkBox_EPC_DET1_2.Checked = this.hWConfig.hwconfiginfo.u16Det1Epc2 == 1 ? true : false;
this.checkBox_EPC_DET1_3.Checked = this.hWConfig.hwconfiginfo.u16Det1Epc3 == 1 ? true : false;
this.DetFrontType.SelectedIndex = this.hWConfig.hwconfiginfo.u16DetFrontType;
this.DetFrontPTemp.Text = this.hWConfig.hwconfiginfo.u16DetFrontPTemp.ToString();
this.DetFrontAisle.SelectedIndex = this.hWConfig.hwconfiginfo.u16DetFrontAisle;
this.DetInter.Checked = this.hWConfig.hwconfiginfo.u16DetInter == 1 ? true : false;
this.checkBox_EPC_DET2_1.Checked = this.hWConfig.hwconfiginfo.u16Det2Epc1 == 1 ? true : false;
this.checkBox_EPC_DET2_2.Checked = this.hWConfig.hwconfiginfo.u16Det2Epc2 == 1 ? true : false;
this.checkBox_EPC_DET2_3.Checked = this.hWConfig.hwconfiginfo.u16Det2Epc3 == 1 ? true : false;
this.DetInterType.SelectedIndex = this.hWConfig.hwconfiginfo.u16DetInterType;
this.DetInterPTemp.Text = this.hWConfig.hwconfiginfo.u16DetInterPTemp.ToString();
this.DetInterAisle.SelectedIndex = this.hWConfig.hwconfiginfo.u16DetInterAisle;
this.DetBehind.Checked = this.hWConfig.hwconfiginfo.u16DetBehind == 1 ? true : false;
this.checkBox_EPC_DET3_1.Checked = this.hWConfig.hwconfiginfo.u16Det3Epc1 == 1 ? true : false;
this.checkBox_EPC_DET3_2.Checked = this.hWConfig.hwconfiginfo.u16Det3Epc2 == 1 ? true : false;
this.checkBox_EPC_DET3_3.Checked = this.hWConfig.hwconfiginfo.u16Det3Epc3 == 1 ? true : false;
this.DetBehindType.SelectedIndex = this.hWConfig.hwconfiginfo.u16DetBehindType;
this.DetBehindPTemp.Text = this.hWConfig.hwconfiginfo.u16DetBehindPTemp.ToString();
this.DetBehindAisle.SelectedIndex = this.hWConfig.hwconfiginfo.u16DetBehindAisle;
......@@ -59,12 +68,12 @@ namespace GcDevicePc.DeviceConfigUI
}
private void vInput_Limit_MouseLeave(object sender, EventArgs e)
{
TextBox DeTextBox = (TextBox)sender;
TextBox DeTextBox = (TextBox)sender;
//if(DeTextBox.Text == "")
//{
// DeTextBox.Text = "0";
//}
ToolTip1.Show("",DeTextBox,3000);
ToolTip1.Show("", DeTextBox, 3000);
}
private void vInput_Integer_Limit_TextChange(object sender, EventArgs e)
......@@ -73,33 +82,33 @@ namespace GcDevicePc.DeviceConfigUI
ushort usData;
ushort usMaxValue = 400;
ushort usMinValue = 0;
if(TempTextBox.Text.IndexOf(".") > -1)
if (TempTextBox.Text.IndexOf(".") > -1)
{
string strData = TempTextBox.Text;
string strData = TempTextBox.Text;
if (bEnglishLanguage == false)
ToolTip1.Show("输入值应为整数", TempTextBox, 3000);
else
ToolTip1.Show("The input value should be an integer", TempTextBox, 3000);
TempTextBox.Clear();
TempTextBox.AppendText(strData.Substring(0,strData.Length -1));
TempTextBox.AppendText(strData.Substring(0, strData.Length - 1));
}
if (ushort.TryParse(TempTextBox.Text, out usData))
{
if (usData > usMaxValue)
{
if(bEnglishLanguage == false)
ToolTip1.Show($"输入值为{usMinValue}-{usMaxValue}的区间内",TempTextBox,3000);
if (bEnglishLanguage == false)
ToolTip1.Show($"输入值为{usMinValue}-{usMaxValue}的区间内", TempTextBox, 3000);
else
ToolTip1.Show($"The input value is {usMinValue}-{usMaxValue}",TempTextBox,3000);
ToolTip1.Show($"The input value is {usMinValue}-{usMaxValue}", TempTextBox, 3000);
TempTextBox.Clear();
TempTextBox.AppendText(usMaxValue.ToString());
}
else if(usData < usMinValue)
else if (usData < usMinValue)
{
if(bEnglishLanguage == false)
ToolTip1.Show($"输入值为{usMinValue}-{usMaxValue}的区间内",TempTextBox,3000);
if (bEnglishLanguage == false)
ToolTip1.Show($"输入值为{usMinValue}-{usMaxValue}的区间内", TempTextBox, 3000);
else
ToolTip1.Show($"The input value is {usMinValue}-{usMaxValue}",TempTextBox,3000);
ToolTip1.Show($"The input value is {usMinValue}-{usMaxValue}", TempTextBox, 3000);
TempTextBox.Clear();
TempTextBox.AppendText(usMinValue.ToString());
}
......@@ -109,19 +118,19 @@ namespace GcDevicePc.DeviceConfigUI
TempTextBox.AppendText(usData.ToString());
}
}
else if(usMinValue < 0 && TempTextBox.Text == "-")
else if (usMinValue < 0 && TempTextBox.Text == "-")
{
}
else if(TempTextBox.Text != "" && TempTextBox.Text.Length != 0)
else if (TempTextBox.Text != "" && TempTextBox.Text.Length != 0)
{
string str = TempTextBox.Text;
if(bEnglishLanguage == false)
ToolTip1.Show($"输入值为{usMinValue}-{usMaxValue}的区间内",TempTextBox,3000);
else
ToolTip1.Show($"The input value is {usMinValue}-{usMaxValue}",TempTextBox,3000);
if (bEnglishLanguage == false)
ToolTip1.Show($"输入值为{usMinValue}-{usMaxValue}的区间内", TempTextBox, 3000);
else
ToolTip1.Show($"The input value is {usMinValue}-{usMaxValue}", TempTextBox, 3000);
TempTextBox.Clear();
TempTextBox.AppendText(str.Substring(0,str.Length -1));
TempTextBox.AppendText(str.Substring(0, str.Length - 1));
}
}
#endregion
......@@ -134,16 +143,25 @@ namespace GcDevicePc.DeviceConfigUI
this.hWConfig.hwconfiginfo.u16DetNum = (this.DetFront.Checked ? 1 : 0) + (this.DetInter.Checked ? 1 : 0) + (this.DetBehind.Checked ? 1 : 0);
this.hWConfig.hwconfiginfo.u16DetFront = this.DetFront.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det1Epc1 = this.checkBox_EPC_DET1_1.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det1Epc2 = this.checkBox_EPC_DET1_2.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det1Epc3 = this.checkBox_EPC_DET1_3.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16DetFrontType = this.DetFrontType.SelectedIndex;
this.hWConfig.hwconfiginfo.u16DetFrontPTemp = int.Parse(this.DetFrontPTemp.Text);
this.hWConfig.hwconfiginfo.u16DetFrontAisle = this.DetFrontAisle.SelectedIndex;
this.hWConfig.hwconfiginfo.u16DetInter = this.DetInter.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det2Epc1 = this.checkBox_EPC_DET2_1.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det2Epc2 = this.checkBox_EPC_DET2_2.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det2Epc3 = this.checkBox_EPC_DET2_3.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16DetInterType = this.DetInterType.SelectedIndex;
this.hWConfig.hwconfiginfo.u16DetInterPTemp = int.Parse(this.DetInterPTemp.Text);
this.hWConfig.hwconfiginfo.u16DetInterAisle = this.DetInterAisle.SelectedIndex;
this.hWConfig.hwconfiginfo.u16DetBehind = this.DetBehind.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det3Epc1 = this.checkBox_EPC_DET3_1.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det3Epc2 = this.checkBox_EPC_DET3_2.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16Det3Epc3 = this.checkBox_EPC_DET3_3.Checked ? 1 : 0;
this.hWConfig.hwconfiginfo.u16DetBehindType = this.DetBehindType.SelectedIndex;
this.hWConfig.hwconfiginfo.u16DetBehindPTemp = int.Parse(this.DetBehindPTemp.Text);
this.hWConfig.hwconfiginfo.u16DetBehindAisle = this.DetBehindAisle.SelectedIndex;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -88,7 +88,7 @@ namespace GcDevicePc.GCBuffer
gcinfo.ErrorStatus = new byte[9];
gcinfo.hmioffline = false;
gcinfo.HMIMac = new ushort[3] { 0, 0, 0 };
gcinfo.EPCStatus = new ushort[16] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
gcinfo.EPCStatus = new ushort[48] ;
gcinfo.HmiAbnormal = new ushort[4] { 0, 0, 0 ,0};
gcadjust.executefun = 0;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment