liuwf 4 months ago
parent df16517a7b
commit f29a584283

@ -70,7 +70,7 @@ namespace SlnMesnac.Plc.Factory
throw new InvalidOperationException($"西门子S系列PLC连接异常{ex.Message}"); throw new InvalidOperationException($"西门子S系列PLC连接异常{ex.Message}");
} }
} }
/// <summary> /// <summary>
/// 断开连接 /// 断开连接
/// </summary> /// </summary>

@ -176,8 +176,12 @@ namespace SlnMesnac.WPF.Page
} }
else else
{ {
_logger.LogError($"设备监听启动失败PLC连接失败!"); Application.Current.Dispatcher.Invoke(() =>
Thread.Sleep(1000 * 30); {
Msg.MsgShow($"设备监听失败PLC连接失败!", 2, 3);
});
Thread.Sleep(1000 * 20);
} }

@ -48,12 +48,8 @@ namespace SlnMesnac.WPF.Page
recipeManageCache.MinBufferWeight = minValue; recipeManageCache.MinBufferWeight = minValue;
} }
else else
{ {
Msg.MsgShow("请输入合理的重量", 0, 5); Msg.MsgShow("请输入合理的重量", 0, 5);
} }
} }
} }

@ -14,8 +14,8 @@
{ {
"configId": "mes", "configId": "mes",
"dbType": 0, "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=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=172.16.12.100;Port=3306;Initial Catalog=hwjy-cloud;uid=root;pwd=JyhbRk@123456;Charset=utf8mb4;SslMode=none"
}, },
{ {
"configId": "local", "configId": "local",

Loading…
Cancel
Save