@ali-pay/node-red-contrib-s7 3.2.0
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/.github/ISSUE_TEMPLATE/bug_report.md +40 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/CHANGELOG.md +146 -0
- package/LICENSE +674 -0
- package/README.md +136 -0
- package/package.json +36 -0
- package/red/locales/de/s7.json +127 -0
- package/red/locales/en-US/s7.json +127 -0
- package/red/s7.html +1444 -0
- package/red/s7.js +712 -0
- package/src/tools.js +85 -0
- package/test/flow_writeTest.json +1507 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
### Describe the bug
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
### To Reproduce
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
### Expected behavior
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
### Screenshots
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
### Logs
|
|
27
|
+
If applicable, attach the Node-RED logs with the "Verbose" option on the configuration node set to "On"
|
|
28
|
+
|
|
29
|
+
### Flow
|
|
30
|
+
Please attach your flow either as a file or properly formatted as JSON
|
|
31
|
+
|
|
32
|
+
### Environment
|
|
33
|
+
- **Version** of this node: [e.g. 2.1.1]
|
|
34
|
+
- **Node-RED version**: [e.g. 1.0.3]
|
|
35
|
+
- **PLC Part Number**: [e.g. 6E57-... ]
|
|
36
|
+
- **OS**: [e.g. Windows 10, Ubuntu]
|
|
37
|
+
- **Browser**: [e.g. chrome, safari]
|
|
38
|
+
|
|
39
|
+
### Additional context
|
|
40
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
Version: 3.0.0
|
|
2
|
+
------------
|
|
3
|
+
- Migrate underlying library to @st-one-io/node-s7
|
|
4
|
+
- Remove optional dependency on mpi-s7 (project is now split into this and `node-red-contrib-mpi-s7`)
|
|
5
|
+
- Added tag validation on the editor
|
|
6
|
+
|
|
7
|
+
Version: 2.2.1
|
|
8
|
+
------------
|
|
9
|
+
- Fixes and improve PLC discovery UI
|
|
10
|
+
|
|
11
|
+
Version: 2.2.0
|
|
12
|
+
------------
|
|
13
|
+
- Adds support to `DT`, `DTZ`, `DTL` and `DTLZ` data types
|
|
14
|
+
|
|
15
|
+
Version: 2.1.1
|
|
16
|
+
------------
|
|
17
|
+
- Updates dependency of nodes7 - fixes sequence collision bug
|
|
18
|
+
|
|
19
|
+
Version: 2.1.0
|
|
20
|
+
------------
|
|
21
|
+
- Adds support for Node-RED 1.0 API
|
|
22
|
+
- Changes node's category to "plc"
|
|
23
|
+
- Implements discovery of ethernet PLCs
|
|
24
|
+
|
|
25
|
+
Version: 2.0.2
|
|
26
|
+
------------
|
|
27
|
+
- Fixes #49 - fixes regression introduced in 2.0.1 that prevented writing to array of vars
|
|
28
|
+
|
|
29
|
+
Version: 2.0.1
|
|
30
|
+
------------
|
|
31
|
+
- Fixes #48 - prevents exception being thrown when writing to unknown variables
|
|
32
|
+
|
|
33
|
+
Version: 2.0.0
|
|
34
|
+
------------
|
|
35
|
+
- Adds support for MPI-USB adapters as transport for connecting to PLCs
|
|
36
|
+
|
|
37
|
+
Version: 1.6.3
|
|
38
|
+
------------
|
|
39
|
+
- l10n - Fix translation code for German
|
|
40
|
+
|
|
41
|
+
Version: 1.6.2
|
|
42
|
+
------------
|
|
43
|
+
- l10n - Add translations to German
|
|
44
|
+
|
|
45
|
+
Version: 1.6.1
|
|
46
|
+
------------
|
|
47
|
+
- Bumps dependency of nodes7
|
|
48
|
+
|
|
49
|
+
Version: 1.6.0
|
|
50
|
+
------------
|
|
51
|
+
- Implements "s7 control" node, currently for manual control of the cycle time
|
|
52
|
+
|
|
53
|
+
Version: 1.5.3
|
|
54
|
+
------------
|
|
55
|
+
- Fixes #33: handle diff of array types, so they're emitted only when an item changes
|
|
56
|
+
|
|
57
|
+
Version: 1.5.2
|
|
58
|
+
------------
|
|
59
|
+
- Skip cyclic reading of variables if there's none configured
|
|
60
|
+
|
|
61
|
+
Version: 1.5.1
|
|
62
|
+
------------
|
|
63
|
+
- Avoids trying to connect again after closing the node
|
|
64
|
+
|
|
65
|
+
Version: 1.5.0
|
|
66
|
+
------------
|
|
67
|
+
- Enables errors to be catch by the "catch" node (#17)
|
|
68
|
+
- Implements "connecting" status - thanks @CarstenMaul (#19)
|
|
69
|
+
- Fixes connection leak introduced on 1.3.1
|
|
70
|
+
|
|
71
|
+
Version: 1.4.1
|
|
72
|
+
------------
|
|
73
|
+
- Fixes #11: Correctly parses tsap values and improve validation
|
|
74
|
+
|
|
75
|
+
Version: 1.4.0
|
|
76
|
+
------------
|
|
77
|
+
- Implements configuration option to set library's debug independently from Node-RED
|
|
78
|
+
- Sets timeout and TSAP defaults to old configs without them
|
|
79
|
+
|
|
80
|
+
Version: 1.3.1
|
|
81
|
+
------------
|
|
82
|
+
- Force a connection restart if we receive no callback response within 10 tries
|
|
83
|
+
- Retry to connect to PLC if failing to connect on flow deploy
|
|
84
|
+
- Improve logging
|
|
85
|
+
|
|
86
|
+
Version: 1.3.0
|
|
87
|
+
------------
|
|
88
|
+
- Implements ability to connect to PLC using local/remote TSAP instead of rack and slot only
|
|
89
|
+
|
|
90
|
+
Version: 1.2.0
|
|
91
|
+
------------
|
|
92
|
+
- Implements buttons to import and export the variable list in the S7 Eenpoint node
|
|
93
|
+
|
|
94
|
+
Version: 1.1.2
|
|
95
|
+
------------
|
|
96
|
+
- Fixes #4: Avoid EventEmitter warnings when lots of S7In nodes are used
|
|
97
|
+
|
|
98
|
+
Version: 1.1.1
|
|
99
|
+
------------
|
|
100
|
+
- Fix default value of new timeout configuration
|
|
101
|
+
|
|
102
|
+
Version: 1.1.0
|
|
103
|
+
------------
|
|
104
|
+
- Implement timeout parameter, as we may have higher delays than the default one in unstable networks
|
|
105
|
+
|
|
106
|
+
Version: 1.0.1
|
|
107
|
+
------------
|
|
108
|
+
- Fixes alignment of s7 write node
|
|
109
|
+
|
|
110
|
+
Version: 1.0.0
|
|
111
|
+
------------
|
|
112
|
+
Major Release
|
|
113
|
+
- Implements s7 write node
|
|
114
|
+
|
|
115
|
+
Version: 0.2.4
|
|
116
|
+
------------
|
|
117
|
+
- Enable underlying nodes7's logging when NodeRED is run in verbose mode (either with -v or at settings.js)
|
|
118
|
+
|
|
119
|
+
Version: 0.2.3
|
|
120
|
+
------------
|
|
121
|
+
- [BUGFIX] - memory leak on __STATUS__ event that was registered on the endpoint node but never removed
|
|
122
|
+
- [BUGFIX] - show the endpoint label if mode:single but no variable configured, label was empty
|
|
123
|
+
- Defer the reading cycle if the previous reading hasn't returned yet. This prevents queuing a lot of read requests in the stack
|
|
124
|
+
- Displays the variable's address in the config of the S7 In node for information purposes only
|
|
125
|
+
|
|
126
|
+
Version: 0.2.2
|
|
127
|
+
------------
|
|
128
|
+
- Replace arrow founction with standard function, so we're backwards compatible with previous versions of Node.JS
|
|
129
|
+
|
|
130
|
+
Version: 0.2.1
|
|
131
|
+
------------
|
|
132
|
+
- Add repository/bugs information to package.json
|
|
133
|
+
|
|
134
|
+
Version: 0.2.0
|
|
135
|
+
------------
|
|
136
|
+
- Implements new reading mode "All variables, one per message"
|
|
137
|
+
- Help text of the in node rewritten
|
|
138
|
+
- s7 endpoint now stores the variable as an array, not as stringified JSON. Backwards compatible.
|
|
139
|
+
|
|
140
|
+
Version: 0.1.1
|
|
141
|
+
------------
|
|
142
|
+
- [BUGFIX] Fix require of EventEmitter (#1)
|
|
143
|
+
|
|
144
|
+
Version: 0.1.0
|
|
145
|
+
------------
|
|
146
|
+
- Initial release
|