UNPKG

smithtek-node-red-tools

Version:

Set of tools for the Mako PLC, or any PLC

94 lines (76 loc) 3.26 kB
<script type="text/html" data-template-name="flipflop"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> <p>Enter the time in ms. .</p> <div class="form-row"> <label for="node-input-var1"><i class="icon-tag"></i> Time On </label> <input type="text" id="node-input-var1" placeholder="Leading Edge Time"> </div> <div class="form-row"> <label for="node-input-var2"><i class="icon-tag"></i> delay Time Off</label> <input type="text" id="node-input-var2" placeholder="Falling Edge Time"> </div> </script> <script type="text/html" data-help-name="flipflop"> <p>The Flip Flop node pulses a "on" "off" signal to nodes wired to the output pin. An example use case would be to activate a physical pulse relay, trigger a roller door, pulse the direction of a motor or pump, activate pilot lamps on switchboards. when the node receives a any payload it sends a Bool True then a Bool False The timming between the true & false is configurable in the settings.</p> <h3>Inputs</h3> <dl class="message-properties"> <dt>payload <span class="property-type">any message</span> </dt> <h3>Details</h3> <p>the input pin can receive any message to activate the pulse output</p> <h3>Outputs</h3> <dl class="message-properties"> <dt>payload <span class="property-type">Bool | True | False</span> </dt> <h3>Details</h3> <p>The output pin will first send a Bool True followed by a Bool False .</p> <h3>Settings</h3> <dl class="message-properties"> <dt>Units <span class="property-type">Milliseconds</span> </dt> <h3>Time On</h3> <p> The time setting is in ms. It will trigger the Bool True when it has timed out. So if you put 2000ms = "2 seconds", when the node is triggered it will not send the Bool true until 2 seconds has passed. </p> <h3>Settings</h3> <dl class="message-properties"> <dt>Units <span class="property-type">Milliseconds</span> </dt> <h3>Time Off</h3> <p> The time setting is in ms. It will trigger the Bool False when it has timed out. So if you put 5000ms = "5 seconds", when the node is triggered it will not send the Bool false until 5 seconds has passed. </p> <dl class="message-properties"> <dt>Contact </dt> <h3>info@smithtek.com.au</h3> <a href="https://www.smithtek.com.au/" target="_blank">Visit Smithtek</a> </script> <script type="text/javascript"> RED.nodes.registerType('flipflop',{ category: 'flipflop', color: '#B9B6B8', defaults: { name: {value:""}, var1: {value:""}, var2: {value:""}, }, inputs:1, outputs:1, icon: "icon.png", label: function() { return this.name||"flipFlop"; } }); </script>