1
This commit is contained in:
@@ -14,8 +14,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Krypton.Navigator" Version="6.2201.4" />
|
<PackageReference Include="Krypton.Navigator" Version="5.550.2108.1" />
|
||||||
<PackageReference Include="Krypton.Toolkit" Version="6.2201.4" />
|
<PackageReference Include="Krypton.Toolkit" Version="5.550.2108.1" />
|
||||||
<PackageReference Include="NModbus" Version="3.0.66" />
|
<PackageReference Include="NModbus" Version="3.0.66" />
|
||||||
<PackageReference Include="NModbus.Serial" Version="3.0.62" />
|
<PackageReference Include="NModbus.Serial" Version="3.0.62" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using System.Windows.Forms;
|
|||||||
using CleanMachine.Model;
|
using CleanMachine.Model;
|
||||||
namespace CleanMachineHMI.FrmUserControl
|
namespace CleanMachineHMI.FrmUserControl
|
||||||
{
|
{
|
||||||
//[FormType(EnumFormType.IoMonitor)]
|
[FormType(EnumFormType.IoMonitor)]
|
||||||
public partial class frmIOMonitor : UserControl
|
public partial class frmIOMonitor : UserControl
|
||||||
{
|
{
|
||||||
public frmIOMonitor()
|
public frmIOMonitor()
|
||||||
@@ -34,7 +34,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
private void Show_X_Y_Status(object sender, EventArgs e)
|
private void Show_X_Y_Status(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
PlcItem item = sender as PlcItem;
|
PlcItem item = sender as PlcItem;
|
||||||
Invoke(new Action(() =>
|
BeginInvoke(new Action(() =>
|
||||||
{
|
{
|
||||||
if (item.PlcItemDataType == 2)
|
if (item.PlcItemDataType == 2)
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||||
foreach (PlcItem item in tempLst)
|
foreach (PlcItem item in tempLst)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
BeginInvoke(new Action(() =>
|
||||||
{
|
{
|
||||||
if (this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
if (this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
|
||||||
foreach (PlcItem item in tempLst)
|
foreach (PlcItem item in tempLst)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
BeginInvoke(new Action(() =>
|
||||||
{
|
{
|
||||||
if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
|
||||||
{
|
{
|
||||||
@@ -118,6 +118,6 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
KryptonMessageBox.Show(ex.Message);
|
KryptonMessageBox.Show(ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3449,5 +3449,10 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ktb_IR_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.kdtp_RecordDate.Value = DateTime.Now;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ using System.Windows.Forms;
|
|||||||
using CleanMachine.Model;
|
using CleanMachine.Model;
|
||||||
namespace CleanMachineHMI
|
namespace CleanMachineHMI
|
||||||
{
|
{
|
||||||
[FormType(EnumFormType.IoMonitor)]
|
//[FormType(EnumFormType.IoMonitor)]
|
||||||
public partial class frmIOMonitor_Old : KryptonForm
|
public partial class frmIOMonitor_Old : KryptonForm
|
||||||
{
|
{
|
||||||
public frmIOMonitor_Old()
|
public frmIOMonitor_Old()
|
||||||
@@ -53,7 +53,7 @@ namespace CleanMachineHMI
|
|||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
private void ReFreshControl_Y()
|
private void ReFreshControl_Y()
|
||||||
{
|
{
|
||||||
@@ -198,7 +198,7 @@ namespace CleanMachineHMI
|
|||||||
panel.Size = new Size(panalTemplateWidth, panalTemplateHeight);
|
panel.Size = new Size(panalTemplateWidth, panalTemplateHeight);
|
||||||
panel.BackColor = Color.White;
|
panel.BackColor = Color.White;
|
||||||
panel.BorderStyle = BorderStyle.FixedSingle;
|
panel.BorderStyle = BorderStyle.FixedSingle;
|
||||||
|
|
||||||
KryptonLabel label = new KryptonLabel();
|
KryptonLabel label = new KryptonLabel();
|
||||||
label.StateCommon.ShortText.Font = new Font("宋体", (float)10, FontStyle.Bold);
|
label.StateCommon.ShortText.Font = new Font("宋体", (float)10, FontStyle.Bold);
|
||||||
label.Location = new Point(-1, 6);
|
label.Location = new Point(-1, 6);
|
||||||
@@ -219,7 +219,8 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
panel.Controls.Add(label1);
|
panel.Controls.Add(label1);
|
||||||
kryptonPanel2.Controls.Add(panel);
|
kryptonPanel2.Controls.Add(panel);
|
||||||
lstMoitor_X.Add(new BtnPlcItemMonitor {
|
lstMoitor_X.Add(new BtnPlcItemMonitor
|
||||||
|
{
|
||||||
ctn = button,
|
ctn = button,
|
||||||
plcItemMd = item,
|
plcItemMd = item,
|
||||||
});
|
});
|
||||||
@@ -413,10 +414,10 @@ namespace CleanMachineHMI
|
|||||||
//InitControl();
|
//InitControl();
|
||||||
//isThRun = true;
|
//isThRun = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void frmIOMonitor_FormClosing(object sender, FormClosingEventArgs e)
|
private void frmIOMonitor_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user