@ali-pay/node-red-contrib-s7 3.2.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/README.md +27 -0
  2. package/package.json +3 -4
package/README.md CHANGED
@@ -3,6 +3,33 @@ A Node-RED node to interact with Siemens S7 PLCs.
3
3
 
4
4
  This node was created as part of the [ST-One](https://st-one.io) project.
5
5
 
6
+ ## 更新日志
7
+
8
+ ### v3.2.0
9
+
10
+ - `s7-in` 节点增加 `设备状态` 的输出
11
+
12
+ ```json
13
+ {
14
+ "name": "7#-8#", // plc 名称
15
+ "ip": "172.19.21.70", // plc ip
16
+ "status": "online" // plc 状态 online / offline
17
+ }
18
+ ```
19
+
20
+ - `s7-out` 节点增加 `写入结果` 的输出
21
+
22
+ ```json
23
+ {
24
+ "error": "Error: Not connected", // 错误
25
+ "variable": ["a", "b"], // 写入的键 msg.variable
26
+ "payload": [1, 2], // 写入的值 msg.payload
27
+ "values": { "a":1, "b":2 }, // 写入的键值对
28
+ "newValues": {}, // plc的最新键值对
29
+ "bingo": false, // plc的最新值跟写入值是否一致
30
+ "wrongValues": {} // 跟写入值不一致的键值对
31
+ }
32
+ ```
6
33
 
7
34
  ## Install
8
35
 
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@ali-pay/node-red-contrib-s7",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "A Node-RED node to interact with Siemens S7 PLCs",
5
5
  "main": "index.js",
6
- "private": false,
7
6
  "dependencies": {
8
7
  "@st-one-io/nodes7": "1.1.0"
9
8
  },
10
9
  "repository": {
11
10
  "type": "git",
12
- "url": "https://github.com/st-one-io/node-red-contrib-s7.git"
11
+ "url": "https://github.com/ali-pay/node-red-contrib-s7.git"
13
12
  },
14
13
  "bugs": {
15
- "url": "https://github.com/st-one-io/node-red-contrib-s7/issues"
14
+ "url": "https://github.com/ali-pay/node-red-contrib-s7/issues"
16
15
  },
17
16
  "scripts": {
18
17
  "test": "echo \"Error: no test specified\" && exit 1"