-
Notifications
You must be signed in to change notification settings - Fork 11
/
ads-system.html
51 lines (49 loc) · 1.92 KB
/
ads-system.html
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
<script type="text/x-red" data-help-name="ADS System">
<p>Node for providing the system state of Beckhoff TwinCAT ADS</p>
<p>The operating mode, the data model version, the program name and the program version are provided. This happens when one of the parameters changes or when an object is transferred to the input. The entry data will be ignored.<p>
</script>
<script type="text/x-red" data-template-name="ADS System">
<div class="form-row">
<label for="node-input-datasource"><i class="fa fa-random"></i> <span data-i18n="ads-system.label.datasource"></span></label>
<input type="text" id="node-input-datasource">
</div>
<div class="form-row">
<label for="node-input-topic"><i class="fa fa-tasks"></i> <span data-i18n="ads-system.label.topic"></span></label>
<input type="text" id="node-input-topic" data-i18n="[placeholder]ads-system.placeholder.topic">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType("ADS System", {
category: "Beckhoff PLC",
color: "#00bb00",
defaults: {
name: {
name: ""
},
datasource: {
type: "ads-connection",
required: true
},
useInputMsg: {
value: false
},
topic: {
value: "",
required: false
}
},
inputs: 1,
outputs: 1,
icon: "tcat.png",
label: function () {
return this.name || "ADS System";
},
labelStyle: function () {
return this.name ? "node_label_italic" : "";
}
});
</script>