-
Notifications
You must be signed in to change notification settings - Fork 1
/
module.json
216 lines (211 loc) · 4.17 KB
/
module.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"name":"Modbus TCP",
"type":"TCP Client",
"path":"Protocol",
"version":"1.2.0",
"description":"Send commands to TCP Modbus devices",
"url": "https://github.com/EmerickH/MODBUS-TCP-Chataigne",
"downloadURL": "https://github.com/EmerickH/MODBUS-TCP-Chataigne/archive/refs/heads/master.zip",
"hasInput":true,
"hasOutput":true,
"hideDefaultCommands":true,
"hideDefaultParameters": ["messageStructure","protocol","firstValueIsTheName","autoAdd"],
"defaults":
{
"protocol": "Raw",
"autoAdd": false,
"output":
{
"local": false,
"remotePort": 502
}
},
"parameters":
{
"Clear values":{
"type": "Trigger",
"description": "Clear all data from values"
}
},
"values":
{
"Latest error":{
"type": "Container",
"Latest invalid command":{
"type": "Integer",
"hexMode": true
},
"Latest error code":{
"type": "Integer",
"hexMode": true
},
"Latest error message":{
"type": "String"
},
"Error":{
"type": "Trigger"
}
}
},
"commands": {
"Read data": {
"menu":"",
"callback":"readData",
"parameters": {
"Type": {
"type":"Enum",
"options":{
"Coils": 1,
"Discrete inputs": 2,
"Holding registers": 3,
"Input registers": 4
}
},
"Unit ID": {
"type":"Integer",
"min":0,
"max":255,
"default":0,
"description": "Address of the device"
},
"Start address": {
"type":"Integer",
"min":0,
"max":65535,
"default":0,
"description": "Address of the first register/coil to read (0 based)"
},
"Count": {
"type":"Integer",
"min":1,
"max":2000,
"default":1,
"description": "Number of registers/coils to read"
}
}
},
"Write coil": {
"menu":"",
"callback":"writeCoil",
"parameters": {
"Unit ID": {
"type":"Integer",
"min":0,
"max":255,
"default":0,
"description": "Address of the device"
},
"Coil address": {
"type":"Integer",
"min":0,
"max":65535,
"default":0,
"description": "Address of the first coil to read (0 based)"
},
"Value": {
"type":"Boolean",
"description": "Value to write to the coil"
}
}
},
"Write holding register": {
"menu":"",
"callback":"writeRegister",
"parameters": {
"Unit ID": {
"type":"Integer",
"min":0,
"max":255,
"default":0,
"description": "Address of the device"
},
"Register address": {
"type":"Integer",
"min":0,
"max":65535,
"default":0,
"description": "Address of the first holding register to read (0 based)"
},
"Value": {
"type":"Integer",
"min":0,
"max":65535,
"default":0,
"description": "Value to write to the register"
}
}
},
"Read file records": {
"menu":"",
"callback":"readFileRecord",
"parameters": {
"Unit ID": {
"type":"Integer",
"min":0,
"max":255,
"default":0,
"description": "Address of the device"
},
"File number": {
"type":"Integer",
"min":1,
"max":65535,
"default":1,
"description": "Address of the file to read (1 based)"
},
"Start record": {
"type":"Integer",
"min":0,
"max":9999,
"default":0,
"description": "Record to start to read from in the file (0 based)"
},
"Record count": {
"type":"Integer",
"min":0,
"max":65535,
"default":0,
"description": "Number of records to read"
}
}
},
"Write file record": {
"menu":"",
"callback":"writeFileRecord",
"parameters": {
"Unit ID": {
"type":"Integer",
"min":0,
"max":255,
"default":0,
"description": "Address of the device"
},
"File number": {
"type":"Integer",
"min":1,
"max":65535,
"default":1,
"description": "Address of the file to write to (1 based)"
},
"Record": {
"type":"Integer",
"min":0,
"max":9999,
"default":0,
"description": "Record to write to (0 based)"
},
"Value": {
"type":"Integer",
"min":0,
"max":65535,
"default":0,
"description": "Value to write to the record"
}
}
}
},
"scripts":
[
"Modbus-TCP.js"
]
}