Difference between revisions of "Wiring Editor"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 48: Line 48:
]
]
</pre>
</pre>
<pre class="wikidiagram" id="BEMS_Hat" style="display:none">
{ "class": "GraphLinksModel",
  "copiesArrays": true,
  "copiesArrayObjects": true,
  "linkFromPortIdProperty": "fromPort",
  "linkToPortIdProperty": "toPort",
  "nodeDataArray": [
{"key":"node","name":"BEMS Hat","fill":"palegreen","image":"/images/c/c1/C2a.svg","leftArray":[{"portId":"left0","portColor":"#000000","figure":"Output"},{"portId":"left1","portColor":"#00ff00","figure":"Input"},{"portId":"left2","portColor":"#000000","figure":"Output"},{"portId":"left3","portColor":"#00ff00","figure":"Input"},{"portId":"left4","portColor":"#000000","figure":"Output"},{"portId":"left5","portColor":"#00ff00","figure":"Input"},{"portId":"left6","portColor":"#000000","figure":"Output"},{"portId":"left7","portColor":"#00ff00","figure":"Input"},{"portId":"left8","portColor":"#000000","figure":"Output"},{"portId":"left9","portColor":"#fffffe","figure":"Input"},{"portId":"left10","portColor":"#000000","figure":"Output"},{"portId":"left11","portColor":"#fffffe","figure":"Input"},{"portId":"left12","portColor":"#000000","figure":"Output"},{"portId":"left13","portColor":"#fffffe","figure":"Input"},{"portId":"left14","portColor":"#000000","figure":"Output"},{"portId":"left15","portColor":"#fffffe","figure":"Input"},{"portId":"left16","portColor":"#000000","figure":"Output"},{"portId":"left17","portColor":"#00ff00","figure":"Input"},{"portId":"left18","portColor":"#000000","figure":"Output"},{"portId":"left19","portColor":"#00ff00","figure":"Input"},{"portId":"left20","portColor":"#000000","figure":"Output"},{"portId":"left21","portColor":"#00ff00","figure":"Input"},{"portId":"left22","portColor":"#000000","figure":"Output"},{"portId":"left23","portColor":"#00ff00","figure":"Input"}],"topArray":[{"portColor":"#ffc900","portId":"top01","figure":"Output"},{"portColor":"#ffc900","portId":"top02","figure":"Output"},{"portColor":"#ffc900","portId":"top03","figure":"Output"},{"portId":"top1","portColor":"#000000","figure":"Output"},{"portId":"top2","portColor":"#e88600","figure":"Input"},{"portId":"top3","portColor":"#000002","figure":"Input"},{"portColor":"#ffffff","portId":"top4"},{"portColor":"#ffffff","portId":"top5"}],"bottomArray":[{"portColor":"#000000","portId":"bottom0","figure":"Output"},{"portId":"bottom1","portColor":"#00ffff","figure":"Input"},{"portId":"bottom2","portColor":"#000000","figure":"Output"},{"portId":"bottom3","portColor":"#00ffff","figure":"Input"},{"portId":"bottom4","portColor":"#000000","figure":"Output"},{"portId":"bottom5","portColor":"#00ffff","figure":"Input"},{"portId":"bottom6","portColor":"#000000","figure":"Output"},{"portId":"bottom7","portColor":"#00ffff","figure":"Input"},{"portId":"bottom8","portColor":"#000000","figure":"Output"},{"portId":"bottom9","portColor":"#40aceb","figure":"Input"},{"portId":"bottom10","portColor":"#000000","figure":"Output"},{"portId":"bottom11","portColor":"#40aceb","figure":"Input"},{"portId":"bottom12","portColor":"#000000","figure":"Output"},{"portId":"bottom13","portColor":"#40aceb","figure":"Input"},{"portId":"bottom14","portColor":"#000000","figure":"Output"},{"portId":"bottom15","portColor":"#40aceb","figure":"Input"},{"portId":"bottom16","portColor":"#bf6ae3","figure":"Output"},{"portId":"bottom17","portColor":"#bf6ae3","figure":"Input"},{"portId":"bottom18","portColor":"#bf6ae3","figure":"Output"},{"portId":"bottom19","portColor":"#bf6ae3","figure":"Output"},{"portId":"bottom20","portColor":"#bf6ae3","figure":"Input"},{"portId":"bottom21","portColor":"#bf6ae3","figure":"Output"}],"rightArray":[{"portColor":"#000000","portId":"right0","figure":"Circle"},{"portColor":"#888891","figure":"Circle","portId":"right1"},{"portId":"right2","portColor":"#888890","figure":"Circle"},{"portId":"right3","portColor":"#ff0000","figure":"Circle"},{"portId":"right4","portColor":"#888889","figure":"Circle"},{"portId":"right5","portColor":"#888888","figure":"Circle"},{"portId":"right6","portColor":"#ddddba","figure":"Circle"},{"portId":"right7","portColor":"#ddddbb","figure":"Circle"},{"portId":"right8","portColor":"#ffff00","figure":"Output"},{"portId":"right9","portColor":"#000000","figure":"Output"},{"portId":"right10","portColor":"#ffff00","figure":"Output"},{"portId":"right11","portColor":"#000000","figure":"Output"},{"portId":"right12","portColor":"#ffff00","figure":"Output"},{"portId":"right13","portColor":"#000000","figure":"Output"},{"portId":"right14","portColor":"#ffff00","figure":"Output"},{"portId":"right15","portColor":"#000000","figure":"Output"},{"portId":"right16","portColor":"#40aceb","figure":"Output"},{"portId":"right17","portColor":"#ff0000","figure":"Output"},{"portId":"right18","portColor":"#40aceb","figure":"Output"},{"portId":"right19","portColor":"#ff0000","figure":"Output"},{"portId":"right20","portColor":"#40aceb","figure":"Output"},{"portId":"right21","portColor":"#ff0000","figure":"Output"},{"portId":"right22","portColor":"#40aceb","figure":"Output"},{"portId":"right23","portColor":"#ff0000","figure":"Output"}],"loc":"422.90625 -96.625","size":"231 252"},
{"name":"2 x RS485 Lines \nCan be used for:\nModbus Master\nModbus Slave\nBespoke Protocols\n\nUp to 32 devices\nper channel\n","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[{"portId":"left0","portColor":"#ffffff"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"RS485-1","size":"150 192","loc":"846.1009681339939 -274.12413793680145"},
{"name":"PWM Inputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"}],"bottomArray":[],"key":"PWM","size":"150 150","loc":"269.09599836203995 328.4165170864245"},
{"name":"NTC 10K\nThermister\nInputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#ffffff"}],"topArray":[],"bottomArray":[],"key":"NTC10K","size":"150 150","loc":"-10.126289341254164 -274.4408940047374"},
{"name":"Universal Inputs\nCan take either:\nNTC1K\nNTC10K\n0-10V Input\n100Hz Pulsed Input\nVolt-Free Contact","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#ffffff"}],"topArray":[],"bottomArray":[],"key":"note3","size":"150 173","loc":"-15.218237387098569 -101.97988160079979"},
{"name":"NTC 10K\nThermister\nInputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#ffffff"}],"topArray":[],"bottomArray":[],"key":"NTC10K2","size":"150 150","loc":"-13.126289341254164 77.55910599526317"},
{"name":"100Hz Pulsed\nInputs, or\nVolt-Free \nContacts","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top1","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top5","portColor":"#ffffff"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top0","portColor":"#ffffff"}],"bottomArray":[],"key":"PWM2","size":"150 150","loc":"80.93639262733618 278.18541231692376"},
{"name":"Change-Over\nRelays\n10A 24V","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"},{"portId":"top1","portColor":"#ffffff"}],"bottomArray":[],"key":"PWM22","size":"150 150","loc":"444.7811383931506 328.05557670240415"},
{"name":"M-Bus Master\nfor reading:\nHeat Meters\nCooling Meters\nWater Meters\nElectricity Meters","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[{"portId":"left0","portColor":"#ffffff"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"M-Bus","size":"150 157","loc":"842.1009681339939 -91.62413793680145"},
{"name":"0-10V \nOutputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[{"portId":"left0","portColor":"#ffffff"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"0-10V OUT","size":"150 115","loc":"838.1009681339939 57.375862063198554"},
{"name":"PWM Sinking \nOutputs","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[{"portId":"left0","portColor":"#ffffff"},{"portId":"left1","portColor":"#ffffff"},{"portId":"left2","portColor":"#ffffff"},{"portId":"left3","portColor":"#ffffff"},{"portId":"left4","portColor":"#ffffff"},{"portId":"left5","portColor":"#ffffff"},{"portId":"left6","portColor":"#ffffff"},{"portId":"left7","portColor":"#ffffff"},{"portId":"left8","portColor":"#ffffff"},{"portId":"left9","portColor":"#ffffff"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"0-10V OUT2","size":"150 133","loc":"835.1009681339939 201.37586206319855"},
{"name":"24VDC Power\nwith Battery\nBackup, allows\nequipment to\nfail-safe\nduring power loss","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top5","portColor":"#ffffff"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top7","portColor":"#ffffff"}],"bottomArray":[],"key":"24VDC","size":"150 150","loc":"642.7422153763337 278.16008369747976"},
{"name":"The board is\npowered from\na 12VDC supply","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top5","portColor":"#ffffff"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top7","portColor":"#ffffff"}],"bottomArray":[{"portId":"bottom0","portColor":"#ffffff"}],"key":"12VDC","size":"150 150","loc":"517.7352528763336 -394.88991630252093"},
{"name":"5VDC Power\nwith Battery\nBackup","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffffff"},{"portId":"top1","portColor":"#ffffff"},{"portId":"top2","portColor":"#ffffff"},{"portId":"top3","portColor":"#ffffff"},{"portId":"top4","portColor":"#ffffff"},{"portId":"top5","portColor":"#ffffff"},{"portId":"top6","portColor":"#ffffff"},{"portId":"top7","portColor":"#ffffff"}],"bottomArray":[{"portId":"bottom0","portColor":"#ffffff"}],"key":"5VDC","size":"150 150","loc":"310.94221537633337 -392.7899163025209"}
],
  "linkDataArray": [
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom9","points":[269.09599836203995,244.1665170864245,269.09599836203995,234.1665170864245,269.09599836203995,195.15828401687193,407.15625,195.15828401687193,407.15625,124.625,407.15625,38.625],"dash":null,"thickness":1},
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom11","points":[269.09599836203995,244.1665170864245,269.09599836203995,234.1665170864245,269.09599836203995,195.15828401687193,428.15625,195.15828401687193,428.15625,140.625,428.15625,38.625],"dash":null,"thickness":1},
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom13","points":[269.09599836203995,244.1665170864245,269.09599836203995,234.1665170864245,269.09599836203995,195.15828401687193,449.15625,195.15828401687193,449.15625,156.625,449.15625,38.625],"dash":null,"thickness":1},
{"from":"PWM","to":"node","fromPort":"top0","toPort":"bottom15","points":[269.09599836203995,244.1665170864245,269.09599836203995,234.1665170864245,269.09599836203995,195.1428363781917,470.15625,195.1428363781917,470.15625,172.625,470.15625,38.625],"dash":null,"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left1","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.24515179423352,-274.4408940047374,180.24515179423352,-206.875,276.15625,-206.875,298.15625,-206.875],"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left3","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.24515179423352,-274.4408940047374,180.24515179423352,-185.875,260.15625,-185.875,298.15625,-185.875],"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left5","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.13998032937292,-274.4408940047374,180.13998032937292,-164.875,244.15625,-164.875,298.15625,-164.875],"thickness":1},
{"from":"NTC10K","to":"node","fromPort":"right0","toPort":"left7","points":[74.12371065874584,-274.4408940047374,84.12371065874584,-274.4408940047374,180.24515179423352,-274.4408940047374,180.24515179423352,-143.875,228.15625,-143.875,298.15625,-143.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left9","points":[69.03176261290164,-101.97988160079976,83.03176261290164,-101.97988160079976,235.43892460760458,-101.97988160079976,235.43892460760458,-122.875,176.15625,-122.875,298.15625,-122.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left11","points":[69.03176261290164,-101.97988160079976,79.03176261290164,-101.97988160079976,153.5940063064508,-101.97988160079976,153.5940063064508,-101.875,196.15625,-101.875,298.15625,-101.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left13","points":[69.03176261290164,-101.97988160079976,79.03176261290164,-101.97988160079976,235.43892460760458,-101.97988160079976,235.43892460760458,-80.875,180.15625,-80.875,298.15625,-80.875],"thickness":1},
{"from":"note3","to":"node","fromPort":"right0","toPort":"left15","points":[69.03176261290164,-101.97988160079976,79.03176261290164,-101.97988160079976,235.1633335842996,-101.97988160079976,235.1633335842996,-59.875,164.15625,-59.875,298.15625,-59.875],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left17","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.63998032937292,77.55910599526317,178.63998032937292,-38.875,240.15625,-38.875,298.15625,-38.875],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left19","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.51351659027998,77.55910599526317,178.51351659027998,-17.875,256.15625,-17.875,298.15625,-17.875],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left21","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.51351659027998,77.55910599526317,178.51351659027998,3.125,272.15625,3.125,298.15625,3.125],"thickness":1},
{"from":"NTC10K2","to":"node","fromPort":"right0","toPort":"left23","points":[71.12371065874584,77.55910599526317,85.12371065874584,77.55910599526317,178.94981327789083,77.55910599526317,178.94981327789083,24.125,288.15625,24.125,298.15625,24.125],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom1","points":[112.43639262733618,193.93541231692376,112.43639262733618,183.93541231692376,112.43639262733618,154.34340869390252,323.15625,154.34340869390252,323.15625,60.625,323.15625,38.625],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom3","points":[112.43639262733618,193.93541231692376,112.43639262733618,183.93541231692376,112.43639262733618,154.34340869390252,344.15625,154.34340869390252,344.15625,76.625,344.15625,38.625],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom5","points":[112.43639262733618,193.93541231692376,112.43639262733618,183.93541231692376,112.43639262733618,154.28020615846188,365.15625,154.28020615846188,365.15625,92.625,365.15625,38.625],"thickness":1},
{"from":"PWM2","to":"node","fromPort":"top0","toPort":"bottom7","points":[112.43639262733618,193.93541231692376,112.43639262733618,183.93541231692376,112.43639262733618,154.34340869390252,386.15625,154.34340869390252,386.15625,108.625,386.15625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top0","toPort":"bottom16","points":[439.5311383931506,243.80557670240415,439.5311383931506,225.80557670240415,439.5311383931506,225.80557670240415,480.65625,225.80557670240415,480.65625,180.625,480.65625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top0","toPort":"bottom17","points":[439.5311383931506,243.80557670240415,439.5311383931506,225.80557670240415,439.5311383931506,225.80557670240415,491.15625,225.80557670240415,491.15625,188.625,491.15625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top0","toPort":"bottom18","points":[439.5311383931506,243.80557670240415,439.5311383931506,225.80557670240415,439.5311383931506,225.80557670240415,501.65625,225.80557670240415,501.65625,196.625,501.65625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top1","toPort":"bottom19","points":[450.0311383931506,243.80557670240415,450.0311383931506,233.80557670240415,450.0311383931506,233.80557670240415,512.15625,233.80557670240415,512.15625,204.625,512.15625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top1","toPort":"bottom20","points":[450.0311383931506,243.80557670240415,450.0311383931506,233.80557670240415,450.0311383931506,233.80557670240415,522.65625,233.80557670240415,522.65625,212.625,522.65625,38.625],"thickness":1},
{"from":"PWM22","to":"node","fromPort":"top1","toPort":"bottom21","points":[450.0311383931506,243.80557670240415,450.0311383931506,233.80557670240415,450.0311383931506,233.80557670240415,533.15625,233.80557670240415,533.15625,220.625,533.15625,38.625],"thickness":1},
{"from":"RS485-1","to":"node","fromPort":"left0","toPort":"right2","points":[761.8509681339939,-274.12413793680145,751.8509681339939,-274.12413793680145,654.7536090669969,-274.12413793680145,654.7536090669969,-196.375,577.65625,-196.375,547.65625,-196.375],"thickness":1},
{"from":"RS485-1","to":"node","fromPort":"left0","toPort":"right1","points":[761.8509681339939,-274.12413793680145,751.8509681339939,-274.12413793680145,654.7536090669969,-274.12413793680145,654.7536090669969,-206.875,569.65625,-206.875,547.65625,-206.875],"thickness":1},
{"from":"RS485-1","to":"node","fromPort":"left0","toPort":"right4","points":[761.8509681339939,-274.12413793680145,751.8509681339939,-274.12413793680145,654.7536090669969,-274.12413793680145,654.7536090669969,-175.375,593.65625,-175.375,547.65625,-175.375],"thickness":1},
{"from":"RS485-1","to":"node","fromPort":"left0","toPort":"right5","points":[761.8509681339939,-274.12413793680145,751.8509681339939,-274.12413793680145,654.7536090669969,-274.12413793680145,654.7536090669969,-164.875,601.65625,-164.875,547.65625,-164.875],"thickness":1},
{"from":"M-Bus","to":"node","fromPort":"left0","toPort":"right6","points":[757.8509681339939,-91.62413793680145,743.8509681339939,-91.62413793680145,740,-91.62413793680145,740,-154.375,693.65625,-154.375,547.65625,-154.375],"thickness":1},
{"from":"M-Bus","to":"node","fromPort":"left0","toPort":"right7","points":[757.8509681339939,-91.62413793680145,743.8509681339939,-91.62413793680145,740,-91.62413793680145,740,-143.875,685.65625,-143.875,547.65625,-143.875],"thickness":1},
{"from":"0-10V OUT","to":"node","fromPort":"left0","toPort":"right8","points":[753.8509681339939,57.375862063198554,739.8509681339939,57.375862063198554,699.968147485234,57.375862063198554,699.968147485234,-133.375,677.65625,-133.375,547.65625,-133.375],"thickness":1},
{"from":"0-10V OUT2","to":"node","fromPort":"left0","toPort":"right22","points":[750.8509681339939,154.12586206319855,736.8509681339939,154.12586206319855,654.3965669305849,154.12586206319855,654.3965669305849,13.625,565.65625,13.625,547.65625,13.625],"thickness":1},
{"from":"0-10V OUT2","to":"node","fromPort":"left0","toPort":"right20","points":[750.8509681339939,154.12586206319855,736.8509681339939,154.12586206319855,654.3965669305849,154.12586206319855,654.3965669305849,-7.375,581.65625,-7.375,547.65625,-7.375],"thickness":1},
{"from":"0-10V OUT2","to":"node","fromPort":"left0","toPort":"right18","points":[750.8509681339939,154.12586206319855,736.8509681339939,154.12586206319855,654.3965669305849,154.12586206319855,654.3965669305849,-28.375,597.65625,-28.375,547.65625,-28.375],"thickness":1},
{"from":"0-10V OUT2","to":"node","fromPort":"left0","toPort":"right16","points":[750.8509681339939,154.12586206319855,736.8509681339939,154.12586206319855,654.3474806266431,154.12586206319855,654.3474806266431,-49.375,613.65625,-49.375,547.65625,-49.375],"thickness":1},
{"from":"0-10V OUT","to":"node","fromPort":"left0","toPort":"right10","points":[753.8509681339939,57.375862063198554,739.8509681339939,57.375862063198554,699.9524651753852,57.375862063198554,699.9524651753852,-112.375,661.65625,-112.375,547.65625,-112.375],"thickness":1},
{"from":"0-10V OUT","to":"node","fromPort":"left0","toPort":"right12","points":[753.8509681339939,57.375862063198554,739.8509681339939,57.375862063198554,699.968147485234,57.375862063198554,699.968147485234,-91.375,645.65625,-91.375,547.65625,-91.375],"thickness":1},
{"from":"0-10V OUT","to":"node","fromPort":"left0","toPort":"right14","points":[753.8509681339939,57.375862063198554,739.8509681339939,57.375862063198554,699.968147485234,57.375862063198554,699.968147485234,-70.375,629.65625,-70.375,547.65625,-70.375],"thickness":1},
{"from":"node","to":"24VDC","fromPort":"right17","toPort":"top1","points":[547.65625,-38.875,605.65625,-38.875,616.4922153763337,-38.875,616.4922153763337,66.51754184873988,616.4922153763337,171.91008369747976,616.4922153763337,193.91008369747976],"thickness":1},
{"from":"24VDC","to":"node","fromPort":"top1","toPort":"right19","points":[616.4922153763337,193.91008369747976,616.4922153763337,171.91008369747976,616.4922153763337,-17.875,603.0742326881668,-17.875,589.65625,-17.875,547.65625,-17.875],"thickness":1},
{"from":"24VDC","to":"node","fromPort":"top1","toPort":"right21","points":[616.4922153763337,193.91008369747976,616.4922153763337,171.91008369747976,616.4922153763337,3.125,595.0742326881668,3.125,573.65625,3.125,547.65625,3.125],"thickness":1},
{"from":"24VDC","to":"node","fromPort":"top1","toPort":"right23","points":[616.4922153763337,193.91008369747976,616.4922153763337,171.91008369747976,616.4922153763337,24.125,587.0742326881668,24.125,557.65625,24.125,547.65625,24.125],"thickness":1},
{"from":"12VDC","to":"node","fromPort":"bottom0","toPort":"top2","points":[517.7352528763336,-310.63991630252093,517.7352528763336,-296.63991630252093,517.7352528763336,-267.1264907226567,428.15625,-267.1264907226567,428.15625,-265.875,428.15625,-231.875],"thickness":1},
{"from":"5VDC","to":"node","fromPort":"bottom0","toPort":"top03","points":[310.94221537633337,-308.5399163025209,310.94221537633337,-298.5399163025209,310.94221537633337,-264.2074581512604,407.15625,-264.2074581512604,407.15625,-261.875,407.15625,-231.875],"thickness":1},
{"from":"5VDC","to":"node","fromPort":"bottom0","toPort":"top02","points":[310.94221537633337,-308.5399163025209,310.94221537633337,-298.5399163025209,310.94221537633337,-264.03566558446875,396.65625,-264.03566558446875,396.65625,-253.875,396.65625,-231.875],"thickness":1},
{"from":"5VDC","to":"node","fromPort":"bottom0","toPort":"top01","points":[310.94221537633337,-308.5399163025209,310.94221537633337,-298.5399163025209,310.94221537633337,-264.03566558446875,386.15625,-264.03566558446875,386.15625,-245.875,386.15625,-231.875],"thickness":1}
]}
</pre>


<pre class="wikidiagram" id="wiring1" style="display:none">
<pre class="wikidiagram" id="wiring1" style="display:none">

Revision as of 11:01, 26 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
wiring10
  • Node shapes added to context menu
wiring9
  • Port selection added to port context menu
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)