{ "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" }, "action_start": { "type": "exp", "label": "动作", "value": "p1<110&&tag1>=110", "value_type": "bool", "param": { "hold": { "type": "switch", "label": "保持", "value": "1", "value_type": "bool" } } }, "action_end": { "type": "exp", "label": "反馈", "value": "tag1>120", "value_type": "bool", "param": { "timeout": { "type": "input", "label": "超时时间", "value": "3000", "value_type": "int" } } }, "result": { "type": "exp", "label": "监控变量条件", "value": "mv2_tag2==0", "value_type": "bool" } }, "output": { "reason": { "type": "input", "label": "报警原因", "value": "", "value_type": "string" }, "error": { "type": "input", "label": "报警内容", "value": "超阈值", "value_type": "string" } } }