@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,185 @@
1
+ [
2
+ {
3
+ "id": "tab-slmp-udp",
4
+ "type": "tab",
5
+ "label": "SLMP UDP Read Write",
6
+ "disabled": false,
7
+ "info": "Update the connection host, port, and safe device addresses before deploy."
8
+ },
9
+ {
10
+ "id": "comment-slmp-udp",
11
+ "type": "comment",
12
+ "z": "tab-slmp-udp",
13
+ "name": "Basic UDP read/write example",
14
+ "info": "",
15
+ "x": 220,
16
+ "y": 40,
17
+ "wires": []
18
+ },
19
+ {
20
+ "id": "inject-udp-read",
21
+ "type": "inject",
22
+ "z": "tab-slmp-udp",
23
+ "name": "Read snapshot",
24
+ "props": [
25
+ {
26
+ "p": "payload"
27
+ }
28
+ ],
29
+ "repeat": "",
30
+ "crontab": "",
31
+ "once": false,
32
+ "onceDelay": 0.1,
33
+ "topic": "",
34
+ "payloadType": "date",
35
+ "x": 120,
36
+ "y": 120,
37
+ "wires": [
38
+ [
39
+ "read-udp"
40
+ ]
41
+ ]
42
+ },
43
+ {
44
+ "id": "read-udp",
45
+ "type": "slmp-read",
46
+ "z": "tab-slmp-udp",
47
+ "name": "Read UDP words + string",
48
+ "connection": "cfg-slmp-udp",
49
+ "addresses": "D300,4\nDSTR320,10",
50
+ "addressesType": "str",
51
+ "outputMode": "array",
52
+ "errorHandling": "output2",
53
+ "x": 340,
54
+ "y": 120,
55
+ "wires": [
56
+ [
57
+ "debug-udp-read-ok"
58
+ ],
59
+ [
60
+ "debug-udp-read-error"
61
+ ]
62
+ ]
63
+ },
64
+ {
65
+ "id": "inject-udp-write",
66
+ "type": "inject",
67
+ "z": "tab-slmp-udp",
68
+ "name": "Write UDP values",
69
+ "props": [
70
+ {
71
+ "p": "payload",
72
+ "v": "{\"D300,4\":[10,11,12,13],\"DSTR320,10\":\"HELLO12345\"}",
73
+ "vt": "json"
74
+ }
75
+ ],
76
+ "repeat": "",
77
+ "crontab": "",
78
+ "once": false,
79
+ "onceDelay": 0.1,
80
+ "topic": "",
81
+ "x": 120,
82
+ "y": 200,
83
+ "wires": [
84
+ [
85
+ "write-udp"
86
+ ]
87
+ ]
88
+ },
89
+ {
90
+ "id": "write-udp",
91
+ "type": "slmp-write",
92
+ "z": "tab-slmp-udp",
93
+ "name": "Write UDP words + string",
94
+ "connection": "cfg-slmp-udp",
95
+ "updates": "",
96
+ "updatesType": "str",
97
+ "errorHandling": "output2",
98
+ "x": 340,
99
+ "y": 200,
100
+ "wires": [
101
+ [
102
+ "debug-udp-write-ok"
103
+ ],
104
+ [
105
+ "debug-udp-write-error"
106
+ ]
107
+ ]
108
+ },
109
+ {
110
+ "id": "debug-udp-read-ok",
111
+ "type": "debug",
112
+ "z": "tab-slmp-udp",
113
+ "name": "Read OK",
114
+ "active": true,
115
+ "tosidebar": true,
116
+ "console": false,
117
+ "tostatus": false,
118
+ "complete": "true",
119
+ "targetType": "full",
120
+ "x": 580,
121
+ "y": 100,
122
+ "wires": []
123
+ },
124
+ {
125
+ "id": "debug-udp-read-error",
126
+ "type": "debug",
127
+ "z": "tab-slmp-udp",
128
+ "name": "Read Error",
129
+ "active": true,
130
+ "tosidebar": true,
131
+ "console": false,
132
+ "tostatus": false,
133
+ "complete": "true",
134
+ "targetType": "full",
135
+ "x": 590,
136
+ "y": 140,
137
+ "wires": []
138
+ },
139
+ {
140
+ "id": "debug-udp-write-ok",
141
+ "type": "debug",
142
+ "z": "tab-slmp-udp",
143
+ "name": "Write OK",
144
+ "active": true,
145
+ "tosidebar": true,
146
+ "console": false,
147
+ "tostatus": false,
148
+ "complete": "true",
149
+ "targetType": "full",
150
+ "x": 580,
151
+ "y": 180,
152
+ "wires": []
153
+ },
154
+ {
155
+ "id": "debug-udp-write-error",
156
+ "type": "debug",
157
+ "z": "tab-slmp-udp",
158
+ "name": "Write Error",
159
+ "active": true,
160
+ "tosidebar": true,
161
+ "console": false,
162
+ "tostatus": false,
163
+ "complete": "true",
164
+ "targetType": "full",
165
+ "x": 590,
166
+ "y": 220,
167
+ "wires": []
168
+ },
169
+ {
170
+ "id": "cfg-slmp-udp",
171
+ "type": "slmp-connection",
172
+ "name": "PLC UDP 4E",
173
+ "host": "192.168.250.100",
174
+ "port": "1027",
175
+ "transport": "udp",
176
+ "timeout": "3000",
177
+ "plcSeries": "iqr",
178
+ "frameType": "4e",
179
+ "monitoringTimer": "16",
180
+ "network": "0",
181
+ "station": "255",
182
+ "moduleIO": "03FF",
183
+ "multidrop": "0"
184
+ }
185
+ ]
package/lib/index.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ ...require("./slmp"),
5
+ };
6
+