|
|
@@ -58,7 +58,7 @@ public class SmeltingScheduling {
|
|
|
/**
|
|
|
* 每 30 秒采集一次
|
|
|
*/
|
|
|
- @Scheduled(fixedRate = 3000)
|
|
|
+ @Scheduled(fixedRate = 60000)
|
|
|
public void collect() {
|
|
|
// 采集开关:未配置则默认启用
|
|
|
String enabled = Global.getConfig("mes.smelting.enabled");
|
|
|
@@ -68,7 +68,7 @@ public class SmeltingScheduling {
|
|
|
|
|
|
String ip = Global.getConfig("mes.smelting.plc.ip");
|
|
|
if (StringUtils.isBlank(ip)) {
|
|
|
- ip = DEFAULT_PLC_IP;
|
|
|
+ ip = DEFAULT_PLC_IP2;
|
|
|
}
|
|
|
|
|
|
S7PLC s7PLC = null;
|
|
|
@@ -114,7 +114,7 @@ public class SmeltingScheduling {
|
|
|
/**
|
|
|
* 每 30 秒采集一次 一号机
|
|
|
*/
|
|
|
- @Scheduled(fixedRate = 3000)
|
|
|
+// @Scheduled(fixedRate = 60000)
|
|
|
public void collect2() {
|
|
|
// 采集开关:未配置则默认启用
|
|
|
String enabled = Global.getConfig("mes.smelting2.enabled");
|
|
|
@@ -124,7 +124,7 @@ public class SmeltingScheduling {
|
|
|
|
|
|
String ip = Global.getConfig("mes.smelting2.plc.ip");
|
|
|
if (StringUtils.isBlank(ip)) {
|
|
|
- ip = DEFAULT_PLC_IP2;
|
|
|
+ ip = DEFAULT_PLC_IP;
|
|
|
}
|
|
|
|
|
|
S7PLC s7PLC = null;
|