@fa_yoshinobu/node-red-contrib-plc-comm-slmp 0.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.
@@ -0,0 +1,260 @@
1
+ [
2
+ {
3
+ "id": "tab-slmp-demo",
4
+ "type": "tab",
5
+ "label": "SLMP Demo",
6
+ "disabled": false,
7
+ "info": "Update the slmp-connection host, port, and safe device addresses before deploy."
8
+ },
9
+ {
10
+ "id": "comment-slmp-demo",
11
+ "type": "comment",
12
+ "z": "tab-slmp-demo",
13
+ "name": "Update connection and safe device addresses before deploy",
14
+ "info": "",
15
+ "x": 270,
16
+ "y": 40,
17
+ "wires": []
18
+ },
19
+ {
20
+ "id": "inject-connect",
21
+ "type": "inject",
22
+ "z": "tab-slmp-demo",
23
+ "name": "Connect",
24
+ "props": [
25
+ {
26
+ "p": "connect",
27
+ "v": "true",
28
+ "vt": "bool"
29
+ }
30
+ ],
31
+ "repeat": "",
32
+ "crontab": "",
33
+ "once": false,
34
+ "onceDelay": 0.1,
35
+ "topic": "",
36
+ "x": 110,
37
+ "y": 100,
38
+ "wires": [
39
+ [
40
+ "read-demo"
41
+ ]
42
+ ]
43
+ },
44
+ {
45
+ "id": "inject-reinit",
46
+ "type": "inject",
47
+ "z": "tab-slmp-demo",
48
+ "name": "Reinitialize",
49
+ "props": [
50
+ {
51
+ "p": "reinitialize",
52
+ "v": "true",
53
+ "vt": "bool"
54
+ }
55
+ ],
56
+ "repeat": "",
57
+ "crontab": "",
58
+ "once": false,
59
+ "onceDelay": 0.1,
60
+ "topic": "",
61
+ "x": 120,
62
+ "y": 140,
63
+ "wires": [
64
+ [
65
+ "read-demo"
66
+ ]
67
+ ]
68
+ },
69
+ {
70
+ "id": "inject-disconnect",
71
+ "type": "inject",
72
+ "z": "tab-slmp-demo",
73
+ "name": "Disconnect",
74
+ "props": [
75
+ {
76
+ "p": "disconnect",
77
+ "v": "true",
78
+ "vt": "bool"
79
+ }
80
+ ],
81
+ "repeat": "",
82
+ "crontab": "",
83
+ "once": false,
84
+ "onceDelay": 0.1,
85
+ "topic": "",
86
+ "x": 120,
87
+ "y": 180,
88
+ "wires": [
89
+ [
90
+ "read-demo"
91
+ ]
92
+ ]
93
+ },
94
+ {
95
+ "id": "inject-read",
96
+ "type": "inject",
97
+ "z": "tab-slmp-demo",
98
+ "name": "Read snapshot",
99
+ "props": [
100
+ {
101
+ "p": "payload"
102
+ }
103
+ ],
104
+ "repeat": "",
105
+ "crontab": "",
106
+ "once": false,
107
+ "onceDelay": 0.1,
108
+ "topic": "",
109
+ "payloadType": "date",
110
+ "x": 120,
111
+ "y": 260,
112
+ "wires": [
113
+ [
114
+ "read-demo"
115
+ ]
116
+ ]
117
+ },
118
+ {
119
+ "id": "read-demo",
120
+ "type": "slmp-read",
121
+ "z": "tab-slmp-demo",
122
+ "name": "Read array + string",
123
+ "connection": "cfg-slmp-demo",
124
+ "addresses": "D300,3\nD200:F,2\nDSTR320,10",
125
+ "addressesType": "str",
126
+ "outputMode": "array",
127
+ "errorHandling": "output2",
128
+ "x": 340,
129
+ "y": 260,
130
+ "wires": [
131
+ [
132
+ "debug-read-ok"
133
+ ],
134
+ [
135
+ "debug-read-error"
136
+ ]
137
+ ]
138
+ },
139
+ {
140
+ "id": "inject-write",
141
+ "type": "inject",
142
+ "z": "tab-slmp-demo",
143
+ "name": "Write array + string",
144
+ "props": [
145
+ {
146
+ "p": "payload",
147
+ "v": "{\"D300,3\":[10,11,12],\"DSTR320,10\":\"HELLO\"}",
148
+ "vt": "json"
149
+ }
150
+ ],
151
+ "repeat": "",
152
+ "crontab": "",
153
+ "once": false,
154
+ "onceDelay": 0.1,
155
+ "topic": "",
156
+ "x": 120,
157
+ "y": 340,
158
+ "wires": [
159
+ [
160
+ "write-demo"
161
+ ]
162
+ ]
163
+ },
164
+ {
165
+ "id": "write-demo",
166
+ "type": "slmp-write",
167
+ "z": "tab-slmp-demo",
168
+ "name": "Write array + string",
169
+ "connection": "cfg-slmp-demo",
170
+ "updates": "",
171
+ "updatesType": "str",
172
+ "errorHandling": "output2",
173
+ "x": 340,
174
+ "y": 340,
175
+ "wires": [
176
+ [
177
+ "debug-write-ok"
178
+ ],
179
+ [
180
+ "debug-write-error"
181
+ ]
182
+ ]
183
+ },
184
+ {
185
+ "id": "debug-read-ok",
186
+ "type": "debug",
187
+ "z": "tab-slmp-demo",
188
+ "name": "Read OK",
189
+ "active": true,
190
+ "tosidebar": true,
191
+ "console": false,
192
+ "tostatus": false,
193
+ "complete": "true",
194
+ "targetType": "full",
195
+ "x": 560,
196
+ "y": 240,
197
+ "wires": []
198
+ },
199
+ {
200
+ "id": "debug-read-error",
201
+ "type": "debug",
202
+ "z": "tab-slmp-demo",
203
+ "name": "Read Error",
204
+ "active": true,
205
+ "tosidebar": true,
206
+ "console": false,
207
+ "tostatus": false,
208
+ "complete": "true",
209
+ "targetType": "full",
210
+ "x": 570,
211
+ "y": 280,
212
+ "wires": []
213
+ },
214
+ {
215
+ "id": "debug-write-ok",
216
+ "type": "debug",
217
+ "z": "tab-slmp-demo",
218
+ "name": "Write OK",
219
+ "active": true,
220
+ "tosidebar": true,
221
+ "console": false,
222
+ "tostatus": false,
223
+ "complete": "true",
224
+ "targetType": "full",
225
+ "x": 560,
226
+ "y": 320,
227
+ "wires": []
228
+ },
229
+ {
230
+ "id": "debug-write-error",
231
+ "type": "debug",
232
+ "z": "tab-slmp-demo",
233
+ "name": "Write Error",
234
+ "active": true,
235
+ "tosidebar": true,
236
+ "console": false,
237
+ "tostatus": false,
238
+ "complete": "true",
239
+ "targetType": "full",
240
+ "x": 570,
241
+ "y": 360,
242
+ "wires": []
243
+ },
244
+ {
245
+ "id": "cfg-slmp-demo",
246
+ "type": "slmp-connection",
247
+ "name": "Demo PLC",
248
+ "host": "192.168.250.100",
249
+ "port": "1025",
250
+ "transport": "tcp",
251
+ "timeout": "3000",
252
+ "plcSeries": "iqr",
253
+ "frameType": "4e",
254
+ "monitoringTimer": "16",
255
+ "network": "0",
256
+ "station": "255",
257
+ "moduleIO": "03FF",
258
+ "multidrop": "0"
259
+ }
260
+ ]