更新
This commit is contained in:
@@ -177,9 +177,10 @@ public class DeviceOpcProtocolRunable implements Runnable {
|
|||||||
his = accessor_value.getValue(item.getId());
|
his = accessor_value.getValue(item.getId());
|
||||||
if (!ObjectUtl.isEquals(itemState.getQuality(), QualityTypeValue.OPC_QUALITY_GOOD) && his != null) {
|
if (!ObjectUtl.isEquals(itemState.getQuality(), QualityTypeValue.OPC_QUALITY_GOOD) && his != null) {
|
||||||
maxResartNum ++;
|
maxResartNum ++;
|
||||||
|
log.warn("线程 {} opc 值不健康 maxResartNum:{} ", tag, maxResartNum);
|
||||||
log.warn("opc 值不健康 item: {}, 状态: {},当前读取值:{}, 系统内存值{} ", item.getId(), itemState.getQuality(), value, his);
|
log.warn("opc 值不健康 item: {}, 状态: {},当前读取值:{}, 系统内存值{} ", item.getId(), itemState.getQuality(), value, his);
|
||||||
}
|
}
|
||||||
if(maxResartNum>1000){
|
if(maxResartNum>10){
|
||||||
if (this.server != null) {
|
if (this.server != null) {
|
||||||
try {
|
try {
|
||||||
this.server.disconnect();
|
this.server.disconnect();
|
||||||
|
|||||||
Reference in New Issue
Block a user