refactor: Reclose_logic.json 完善坐标 + 移除saddr

每个节点(信号/门)均携带 x,y 坐标,信号对象保持 no 标识
This commit is contained in:
ypc 2026-07-06 17:52:25 +08:00
parent 2ed51a5caa
commit e6f4de251f
1 changed files with 46 additions and 17 deletions

View File

@ -10,19 +10,24 @@
"logic": { "logic": {
"type": "OR", "type": "OR",
"id": 0, "id": 0,
"x": -346,
"y": 141,
"from": [ "from": [
{ {
"no": 59, "no": 59,
"saddr": "self_ptl.st.55" "x": -676,
"y": 69
}, },
{ {
"no": 60, "no": 60,
"saddr": "self_ptl.st.56" "x": -674,
"y": 183
} }
], ],
"to": { "to": {
"no": 1361, "no": 1361,
"saddr": "plc.st.out.1" "x": -17,
"y": 137
} }
} }
}, },
@ -31,15 +36,19 @@
"logic": { "logic": {
"type": "NOT", "type": "NOT",
"id": 0, "id": 0,
"x": -345,
"y": 296,
"from": [ "from": [
{ {
"no": 61, "no": 61,
"saddr": "self_ptl.st.57" "x": -669,
"y": 298
} }
], ],
"to": { "to": {
"no": 1362, "no": 1362,
"saddr": "plc.st.out.2" "x": -10,
"y": 294
} }
} }
}, },
@ -48,73 +57,93 @@
"logic": { "logic": {
"type": "NOT", "type": "NOT",
"id": 1, "id": 1,
"x": 591,
"y": 971,
"gates_in": { "gates_in": {
"type": "OR", "type": "OR",
"id": 1, "id": 1,
"x": 288,
"y": 890,
"from": [ "from": [
{ {
"no": 71, "no": 71,
"saddr": "self_ptl.st.67" "x": -7,
"y": 964
} }
], ],
"gates_in": { "gates_in": {
"type": "AND", "type": "AND",
"id": 1, "id": 1,
"x": -43,
"y": 803,
"from": [ "from": [
{ {
"no": 70, "no": 70,
"saddr": "self_ptl.st.66" "x": -323,
"y": 858
} }
], ],
"gates_in": { "gates_in": {
"type": "AND", "type": "AND",
"id": 0, "id": 0,
"x": -346,
"y": 595,
"from": [ "from": [
{ {
"no": 66, "no": 66,
"saddr": "self_ptl.st.62" "x": -668,
"y": 414
}, },
{ {
"no": 67, "no": 67,
"saddr": "self_ptl.st.63" "x": -667,
"y": 532
}, },
{ {
"no": 68, "no": 68,
"saddr": "self_ptl.st.64" "x": -669,
"y": 650
}, },
{ {
"no": 69, "no": 69,
"saddr": "self_ptl.st.65" "x": -672,
"y": 767
} }
], ],
"to": [ "to": [
{ {
"no": 1363, "no": 1363,
"saddr": "plc.st.out.3" "x": -12,
"y": 488
}, },
{ {
"no": 1364, "no": 1364,
"saddr": "plc.st.out.4" "x": -13,
"y": 592
}, },
{ {
"no": 1365, "no": 1365,
"saddr": "plc.st.out.5" "x": -11,
"y": 696
} }
] ]
}, },
"to": { "to": {
"no": 1366, "no": 1366,
"saddr": "plc.st.out.6" "x": 314,
"y": 769
} }
}, },
"to": { "to": {
"no": 1367, "no": 1367,
"saddr": "plc.st.out.7" "x": 621,
"y": 853
} }
}, },
"to": { "to": {
"no": 1368, "no": 1368,
"saddr": "plc.st.out.8" "x": 892,
"y": 970
} }
} }
} }