diff --git a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
index fb8cb381..c514ab2e 100644
--- a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
+++ b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
@@ -93,6 +93,8 @@
+
+
@@ -173,6 +175,7 @@
+
@@ -203,6 +206,8 @@
+
+
PreserveNewest
@@ -221,6 +226,7 @@
+
diff --git a/BPASmartClient.CustomResource/Converters/StatusConverter.cs b/BPASmartClient.CustomResource/Converters/StatusConverter.cs
new file mode 100644
index 00000000..cf9a2c9d
--- /dev/null
+++ b/BPASmartClient.CustomResource/Converters/StatusConverter.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Data;
+using System.Windows.Media;
+
+namespace BPASmartClient.CustomResource.Converters
+{
+ public class StatusConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ SolidColorBrush returnValue = new SolidColorBrush(Color.FromArgb(255, 0, 204, 255));
+ if (value != null && value is ushort statusValue)
+ {
+ switch (statusValue)
+ {
+ case 0:
+ returnValue = new SolidColorBrush(Color.FromArgb(255, 0, 204, 255));
+ break;
+ case 1:
+ returnValue = new SolidColorBrush(Color.FromArgb(255, 0, 255, 127));
+ break;
+ case 2:
+ returnValue = new SolidColorBrush(Color.FromArgb(255, 255, 215, 00));
+ break;
+ case 3:
+ returnValue = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
+ break;
+ default:
+ break;
+ }
+ }
+ return returnValue;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/BPASmartClient.CustomResource/Image/工艺流程.jpg b/BPASmartClient.CustomResource/Image/工艺流程.jpg
new file mode 100644
index 00000000..7863056e
Binary files /dev/null and b/BPASmartClient.CustomResource/Image/工艺流程.jpg differ
diff --git a/BPASmartClient.CustomResource/Image/工艺流程.png b/BPASmartClient.CustomResource/Image/工艺流程.png
new file mode 100644
index 00000000..8a0e23ec
Binary files /dev/null and b/BPASmartClient.CustomResource/Image/工艺流程.png differ
diff --git a/BPASmartClient.CustomResource/Image/顶部切图/自动化产线上位机控制系统.png b/BPASmartClient.CustomResource/Image/顶部切图/自动化产线上位机控制系统.png
new file mode 100644
index 00000000..245dd258
Binary files /dev/null and b/BPASmartClient.CustomResource/Image/顶部切图/自动化产线上位机控制系统.png differ
diff --git a/BPASmartClient.CustomResource/Themes/MyStyle.xaml b/BPASmartClient.CustomResource/Themes/MyStyle.xaml
index 98e7661c..2e7fbbb1 100644
--- a/BPASmartClient.CustomResource/Themes/MyStyle.xaml
+++ b/BPASmartClient.CustomResource/Themes/MyStyle.xaml
@@ -181,6 +181,14 @@
+
+
diff --git a/BPASmartClient.Modbus/ModbusTcp.cs b/BPASmartClient.Modbus/ModbusTcp.cs
index a437ead2..c97dc4a8 100644
--- a/BPASmartClient.Modbus/ModbusTcp.cs
+++ b/BPASmartClient.Modbus/ModbusTcp.cs
@@ -49,11 +49,11 @@ namespace BPASmartClient.Modbus
Port = port;
modbusFactory = new ModbusFactory();
Connect();
- master.Transport.ReadTimeout = 2000;//读取超时时间
- master.Transport.WriteTimeout = 2000;//写入超时时间
- master.Transport.Retries = 10;//重试次数
if (Connected)
{
+ master.Transport.ReadTimeout = 2000;//读取超时时间
+ master.Transport.WriteTimeout = 2000;//写入超时时间
+ master.Transport.Retries = 10;//重试次数
ConnectOk?.Invoke();
MessageLog.GetInstance.Show($"设备【{ip}:{port}】连接成功");
}
diff --git a/BPASmartClient/Control/GYLCControl.xaml b/BPASmartClient/Control/GYLCControl.xaml
new file mode 100644
index 00000000..0e415989
--- /dev/null
+++ b/BPASmartClient/Control/GYLCControl.xaml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BPASmartClient/Control/GYLCControl.xaml.cs b/BPASmartClient/Control/GYLCControl.xaml.cs
new file mode 100644
index 00000000..cbe4884a
--- /dev/null
+++ b/BPASmartClient/Control/GYLCControl.xaml.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace BPASmartClient.Control
+{
+ ///
+ /// GYLCControl.xaml 的交互逻辑
+ ///
+ public partial class GYLCControl : UserControl
+ {
+ public GYLCControl()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/BPASmartClient/MainWindow.xaml b/BPASmartClient/MainWindow.xaml
index 68bf83b2..5a7f237d 100644
--- a/BPASmartClient/MainWindow.xaml
+++ b/BPASmartClient/MainWindow.xaml
@@ -152,6 +152,12 @@
Header="IOT监视"
Tag="IOTView" />
+
+