66 lines
1.6 KiB
JSON
66 lines
1.6 KiB
JSON
|
|
{
|
||
|
|
"exp_flag": true,
|
||
|
|
"tags": {
|
||
|
|
"tag1": {
|
||
|
|
"type": "data",
|
||
|
|
"label": "tag1",
|
||
|
|
"value": "szTagName",
|
||
|
|
"value_type": "auto"
|
||
|
|
},
|
||
|
|
"tag2": {
|
||
|
|
"type": "data",
|
||
|
|
"label": "tag2",
|
||
|
|
"value": "szTagName",
|
||
|
|
"value_type": "auto"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"datasource": {
|
||
|
|
"type": "data",
|
||
|
|
"label": "数据来源",
|
||
|
|
"value": "1",
|
||
|
|
"value_type": "string"
|
||
|
|
},
|
||
|
|
"trigger": {
|
||
|
|
"type": "interval",
|
||
|
|
"label": "执行周期ms",
|
||
|
|
"value": "50",
|
||
|
|
"value_type": "string"
|
||
|
|
},
|
||
|
|
"before_exec": "0",
|
||
|
|
"function": {
|
||
|
|
"pre_result": {
|
||
|
|
"type": "exp",
|
||
|
|
"label": "执行前置条件",
|
||
|
|
"value": "tag1>0",
|
||
|
|
"value_type": "bool"
|
||
|
|
},
|
||
|
|
"result": {
|
||
|
|
"type": "exp",
|
||
|
|
"label": "检测条件",
|
||
|
|
"value": "abs(tag1-tag2)>10",
|
||
|
|
"value_type": "bool",
|
||
|
|
"param": {
|
||
|
|
"limit_time": {
|
||
|
|
"type": "input",
|
||
|
|
"label": "最大保持时间[小时]",
|
||
|
|
"value": "10",
|
||
|
|
"value_type": "double"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"output": {
|
||
|
|
"reason": {
|
||
|
|
"type": "input",
|
||
|
|
"label": "报警原因",
|
||
|
|
"value": "保持已达上限",
|
||
|
|
"value_type": "string"
|
||
|
|
},
|
||
|
|
"error": {
|
||
|
|
"type": "input",
|
||
|
|
"label": "报警内容",
|
||
|
|
"value": "超阈值",
|
||
|
|
"value_type": "string"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|