refactor: Reclose_logic.json 精简 — 去除 desc/rule 字段

信号对象仅保留 no + saddr,门对象仅保留 type + id + from/gates_in/to
This commit is contained in:
ypc 2026-07-06 17:32:40 +08:00
parent 7b40f4aecf
commit 2ed51a5caa
1 changed files with 63 additions and 101 deletions

View File

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