Difference between revisions of "Wiring Editor"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 221: Line 221:
   "linkToPortIdProperty": "toPort",
   "linkToPortIdProperty": "toPort",
   "nodeDataArray": [
   "nodeDataArray": [
{"name":"12v Power","color":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#e88600"},{"portId":"left2","portColor":"#000002"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"12VDC","size":"90 50","loc":"384.15625 -260.375"},
{"name":"12v Power","color":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#e88600"},{"portId":"left2","portColor":"#000002"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"12VDC","size":"90 50","loc":"427.489501953125 -259.2638854980469"},
{"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"},
{"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":"-2.1319580078125 -27.97222900390625"},
{"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":"-598.84375 -258.875"},
{"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":"-598.84375 -258.875"},
{"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":"-602.6875 -205.41328125"},
{"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":"-602.6875 -205.41328125"},
Line 229: Line 229:
{"name":"Heat Meter","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#ddddba"},{"portId":"left1","portColor":"#ddddbb"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"meter","size":"67 54","loc":"367.15625 -16.875"},
{"name":"Heat Meter","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#ddddba"},{"portId":"left1","portColor":"#ddddbb"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"meter","size":"67 54","loc":"367.15625 -16.875"},
{"name":"Twin Plate HIU\nfor DHW and\nCentral Heating","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note","size":"150 136","loc":"-851.84375 -224.875"},
{"name":"Twin Plate HIU\nfor DHW and\nCentral Heating","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note","size":"150 136","loc":"-851.84375 -224.875"},
{"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":"-605.84375 -85.875"},
{"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":"-601.3993530273438 -95.875"},
{"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":"-600.84375 49.125"},
{"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":"-600.84375 49.125"},
{"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":"-582.84375 165.125"},
{"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":"-582.84375 165.125"},
{"name":"Control Valve (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000"},{"portId":"top1","portColor":"#0000ff","signalTypes":["#40aceb"]},{"portId":"top0","portColor":"#40aceb","signalTypes":["#0000ff"]},{"portId":"top3","portColor":"#ff0000"}],"bottomArray":[],"key":"valve4","size":"90 52","loc":"197.8125 257.75"},
{"name":"Control Valve (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000"},{"portId":"top1","portColor":"#0000ff","signalTypes":["#40aceb"]},{"portId":"top0","portColor":"#40aceb","signalTypes":["#0000ff"]},{"portId":"top3","portColor":"#ff0000"}],"bottomArray":[],"key":"valve4","size":"90 52","loc":"252.2569580078125 291.08331298828125"},
{"name":"Control Valve (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000"},{"portId":"top1","portColor":"#0000ff","signalTypes":["#40aceb"]},{"portId":"top0","portColor":"#40aceb","signalTypes":["#0000ff"]},{"portId":"top3","portColor":"#ff0000"}],"bottomArray":[],"key":"valve42","size":"90 52","loc":"323.15625 239.125"},
{"name":"Control Valve (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000"},{"portId":"top1","portColor":"#0000ff","signalTypes":["#40aceb"]},{"portId":"top0","portColor":"#40aceb","signalTypes":["#0000ff"]},{"portId":"top3","portColor":"#ff0000"}],"bottomArray":[],"key":"valve42","size":"90 52","loc":"389.8228759765625 263.5694580078125"},
{"name":"Pump (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":"57.3212890625 52","loc":"60.15625 289.125"},
{"name":"Pump (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":"57.3212890625 52","loc":"109.045166015625 319.125"},
{"name":"Timeclock","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ffff","signalTypes":["#00ffff","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"timer","size":"78.78515625 47","loc":"-339.84375 235.125"},
{"name":"Timeclock","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ffff","signalTypes":["#00ffff","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"timer","size":"78.78515625 47","loc":"-339.84375 235.125"},
{"name":"Modbus Room Thermostats","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#888891"},{"portId":"left1","portColor":"#888890"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"modbus1","size":"105 52","loc":"387.5625 -122"},
{"name":"Modbus Room Thermostats","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#888891"},{"portId":"left1","portColor":"#888890"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"modbus1","size":"105 65","loc":"429.7847900390625 -113.27777099609375"},
{"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":"-597.4375 106"},
{"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":"-597.4375 106"},
{"name":"Modbus Master","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#888891"},{"portId":"left1","portColor":"#888890"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"modbus12","size":"67 54","loc":"369.15625 -188.875"},
{"name":"Modbus Master","fill":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#888891"},{"portId":"left1","portColor":"#888890"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"modbus12","size":"67 54","loc":"411.3785400390625 -186.65277099609375"},
{"name":"The system deploys two \nModbus lines.\n\nOne for the local room \nthermostat circuit with \nmultiple zones to control.\n\nThe other is for a Modbus\nuplink to a remote HIU \nsupervisor or BMS system","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note2","size":"214 226","loc":"-826.734375 -30"},
{"name":"The system deploys two \nModbus lines.\n\nOne for the local room \nthermostat circuit with \nmultiple zones to control.\n\nThe other is for a Modbus\nuplink to a remote HIU \nsupervisor or BMS system","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note2","size":"214 226","loc":"-826.734375 -30"},
{"name":"Prepay Isolation","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ffff","signalTypes":["#00ffff","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"prepay","size":"78.78515625 47","loc":"-243.84375 312.125"},
{"name":"Prepay Isolation","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ffff","signalTypes":["#00ffff","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"prepay","size":"78.78515625 47","loc":"-243.84375 312.125"},
Line 244: Line 244:
],
],
   "linkDataArray": [
   "linkDataArray": [
{"from":"12VDC","to":"node","fromPort":"left0","toPort":"top2","points":[330.40625,-265.375,312.40625,-265.375,-2.6875,-265.375,-2.6875,-231.5625,-2.6875,-197.75,-2.6875,-163.75]},
{"from":"12VDC","to":"node","fromPort":"left0","toPort":"top2","points":[373.239501953125,-264.5138854980469,355.239501953125,-264.5138854980469,3.1180419921875,-264.5138854980469,3.1180419921875,-230.49305725097656,3.1180419921875,-196.47222900390625,3.1180419921875,-162.47222900390625]},
{"from":"12VDC","to":"node","fromPort":"left2","toPort":"top3","points":[330.40625,-255.375,320.40625,-255.375,7.3125,-255.375,7.3125,-222.5625,7.3125,-189.75,7.3125,-163.75]},
{"from":"12VDC","to":"node","fromPort":"left2","toPort":"top3","points":[373.239501953125,-254.01388549804688,363.239501953125,-254.01388549804688,13.6180419921875,-254.01388549804688,13.6180419921875,-221.24305725097656,13.6180419921875,-188.47222900390625,13.6180419921875,-162.47222900390625]},
{"from":"ntc","to":"node","fromPort":"right1","toPort":"left1","points":[-561.09375,-253.875,-551.09375,-253.875,-401.84375,-253.875,-401.84375,-140.75,-147.6875,-140.75,-125.6875,-140.75]},
{"from":"ntc","to":"node","fromPort":"right1","toPort":"left1","points":[-560.59375,-253.625,-550.59375,-253.625,-333.36285400390625,-253.625,-333.36285400390625,-138.22222900390625,-148.1319580078125,-138.22222900390625,-126.1319580078125,-138.22222900390625]},
{"from":"ntc","to":"node","fromPort":"right0","toPort":"left0","points":[-561.09375,-263.875,-543.09375,-263.875,-392.84375,-263.875,-392.84375,-150.75,-139.6875,-150.75,-125.6875,-150.75]},
{"from":"ntc","to":"node","fromPort":"right0","toPort":"left0","points":[-560.59375,-264.125,-542.59375,-264.125,-325.36285400390625,-264.125,-325.36285400390625,-148.72222900390625,-140.1319580078125,-148.72222900390625,-126.1319580078125,-148.72222900390625]},
{"from":"ntc2","to":"node","fromPort":"right1","toPort":"left3","points":[-564.9375,-200.41328125,-554.9375,-200.41328125,-430.84375,-200.41328125,-430.84375,-120.75,-163.6875,-120.75,-125.6875,-120.75]},
{"from":"ntc2","to":"node","fromPort":"right1","toPort":"left3","points":[-564.4375,-200.16328125,-554.4375,-200.16328125,-363.08329851151086,-200.16328125,-363.08329851151086,-117.22222900390625,-164.1319580078125,-117.22222900390625,-126.1319580078125,-117.22222900390625]},
{"from":"ntc2","to":"node","fromPort":"right0","toPort":"left2","points":[-564.9375,-210.41328125,-546.9375,-210.41328125,-420.84375,-210.41328125,-420.84375,-130.75,-155.6875,-130.75,-125.6875,-130.75]},
{"from":"ntc2","to":"node","fromPort":"right0","toPort":"left2","points":[-564.4375,-210.66328125,-546.4375,-210.66328125,-351.9721534919796,-210.66328125,-351.9721534919796,-127.72222900390625,-156.1319580078125,-127.72222900390625,-126.1319580078125,-127.72222900390625]},
{"from":"ntc3","to":"node","fromPort":"right1","toPort":"left5","points":[-566.9375,-144.41328125,-556.9375,-144.41328125,-464.84375,-144.41328125,-464.84375,-100.75,-179.6875,-100.75,-125.6875,-100.75]},
{"from":"ntc3","to":"node","fromPort":"right1","toPort":"left5","points":[-566.4375,-144.16328125,-556.4375,-144.16328125,-390.8610695076046,-144.16328125,-390.8610695076046,-96.22222900390625,-180.1319580078125,-96.22222900390625,-126.1319580078125,-96.22222900390625]},
{"from":"ntc3","to":"node","fromPort":"right0","toPort":"left4","points":[-566.9375,-154.41328125,-548.9375,-154.41328125,-456.84375,-154.41328125,-456.84375,-110.75,-171.6875,-110.75,-125.6875,-110.75]},
{"from":"ntc3","to":"node","fromPort":"right0","toPort":"left4","points":[-566.4375,-154.66328125,-548.4375,-154.66328125,-381.9721534919796,-154.66328125,-381.9721534919796,-106.72222900390625,-172.1319580078125,-106.72222900390625,-126.1319580078125,-106.72222900390625]},
{"from":"RPS","to":"node","fromPort":"right3","toPort":"left9","points":[-534.9375,-12.413281250000011,-504.9375,-12.413281250000011,-360.3125,-12.413281250000011,-360.3125,-60.75,-247.6875,-60.75,-125.6875,-60.75]},
{"from":"RPS","to":"node","fromPort":"right3","toPort":"left9","points":[-534.4375,-12.163281250000011,-504.4375,-12.163281250000011,-260.8610695076046,-12.163281250000011,-260.8610695076046,-54.22222900390625,-248.1319580078125,-54.22222900390625,-126.1319580078125,-54.22222900390625]},
{"from":"RPS","to":"node","fromPort":"right0","toPort":"left11","points":[-534.9375,-2.4132812500000114,-496.9375,-2.4132812500000114,-348.3125,-2.4132812500000114,-348.3125,-40.75,-231.6875,-40.75,-125.6875,-40.75]},
{"from":"RPS","to":"node","fromPort":"right0","toPort":"left11","points":[-534.4375,-1.6632812500000114,-496.4375,-1.6632812500000114,-250.8610695076046,-1.6632812500000114,-250.8610695076046,-33.22222900390625,-232.1319580078125,-33.22222900390625,-126.1319580078125,-33.22222900390625]},
{"from":"RPS","to":"node","fromPort":"right2","toPort":"left8","points":[-534.9375,-22.41328125000001,-512.9375,-22.41328125000001,-368.3125,-22.41328125000001,-368.3125,-70.75,-255.6875,-70.75,-125.6875,-70.75]},
{"from":"RPS","to":"node","fromPort":"right2","toPort":"left8","points":[-534.4375,-22.66328125000001,-512.4375,-22.66328125000001,-270.8610695076046,-22.66328125000001,-270.8610695076046,-64.72222900390625,-256.1319580078125,-64.72222900390625,-126.1319580078125,-64.72222900390625]},
{"from":"meter","to":"node","fromPort":"left0","toPort":"right6","points":[324.90625,-21.875,310.90625,-21.875,228.15625,-21.875,228.15625,-90.75,256.3125,-90.75,110.3125,-90.75]},
{"from":"meter","to":"node","fromPort":"left0","toPort":"right6","points":[324.40625,-22.125,310.40625,-22.125,308,-22.125,308,-85.72222900390625,267.8680419921875,-85.72222900390625,121.8680419921875,-85.72222900390625]},
{"from":"meter","to":"node","fromPort":"left1","toPort":"right7","points":[324.90625,-11.875,302.90625,-11.875,219.15625,-11.875,219.15625,-80.75,248.3125,-80.75,110.3125,-80.75]},
{"from":"meter","to":"node","fromPort":"left1","toPort":"right7","points":[324.40625,-11.625,302.40625,-11.625,300,-11.625,300,-75.22222900390625,259.8680419921875,-75.22222900390625,121.8680419921875,-75.22222900390625]},
{"from":"ntc4","to":"node","fromPort":"right1","toPort":"left7","points":[-568.09375,-80.875,-558.09375,-80.875,-360.890625,-80.875,-360.890625,-80.75,-195.6875,-80.75,-125.6875,-80.75]},
{"from":"ntc4","to":"node","fromPort":"right1","toPort":"left7","points":[-563.1493530273438,-90.625,-553.1493530273438,-90.625,-433.08329851151086,-90.625,-433.08329851151086,-75.22222900390625,-196.1319580078125,-75.22222900390625,-126.1319580078125,-75.22222900390625]},
{"from":"ntc4","to":"node","fromPort":"right0","toPort":"left6","points":[-568.09375,-90.875,-550.09375,-90.875,-352.890625,-90.875,-352.890625,-90.75,-187.6875,-90.75,-125.6875,-90.75]},
{"from":"ntc4","to":"node","fromPort":"right0","toPort":"left6","points":[-563.1493530273438,-101.125,-545.1493530273438,-101.125,-425.3055275154171,-101.125,-425.3055275154171,-85.72222900390625,-188.1319580078125,-85.72222900390625,-126.1319580078125,-85.72222900390625]},
{"from":"ntc5","to":"node","fromPort":"right1","toPort":"left17","points":[-563.09375,54.125,-541.09375,54.125,-277.84375,54.125,-277.84375,19.25,-183.6875,19.25,-125.6875,19.25]},
{"from":"ntc5","to":"node","fromPort":"right1","toPort":"left17","points":[-562.59375,54.375,-540.59375,54.375,-346.36285400390625,54.375,-346.36285400390625,29.77777099609375,-184.1319580078125,29.77777099609375,-126.1319580078125,29.77777099609375]},
{"from":"ntc5","to":"node","fromPort":"right0","toPort":"left16","points":[-563.09375,44.125,-549.09375,44.125,-287.84375,44.125,-287.84375,9.25,-191.6875,9.25,-125.6875,9.25]},
{"from":"ntc5","to":"node","fromPort":"right0","toPort":"left16","points":[-562.59375,43.875,-548.59375,43.875,-354.36285400390625,43.875,-354.36285400390625,19.27777099609375,-192.1319580078125,19.27777099609375,-126.1319580078125,19.27777099609375]},
{"from":"RPS","to":"node","fromPort":"right1","toPort":"top03","points":[-534.9375,-32.41328125000001,-520.9375,-32.41328125000001,-377.84375,-32.41328125000001,-377.84375,-193.75,-22.6875,-193.75,-22.6875,-163.75]},
{"from":"RPS","to":"node","fromPort":"right1","toPort":"top03","points":[-534.4375,-33.16328125000001,-520.4375,-33.16328125000001,-311.28472900390625,-33.16328125000001,-311.28472900390625,-192.47222900390625,-17.8819580078125,-192.47222900390625,-17.8819580078125,-162.47222900390625]},
{"from":"FS","to":"node","fromPort":"right0","toPort":"bottom1","points":[-533.0400390625,175.125,-503.0400390625,175.125,-102.6875,175.125,-102.6875,144.6875,-102.6875,114.25,-102.6875,92.25]},
{"from":"FS","to":"node","fromPort":"right0","toPort":"bottom1","points":[-532.5400390625,175.625,-502.5400390625,175.625,-101.8819580078125,175.625,-101.8819580078125,152.07638549804688,-101.8819580078125,128.52777099609375,-101.8819580078125,106.52777099609375]},
{"from":"FS","to":"node","fromPort":"right2","toPort":"bottom0","points":[-533.0400390625,165.125,-511.0400390625,165.125,-112.6875,165.125,-112.6875,135.6875,-112.6875,106.25,-112.6875,92.25]},
{"from":"FS","to":"node","fromPort":"right2","toPort":"bottom0","points":[-532.5400390625,165.125,-510.5400390625,165.125,-112.3819580078125,165.125,-112.3819580078125,142.82638549804688,-112.3819580078125,120.52777099609375,-112.3819580078125,106.52777099609375]},
{"from":"valve4","to":"node","fromPort":"top0","toPort":"right22","points":[202.8125,223,202.8125,193,202.8125,69.25,165.5625,69.25,128.3125,69.25,110.3125,69.25]},
{"from":"valve4","to":"node","fromPort":"top0","toPort":"right22","points":[257.5069580078125,255.83331298828125,257.5069580078125,225.83331298828125,257.5069580078125,82.27777099609375,198.6875,82.27777099609375,139.8680419921875,82.27777099609375,121.8680419921875,82.27777099609375]},
{"from":"valve4","to":"node","fromPort":"top1","toPort":"bottom9","points":[192.8125,223,192.8125,201,192.8125,201,-22.6875,201,-22.6875,198.25,-22.6875,92.25]},
{"from":"valve4","to":"node","fromPort":"top1","toPort":"bottom9","points":[247.0069580078125,255.83331298828125,247.0069580078125,233.83331298828125,247.0069580078125,233.83331298828125,-17.8819580078125,233.83331298828125,-17.8819580078125,212.52777099609375,-17.8819580078125,106.52777099609375]},
{"from":"valve4","to":"node","fromPort":"top2","toPort":"bottom8","points":[182.8125,223,182.8125,209,182.8125,209,-32.6875,209,-32.6875,206.25,-32.6875,92.25]},
{"from":"valve4","to":"node","fromPort":"top2","toPort":"bottom8","points":[236.5069580078125,255.83331298828125,236.5069580078125,241.83331298828125,236.5069580078125,241.83331298828125,-28.3819580078125,241.83331298828125,-28.3819580078125,220.52777099609375,-28.3819580078125,106.52777099609375]},
{"from":"valve42","to":"node","fromPort":"top0","toPort":"right20","points":[328.15625,204.375,328.15625,174.375,328.15625,49.25,236.234375,49.25,144.3125,49.25,110.3125,49.25]},
{"from":"valve42","to":"node","fromPort":"top0","toPort":"right20","points":[395.0728759765625,228.3194580078125,395.0728759765625,198.3194580078125,395.0728759765625,61.27777099609375,275.470458984375,61.27777099609375,155.8680419921875,61.27777099609375,121.8680419921875,61.27777099609375]},
{"from":"valve42","to":"node","fromPort":"top1","toPort":"bottom11","points":[318.15625,204.375,318.15625,182.375,318.15625,180,-2.6875,180,-2.6875,182.25,-2.6875,92.25]},
{"from":"valve42","to":"node","fromPort":"top1","toPort":"bottom11","points":[384.5728759765625,228.3194580078125,384.5728759765625,206.3194580078125,384.5728759765625,204,3.1180419921875,204,3.1180419921875,196.52777099609375,3.1180419921875,106.52777099609375]},
{"from":"valve42","to":"node","fromPort":"top2","toPort":"bottom10","points":[308.15625,204.375,308.15625,190.375,308.15625,188,-12.6875,188,-12.6875,190.25,-12.6875,92.25]},
{"from":"valve42","to":"node","fromPort":"top2","toPort":"bottom10","points":[374.0728759765625,228.3194580078125,374.0728759765625,214.3194580078125,374.0728759765625,212,-7.3819580078125,212,-7.3819580078125,204.52777099609375,-7.3819580078125,106.52777099609375]},
{"from":"pump","to":"node","fromPort":"top0","toPort":"right18","points":[70.15625,254.375,70.15625,244.375,70.15625,127.125,160.3125,127.125,160.3125,29.25,110.3125,29.25]},
{"from":"pump","to":"node","fromPort":"top0","toPort":"right18","points":[119.545166015625,283.875,119.545166015625,273.875,119.545166015625,156.15818680577314,171.8680419921875,156.15818680577314,171.8680419921875,40.27777099609375,121.8680419921875,40.27777099609375]},
{"from":"node","to":"pump","fromPort":"bottom12","toPort":"top2","points":[7.3125,92.25,7.3125,174.25,7.3125,143.125,50.15625,143.125,50.15625,240.375,50.15625,254.375]},
{"from":"node","to":"pump","fromPort":"bottom12","toPort":"top2","points":[13.6180419921875,106.52777099609375,13.6180419921875,188.52777099609375,13.6180419921875,263.2013854980469,98.545166015625,263.2013854980469,98.545166015625,269.875,98.545166015625,283.875]},
{"from":"node","to":"pump","fromPort":"bottom13","toPort":"top1","points":[17.3125,92.25,17.3125,166.25,17.3125,130.125,60.15625,130.125,60.15625,232.375,60.15625,254.375]},
{"from":"node","to":"pump","fromPort":"bottom13","toPort":"top1","points":[24.1180419921875,106.52777099609375,24.1180419921875,180.52777099609375,24.1180419921875,253.93595780186683,109.045166015625,253.93595780186683,109.045166015625,261.875,109.045166015625,283.875]},
{"from":"timer","to":"node","fromPort":"right1","toPort":"bottom3","points":[-291.701171875,240.125,-269.701171875,240.125,-82.6875,240.125,-82.6875,185.1875,-82.6875,130.25,-82.6875,92.25]},
{"from":"timer","to":"node","fromPort":"right1","toPort":"bottom3","points":[-291.201171875,240.375,-269.201171875,240.375,-80.8819580078125,240.375,-80.8819580078125,192.45138549804688,-80.8819580078125,144.52777099609375,-80.8819580078125,106.52777099609375]},
{"from":"timer","to":"node","fromPort":"right0","toPort":"bottom2","points":[-291.701171875,230.125,-277.701171875,230.125,-92.6875,230.125,-92.6875,176.1875,-92.6875,122.25,-92.6875,92.25]},
{"from":"timer","to":"node","fromPort":"right0","toPort":"bottom2","points":[-291.201171875,229.875,-277.201171875,229.875,-91.3819580078125,229.875,-91.3819580078125,183.20138549804688,-91.3819580078125,136.52777099609375,-91.3819580078125,106.52777099609375]},
{"from":"ntc6","to":"node","fromPort":"right1","toPort":"left19","points":[-559.6875,111,-537.6875,111,-243.84375,111,-243.84375,39.25,-167.6875,39.25,-125.6875,39.25]},
{"from":"ntc6","to":"node","fromPort":"right1","toPort":"left19","points":[-559.1875,111.25,-537.1875,111.25,-320.8610695076046,111.25,-320.8610695076046,50.77777099609375,-168.1319580078125,50.77777099609375,-126.1319580078125,50.77777099609375]},
{"from":"ntc6","to":"node","fromPort":"right0","toPort":"left18","points":[-559.6875,101,-545.6875,101,-254.84375,101,-254.84375,29.25,-175.6875,29.25,-125.6875,29.25]},
{"from":"ntc6","to":"node","fromPort":"right0","toPort":"left18","points":[-559.1875,100.75,-545.1875,100.75,-330.8610695076046,100.75,-330.8610695076046,40.27777099609375,-176.1319580078125,40.27777099609375,-126.1319580078125,40.27777099609375]},
{"from":"FS","to":"node","fromPort":"right1","toPort":"top02","points":[-533.0400390625,155.125,-519.0400390625,155.125,-310.36376953125,155.125,-310.36376953125,-185.75,-32.6875,-185.75,-32.6875,-163.75]},
{"from":"FS","to":"node","fromPort":"right1","toPort":"top02","points":[-532.5400390625,154.625,-518.5400390625,154.625,-295.3055275154171,154.625,-295.3055275154171,-184.47222900390625,-28.3819580078125,-184.47222900390625,-28.3819580078125,-162.47222900390625]},
{"from":"modbus1","to":"node","fromPort":"left0","toPort":"right4","points":[326.3125,-127,308.3125,-127,248.15625,-127,248.15625,-110.75,156.3125,-110.75,110.3125,-110.75]},
{"from":"modbus1","to":"node","fromPort":"left0","toPort":"right4","points":[368.0347900390625,-118.52777099609375,350.0347900390625,-118.52777099609375,244.951416015625,-118.52777099609375,244.951416015625,-106.72222900390625,167.8680419921875,-106.72222900390625,121.8680419921875,-106.72222900390625]},
{"from":"node","to":"modbus1","fromPort":"right5","toPort":"left1","points":[110.3125,-100.75,164.3125,-100.75,256.3125,-100.75,256.3125,-117,316.3125,-117,326.3125,-117]},
{"from":"node","to":"modbus1","fromPort":"right5","toPort":"left1","points":[121.8680419921875,-96.22222900390625,175.8680419921875,-96.22222900390625,258.0278465080203,-96.22222900390625,258.0278465080203,-108.02777099609375,358.0347900390625,-108.02777099609375,368.0347900390625,-108.02777099609375]},
{"from":"modbus12","to":"node","fromPort":"left0","toPort":"right1","points":[326.90625,-193.875,308.90625,-193.875,208.15625,-193.875,208.15625,-140.75,132.3125,-140.75,110.3125,-140.75]},
{"from":"modbus12","to":"node","fromPort":"left0","toPort":"right1","points":[368.6285400390625,-191.90277099609375,350.6285400390625,-191.90277099609375,234.69447248458277,-191.90277099609375,234.69447248458277,-138.22222900390625,143.8680419921875,-138.22222900390625,121.8680419921875,-138.22222900390625]},
{"from":"modbus12","to":"node","fromPort":"left1","toPort":"right2","points":[326.90625,-183.875,316.90625,-183.875,218.609375,-183.875,218.609375,-130.75,140.3125,-130.75,110.3125,-130.75]},
{"from":"modbus12","to":"node","fromPort":"left1","toPort":"right2","points":[368.6285400390625,-181.40277099609375,358.6285400390625,-181.40277099609375,245.248291015625,-181.40277099609375,245.248291015625,-127.72222900390625,151.8680419921875,-127.72222900390625,121.8680419921875,-127.72222900390625]},
{"from":"prepay","to":"node","fromPort":"right1","toPort":"bottom5","points":[-195.701171875,317.125,-173.701171875,317.125,-62.6875,317.125,-62.6875,231.6875,-62.6875,146.25,-62.6875,92.25]},
{"from":"prepay","to":"node","fromPort":"right1","toPort":"bottom5","points":[-195.201171875,317.375,-173.201171875,317.375,-59.8819580078125,317.375,-59.8819580078125,238.95138549804688,-59.8819580078125,160.52777099609375,-59.8819580078125,106.52777099609375]},
{"from":"prepay","to":"node","fromPort":"right0","toPort":"bottom4","points":[-195.701171875,307.125,-181.701171875,307.125,-72.6875,307.125,-72.6875,222.6875,-72.6875,138.25,-72.6875,92.25]},
{"from":"prepay","to":"node","fromPort":"right0","toPort":"bottom4","points":[-195.201171875,306.875,-181.201171875,306.875,-70.3819580078125,306.875,-70.3819580078125,229.70138549804688,-70.3819580078125,152.52777099609375,-70.3819580078125,106.52777099609375]},
{"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":[268.0069580078125,255.83331298828125,268.0069580078125,217.83331298828125,268.0069580078125,92.77777099609375,199.9375,92.77777099609375,131.8680419921875,92.77777099609375,121.8680419921875,92.77777099609375]},
{"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":[405.5728759765625,228.3194580078125,405.5728759765625,190.3194580078125,405.5728759765625,71.77777099609375,276.720458984375,71.77777099609375,147.8680419921875,71.77777099609375,121.8680419921875,71.77777099609375]}
]}
]}
</pre>
</pre>

Revision as of 18:36, 9 July 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:

  1. A port figure, which can be either an "Input", "Output" (shown by a direction arrow), or any other standard shape figure including "Rectangle", "Circle", "TriangleUp", etc. Inputs cannot be wired to outputs.
  2. An optional 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 #fffffe.
{"name":"Room Thermostat","color":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ffff","signalTypes":["#00ffff","#fffffe"]}],"topArray":[],"bottomArray":[],"key":"roomstat","size":"78.78515625 47"}

Rststwire.png Rststwire2.png

Buttons

This power supply contains additional buttons for performing actions, such as opening a web page or PDF.

12vdcicons.png

{"name":"12VDC Power","buttonArray":[{"href":"https://hwwiki.ddns.net/","color":"#000000","fill":"#0000ff","figure":"ElectricalHazard"},{"text":"Open","href":"https://hwwiki.ddns.net/","color":"#000000","fill":"#0000ff"}],"fill":"#ebebeb","leftArray":[{"portId":"left0","portColor":"#e88600","figure":"Output"},{"portId":"left2","portColor":"#000002","figure":"Output"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"12VDC22","size":"67 76","loc":"709.4688121714489 -308.66453398276076","figure":"Procedure","color":"#000000","thickness":1,"notes":"","textColor":"#484848"}

The buttons are created by adding a buttonArray (shown below). Buttons have either text or an icon (figure). The array below has one of each.

"buttonArray":[{"href":"https://hwwiki.ddns.net/","color":"#000000","fill":"#0000ff","figure":"ElectricalHazard"},{"text":"Open","href":"https://hwwiki.ddns.net/","color":"#000000","fill":"#0000ff"}]

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
wiring16
  • PDF Download
wiring15
  • Nodes can be rotated
  • Groups given dotted surround
  • Converted SVG images replaced with data URLs
  • General layout alterations
wiring14
  • Button to save to IPFS
  • Loads from IPFS CID
wiring13
  • Node icons refined to allow both figures and text
  • Node icons arranged vertically
wiring12
  • Node icons changed to buttons with option for text
  • Icon buttons open web pages in a target window
wiring11
  • Port directions (figures) added, so inputs and outputs can share the same identity colour
  • Autowiring updated to account for compatible directions
  • Node icons added
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)