[ { "id": "b5828caa.2beb88", "type": "tab", "label": "S7-Comm S7-1500", "disabled": false, "info": "" }, { "id": "2090441e.024e0c", "type": "s7comm read", "z": "b5828caa.2beb88", "connection": "4563eca5.c566ac", "payload": "{\"S7_Type\":\"M\",\"S7_DBnum\":\"0\",\"S7_Datatype\":\"uint16\",\"S7_Offset\":\"0\",\"S7_BitOffset\":\"0\",\"S7_Quantity\":\"1\",\"S7_Name\":\"MW0\"}", "s7Name": "MW0", "topic": "", "name": "Read %MW0 (UINT16)", "signalSetted": false, "none": "false", "repeat": "1", "once": false, "x": 140, "y": 120, "wires": [ [ "2ea627a0.8c6f38", "af2b6e5e.0fe0b" ] ] }, { "id": "2ea627a0.8c6f38", "type": "debug", "z": "b5828caa.2beb88", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 370, "y": 120, "wires": [] }, { "id": "af2b6e5e.0fe0b", "type": "function", "z": "b5828caa.2beb88", "name": "", "func": "var msg_out = {payload:msg.payload.value[0]};\nvar msg_com = {payload:(msg.payload.error === 0)};\nreturn [msg_out, msg_com];", "outputs": 2, "noerr": 0, "x": 350, "y": 160, "wires": [ [ "5ca72c10.e21384", "aa83f9b4.70816" ], [ "5cdbb457.3a1d3c" ] ] }, { "id": "5ca72c10.e21384", "type": "debug", "z": "b5828caa.2beb88", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 550, "y": 160, "wires": [] }, { "id": "aa83f9b4.70816", "type": "ui_gauge", "z": "b5828caa.2beb88", "name": "S7-1500 Gauge", "group": "ef85e8e7.0aa728", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "S7-1500 MW0 Gauge", "label": "units", "format": "{{value}}", "min": 0, "max": "65535", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 560, "y": 200, "wires": [] }, { "id": "b165fc62.7b44f", "type": "ui_slider", "z": "b5828caa.2beb88", "name": "S7-1500 Slider", "label": "S7-1500 MW0 Slider", "group": "ef85e8e7.0aa728", "order": 0, "width": 0, "height": 0, "passthru": true, "topic": "", "min": 0, "max": "65535", "step": 1, "x": 120, "y": 280, "wires": [ [ "50f08286.6f2574" ] ] }, { "id": "50f08286.6f2574", "type": "function", "z": "b5828caa.2beb88", "name": "", "func": "var msg_out = {payload:{value:[msg.payload]}};\nreturn msg_out;", "outputs": 1, "noerr": 0, "x": 350, "y": 280, "wires": [ [ "31c608d9.ceef5" ] ] }, { "id": "31c608d9.ceef5", "type": "s7comm write", "z": "b5828caa.2beb88", "connection": "4563eca5.c566ac", "payload": "{\"S7_Type\":\"M\",\"S7_DBnum\":\"0\",\"S7_Datatype\":\"uint16\",\"S7_Offset\":\"0\",\"S7_BitOffset\":\"0\",\"S7_Quantity\":\"1\",\"S7_Name\":\"MW0\"}", "s7Name": "MW0", "topic": "", "name": "Write %MW0 (UINT16)", "signalSetted": false, "x": 580, "y": 280, "wires": [ [] ] }, { "id": "b14d17fe.aa5958", "type": "comment", "z": "b5828caa.2beb88", "name": "S7-1500", "info": "Lecture / écriture du MW0", "x": 100, "y": 60, "wires": [] }, { "id": "5cdbb457.3a1d3c", "type": "ui_text", "z": "b5828caa.2beb88", "group": "1f0fdc30.aac714", "order": 0, "width": 0, "height": 0, "name": "S7-1500 Status Com", "label": "S7-1500 Com", "format": "", "layout": "row-spread", "x": 580, "y": 240, "wires": [] }, { "id": "3014d1e5.523ff6", "type": "s7comm read", "z": "b5828caa.2beb88", "connection": "4563eca5.c566ac", "payload": "{\"S7_Type\":\"M\",\"S7_DBnum\":\"0\",\"S7_Datatype\":\"R\",\"S7_Offset\":\"2\",\"S7_BitOffset\":\"0\",\"S7_Quantity\":\"1\",\"S7_Name\":\"MD2\"}", "s7Name": "MD2", "topic": "", "name": "Read %MD2 (Float)", "signalSetted": false, "none": "false", "repeat": "1", "once": false, "x": 140, "y": 380, "wires": [ [ "c0670d2c.bbdcd8" ] ] }, { "id": "ab7f36fc.702148", "type": "ui_gauge", "z": "b5828caa.2beb88", "name": "S7-1500 MD2 Gauge", "group": "ef85e8e7.0aa728", "order": 0, "width": 0, "height": 0, "gtype": "gage", "title": "S7-1500 MD2 Gauge", "label": "units", "format": "{{value | number:1}}%", "min": "-20.0", "max": "200.0", "colors": [ "#00b500", "#e6e600", "#ca3838" ], "seg1": "", "seg2": "", "x": 580, "y": 380, "wires": [] }, { "id": "c0670d2c.bbdcd8", "type": "function", "z": "b5828caa.2beb88", "name": "", "func": "var msg_out = {payload:msg.payload.value[0]};\nreturn msg_out;", "outputs": 1, "noerr": 0, "x": 350, "y": 380, "wires": [ [ "ab7f36fc.702148", "9c549d6f.9dbff8" ] ] }, { "id": "e0b53dec.e62708", "type": "ui_slider", "z": "b5828caa.2beb88", "name": "S7-1500 MD2 Slider", "label": "S7-1500 MD2 Slider", "group": "ef85e8e7.0aa728", "order": 0, "width": 0, "height": 0, "passthru": true, "topic": "", "min": "-20.0", "max": "200.0", "step": "0.1", "x": 140, "y": 460, "wires": [ [ "a7ae51be.b7aac" ] ] }, { "id": "a7ae51be.b7aac", "type": "function", "z": "b5828caa.2beb88", "name": "", "func": "var msg_out = {payload:{value:[msg.payload]}};\nreturn msg_out;", "outputs": 1, "noerr": 0, "x": 350, "y": 460, "wires": [ [ "1db39efa.d4b6b9" ] ] }, { "id": "1db39efa.d4b6b9", "type": "s7comm write", "z": "b5828caa.2beb88", "connection": "4563eca5.c566ac", "payload": "{\"S7_Type\":\"M\",\"S7_DBnum\":\"0\",\"S7_Datatype\":\"R\",\"S7_Offset\":\"2\",\"S7_BitOffset\":\"0\",\"S7_Quantity\":\"1\",\"S7_Name\":\"MD2\"}", "s7Name": "MD2", "topic": "", "name": "Write %MD2 (Float)", "signalSetted": false, "x": 580, "y": 460, "wires": [ [] ] }, { "id": "9c549d6f.9dbff8", "type": "link out", "z": "b5828caa.2beb88", "name": "", "links": [ "c4e439d.7d99ac8" ], "x": 495, "y": 420, "wires": [] }, { "id": "4563eca5.c566ac", "type": "s7comm", "z": "b5828caa.2beb88", "ip": "192.168.1.1", "port": "102", "rack": "0", "slot": "1", "payload": [ { "S7_Type": "M", "S7_DBnum": "0", "S7_Datatype": "uint16", "S7_Offset": "0", "S7_BitOffset": "0", "S7_Quantity": "1", "S7_Name": "MW0" }, { "S7_Type": "M", "S7_DBnum": "0", "S7_Datatype": "R", "S7_Offset": "2", "S7_BitOffset": "0", "S7_Quantity": "1", "S7_Name": "MD2" } ] }, { "id": "ef85e8e7.0aa728", "type": "ui_group", "z": "b5828caa.2beb88", "name": "S7-Comm S7-1500", "tab": "6a05edb.3ae1c14", "order": 2, "disp": true, "width": "6" }, { "id": "1f0fdc30.aac714", "type": "ui_group", "z": "", "name": "Communication Status", "tab": "a208adc2.8c2af", "disp": true, "width": "6" }, { "id": "6a05edb.3ae1c14", "type": "ui_tab", "z": "b5828caa.2beb88", "name": "S7-1500", "icon": "dashboard", "order": 4 }, { "id": "a208adc2.8c2af", "type": "ui_tab", "z": "", "name": "Home", "icon": "dashboard", "order": 1 } ]