diff --git a/test/config/PLC/Reclose_logic.json b/test/config/PLC/Reclose_logic.json index 033e2e6..4c90ece 100644 --- a/test/config/PLC/Reclose_logic.json +++ b/test/config/PLC/Reclose_logic.json @@ -1,158 +1,120 @@ { - "_doc": "Reclose_logic.txt 可视化 — 重合闸PLC逻辑配置 (JSON分层表示)", + "_doc": "Reclose_logic.txt → JSON 分层配置", "name": "PLC Logic", "key": "1783070862205", "checksum": "3486BE04", - "scale": "23节点 / 20连线 / 3条逻辑链", + "scale": "23节点 / 20连线 / 3条链", "chains": [ { - "description": "2个输入 → 1个门 → 1个输出", "gates_count": 1, "logic": { - "title": "OR OR#0", "type": "OR", "id": 0, - "rule": "任一输入为1即输出1", "from": [ { "no": 59, - "saddr": "self_ptl.st.55", - "desc": "采集硬遥信20-合闸反校" + "saddr": "self_ptl.st.55" }, { "no": 60, - "saddr": "self_ptl.st.56", - "desc": "采集硬遥信21-分闸反校" + "saddr": "self_ptl.st.56" } ], "to": { "no": 1361, - "saddr": "plc.st.out.1", - "desc": "plc输出1" + "saddr": "plc.st.out.1" } } }, { - "description": "1个输入 → 1个门 → 1个输出", "gates_count": 1, "logic": { - "title": "NOT NOT#0", "type": "NOT", "id": 0, - "rule": "输入取反", "from": [ { "no": 61, - "saddr": "self_ptl.st.57", - "desc": "采集硬遥信22-备用" + "saddr": "self_ptl.st.57" } ], "to": { "no": 1362, - "saddr": "plc.st.out.2", - "desc": "plc输出2" + "saddr": "plc.st.out.2" } } }, { - "description": "6个输入 → 4个门 → 6个输出", "gates_count": 4, "logic": { - "title": "NOT NOT#1", "type": "NOT", "id": 1, - "rule": "输入取反", - "gates_in": [ - { - "title": "OR OR#1", - "type": "OR", + "gates_in": { + "type": "OR", + "id": 1, + "from": [ + { + "no": 71, + "saddr": "self_ptl.st.67" + } + ], + "gates_in": { + "type": "AND", "id": 1, - "rule": "任一输入为1即输出1", "from": [ { - "no": 71, - "saddr": "self_ptl.st.67", - "desc": "采集硬遥信32-备用" + "no": 70, + "saddr": "self_ptl.st.66" } ], - "gates_in": [ - { - "title": "AND AND#1", - "type": "AND", - "id": 1, - "rule": "全部输入为1才输出1", - "from": [ - { - "no": 70, - "saddr": "self_ptl.st.66", - "desc": "采集硬遥信31-备用" - } - ], - "gates_in": [ - { - "title": "AND AND#0", - "type": "AND", - "id": 0, - "rule": "全部输入为1才输出1", - "from": [ - { - "no": 66, - "saddr": "self_ptl.st.62", - "desc": "采集硬遥信27-备用" - }, - { - "no": 67, - "saddr": "self_ptl.st.63", - "desc": "采集硬遥信28-备用" - }, - { - "no": 68, - "saddr": "self_ptl.st.64", - "desc": "采集硬遥信29-备用" - }, - { - "no": 69, - "saddr": "self_ptl.st.65", - "desc": "采集硬遥信30-备用" - } - ], - "to": [ - { - "no": 1363, - "saddr": "plc.st.out.3", - "desc": "plc输出3" - }, - { - "no": 1364, - "saddr": "plc.st.out.4", - "desc": "plc输出4" - }, - { - "no": 1365, - "saddr": "plc.st.out.5", - "desc": "plc输出5" - } - ] - } - ], - "to": { - "no": 1366, - "saddr": "plc.st.out.6", - "desc": "plc输出6" + "gates_in": { + "type": "AND", + "id": 0, + "from": [ + { + "no": 66, + "saddr": "self_ptl.st.62" + }, + { + "no": 67, + "saddr": "self_ptl.st.63" + }, + { + "no": 68, + "saddr": "self_ptl.st.64" + }, + { + "no": 69, + "saddr": "self_ptl.st.65" } - } - ], + ], + "to": [ + { + "no": 1363, + "saddr": "plc.st.out.3" + }, + { + "no": 1364, + "saddr": "plc.st.out.4" + }, + { + "no": 1365, + "saddr": "plc.st.out.5" + } + ] + }, "to": { - "no": 1367, - "saddr": "plc.st.out.7", - "desc": "plc输出7" + "no": 1366, + "saddr": "plc.st.out.6" } + }, + "to": { + "no": 1367, + "saddr": "plc.st.out.7" } - ], + }, "to": { "no": 1368, - "saddr": "plc.st.out.8", - "desc": "plc输出8" + "saddr": "plc.st.out.8" } } }