dsh-plc-decode 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +1 -1
- package/README.md +1 -8
- package/package.json +2 -2
package/README.en.md
CHANGED
|
@@ -22,7 +22,7 @@ Prerequisites:
|
|
|
22
22
|
- DSH desktop app (the plugin runs inside DSH; Node version follows DSH);
|
|
23
23
|
- Python 3.9+ on `PATH` for `.project` / `.dvp` (standard library only, no `pip install`);
|
|
24
24
|
- Python is not needed for `.smart` / `.smartlib`.
|
|
25
|
-
- Compatible with DSH 0.2.1
|
|
25
|
+
- Compatible with the DSH 0.2.1 line (alpha / rc / stable); 0.3 and later are not guaranteed.
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
28
|
dsh plugin --profile web add github:taoziliyouchong/dsh-plc-decode
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
- DSH 桌面端(插件运行在 DSH 内,Node 版本跟随 DSH);
|
|
25
25
|
- 解码 `.project` / `.dvp` 需要 Python 3.9+ 在 `PATH` 里(只用标准库,无需 pip 安装);
|
|
26
26
|
- 解码 `.smart` / `.smartlib` 不需要 Python。
|
|
27
|
-
- 兼容 DSH 0.2.1
|
|
27
|
+
- 兼容 DSH 0.2.1 系列(alpha / rc / 正式版均可);0.3 起不保证。
|
|
28
28
|
|
|
29
29
|
从 GitHub 安装:
|
|
30
30
|
|
|
@@ -93,13 +93,6 @@ dsh plugin --profile web add github:taoziliyouchong/dsh-plc-decode
|
|
|
93
93
|
|
|
94
94
|
`archiveDir` 是归档**根目录**:相对路径按当前会话工作区解析,绝对路径原样使用;默认 `解码归档`。改完重启 dsh 生效,`/plc-archive` 可随时查看当前生效值;只想改一次就在解码时传 `outDir`。
|
|
95
95
|
|
|
96
|
-
实测同一份 `Dvp0.dvp` 在两种配置下的落点:
|
|
97
|
-
|
|
98
|
-
| cordis.patch.yml | 解码落点 |
|
|
99
|
-
|---|---|
|
|
100
|
-
| 不写 `config` | `<工作区>\解码归档\靖昇20250212ZH1035\` |
|
|
101
|
-
| `archiveDir: D:/plc/解码归档` | `D:\plc\解码归档\靖昇20250212ZH1035\` |
|
|
102
|
-
|
|
103
96
|
`.smart` 的 `记录.json` 同时是各分析工具(地址占用、变量使用等)的输入,也是识别「已解码目录」的凭据;解码报告头部带**源文件指纹**(文件大小 + 修改时间),工程换版本后先核对指纹再用旧报告。
|
|
104
97
|
|
|
105
98
|
## 已知边界
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plc-decode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "在 DSH 里读 PLC 工程文件:CoDeSys .project、台达 .dvp、西门子 S7-200 SMART .smart/.smartlib 统一解码成可读报告与结构化数据,另带新旧工程对比、地址体检与连线还原。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": "^22.19.0 || >=24.0.0",
|
|
24
|
-
"dsh": ">=0.2.1-
|
|
24
|
+
"dsh": ">=0.2.1-0 <0.3.0-0"
|
|
25
25
|
},
|
|
26
26
|
"dsh": {
|
|
27
27
|
"bundle": {
|