|
@@ -191,6 +191,7 @@ public class MesClient extends JFrame {
|
|
|
|
|
|
|
|
getMaterailData();
|
|
getMaterailData();
|
|
|
|
|
|
|
|
|
|
+ startUpDeviceParamsTimer();
|
|
|
// startUpdateQualityTimer();
|
|
// startUpdateQualityTimer();
|
|
|
|
|
|
|
|
// S7Util.sendStartSignal(true);
|
|
// S7Util.sendStartSignal(true);
|
|
@@ -335,7 +336,7 @@ public class MesClient extends JFrame {
|
|
|
final String currentSn = product_sn.getText();
|
|
final String currentSn = product_sn.getText();
|
|
|
if(currentSn != null && !currentSn.isEmpty()) {
|
|
if(currentSn != null && !currentSn.isEmpty()) {
|
|
|
String record_time = DateLocalUtils.getCurrentTime();
|
|
String record_time = DateLocalUtils.getCurrentTime();
|
|
|
- deviceParams.add(actSpindleSpeed + "|" + feedRate + "|" + record_time);
|
|
|
|
|
|
|
+ deviceParams.add(actSpindleSpeed + "|" + feedRate + "|" + torque + "|" + record_time);
|
|
|
if(deviceParams.size() == 60) {
|
|
if(deviceParams.size() == 60) {
|
|
|
try {
|
|
try {
|
|
|
JdbcUtils.insertDeviceParamData(mes_gw, mes_line_sn, currentSn, JSON.toJSONString(deviceParams));
|
|
JdbcUtils.insertDeviceParamData(mes_gw, mes_line_sn, currentSn, JSON.toJSONString(deviceParams));
|
|
@@ -578,7 +579,7 @@ public class MesClient extends JFrame {
|
|
|
//刷新界面
|
|
//刷新界面
|
|
|
mesClientFrame.repaint();
|
|
mesClientFrame.repaint();
|
|
|
|
|
|
|
|
- if(!tcp_connect_flag) {
|
|
|
|
|
|
|
+ if(!tcp请_connect_flag) {
|
|
|
MesClient.setMenuStatus("设备未连接Mes服务器",-1);
|
|
MesClient.setMenuStatus("设备未连接Mes服务器",-1);
|
|
|
// JOptionPane.showMessageDialog(mesClientFrame,"设备未连接Mes服务器","提示窗口", JOptionPane.INFORMATION_MESSAGE);
|
|
// JOptionPane.showMessageDialog(mesClientFrame,"设备未连接Mes服务器","提示窗口", JOptionPane.INFORMATION_MESSAGE);
|
|
|
return;
|
|
return;
|
|
@@ -590,7 +591,6 @@ public class MesClient extends JFrame {
|
|
|
MesClient.setMenuStatus("请扫正确的工装二维码",-1);
|
|
MesClient.setMenuStatus("请扫正确的工装二维码",-1);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
// 查询工件质量
|
|
// 查询工件质量
|
|
|
Boolean sendret = DataUtil.checkQuality(nettyClient,barcode36,user20);
|
|
Boolean sendret = DataUtil.checkQuality(nettyClient,barcode36,user20);
|
|
|
if(!sendret){
|
|
if(!sendret){
|