smithtek-node-red-tools
Version:
Set of tools for the Mako PLC, or any PLC
44 lines (41 loc) • 1.76 kB
HTML
<script type="text/x-red" data-template-name="pulse-reset">
<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/x-red" data-help-name="pulse-reset">
<p>When the input receives a message it triggers a 3 second pulse to the output pin. On-1-2-3 then off.</p>
<h3>Inputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">any message</span></dt>
<dd>The payload can be anything.</dd>
<dt class="optional">topic <span class="property-type">string</span></dt>
<dd>The node does not require a topic.</dd>
</dl>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload<span class="property-type">number</span></dt>
<dd>The output pin will send a true for 3 seconds then a fasle.</dd>
<dt class="optional">topic<span class="property-type">string</span></dt>
<dd>The node does not require a topic.</dd>
</dl>
<h3>Details</h3>
<p>This node can be used as a flip flop to momentarily activate / trigger further flows.
It can be used to interact with digital hardware output pins.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('pulse-reset',{
color:"#B9B6B8",
category: 'SMITHTEK',
defaults: {
name: {value:""},
},
inputs:1,
outputs: 1,
icon: "icon.png",
label: function() {
return this.name || 'pulse-reset';
}
});
</script>