node-red-contrib-ads-application
Version:
node-red-contrib-ads-client application extention
35 lines (30 loc) • 1.15 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('ads-logger',{
paletteLabel: 'ADS - Logger',
category: 'TwinCAT ADS',
color: '#3FADB5',
defaults: {
name: {value:""},
connection: {value:"", type:"ads-client-connection", required: true},
},
inputs:0,
outputs:1,
icon: 'font-awesome/fa-list',
label: function() {
return this.name||"Ads log";
}
});
</script>
<script type="text/html" data-template-name="ads-logger">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-connection"><i class="fa fa-file-code-o"></i> ADS</label>
<input id="node-input-connection">
</div>
</script>
<script type="text/html" data-help-name="ads-logger">
<p>A node that subscribes to ads log messages. Use the <code>ADSLOGSTR</code> function inside the plc to write messages to this node.</p>
</script>