dsh-plc-decode 0.1.2 → 0.1.4
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.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,9 +74,15 @@ dsh plugin --profile web add github:taoziliyouchong/dsh-plc-decode
|
|
|
74
74
|
|
|
75
75
|
默认写到**工作区**的 `解码归档/<工程所在文件夹名>/`(用文件夹名而不是工程文件名,避免不同文件夹里的同名工程互相覆盖;同一文件夹里有多个工程文件时用 `文件夹名_工程名`)。也可以在工具参数里用 `outDir` 指定。
|
|
76
76
|
|
|
77
|
+
| 格式 | 主要产物 |
|
|
78
|
+
|---|---|
|
|
79
|
+
| `.project` | `00-索引.md`(先读这份)、`pous/<POU>.txt`(ST 源码)、`工程内容报告.md`、`全部字符串.txt`、`对象表.md`、`项目树.md` |
|
|
80
|
+
| `.dvp` | `00-索引.md`、`解码报告.md`(结构 / 段落注释 / 设备注释 / 指令表)、可选 `程序解读.md` |
|
|
81
|
+
| `.smart` / `.smartlib` | `00-目录.md`(先读这份)、`解码报告.md`、`程序.lad`、`元素记录.tsv`、`符号地址.tsv`、`分析.md`、`记录.json`、`字符串全录.txt` |
|
|
82
|
+
|
|
77
83
|
### 改归档地址(不用改代码)
|
|
78
84
|
|
|
79
|
-
在 DSH profile 的 `cordis.patch.yml
|
|
85
|
+
在 DSH profile 的 `cordis.patch.yml`(`$DSH_HOME/profiles/<profile>/cordis.patch.yml`)末尾加这几行:
|
|
80
86
|
|
|
81
87
|
```yaml
|
|
82
88
|
- id: dsh-plc-decode
|
|
@@ -85,13 +91,7 @@ dsh plugin --profile web add github:taoziliyouchong/dsh-plc-decode
|
|
|
85
91
|
archiveDir: D:/plc/解码归档
|
|
86
92
|
```
|
|
87
93
|
|
|
88
|
-
`archiveDir` 是归档**根目录**:相对路径按当前会话工作区解析,绝对路径原样使用;默认 `解码归档`。改完重启 dsh 生效,`/plc-archive`
|
|
89
|
-
|
|
90
|
-
| 格式 | 主要产物 |
|
|
91
|
-
|---|---|
|
|
92
|
-
| `.project` | `00-索引.md`(先读这份)、`pous/<POU>.txt`(ST 源码)、`工程内容报告.md`、`全部字符串.txt`、`对象表.md`、`项目树.md` |
|
|
93
|
-
| `.dvp` | `00-索引.md`、`解码报告.md`(结构 / 段落注释 / 设备注释 / 指令表)、可选 `程序解读.md` |
|
|
94
|
-
| `.smart` / `.smartlib` | `00-目录.md`(先读这份)、`解码报告.md`、`程序.lad`、`元素记录.tsv`、`符号地址.tsv`、`分析.md`、`记录.json`、`字符串全录.txt` |
|
|
94
|
+
`archiveDir` 是归档**根目录**:相对路径按当前会话工作区解析,绝对路径原样使用;默认 `解码归档`。改完重启 dsh 生效,`/plc-archive` 可随时查看当前生效值;只想改一次就在解码时传 `outDir`。
|
|
95
95
|
|
|
96
96
|
`.smart` 的 `记录.json` 同时是各分析工具(地址占用、变量使用等)的输入,也是识别「已解码目录」的凭据;解码报告头部带**源文件指纹**(文件大小 + 修改时间),工程换版本后先核对指纹再用旧报告。
|
|
97
97
|
|
package/package.json
CHANGED