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