Below you have a database of typical programs ready to import during commissioning. Read instructions on how to import programs into your project here.
Remember that after importing the program from the list of programs below, you must configure it for your installation.
List of programs
Sending information about the light intensity to the BMS
[{"id":"b6999ee0.9f51f","type":"comment","z":"7400871b.0e1298","name":"Choose light sensor","info":"","x":210,"y":200,"wires":[]},{"id":"f3a7ef27.34ce3","type":"lightsensors","z":"7400871b.0e1298","name":"Light sensor","uid":"FC9E21087BFD7461","x":230,"y":260,"wires":[["ca77b833.89928"]]},{"id":"ca77b833.89928","type":"change","z":"7400871b.0e1298","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.LUX","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":260,"wires":[["743410e7.196f3"]]},{"id":"26dde044.501fe","type":"modbus-write","z":"7400871b.0e1298","name":"Register: 500","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"500","quantity":"1","server":"c5a231d8.689ae","x":780,"y":260,"wires":[[],[]]},{"id":"743410e7.196f3","type":"rbe","z":"7400871b.0e1298","name":"","func":"rbe","gap":"","start":"","inout":"out","x":620,"y":260,"wires":[["26dde044.501fe"]]},{"id":"2aa6eaf0.af4496","type":"comment","z":"7400871b.0e1298","name":"Select Vertex's IP register number","info":"","x":820,"y":200,"wires":[]},{"id":"276cff0a.8b3888","type":"comment","z":"7400871b.0e1298","name":"Sending information about the light intensity to the BMS","info":"","x":560,"y":140,"wires":[]},{"id":"c5a231d8.689ae","type":"modbus-client","z":"","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]
Group control 0-100 with BMS - when there is only one Vertex
[{"id":"dff8e3cb.ca5bd8","type":"vertex action","z":"7400871b.0e1298","name":"Grupa1","typeButton":"directv","bPayload":{"action":"setbrightness","group":"6a96a1eef91dff3a1a5dc9f9b6b23af5","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":670,"y":480,"wires":[["a5fc677a.cf8c18"]]},{"id":"650fe153.51edd8","type":"vertexmodbus","z":"7400871b.0e1298","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":320,"y":480,"wires":[["5c20fd8e.791664"]]},{"id":"5c20fd8e.791664","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"100","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":480,"wires":[["dff8e3cb.ca5bd8"]]},{"id":"a5fc677a.cf8c18","type":"link out","z":"7400871b.0e1298","name":"Do Vertex Cluster","links":["3a9d1153.3c884e"],"x":855,"y":480,"wires":[]},{"id":"803960fe.cda748","type":"comment","z":"7400871b.0e1298","name":"Select a control group (GR1)","info":"","x":700,"y":420,"wires":[]},{"id":"1d79a1f1.e64dbe","type":"comment","z":"7400871b.0e1298","name":"Select register number (+1) for group control","info":"","x":290,"y":420,"wires":[]},{"id":"1df7c6d9.313de1","type":"comment","z":"7400871b.0e1298","name":"Group control 0-100 with BMS - when there is only one Vertex","info":"","x":520,"y":360,"wires":[]}]
Feedback to BMS on the status of the group
[{"id":"3c92fd1.95e1f02","type":"vertex feedback","z":"31967c5.8c35184","name":"Grupa 1","primarygroup":"6a96a1eef91dff3a1a5dc9f9b6b23af5","x":300,"y":420,"wires":[["80b4b050.bf6c8"]]},{"id":"80b4b050.bf6c8","type":"function","z":"31967c5.8c35184","name":"","func":"var tmp;\nfor(var gr in msg.payload){\n\ttmp = msg.payload[gr].value\n}\nmsg.payload = tmp\n\nif(msg.payload!==null )\n{\nif(msg.payload==254)\n msg.payload=253;\n var valueDec = Math.pow(10,(((msg.payload-1)/84)-1));\n msg.payload =Math.round(valueDec);\n return msg;\n\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":420,"wires":[["9576df09.3b29c8"]]},{"id":"9576df09.3b29c8","type":"rbe","z":"31967c5.8c35184","name":"","func":"rbe","gap":"","start":"","inout":"out","x":810,"y":420,"wires":[["eca8eb3e.b9b9e"]]},{"id":"eca8eb3e.b9b9e","type":"modbus-write","z":"31967c5.8c35184","name":"Register: 820","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"820","quantity":"1","server":"1a9aaf8.230b951","emptyMsgOnFail":false,"keepMsgProperties":false,"x":1030,"y":420,"wires":[[],[]]},{"id":"dc7508ef.78328","type":"comment","z":"31967c5.8c35184","name":"Configure the Modbus server and select the register (0-1000)","info":"","x":1160,"y":380,"wires":[]},{"id":"ff1bb50.cb5dec8","type":"comment","z":"31967c5.8c35184","name":"Select a group for feedback (GR1)","info":"","x":360,"y":380,"wires":[]},{"id":"9b234620.cccc3","type":"comment","z":"31967c5.8c35184","name":"Feedback to BMS on the status of the group","info":"","x":690,"y":380,"wires":[]},{"id":"1a9aaf8.230b951","type":"modbus-client","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]
Feedback to BMS on the status of the group - when you have multiple Vertexes on site
[{"id":"797c527c.5c317c","type":"vertex feedback","z":"31967c5.8c35184","name":"Grupa 1","primarygroup":"6a96a1eef91dff3a1a5dc9f9b6b23af5","x":300,"y":780,"wires":[["1c3d4bc9.c318dc"]]},{"id":"6b47811.b6b17","type":"function","z":"31967c5.8c35184","name":"","func":"var tmp;\nfor(var gr in msg.payload){\n\ttmp = msg.payload[gr].value\n}\nmsg.payload = tmp\n\nif(msg.payload!==null )\n{\nif(msg.payload==254)\n msg.payload=253;\n var valueDec = Math.pow(10,(((msg.payload-1)/84)-1));\n msg.payload =Math.round(valueDec);\n return msg;\n\n}\n","outputs":1,"noerr":0,"x":910,"y":780,"wires":[["4b2af1ad.09fac"]]},{"id":"4b2af1ad.09fac","type":"rbe","z":"31967c5.8c35184","name":"","func":"rbe","gap":"","start":"","inout":"out","x":1110,"y":780,"wires":[["4ae366c1.c61c78"]]},{"id":"4ae366c1.c61c78","type":"modbus-write","z":"31967c5.8c35184","name":"Register 645","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"645","quantity":"1","server":"2f279e92.4cc012","emptyMsgOnFail":false,"keepMsgProperties":false,"x":1310,"y":780,"wires":[[],[]]},{"id":"b293800c.8266c8","type":"comment","z":"31967c5.8c35184","name":"Configure the Modbus server and select the register (0-1000)","info":"","x":1340,"y":740,"wires":[]},{"id":"c707b74c.873cd8","type":"comment","z":"31967c5.8c35184","name":"Select a group for feedback (GR1)","info":"","x":360,"y":740,"wires":[]},{"id":"1c3d4bc9.c318dc","type":"vertex filterByVertex","z":"31967c5.8c35184","selectedVertex":"10.199.1.15","x":640,"y":780,"wires":[["6b47811.b6b17"]]},{"id":"69d8944b.8193cc","type":"comment","z":"31967c5.8c35184","name":"Select the Vertex IP to control the group","info":"","x":670,"y":740,"wires":[]},{"id":"613931fb.bb4a48","type":"comment","z":"31967c5.8c35184","name":"Feedback to BMS on the status of the group","info":"","x":950,"y":720,"wires":[]},{"id":"2f279e92.4cc012","type":"modbus-client","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]
Group control in the range 0-100 with BMS - when there are several Vertexes
[{"id":"75021f8c.7e7328","type":"comment","z":"7400871b.0e1298","name":"Group control in the range 0-100 with BMS - when there are several Vertexes ","info":"","x":650,"y":780,"wires":[]},{"id":"99fbbae.cd2f248","type":"vertex action","z":"7400871b.0e1298","name":"Grupa1","typeButton":"directv","bPayload":{"action":"setbrightness","group":"6a96a1eef91dff3a1a5dc9f9b6b23af5","param":0,"priority":"254"},"bState":"","defaultpriority":true,"x":930,"y":900,"wires":[["e9a93cd0.4cd178"]]},{"id":"d6a2accf.97166","type":"vertexmodbus","z":"7400871b.0e1298","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":260,"y":900,"wires":[["93beef5c.47b5b"]]},{"id":"37b1ac1a.9dd05c","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"100","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":730,"y":900,"wires":[["99fbbae.cd2f248"]]},{"id":"e9a93cd0.4cd178","type":"link out","z":"7400871b.0e1298","name":"Do Vertex Cluster","links":["3a9d1153.3c884e"],"x":1115,"y":900,"wires":[]},{"id":"bff1863a.c7c4d","type":"comment","z":"7400871b.0e1298","name":"Select the group to control (GR1)","info":"","x":970,"y":840,"wires":[]},{"id":"6e22e126.9d83d8","type":"comment","z":"7400871b.0e1298","name":"Select register number (+1) for group control","info":"","x":230,"y":840,"wires":[]},{"id":"93beef5c.47b5b","type":"vertex filterByVertex","z":"7400871b.0e1298","selectedVertex":"10.0.12.254","x":520,"y":900,"wires":[["37b1ac1a.9dd05c"]]},{"id":"49608d16.7d9054","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP to control the group","info":"","x":580,"y":840,"wires":[]}]
Group control through BMS scenes - when there are several Vertexes
[{"id":"b27e3596.ef8348","type":"vertex action","z":"7400871b.0e1298","name":"GR1","typeButton":"single","bPayload":{"action":"recallscene","group":"6a96a1eef91dff3a1a5dc9f9b6b23af5","param":"2","priority":"254"},"bState":"","defaultpriority":true,"x":860,"y":1340,"wires":[["5981856a.a113b4"]]},{"id":"fd6e5973.180cf8","type":"vertexmodbus","z":"7400871b.0e1298","name":"","registers":[{"r":"111","i":0}],"outputs":1,"x":200,"y":1360,"wires":[["a1d46afe.7b74"]]},{"id":"54309834.bf8158","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":670,"y":1360,"wires":[["b27e3596.ef8348"],["7cd2ac3d.f3c544"]]},{"id":"a1d46afe.7b74","type":"vertex filterByVertex","z":"7400871b.0e1298","selectedVertex":"10.0.12.254","x":440,"y":1360,"wires":[["54309834.bf8158"]]},{"id":"7cd2ac3d.f3c544","type":"vertex action","z":"7400871b.0e1298","name":"GR1","typeButton":"single","bPayload":{"action":"recallscene","group":null,"param":"12","priority":"254"},"bState":"","defaultpriority":true,"x":860,"y":1380,"wires":[["5981856a.a113b4"]]},{"id":"5981856a.a113b4","type":"link out","z":"7400871b.0e1298","name":"","links":["2f406ad4.313f76"],"x":1015,"y":1360,"wires":[]},{"id":"bdc69b38.dfb668","type":"comment","z":"7400871b.0e1298","name":"Group control through BMS scenes - when there are several Vertexes ","info":"","x":630,"y":1220,"wires":[]},{"id":"2e09f184.876ede","type":"comment","z":"7400871b.0e1298","name":"Select the group to control (GR1) and the scene","info":"","x":1020,"y":1280,"wires":[]},{"id":"4fb338f4.d14cc","type":"comment","z":"7400871b.0e1298","name":"Select register number (+1) for group control","info":"","x":230,"y":1280,"wires":[]},{"id":"de3c5342.9900f","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP to control the group","info":"","x":580,"y":1280,"wires":[]}]
Feedback to the BMS about the status of the group's luminaires (scene controlled)
[{"id":"1e78aeb.f3ae451","type":"function","z":"7400871b.0e1298","name":"","func":"var tmp;\nfor(var gr in msg.payload){\n\n\tif (msg.payload[gr].valueType ==\"scene\")\n\t{\n tmp = msg.payload[gr].value\n msg.payload = tmp\n return msg;\n\t}\n\t\n}\n\n","outputs":1,"noerr":0,"x":530,"y":1640,"wires":[["6a0f4a6b.03c93c"]]},{"id":"a8e3241.e50d758","type":"modbus-write","z":"7400871b.0e1298","name":"Register 610","showStatusActivities":false,"showErrors":false,"unitid":"admin","dataType":"HoldingRegister","adr":"610","quantity":"1","server":"abc04e9a.d0ba8","x":990,"y":1640,"wires":[[],[]]},{"id":"84661523.8119f8","type":"vertex filterByVertex","z":"7400871b.0e1298","selectedVertex":"10.0.12.254","x":360,"y":1640,"wires":[["1e78aeb.f3ae451"]]},{"id":"5cbeb5ea.a075a4","type":"change","z":"7400871b.0e1298","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"2","fromt":"num","to":"1","tot":"num"},{"t":"change","p":"payload","pt":"msg","from":"12","fromt":"num","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":800,"y":1640,"wires":[["a8e3241.e50d758"]]},{"id":"6a0f4a6b.03c93c","type":"switch","z":"7400871b.0e1298","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"12","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":650,"y":1640,"wires":[["5cbeb5ea.a075a4"],["5cbeb5ea.a075a4"]]},{"id":"e6d8cef6.f6e4f8","type":"vertex feedback","z":"7400871b.0e1298","name":"318","primarygroup":"bf68fe84c780a52411ba59c48e619134","x":180,"y":1640,"wires":[["84661523.8119f8"]]},{"id":"98639d96.ef733","type":"comment","z":"7400871b.0e1298","name":"Select a group for feedback (GR1)","info":"","x":220,"y":1580,"wires":[]},{"id":"a4d52d22.f4b348","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP to control the group","info":"","x":640,"y":1580,"wires":[]},{"id":"550d8e35.6344d","type":"comment","z":"7400871b.0e1298","name":"Feedback to the BMS about the status of the group's luminaires (scene controlled)","info":"","x":640,"y":1520,"wires":[]},{"id":"82b64eda.76a09","type":"comment","z":"7400871b.0e1298","name":"Select the Vertex's IP register number","info":"","x":1110,"y":1580,"wires":[]},{"id":"abc04e9a.d0ba8","type":"modbus-client","z":"","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.0.12.254","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectTimeout":"2000"}]
Triggering a relay in case of an emergency lighting error (or any other error in Vertex)
[{"id":"12a420af.b4680f","type":"modbus-read","z":"9db796be.584748","name":"","topic":"","showStatusActivities":false,"showErrors":false,"unitid":"","dataType":"HoldingRegister","adr":"14","quantity":"1","rate":"5","rateUnit":"s","delayOnStart":false,"startDelayTime":"","server":"dcc5d19a.7e9fc8","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":230,"y":980,"wires":[["be6a311e.28484","7097c132.45952"],[]]},{"id":"be6a311e.28484","type":"debug","z":"9db796be.584748","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":530,"y":860,"wires":[]},{"id":"7097c132.45952","type":"function","z":"9db796be.584748","name":"emergency_lighting_error_info","func":"var count = msg.payload.toString(2);\nvar leng = count.length;\nvar zeros =[];\n\nfor(var i = 0; i <(16-leng); i++)\n{\nzeros = zeros+ '0'\n}\ncount=zeros+count;\n\nmsg.payload =count.slice(7, 8)\n//msg.payload =count\nmsg.payload=parseInt(msg.payload)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":590,"y":1060,"wires":[["827c759e.9cf1a8","c980359d.0a7ab8"]]},{"id":"827c759e.9cf1a8","type":"switch","z":"9db796be.584748","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":970,"y":1060,"wires":[["b6f311ef.7fe6c"],["76f04307.d7d5bc"]]},{"id":"c980359d.0a7ab8","type":"debug","z":"9db796be.584748","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":970,"y":880,"wires":[]},{"id":"b6f311ef.7fe6c","type":"vertex action","z":"9db796be.584748","name":"","typeButton":"single","bPayload":{"action":"maxlevel","group":"0327ffd20adbd58c2cf40fa8b12b9304","param":null,"priority":"254"},"bState":"","defaultpriority":true,"x":1370,"y":1020,"wires":[[]]},{"id":"76f04307.d7d5bc","type":"vertex action","z":"9db796be.584748","name":"","typeButton":"single","bPayload":{"action":"off","group":"04ec2e3614f8fa2e462bdda74dbed824","param":null,"priority":"254"},"bState":"","defaultpriority":true,"x":1370,"y":1080,"wires":[[]]},{"id":"1ba1b336.b3ed7d","type":"comment","z":"9db796be.584748","name":"Configure the modbus server","info":"","x":240,"y":900,"wires":[]},{"id":"c68f378c.62ad08","type":"comment","z":"9db796be.584748","name":"View the message sent by Modbus read node","info":"","x":610,"y":820,"wires":[]},{"id":"6f701154.b575f","type":"comment","z":"9db796be.584748","name":"View the message sent by the function node","info":"","x":1070,"y":840,"wires":[]},{"id":"92964a63.82cb38","type":"comment","z":"9db796be.584748","name":"Select the group that contains a DALI-2 relay","info":"","x":1450,"y":960,"wires":[]},{"id":"74d212e.14f5eec","type":"comment","z":"9db796be.584748","name":"Check the modbus register responsible for emergency lighting","info":"","x":620,"y":1000,"wires":[]},{"id":"38310201.1e26ce","type":"comment","z":"9db796be.584748","name":"1 - error detected, 0 - no error","info":"","x":980,"y":1000,"wires":[]},{"id":"113950d6.8cc43f","type":"comment","z":"9db796be.584748","name":"Don't use the 2nd output","info":"","x":230,"y":940,"wires":[]},{"id":"dcc5d19a.7e9fc8","type":"modbus-client","name":"IP_Vertexa","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"tcpHost":"10.4.6.1","tcpPort":"502","tcpType":"DEFAULT","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectTimeout":2000}]
Add Comment