[ { "id": "291f8e8195354350", "type": "tab", "label": "Flow 1", "disabled": false, "info": "", "env": [] }, { "id": "f0cfd0c1.8a4f48", "type": "tab", "label": "Modbus Sequencer", "disabled": false, "info": "" }, { "id": "93caa713eec1b3b7", "type": "modbus-client", "name": "", "clienttype": "simpleser", "bufferCommands": true, "stateLogEnabled": true, "queueLogEnabled": false, "failureLogEnabled": true, "tcpHost": "127.0.0.1", "tcpPort": "502", "tcpType": "DEFAULT", "serialPort": "/dev/ttyUSB0", "serialType": "RTU-BUFFERD", "serialBaudrate": "115200", "serialDatabits": "8", "serialStopbits": "1", "serialParity": "none", "serialConnectionDelay": "100", "serialAsciiResponseStartDelimiter": "0x3A", "unit_id": "10", "commandDelay": "1", "clientTimeout": "1000", "reconnectOnTimeout": true, "reconnectTimeout": "2000", "parallelUnitIdsAllowed": true }, { "id": "e87897fbbe277bb7", "type": "ui_group", "name": "Parametros Electricos", "tab": "2686ab6bf9ab8a69", "order": 2, "disp": true, "width": 11, "collapse": false }, { "id": "2686ab6bf9ab8a69", "type": "ui_tab", "name": "Home", "icon": "dashboard", "disabled": false, "hidden": false }, { "id": "c0d786d5d7dc9cd3", "type": "ui_base", "theme": { "name": "theme-dark", "lightTheme": { "default": "#0094CE", "baseColor": "#0094CE", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": true, "reset": false }, "darkTheme": { "default": "#097479", "baseColor": "#097479", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", "edited": true, "reset": false }, "customTheme": { "name": "Untitled Theme 1", "default": "#4B7930", "baseColor": "#4B7930", "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" }, "themeState": { "base-color": { "default": "#097479", "value": "#097479", "edited": false }, "page-titlebar-backgroundColor": { "value": "#097479", "edited": false }, "page-backgroundColor": { "value": "#111111", "edited": false }, "page-sidebar-backgroundColor": { "value": "#333333", "edited": false }, "group-textColor": { "value": "#0eb8c0", "edited": false }, "group-borderColor": { "value": "#555555", "edited": false }, "group-backgroundColor": { "value": "#333333", "edited": false }, "widget-textColor": { "value": "#eeeeee", "edited": false }, "widget-backgroundColor": { "value": "#097479", "edited": false }, "widget-borderColor": { "value": "#333333", "edited": false }, "base-font": { "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" } }, "angularTheme": { "primary": "indigo", "accents": "blue", "warn": "red", "background": "grey", "palette": "light" } }, "site": { "name": "SCADA 7320 MKII", "hideToolbar": "false", "allowSwipe": "menu", "lockMenu": "true", "allowTempTheme": "none", "dateFormat": "DD/MM/YYYY", "sizes": { "sx": 48, "sy": 48, "gx": 6, "gy": 6, "cx": 6, "cy": 6, "px": 0, "py": 0 } } }, { "id": "4483385.85f9ac8", "type": "modbus-client", "name": "local", "clienttype": "tcp", "bufferCommands": true, "stateLogEnabled": false, "tcpHost": "127.0.0.1", "tcpPort": "11502", "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" }, { "id": "a9050e37.a6f618", "type": "modbus-client", "name": "Modbus Flex Server", "clienttype": "tcp", "bufferCommands": true, "stateLogEnabled": false, "queueLogEnabled": false, "tcpHost": "127.0.0.1", "tcpPort": "15502", "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, "reconnectOnTimeout": true, "reconnectTimeout": 2000, "parallelUnitIdsAllowed": true }, { "id": "352955bb.be6e6a", "type": "modbus-client", "name": "Modbus Server", "clienttype": "tcp", "bufferCommands": true, "stateLogEnabled": false, "queueLogEnabled": false, "tcpHost": "127.0.0.1", "tcpPort": "14502", "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", "reconnectOnTimeout": true, "reconnectTimeout": "2000", "parallelUnitIdsAllowed": true }, { "id": "bf4cf742cf79a4df", "type": "ui_tab", "name": "Configuracion", "icon": "dashboard", "disabled": false, "hidden": false }, { "id": "ddb6a77de2d73d69", "type": "ui_group", "name": "Controles", "tab": "2686ab6bf9ab8a69", "order": 1, "disp": true, "width": 6, "collapse": false }, { "id": "8751c01d43c0aa2a", "type": "inject", "z": "291f8e8195354350", "name": "Boton", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "2", "crontab": "", "once": true, "onceDelay": "2", "topic": "", "payload": "", "payloadType": "date", "x": 100, "y": 620, "wires": [ [ "67e3045bcfc978ba" ] ] }, { "id": "89594d3edca86f8c", "type": "debug", "z": "291f8e8195354350", "name": "debug 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 620, "y": 620, "wires": [] }, { "id": "ea15c910191eb21f", "type": "catch", "z": "291f8e8195354350", "name": "", "scope": null, "uncaught": false, "x": 260, "y": 560, "wires": [ [ "89594d3edca86f8c" ] ] }, { "id": "c5a1b323369dfe52", "type": "modbus-response", "z": "291f8e8195354350", "name": "valor leido", "registerShowMax": 20, "x": 630, "y": 680, "wires": [] }, { "id": "aea018ec1d1aea00", "type": "ui_gauge", "z": "291f8e8195354350", "name": "", "group": "e87897fbbe277bb7", "order": 1, "width": 0, "height": 0, "gtype": "gage", "title": "Tension Bateria", "label": "VDC", "format": "{{msg.values[0]/10 | number:1}}", "min": "8", "max": "35", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 640, "y": 740, "wires": [] }, { "id": "9632838852d02249", "type": "ui_button", "z": "291f8e8195354350", "name": "Modo Manual", "group": "ddb6a77de2d73d69", "order": 2, "width": 6, "height": 1, "passthru": true, "label": "Modo Manual", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "[35702,29833]", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 360, "y": 120, "wires": [ [ "ec216c949684d93b" ] ] }, { "id": "dea51756544f0a27", "type": "ui_button", "z": "291f8e8195354350", "name": "", "group": "ddb6a77de2d73d69", "order": 1, "width": 6, "height": 1, "passthru": true, "label": "Parada", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "[35700,29835]", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 340, "y": 60, "wires": [ [ "ec216c949684d93b" ] ] }, { "id": "798c8db97c5351c8", "type": "ui_button", "z": "291f8e8195354350", "name": "", "group": "ddb6a77de2d73d69", "order": 3, "width": 6, "height": 1, "passthru": true, "label": "Modo de Prueba", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "[35703,29832]", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 360, "y": 180, "wires": [ [ "ec216c949684d93b" ] ] }, { "id": "a7c1dd2a7ab72b1f", "type": "ui_button", "z": "291f8e8195354350", "name": "", "group": "ddb6a77de2d73d69", "order": 4, "width": 6, "height": 1, "passthru": true, "label": "Modo Auto", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "[35701,29834]", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 350, "y": 240, "wires": [ [ "ec216c949684d93b" ] ] }, { "id": "1af435bd4106aac6", "type": "ui_button", "z": "291f8e8195354350", "name": "", "group": "ddb6a77de2d73d69", "order": 5, "width": 6, "height": 1, "passthru": true, "label": "Silenciar Alarma", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "[35706,29829]", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 380, "y": 300, "wires": [ [ "ec216c949684d93b" ] ] }, { "id": "63b45d38f4dc0180", "type": "ui_button", "z": "291f8e8195354350", "name": "", "group": "ddb6a77de2d73d69", "order": 6, "width": 0, "height": 0, "passthru": true, "label": "Encender", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "[35705,29830]", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 340, "y": 360, "wires": [ [ "ec216c949684d93b" ] ] }, { "id": "c4dd463e3483c912", "type": "modbus-response", "z": "291f8e8195354350", "name": "", "registerShowMax": 20, "x": 650, "y": 420, "wires": [] }, { "id": "3938d10015963c2f", "type": "inject", "z": "291f8e8195354350", "name": "Modo Manual Falso", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 130, "y": 120, "wires": [ [ "9632838852d02249" ] ] }, { "id": "67e3045bcfc978ba", "type": "modbus-getter", "z": "291f8e8195354350", "name": "leer tension", "showStatusActivities": true, "showErrors": true, "logIOActivities": false, "unitid": "10", "dataType": "HoldingRegister", "adr": "1029", "quantity": "1", "server": "93caa713eec1b3b7", "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 250, "y": 620, "wires": [ [ "89594d3edca86f8c" ], [ "c5a1b323369dfe52", "aea018ec1d1aea00" ] ] }, { "id": "99cfbb88159119eb", "type": "modbus-flex-write", "z": "291f8e8195354350", "name": "", "showStatusActivities": true, "showErrors": true, "server": "93caa713eec1b3b7", "emptyMsgOnFail": false, "keepMsgProperties": false, "x": 650, "y": 260, "wires": [ [ "89594d3edca86f8c" ], [ "c4dd463e3483c912" ] ] }, { "id": "ec216c949684d93b", "type": "function", "z": "291f8e8195354350", "name": "Control manual", "func": "var u_id = 10;\nvar fc = 16;\nvar direccion = 4104;\nvar cRegistros = 2;\nvar valores = msg.payload;\nmsg.payload = { \"value\": valores, 'fc': fc, 'unitid': u_id, 'address': direccion, 'quantity': cRegistros };\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 640, "y": 120, "wires": [ [ "99cfbb88159119eb" ] ] }, { "id": "d64c16aac576766e", "type": "inject", "z": "291f8e8195354350", "name": "Modo Parada Falso", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 130, "y": 60, "wires": [ [ "dea51756544f0a27" ] ] }, { "id": "a78fb1c9c7113a96", "type": "inject", "z": "291f8e8195354350", "name": "Modo de Prueba Falso", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 140, "y": 180, "wires": [ [ "798c8db97c5351c8" ] ] }, { "id": "d6ff2f0c9738957e", "type": "inject", "z": "291f8e8195354350", "name": "Modo Auto Falso", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 120, "y": 240, "wires": [ [ "a7c1dd2a7ab72b1f" ] ] }, { "id": "4fca56a784b172e8", "type": "inject", "z": "291f8e8195354350", "name": "Modo Silenciar Alarma Falso", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 160, "y": 300, "wires": [ [ "1af435bd4106aac6" ] ] }, { "id": "e1d63e0cf604a311", "type": "inject", "z": "291f8e8195354350", "name": "Modo Encender Falso", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 140, "y": 360, "wires": [ [ "63b45d38f4dc0180" ] ] }, { "id": "0662a29012b55c50", "type": "comment", "z": "291f8e8195354350", "name": "Controles Modo Funcionamiento", "info": "", "x": 170, "y": 20, "wires": [] }, { "id": "e72ebb5d66e5836d", "type": "comment", "z": "291f8e8195354350", "name": "Lectura de tension Bateria", "info": "", "x": 150, "y": 480, "wires": [] }, { "id": "b5762218.8300d8", "type": "modbus-flex-sequencer", "z": "f0cfd0c1.8a4f48", "name": "", "sequences": [ { "name": "", "unitid": "1", "fc": "FC1", "address": "1", "quantity": "2" }, { "name": "", "unitid": "1", "fc": "FC1", "address": "10", "quantity": "2" } ], "server": "352955bb.be6e6a", "showStatusActivities": false, "showErrors": true, "logIOActivities": false, "useIOFile": false, "ioFile": "", "useIOForPayload": false, "emptyMsgOnFail": true, "keepMsgProperties": true, "x": 400, "y": 120, "wires": [ [ "14045550.27c8fb" ], [ "fee04ce7.992778", "c0bdb056.aad1f" ] ] }, { "id": "442061b.228722", "type": "inject", "z": "f0cfd0c1.8a4f48", "name": "Read Sequence", "props": [], "repeat": "", "crontab": "", "once": false, "onceDelay": "", "topic": "", "x": 160, "y": 120, "wires": [ [ "b5762218.8300d8" ] ] }, { "id": "c0bdb056.aad1f", "type": "modbus-response", "z": "f0cfd0c1.8a4f48", "name": "", "registerShowMax": 20, "x": 690, "y": 160, "wires": [] }, { "id": "14045550.27c8fb", "type": "debug", "z": "f0cfd0c1.8a4f48", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 650, "y": 80, "wires": [] }, { "id": "fee04ce7.992778", "type": "debug", "z": "f0cfd0c1.8a4f48", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 650, "y": 120, "wires": [] } ]