Difference between revisions of "Wiring Editor"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 184: Line 184:
{"from":"valve4","to":"node","fromPort":"top3","toPort":"right23","points":[212.8125,223,212.8125,185,212.8125,79.25,166.5625,79.25,120.3125,79.25,110.3125,79.25]},
{"from":"valve4","to":"node","fromPort":"top3","toPort":"right23","points":[212.8125,223,212.8125,185,212.8125,79.25,166.5625,79.25,120.3125,79.25,110.3125,79.25]},
{"from":"valve42","to":"node","fromPort":"top3","toPort":"right21","points":[338.15625,204.375,338.15625,166.375,338.15625,59.25,237.234375,59.25,136.3125,59.25,110.3125,59.25]}
{"from":"valve42","to":"node","fromPort":"top3","toPort":"right21","points":[338.15625,204.375,338.15625,166.375,338.15625,59.25,237.234375,59.25,136.3125,59.25,110.3125,59.25]}
]}
</pre>
<pre class="wikidiagram" id="Heat_Bank_Thermal_Store_with_Boiler" style="display:none">
{ "class": "GraphLinksModel",
  "copiesArrays": true,
  "copiesArrayObjects": true,
  "linkFromPortIdProperty": "fromPort",
  "linkToPortIdProperty": "toPort",
  "nodeDataArray": [
{"name":"12v Power","color":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#e88600"},{"portId":"left2","portColor":"#000002"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"12VDC","size":"90 50","loc":"396.15625 -258.375"},
{"key":"node","name":"BEMS Hat","color":"palegreen","lineColor":"#000000","image":"/images/c/c1/C2a.svg","leftArray":[{"portId":"left0","portColor":"#000000"},{"portId":"left1","portColor":"#00ff00"},{"portId":"left2","portColor":"#000000"},{"portId":"left3","portColor":"#00ff00"},{"portId":"left4","portColor":"#000000"},{"portId":"left5","portColor":"#00ff00"},{"portId":"left6","portColor":"#000000"},{"portId":"left7","portColor":"#00ff00"},{"portId":"left8","portColor":"#000000"},{"portId":"left9","portColor":"#ffff00"},{"portId":"left10","portColor":"#000000"},{"portId":"left11","portColor":"#ffff00"},{"portId":"left12","portColor":"#000000"},{"portId":"left13","portColor":"#ffff00"},{"portId":"left14","portColor":"#000000"},{"portId":"left15","portColor":"#ffff00"},{"portId":"left16","portColor":"#000000"},{"portId":"left17","portColor":"#00ff00"},{"portId":"left18","portColor":"#000000"},{"portId":"left19","portColor":"#00ff00"},{"portId":"left20","portColor":"#000000"},{"portId":"left21","portColor":"#00ff00"},{"portId":"left22","portColor":"#000000"},{"portId":"left23","portColor":"#00ff00"}],"topArray":[{"portColor":"#ffc900","portId":"top01"},{"portColor":"#ffc900","portId":"top02"},{"portColor":"#ffc900","portId":"top03"},{"portId":"top1","portColor":"#000000"},{"portId":"top2","portColor":"#e88600"},{"portId":"top3","portColor":"#000002"},{"portColor":"#ffffff","portId":"top4"},{"portColor":"#ffffff","portId":"top5"}],"bottomArray":[{"portColor":"#000000","portId":"bottom0"},{"portId":"bottom1","portColor":"#00ffff"},{"portId":"bottom2","portColor":"#000000"},{"portId":"bottom3","portColor":"#00ffff"},{"portId":"bottom4","portColor":"#000000"},{"portId":"bottom5","portColor":"#00ffff"},{"portId":"bottom6","portColor":"#000000"},{"portId":"bottom7","portColor":"#00ffff"},{"portId":"bottom8","portColor":"#000000"},{"portId":"bottom9","portColor":"#40aceb"},{"portId":"bottom10","portColor":"#000000"},{"portId":"bottom11","portColor":"#40aceb"},{"portId":"bottom12","portColor":"#000001"},{"portId":"bottom13","portColor":"#40aceb"},{"portId":"bottom14","portColor":"#000001"},{"portId":"bottom15","portColor":"#40aceb"},{"portId":"bottom16","portColor":"#bf6ae3"},{"portId":"bottom17","portColor":"#bf6ae3"},{"portId":"bottom18","portColor":"#bf6ae3"},{"portId":"bottom19","portColor":"#bf6ae3"},{"portId":"bottom20","portColor":"#bf6ae3"},{"portId":"bottom21","portColor":"#bf6ae3"}],"rightArray":[{"portColor":"#000000","portId":"right0"},{"portColor":"#888891","portId":"right1"},{"portId":"right2","portColor":"#888890"},{"portId":"right3","portColor":"#000000"},{"portId":"right4","portColor":"#888889"},{"portId":"right5","portColor":"#888888"},{"portId":"right6","portColor":"#ddddba"},{"portId":"right7","portColor":"#ddddbb"},{"portId":"right8","portColor":"#8827e7"},{"portId":"right9","portColor":"#000000"},{"portId":"right10","portColor":"#8827e7"},{"portId":"right11","portColor":"#000001"},{"portId":"right12","portColor":"#8827e7"},{"portId":"right13","portColor":"#000001"},{"portId":"right14","portColor":"#8827e7"},{"portId":"right15","portColor":"#000000"},{"portId":"right16","portColor":"#0000ff"},{"portId":"right17","portColor":"#ff0000"},{"portId":"right18","portColor":"#0000ff"},{"portId":"right19","portColor":"#ff0000"},{"portId":"right20","portColor":"#0000ff"},{"portId":"right21","portColor":"#ff0000"},{"portId":"right22","portColor":"#0000ff"},{"portId":"right23","portColor":"#ff0000"}],"loc":"-7.6875 -35.75"},
{"name":"Htg\nPump (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000"},{"portId":"top1","portColor":"#0000ff","signalTypes":["#40aceb"]},{"portId":"top0","portColor":"#40aceb","signalTypes":["#0000ff"]}],"bottomArray":[],"key":"pump","size":"66 73","loc":"335.3440097296742 357.0384911290889","color":"blue","thickness":1},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc","size":"58 40","loc":"-493.3078371903842 -222.41044721296225"},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc2","size":"58 40","loc":"-492.64523437500014 -170.20717311261708"},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc3","size":"58 40","loc":"-487.72668467229636 -118.02697527131608"},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc4","size":"58 40","loc":"-483.7565818569124 44.53801321877779"},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc5","size":"58 40","loc":"-483.7565818569122 262.57587437166103"},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc6","size":"58 40","loc":"-486.93754228865214 316.90934055835396"},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc7","size":"58 40","loc":"-487.13273437500015 369.76068804026613"},
{"name":"Relay\nHeating\nElement","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#f6beb6"},{"portId":"left1","portColor":"#f6beb6"}],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#e88600","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"relay","size":"77 73","loc":"-65.0214528125 413.81991468750005","color":"red","thickness":1},
{"name":"Heat Meter","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#ddddba"},{"portId":"left1","portColor":"#ddddbb"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"meter","size":"67 54","loc":"400.9518296191404 -119.81093167968754"},
{"name":"PHE\nPump (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000"},{"portId":"top1","portColor":"#0000ff","signalTypes":["#40aceb"]},{"portId":"top0","portColor":"#40aceb","signalTypes":["#0000ff"]}],"bottomArray":[],"key":"pump2","size":"69 72","loc":"237.93324377551937 383.4589309983884","color":"blue","thickness":1},
{"name":"Relay\nHeating\nElement","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#f6beb6"},{"portId":"left1","portColor":"#f6beb6"}],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#e88600","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"relay2","size":"77 73","loc":"-66.31914489884787 500.76528447281294","thickness":1,"color":"green"},
{"name":"Pulsed Flow Sensor","fill":"#dbf6cb","pulsesPerLitre":"520","leftArray":[],"rightArray":[{"portId":"right1","portColor":"#ffc900"},{"portId":"right2","portColor":"#000000"},{"portId":"right0","portColor":"#00ffff","signalTypes":["#00ffff","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"FS","size":"82.107421875 53","loc":"-476.740507948467 106.83329784691938"},
{"name":"Control Valve (0-10V)","fill":"#febc58","color":"#ff9900","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#8827e7","signalTypes":["#ffff00","#e988e3"]},{"portId":"top1","portColor":"#e988e3","signalTypes":["#8827e7"]},{"portId":"top2","portColor":"#ff0000"},{"portId":"top3","portColor":"#000000"}],"bottomArray":[],"key":"valve2","size":"96 59","loc":"-633.0709737493104 301.22677554351935"},
{"name":"Immersion heaters \nsupplies ","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note","size":"150 150","loc":"-219.7974748515718 470.18708202434703"},
{"name":"Boiler Loading\nValve and\nSensors","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note2","size":"150 150","loc":"-612.9981770150025 426.06555108851654"},
{"name":"DHW\nSensors","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note3","size":"150 150","loc":"-609.1051007559585 52.330230220305396"},
{"name":"Store\nSensors","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note32","size":"150 150","loc":"-609.1051007559585 -176.06357697693483"},
{"name":"Pumps for Central\nHeating and DHW \nPlate Heat Exchanger","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note4","size":"181 116","loc":"287.5278258743034 493.4155367011336"}
],
  "linkDataArray": [
{"from":"12VDC","to":"node","fromPort":"left0","toPort":"top2","points":[342.40625,-263.375,324.40625,-263.375,-2.6875,-263.375,-2.6875,-230.5625,-2.6875,-197.75,-2.6875,-163.75]},
{"from":"12VDC","to":"node","fromPort":"left2","toPort":"top3","points":[342.40625,-253.375,332.40625,-253.375,7.3125,-253.375,7.3125,-221.5625,7.3125,-189.75,7.3125,-163.75]},
{"from":"pump","to":"node","fromPort":"top0","toPort":"right20","points":[345.3440097296742,312.0384911290889,345.3440097296742,282.0384911290889,345.3440097296742,49.25,244.8282548648371,49.25,144.3125,49.25,110.3125,49.25]},
{"from":"pump","to":"node","fromPort":"top1","toPort":"bottom11","points":[335.3440097296742,312.0384911290889,335.3440097296742,290.0384911290889,335.3440097296742,270.14424556454446,-2.6875,270.14424556454446,-2.6875,182.25,-2.6875,92.25]},
{"from":"pump","to":"node","fromPort":"top2","toPort":"bottom10","points":[325.3440097296742,312.0384911290889,325.3440097296742,298.0384911290889,325.3440097296742,286.14424556454446,-12.6875,286.14424556454446,-12.6875,190.25,-12.6875,92.25]},
{"from":"ntc","to":"node","fromPort":"right1","toPort":"left1","points":[-455.55783719038413,-217.41044721296225,-445.55783719038413,-217.41044721296225,-280.62266859519207,-217.41044721296225,-280.62266859519207,-140.75,-147.6875,-140.75,-125.6875,-140.75]},
{"from":"ntc","to":"node","fromPort":"right0","toPort":"left0","points":[-455.55783719038413,-227.41044721296225,-437.55783719038413,-227.41044721296225,-272.62266859519207,-227.41044721296225,-272.62266859519207,-150.75,-139.6875,-150.75,-125.6875,-150.75]},
{"from":"ntc2","to":"node","fromPort":"right1","toPort":"left3","points":[-454.8952343750002,-165.20717311261708,-444.8952343750002,-165.20717311261708,-309.9456442486694,-165.20717311261708,-309.9456442486694,-120.75,-163.6875,-120.75,-125.6875,-120.75]},
{"from":"ntc2","to":"node","fromPort":"right0","toPort":"left2","points":[-454.8952343750002,-175.20717311261708,-436.8952343750002,-175.20717311261708,-300.86179964423377,-175.20717311261708,-300.86179964423377,-130.75,-155.6875,-130.75,-125.6875,-130.75]},
{"from":"ntc3","to":"node","fromPort":"right1","toPort":"left5","points":[-449.9766846722964,-113.02697527131608,-439.9766846722964,-113.02697527131608,-346.28102266641224,-113.02697527131608,-346.28102266641224,-100.75,-179.6875,-100.75,-125.6875,-100.75]},
{"from":"ntc3","to":"node","fromPort":"right0","toPort":"left4","points":[-449.9766846722964,-123.02697527131608,-431.9766846722964,-123.02697527131608,-337.1971780619766,-123.02697527131608,-337.1971780619766,-110.75,-171.6875,-110.75,-125.6875,-110.75]},
{"from":"ntc4","to":"node","fromPort":"right1","toPort":"left7","points":[-446.00658185691236,49.53801321877779,-424.00658185691236,49.53801321877779,-327.8470409284562,49.53801321877779,-327.8470409284562,-80.75,-263.6875,-80.75,-125.6875,-80.75]},
{"from":"ntc4","to":"node","fromPort":"right0","toPort":"left6","points":[-446.00658185691236,39.53801321877779,-432.00658185691236,39.53801321877779,-335.8470409284562,39.53801321877779,-335.8470409284562,-90.75,-271.6875,-90.75,-125.6875,-90.75]},
{"from":"ntc5","to":"node","fromPort":"right1","toPort":"left17","points":[-446.0065818569119,267.57587437166103,-424.0065818569119,267.57587437166103,-178.8787435275259,267.57587437166103,-178.8787435275259,19.25,-183.6875,19.25,-125.6875,19.25]},
{"from":"ntc5","to":"node","fromPort":"right0","toPort":"left16","points":[-446.0065818569119,257.57587437166103,-432.0065818569119,257.57587437166103,-189.26028021830962,257.57587437166103,-189.26028021830962,9.25,-191.6875,9.25,-125.6875,9.25]},
{"from":"ntc6","to":"node","fromPort":"right1","toPort":"left19","points":[-449.18754228865214,321.90934055835396,-427.18754228865214,321.90934055835396,-160.71105431865453,321.90934055835396,-160.71105431865453,39.25,-167.6875,39.25,-125.6875,39.25]},
{"from":"ntc6","to":"node","fromPort":"right0","toPort":"left18","points":[-449.18754228865214,311.90934055835396,-435.18754228865214,311.90934055835396,-169.79489892309027,311.90934055835396,-169.79489892309027,29.25,-175.6875,29.25,-125.6875,29.25]},
{"from":"ntc7","to":"node","fromPort":"right0","toPort":"left20","points":[-449.38273437500015,364.76068804026613,-435.38273437500015,364.76068804026613,-152.92490180056677,364.76068804026613,-152.92490180056677,49.25,-159.6875,49.25,-125.6875,49.25]},
{"from":"node","to":"ntc7","fromPort":"left21","toPort":"right1","points":[-125.6875,59.25,-151.6875,59.25,-145.138749282479,59.25,-145.138749282479,374.76068804026613,-427.38273437500015,374.76068804026613,-449.38273437500015,374.76068804026613]},
{"from":"12VDC","to":"node","fromPort":"left0","toPort":"bottom21","points":[342.40625,-263.375,324.40625,-263.375,272.71810252156274,-263.375,272.71810252156274,102.25,97.3125,102.25,97.3125,92.25]},
{"from":"12VDC","to":"node","fromPort":"left0","toPort":"bottom18","points":[342.40625,-263.375,324.40625,-263.375,277.90887086695443,-263.375,277.90887086695443,126.25,67.3125,126.25,67.3125,92.25]},
{"from":"meter","to":"node","fromPort":"left0","toPort":"right6","points":[358.7018296191404,-124.81093167968754,340.7018296191404,-124.81093167968754,234.5071648095702,-124.81093167968754,234.5071648095702,-90.75,172.3125,-90.75,110.3125,-90.75]},
{"from":"meter","to":"node","fromPort":"left1","toPort":"right7","points":[358.7018296191404,-114.81093167968754,348.7018296191404,-114.81093167968754,243.96919743164062,-114.81093167968754,243.96919743164062,-80.75,180.3125,-80.75,110.3125,-80.75]},
{"from":"pump2","to":"node","fromPort":"top0","toPort":"right22","points":[247.93324377551937,338.9589309983884,247.93324377551937,308.9589309983884,247.93324377551937,69.25,188.1228718877597,69.25,128.3125,69.25,110.3125,69.25]},
{"from":"pump2","to":"node","fromPort":"top1","toPort":"bottom9","points":[237.93324377551937,338.9589309983884,237.93324377551937,316.9589309983884,237.93324377551937,299.6044654991942,-22.6875,299.6044654991942,-22.6875,198.25,-22.6875,92.25]},
{"from":"pump2","to":"node","fromPort":"top2","toPort":"bottom8","points":[227.93324377551937,338.9589309983884,227.93324377551937,324.9589309983884,227.93324377551937,315.6044654991942,-32.6875,315.6044654991942,-32.6875,206.25,-32.6875,92.25]},
{"from":"node","to":"relay","fromPort":"bottom14","toPort":"right0","points":[27.3125,92.25,27.3125,218.25,27.3125,408.81991468750005,11.64552359375,408.81991468750005,-4.0214528125000015,408.81991468750005,-18.0214528125,408.81991468750005]},
{"from":"node","to":"relay","fromPort":"bottom17","toPort":"right1","points":[57.3125,92.25,57.3125,242.25,57.3125,418.81991468750005,30.64552359375,418.81991468750005,3.9785471874999985,418.81991468750005,-18.0214528125,418.81991468750005]},
{"from":"relay2","to":"relay","fromPort":"right0","toPort":"right0","points":[-19.319144898847867,495.76528447281294,-5.319144898847867,495.76528447281294,-0.021452812500001528,495.76528447281294,-0.021452812500001528,452.2925995801565,-0.021452812500001528,408.81991468750005,-18.0214528125,408.81991468750005]},
{"from":"relay2","to":"node","fromPort":"right1","toPort":"bottom20","points":[-19.319144898847867,505.76528447281294,2.680855101152133,505.76528447281294,87.3125,505.76528447281294,87.3125,386.00764223640647,87.3125,266.25,87.3125,92.25]},
{"from":"FS","to":"node","fromPort":"right0","toPort":"bottom1","points":[-426.93679701096676,116.83329784691938,-396.93679701096676,116.83329784691938,-102.6875,116.83329784691938,-102.6875,115.54164892345969,-102.6875,114.25,-102.6875,92.25]},
{"from":"FS","to":"node","fromPort":"right1","toPort":"top03","points":[-426.93679701096676,96.83329784691938,-412.93679701096676,96.83329784691938,-257.3121485054834,96.83329784691938,-257.3121485054834,-193.75,-22.6875,-193.75,-22.6875,-163.75]},
{"from":"FS","to":"node","fromPort":"right2","toPort":"bottom0","points":[-426.93679701096676,106.83329784691938,-404.93679701096676,106.83329784691938,-112.6875,106.83329784691938,-112.6875,106.54164892345969,-112.6875,106.25,-112.6875,92.25]},
{"from":"valve2","to":"node","fromPort":"top1","toPort":"right14","points":[-638.0709737493104,262.97677554351935,-638.0709737493104,236.97677554351935,-638.0709737493104,176.64833525411558,192.3125,176.64833525411558,192.3125,-10.75,110.3125,-10.75]},
{"from":"valve2","to":"node","fromPort":"top0","toPort":"left9","points":[-648.0709737493104,262.97677554351935,-648.0709737493104,228.97677554351935,-648.0709737493104,228,-648.0709737493104,228,-648.0709737493104,164.96910647698394,-225.59565863605235,164.96910647698394,-225.59565863605235,-60.75,-247.6875,-60.75,-125.6875,-60.75]},
{"from":"valve2","to":"node","fromPort":"top3","toPort":"right15","points":[-618.0709737493104,262.97677554351935,-618.0709737493104,252.97677554351935,-618.0709737493104,200.0067928083788,184.3125,200.0067928083788,184.3125,-0.75,110.3125,-0.75]},
{"from":"valve2","to":"node","fromPort":"top2","toPort":"right23","points":[-628.0709737493104,262.97677554351935,-628.0709737493104,244.97677554351935,-628.0709737493104,188.61338777175968,120.3125,188.61338777175968,120.3125,79.25,110.3125,79.25]}
]}
]}
</pre>
</pre>

Revision as of 19:19, 24 June 2022

Concons1.png

Data

Contains invisible JSON data driving this page.




See Also

Ports and Colours

Diagrams are based around nodes (devices) with ports for making connections.

To enable automatic wiring, port types are required as well as rules about how they can be connected.

Colours tend to be the most commonly used identifier for types of connections, with in computer language is a hex value representing red, green and blue. #000000 is black, #ff0000 is red, #00ff00 is green, #ffffff is white, and so on.

However we require another level of distinction as we may desire to wire to a particular GND for example, or to give communications a plus and minus. This is achieved by using the last digit of the colour as a variation, providing 1,048,576 colours (or signal levels), each with 16 variations.

Taking GND (black) for example. #000000 is the default black and used for ground connections. We may however use #00000f for a power supply ground, or #000001 for a less popular ground that can be used if needed in preference to a popular ground.

Compareblk.png

One can take this to an extreme and give every signal level a unique colour value. This may well feature in future live wiring systems.

By default, ports connect to ports of the same colour. However, a 0-10V OUT cannot connect to another 0-10V OUT so we specify compatible ports with a list of compatible colours called signalTypes, in order of preference. If a preferred port type is free it will be used, if not then the next in the list will be tried, and so on. You can see this in use in the following data for a room thermostat, where it is used to allow connection to both a dry contact #00ffffff and a universal input #ffff00.

{"name":"Room Thermostat","color":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ffff","signalTypes":["#00ffff","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"roomstat","size":"78.78515625 47"}

Rststwire.png Rststwire2.png

How to Use in Articles

The following two elements have been given an id (view in the source) that can then be passed to a diagram using an iframe tag.

The second element has also been hidden from view.

This way it is possible to create a design on this page and then include it into articles using pure JSON.

Versions

Version
wiring8
  • Context menus for links
  • Context menus for changing node and link line type, colour, and thickness
  • Grouping on nodes using Ctrl+G with group context menus
wiring7
  • Port labels shown on hover
wiring6
  • Palette reduced in width
  • Download PNG
wiringFrame basic view with download SVG button

Improvements

  • Number terminals
  • Fix widths with top/bottom terminals
  • Hover text over terminals
  • Change colour of blocks
  • Position terminals (drag along sides)
  • Menu to change line thickness, type, colour, arrows.
  • Optional wire labels = controller number + terminal number (e.g. 101)