@ -70,7 +70,7 @@ namespace SlnMesnac.Plc.Factory
throw new InvalidOperationException($"西门子S系列PLC连接异常:{ex.Message}");
}
/// <summary>
/// 断开连接
/// </summary>
@ -176,8 +176,12 @@ namespace SlnMesnac.WPF.Page
else
{
_logger.LogError($"设备监听启动失败;PLC连接失败!");
Thread.Sleep(1000 * 30);
Application.Current.Dispatcher.Invoke(() =>
Msg.MsgShow($"设备监听失败;PLC连接失败!", 2, 3);
});
Thread.Sleep(1000 * 20);
@ -48,12 +48,8 @@ namespace SlnMesnac.WPF.Page
recipeManageCache.MinBufferWeight = minValue;
Msg.MsgShow("请输入合理的重量", 0, 5);
@ -14,8 +14,8 @@
"configId": "mes",
"dbType": 0,
"connStr": "Data Source=175.27.215.92;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=haiwei@123;Charset=utf8mb4;SslMode=none"
// "connStr": "Data Source=172.16.12.100;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=JyhbRk@123456;Charset=utf8mb4;SslMode=none"
// "connStr": "Data Source=175.27.215.92;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=haiwei@123;Charset=utf8mb4;SslMode=none"
"connStr": "Data Source=172.16.12.100;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=JyhbRk@123456;Charset=utf8mb4;SslMode=none"
},
"configId": "local",