[ { "id": "4baf25d2ba923d62", "type": "tab", "label": "Flow 2", "disabled": false, "info": "", "env": [] }, { "id": "2f90b48b666b6d86", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "35614e0daee07039", "order": 1, "width": 10, "height": 1, "name": "", "label": "Good Read Status", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 510, "y": 320, "wires": [] }, { "id": "9460ba335a87b2d9", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Read OK", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 490, "y": 140, "wires": [] }, { "id": "124c58842a7c681b", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"DL300_Read OK\"", "diff": true, "name": "DL300_Read OK", "x": 160, "y": 240, "wires": [ [ "9460ba335a87b2d9", "2f90b48b666b6d86" ] ] }, { "id": "78292814e3d9a8b9", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"DadosString\"", "diff": true, "name": "Dados Lidos Last", "x": 120, "y": 560, "wires": [ [ "e95a47107725979f" ] ] }, { "id": "e95a47107725979f", "type": "function", "z": "4baf25d2ba923d62", "name": " 2D Code Function", "func": "var payload=msg.payload;\n\nif (payload==\"\") // if string is empty\n\nmsg.payload=\"-\"\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 370, "y": 560, "wires": [ [ "0493d822cc196fb0", "78fa767c45b167ef" ] ] }, { "id": "0493d822cc196fb0", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Last Data", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 650, "y": 480, "wires": [] }, { "id": "78fa767c45b167ef", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "a002c8da5cb87055", "order": 1, "width": "0", "height": "0", "name": "", "label": "Conteúdo Código 2D", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 640, "y": 620, "wires": [] }, { "id": "3efa464c6b019caa", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 1\"", "diff": false, "name": "PLC Lido Registo1- ID", "x": 180, "y": 1520, "wires": [ [ "d526163fda910b55" ] ] }, { "id": "67eb3a9a2cd764c9", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 1\"", "diff": false, "name": "PLC Dados Lidos Code 1", "x": 190, "y": 1900, "wires": [ [ "7d3105dad6b5f7a8" ] ] }, { "id": "0fbbe8f2aaef5b0f", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1310, "y": 1560, "wires": [] }, { "id": "648628f27853ea4e", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 2, "width": 0, "height": 0, "name": "Archive 1", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 1280, "y": 1680, "wires": [] }, { "id": "f8b114cfdf72fc95", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 2\"", "diff": false, "name": "PLC Lido Registo2- ID", "x": 180, "y": 2500, "wires": [ [ "3420d84330e67c3b" ] ] }, { "id": "7d6282cf5a592565", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 2\"", "diff": false, "name": "PLC Dados Lidos Code 2", "x": 190, "y": 2860, "wires": [ [ "a2adce9934cb1471" ] ] }, { "id": "0cb09b676698ebb4", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1190, "y": 2480, "wires": [] }, { "id": "6be1c5dd985209da", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 3, "width": 0, "height": 0, "name": "Archive 2", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 1180, "y": 2740, "wires": [] }, { "id": "668a46c5c4094a1d", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 3\"", "diff": false, "name": "PLC Lido Registo3- ID", "x": 180, "y": 3080, "wires": [ [ "3aaca3b954992bd4" ] ] }, { "id": "017b2b9d2edbac86", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 3\"", "diff": false, "name": "PLC Dados Lidos Code 3", "x": 170, "y": 3480, "wires": [ [ "7cb75b752bb37cc3" ] ] }, { "id": "82a996b7f4f20a25", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 3", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1170, "y": 3160, "wires": [] }, { "id": "fb984fc776a304db", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 4, "width": 0, "height": 0, "name": "Archive 3", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 1280, "y": 3240, "wires": [] }, { "id": "be412eb1504bb86f", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 1", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 880, "y": 1680, "wires": [ [ "0fbbe8f2aaef5b0f", "648628f27853ea4e", "2c3e79535a84e201", "1dd2dd669b2bb646" ] ], "inputLabels": [ "ABC" ] }, { "id": "3fde2b46db43b810", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive 1\"", "diff": false, "name": "Data_Hora_1", "x": 70, "y": 1680, "wires": [ [ "15cdea59219c0cdc" ] ] }, { "id": "15cdea59219c0cdc", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 260, "y": 1680, "wires": [ [ "83ce85499d30ab1c" ] ] }, { "id": "c539a00127b7d7e1", "type": "comment", "z": "4baf25d2ba923d62", "name": "Leitura do estado do Input DL300_Read OK", "info": "", "x": 230, "y": 60, "wires": [] }, { "id": "e87480c2cae1d032", "type": "comment", "z": "4baf25d2ba923d62", "name": "Leitura do registo do último código lido", "info": "", "x": 190, "y": 500, "wires": [] }, { "id": "26a4618ca9a2bd93", "type": "comment", "z": "4baf25d2ba923d62", "name": "Apresentar os dados de 1-5 do arquivo de registos", "info": "# Hello", "x": 290, "y": 1380, "wires": [] }, { "id": "22e65257fab17ebb", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive2\"", "diff": false, "name": "Data_Hora_2", "x": 70, "y": 2700, "wires": [ [ "ac0175b77aa5dfeb" ] ] }, { "id": "ac0175b77aa5dfeb", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 260, "y": 2700, "wires": [ [ "417f3a085f4625c4" ] ] }, { "id": "5c1293e9183d968f", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 2", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 900, "y": 2640, "wires": [ [ "0cb09b676698ebb4", "6be1c5dd985209da", "45cc871a3b535bf8", "c1c39d5a24030681" ] ], "inputLabels": [ "ABC" ] }, { "id": "a5d65635fa83aeae", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 3", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 920, "y": 3260, "wires": [ [ "82a996b7f4f20a25", "fb984fc776a304db", "9439234846b8fd08", "5440c830e7d197d0" ] ], "inputLabels": [ "ABC" ] }, { "id": "138994f80043ee49", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive3\"", "diff": false, "name": "Data_Hora_3", "x": 130, "y": 3300, "wires": [ [ "b6b071d48b56920b" ] ] }, { "id": "b6b071d48b56920b", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 280, "y": 3300, "wires": [ [ "20c808ca09bd2ea9" ] ] }, { "id": "ec128c4549d62f9c", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 4\"", "diff": false, "name": "PLC Lido Registo4- ID", "x": 100, "y": 3600, "wires": [ [ "0f0a8971f948b8a3" ] ] }, { "id": "a2d9a1ecdf9a4119", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 4\"", "diff": false, "name": "PLC Dados Lidos Code 4", "x": 110, "y": 3880, "wires": [ [ "3eb418e40c1dfe96" ] ] }, { "id": "7dd45ee55acdec36", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 4", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1170, "y": 3640, "wires": [] }, { "id": "eddf57ab64707093", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 5, "width": 0, "height": 0, "name": "Archive 4", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 1160, "y": 3740, "wires": [] }, { "id": "5829105228c0b25c", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 4", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 900, "y": 3780, "wires": [ [ "7dd45ee55acdec36", "eddf57ab64707093", "ae1dc69380b7044b", "0d2d40a24baf676d" ] ], "inputLabels": [ "ABC" ] }, { "id": "d7b98b60d4ac5a85", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive4\"", "diff": false, "name": "Data_Hora_4", "x": 70, "y": 3800, "wires": [ [ "03315df11929d483" ] ] }, { "id": "03315df11929d483", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 320, "y": 3800, "wires": [ [ "080c543bfee2de0e" ] ] }, { "id": "33b7b190d52bdb64", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 5\"", "diff": false, "name": "PLC Lido Registo5- ID", "x": 100, "y": 4200, "wires": [ [ "9bab9c2e316bb246" ] ] }, { "id": "7eb7e5f3b091ebb5", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 5\"", "diff": false, "name": "PLC Dados Lidos Code 5", "x": 110, "y": 4520, "wires": [ [ "aeedc531e5d706af" ] ] }, { "id": "612679b8eceba295", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 5", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1150, "y": 4180, "wires": [] }, { "id": "2642191996e4e5dc", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 6, "width": 0, "height": 0, "name": "Archive 5", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 1120, "y": 4360, "wires": [] }, { "id": "0f6d883fa8efe04f", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 5", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 800, "y": 4280, "wires": [ [ "612679b8eceba295", "2642191996e4e5dc", "d0fab9293665682b", "f829052179e9cb6a" ] ], "inputLabels": [ "ABC" ] }, { "id": "9202785dca0156da", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive5\"", "diff": false, "name": "Data_Hora_5", "x": 70, "y": 4360, "wires": [ [ "5ad1d86f12eba51a" ] ] }, { "id": "5ad1d86f12eba51a", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 220, "y": 4360, "wires": [ [ "088dd462d38e19c4" ] ] }, { "id": "cc6a1586d8475e3d", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 6\"", "diff": false, "name": "PLC Lido Registo6- ID", "x": 1660, "y": 1500, "wires": [ [ "d2f052fe39c58885" ] ] }, { "id": "e644ca925f1f148b", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 6\"", "diff": false, "name": "PLC Dados Lidos Code 6", "x": 1670, "y": 1900, "wires": [ [ "a8f8d439901c83d7" ] ] }, { "id": "2c637a3b8aad2926", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 6", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2890, "y": 1480, "wires": [] }, { "id": "5d84b04937ab255f", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 7, "width": 0, "height": 0, "name": "Archive 6", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 2880, "y": 1740, "wires": [] }, { "id": "b707f2dadd1727e9", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 6", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 2420, "y": 1620, "wires": [ [ "2c637a3b8aad2926", "5d84b04937ab255f", "2d8474cbf588057e", "6d41505f73df8d3a" ] ], "inputLabels": [ "ABC" ] }, { "id": "9f5d3f11dbe284a0", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive6\"", "diff": false, "name": "Data_Hora_6", "x": 1630, "y": 1720, "wires": [ [ "11b6d4ba692e1b76" ] ] }, { "id": "11b6d4ba692e1b76", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 1840, "y": 1720, "wires": [ [ "579c136114da136b" ] ] }, { "id": "10eadf3d5f740da1", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 7\"", "diff": false, "name": "PLC Lido Registo7- ID", "x": 1660, "y": 2480, "wires": [ [ "074211716b658233" ] ] }, { "id": "4d8660440863c565", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 7\"", "diff": false, "name": "PLC Dados Lidos Code 7", "x": 1670, "y": 2760, "wires": [ [ "0acdb2dfdb5a574f" ] ] }, { "id": "96202e42ca329f5c", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 7", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2930, "y": 2500, "wires": [] }, { "id": "3cfc8fe5daed09e2", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 8, "width": 0, "height": 0, "name": "Archive 7", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 2920, "y": 2760, "wires": [] }, { "id": "3fc9b616ace9b73e", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 7", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 2420, "y": 2640, "wires": [ [ "96202e42ca329f5c", "3cfc8fe5daed09e2", "64aee5e5056718e6", "f93568feaea8e4f2" ] ], "inputLabels": [ "ABC" ] }, { "id": "2bbdf7dc537a5504", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 1820, "y": 2640, "wires": [ [ "a5236e6b329f31bf" ] ] }, { "id": "7ffb577c421c07a3", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive7\"", "diff": false, "name": "Data_Hora_7", "x": 1630, "y": 2640, "wires": [ [ "2bbdf7dc537a5504" ] ] }, { "id": "8b269f9a8eed19d6", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 8\"", "diff": false, "name": "PLC Lido Registo8- ID", "x": 1640, "y": 3140, "wires": [ [ "79ea2b848ec012f1" ] ] }, { "id": "7f29bd885feb8e52", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 8\"", "diff": false, "name": "PLC Dados Lidos Code 8", "x": 1650, "y": 3440, "wires": [ [ "3c7a67da62398c4b" ] ] }, { "id": "ae09edf14f097b21", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 8", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2890, "y": 3240, "wires": [] }, { "id": "4de17a5a9503995e", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 9, "width": 0, "height": 0, "name": "Archive 8", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 2940, "y": 3320, "wires": [] }, { "id": "6af5d22c5c1d8ec2", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 8", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 2380, "y": 3320, "wires": [ [ "ae09edf14f097b21", "4de17a5a9503995e", "778a224e9e878400", "099e83d486789346" ] ], "inputLabels": [ "ABC" ] }, { "id": "b1e57b3b664e3808", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 1760, "y": 3280, "wires": [ [ "d5d5702922f3cb52" ] ] }, { "id": "c2cb577e6474face", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive8\"", "diff": false, "name": "Data_Hora_8", "x": 1610, "y": 3280, "wires": [ [ "b1e57b3b664e3808" ] ] }, { "id": "82d01caaf5f11321", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"NDados 9\"", "diff": false, "name": "PLC Lido Registo9- ID", "x": 1700, "y": 3580, "wires": [ [ "aa1179cc934e5dd9" ] ] }, { "id": "eb781bad6f6640fa", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Code Archive 9\"", "diff": false, "name": "PLC Dados Lidos Code 9", "x": 1710, "y": 3860, "wires": [ [ "ebb64b289b2c404c" ] ] }, { "id": "af73f6317f6f637a", "type": "debug", "z": "4baf25d2ba923d62", "name": "Message Archive 9", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2910, "y": 3760, "wires": [] }, { "id": "79e832eaf435a6d1", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 10, "width": 0, "height": 0, "name": "Archive 9", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "className": "", "x": 2800, "y": 3820, "wires": [] }, { "id": "a2047e20968dcc0e", "type": "join", "z": "4baf25d2ba923d62", "name": "joint archive 9", "mode": "custom", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "accumulate": false, "timeout": "", "count": "3", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "num", "reduceFixup": "", "x": 2440, "y": 3740, "wires": [ [ "af73f6317f6f637a", "79e832eaf435a6d1", "5faa4a73409e561b", "98e4f59c414cc012" ] ], "inputLabels": [ "ABC" ] }, { "id": "9e50b86a2ca791d8", "type": "moment", "z": "4baf25d2ba923d62", "name": "Format", "topic": "Data_Time", "input": "", "inputType": "msg", "inTz": "Europe/Lisbon", "adjAmount": 0, "adjType": "days", "adjDir": "add", "format": "DD.MM.YYYY HH:mm:ss", "locale": "en-US", "output": "", "outputType": "msg", "outTz": "Europe/Lisbon", "x": 1820, "y": 3760, "wires": [ [ "dd166da84c245ff8" ] ] }, { "id": "3e243494220fef2e", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"Dta_Hour Archive9\"", "diff": false, "name": "Data_Hora_9", "x": 1670, "y": 3760, "wires": [ [ "9e50b86a2ca791d8" ] ] }, { "id": "580e10340a8459ee", "type": "comment", "z": "4baf25d2ba923d62", "name": "Apresentar os dados de 6-9 do arquivo de registos", "info": "", "x": 1730, "y": 1380, "wires": [] }, { "id": "417f3a085f4625c4", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload= '' //Send Empty string\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 490, "y": 2660, "wires": [ [ "2956d45d17961312" ] ] }, { "id": "20c808ca09bd2ea9", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload=''\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 470, "y": 3300, "wires": [ [ "e24bf2e0ef6193b1" ] ] }, { "id": "080c543bfee2de0e", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload=''\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 510, "y": 3780, "wires": [ [ "04430c6ea458f88b" ] ] }, { "id": "088dd462d38e19c4", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload=''\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 410, "y": 4300, "wires": [ [ "4675cc5a39db8460" ] ] }, { "id": "579c136114da136b", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload=''\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2050, "y": 1640, "wires": [ [ "190ca28365578377" ] ] }, { "id": "a5236e6b329f31bf", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload=''\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2010, "y": 2620, "wires": [ [ "30c622e9ec7024cf" ] ] }, { "id": "d5d5702922f3cb52", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload=''\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1950, "y": 3300, "wires": [ [ "da8fed42b77b66c4" ] ] }, { "id": "dd166da84c245ff8", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload=''\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1990, "y": 3760, "wires": [ [ "1fbcf5ad63b5b537" ] ] }, { "id": "cdffec9c790e4706", "type": "ui_text", "z": "4baf25d2ba923d62", "group": "1ad9dbfc0db34ce9", "order": 1, "width": 0, "height": 0, "name": "Display cabeçalho", "label": "", "format": " {{msg.payload}}", "layout": "col-center", "className": "", "x": 730, "y": 840, "wires": [] }, { "id": "08bf21c1e609d1df", "type": "inject", "z": "4baf25d2ba923d62", "name": "Registo_Code_Hora", "props": [ { "p": "payload" } ], "repeat": "0.1", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payload": "[ \"Registo Nº\" , \"Código\" , \"Data_Hora\" ]", "payloadType": "str", "x": 140, "y": 840, "wires": [ [ "14e49c8dc27a346f" ] ] }, { "id": "14e49c8dc27a346f", "type": "change", "z": "4baf25d2ba923d62", "name": "", "rules": [ { "t": "set", "p": "color", "pt": "msg", "to": "purple", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 410, "y": 840, "wires": [ [ "cdffec9c790e4706" ] ] }, { "id": "60dd423ef44da95c", "type": "comment", "z": "4baf25d2ba923d62", "name": "Criação de cabeçalho do grupo de arquivo de registos", "info": "", "x": 240, "y": 760, "wires": [] }, { "id": "83ce85499d30ab1c", "type": "function", "z": "4baf25d2ba923d62", "name": "Blank Date_Time", "func": "var payload=msg.payload;\n\nif (payload==\"01.01.1970 00:00:00\")\n\nmsg.payload= '' // Send Empty string\n\nreturn msg \n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 470, "y": 1680, "wires": [ [ "b421539322456f0a" ] ] }, { "id": "4bd5c755a3388479", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 1180, "y": 2020, "wires": [ [ "4168d540f58674a5" ] ] }, { "id": "a7275d2c6f9157b5", "type": "comment", "z": "4baf25d2ba923d62", "name": "Acionamento da leitura do leitor", "info": "\n", "x": 930, "y": 60, "wires": [] }, { "id": "aaf3586d7430b902", "type": "s7 out", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "variable": "\"DL300_Start_COM\"", "name": "DL300_Start_COM", "x": 1310, "y": 120, "wires": [] }, { "id": "6bb0134ea50bd892", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [0]\"", "name": "", "x": 1490, "y": 1780, "wires": [] }, { "id": "43930b6761aa7366", "type": "ui_switch", "z": "4baf25d2ba923d62", "name": "Acionar icone", "label": "Estado", "tooltip": "", "group": "35614e0daee07039", "order": 3, "width": "2", "height": "1", "passthru": false, "decouple": "true", "topic": "topic", "topicType": "msg", "style": "", "onvalue": "true", "onvalueType": "bool", "onicon": "radio_button_checked", "oncolor": "green", "offvalue": "false", "offvalueType": "bool", "officon": "radio_button_unchecked", "offcolor": "red", "animate": true, "className": "", "x": 1300, "y": 180, "wires": [ [] ] }, { "id": "24e8b3f242f4054c", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "single", "variable": "\"DL300_Start_COM\"", "diff": false, "name": "", "x": 850, "y": 280, "wires": [ [ "dd67db9c05ca0a1a", "43930b6761aa7366" ] ] }, { "id": "dd67db9c05ca0a1a", "type": "debug", "z": "4baf25d2ba923d62", "name": "check state of DL300_Start_Com", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1260, "y": 280, "wires": [] }, { "id": "8e616eeac3bd7642", "type": "ui_switch", "z": "4baf25d2ba923d62", "name": "Acionar ", "label": "Trigger início de leitura", "tooltip": "Deslize", "group": "35614e0daee07039", "order": 2, "width": "8", "height": "1", "passthru": true, "decouple": "false", "topic": "topic", "topicType": "msg", "style": "", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "animate": true, "className": "", "x": 820, "y": 120, "wires": [ [ "aaf3586d7430b902" ] ] }, { "id": "08f1cbd32cf4e7a5", "type": "function", "z": "4baf25d2ba923d62", "name": "Teste de Insert", "func": "\n//msg.payload={};\n\n//msg.payload.f1 = msg.payload[0];\n//msg.payload.f2 = msg.payload[1];\n//msg.payload.f3 = msg.payload[2];\n\n //if (msg.payload.f1 !== '' && msg.payload.f2 !== '' && msg.payload.f3 !== ''){\n\n//msg.topic = \"INSERT INTO `dados_leitura`(`referência`, `informação`, `data_hora`) VALUES (:f1, :f2, :f3)\";\n\n//return msg;\n//}\n\n//if (msg.payload[0]!==0 && msg.payload[1] !== \"\" && msg.payload[2] !== \"\"){\n\n//msg.payload={};\n\n//7msg.payload.f1 = msg.payload[0];\n//msg.payload.f2 = msg.payload[1];\n//msg.payload.f3 = msg.payload[2];\n\n\n\n//msg.topic = \"INSERT INTO `dados_leitura`(`referência`, `informação`, `data_hora`) VALUES (:f1, :f2, :f3)\";\n\n\n\n//return msg;\n//}\n\nif (msg.paylod[0] !==0 ) return null", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 860, "y": 1940, "wires": [ [] ] }, { "id": "2c3e79535a84e201", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 1760, "wires": [ [] ] }, { "id": "3aa05577414776e0", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [1]\"", "name": "", "x": 1330, "y": 2860, "wires": [] }, { "id": "45cc871a3b535bf8", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 2840, "wires": [ [] ] }, { "id": "d1ec50e7f64cd5de", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [2]\"", "name": "", "x": 1330, "y": 3340, "wires": [] }, { "id": "9439234846b8fd08", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1140, "y": 3340, "wires": [ [] ] }, { "id": "6e48002983ef686f", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [3]\"", "name": "", "x": 1270, "y": 3840, "wires": [] }, { "id": "ae1dc69380b7044b", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1100, "y": 3840, "wires": [ [] ] }, { "id": "e07a44621c2d8780", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [4]\"", "name": "", "x": 1170, "y": 4460, "wires": [] }, { "id": "d0fab9293665682b", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 940, "y": 4440, "wires": [ [] ] }, { "id": "4e1ccd082e0f7f01", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [6]\"", "name": "", "x": 2910, "y": 2860, "wires": [] }, { "id": "64aee5e5056718e6", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2680, "y": 2840, "wires": [ [] ] }, { "id": "cce72497442e0305", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [7]\"", "name": "", "x": 2970, "y": 3400, "wires": [] }, { "id": "778a224e9e878400", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2720, "y": 3400, "wires": [ [] ] }, { "id": "c0b3ca3af7b81e81", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [8]\"", "name": "", "x": 2810, "y": 3940, "wires": [] }, { "id": "5faa4a73409e561b", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2580, "y": 3920, "wires": [ [] ] }, { "id": "2df835bb55d9dc9f", "type": "s7 out", "z": "4baf25d2ba923d62", "d": true, "endpoint": "4c6a7d827ab450ca", "variable": "\"Flag PC [5]\"", "name": "", "x": 2890, "y": 1840, "wires": [] }, { "id": "2d8474cbf588057e", "type": "change", "z": "4baf25d2ba923d62", "name": "set true", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "true", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 2660, "y": 1820, "wires": [ [] ] }, { "id": "4168d540f58674a5", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1350, "y": 2060, "wires": [] }, { "id": "efec98df12fd3e40", "type": "function", "z": "4baf25d2ba923d62", "name": "Teste de Insert 2", "func": "if (msg.payload[0]!==0 && msg.payload[1] !== \"\" && msg.payload[2] !== \"\"){\n\nmsg.payload={};\n\nmsg.payload.f1 = msg.payload[0];\nmsg.payload.f2 = msg.payload[1];\nmsg.payload.f3 = msg.payload[2];\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\nreturn msg\n\n \n} //else {\n //return msg= null\n \n//}\n//msg.topic = \"INSERT INTO `dados_leitura`(`referência`, `informação`, `data_hora`) VALUES (\" +:f1+ \",:f2,:f3)\";\n\n//return msg\n\n\n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 860, "y": 1980, "wires": [ [] ] }, { "id": "a86386b68661dc3b", "type": "debug", "z": "4baf25d2ba923d62", "name": "deb", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1290, "y": 1820, "wires": [] }, { "id": "1dd2dd669b2bb646", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na= msg.payload.id;\nb= msg.payload.Código;\nc= msg.payload.data_tempo;\nmsg.payload= msg.payload.id\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a+\", '\"+b+\"', '\"+c+\"');\"\nreturn msg;\n\n\n\n\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\n//a= msg.payload.id;\n//b= msg.payload.Código;\n//c= msg.payload.data_tempo;\n//msg.payload= msg.payload.id\n\n//if(a==0 && b=='\"\"' && c=='\"\"'){\n // return msg.topic= null\n//} else {msg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a+\", '\"+b+\"', '\"+c+\"');\"\n//return msg;\n//} ", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 940, "y": 1860, "wires": [ [ "a86386b68661dc3b", "4bd5c755a3388479" ] ] }, { "id": "d526163fda910b55", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 480, "y": 1580, "wires": [ [ "be412eb1504bb86f" ] ] }, { "id": "b421539322456f0a", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 660, "y": 1680, "wires": [ [ "be412eb1504bb86f" ] ] }, { "id": "7d3105dad6b5f7a8", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 540, "y": 1780, "wires": [ [ "be412eb1504bb86f" ] ] }, { "id": "3420d84330e67c3b", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id2\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 520, "y": 2560, "wires": [ [ "5c1293e9183d968f" ] ] }, { "id": "3aaca3b954992bd4", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id3\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 560, "y": 3180, "wires": [ [ "a5d65635fa83aeae" ] ] }, { "id": "0f0a8971f948b8a3", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id4\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 400, "y": 3660, "wires": [ [ "5829105228c0b25c" ] ] }, { "id": "9bab9c2e316bb246", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id5\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 460, "y": 4240, "wires": [ [ "0f6d883fa8efe04f" ] ] }, { "id": "aa1179cc934e5dd9", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id9\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2000, "y": 3620, "wires": [ [ "a2047e20968dcc0e" ] ] }, { "id": "79ea2b848ec012f1", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id8\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1960, "y": 3220, "wires": [ [ "6af5d22c5c1d8ec2" ] ] }, { "id": "074211716b658233", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id7\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2000, "y": 2540, "wires": [ [ "3fc9b616ace9b73e" ] ] }, { "id": "d2f052fe39c58885", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"id6\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1980, "y": 1540, "wires": [ [ "b707f2dadd1727e9" ] ] }, { "id": "e24bf2e0ef6193b1", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo3\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 680, "y": 3280, "wires": [ [ "a5d65635fa83aeae" ] ] }, { "id": "2956d45d17961312", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo2\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 700, "y": 2640, "wires": [ [ "5c1293e9183d968f" ] ] }, { "id": "04430c6ea458f88b", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo4\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 680, "y": 3780, "wires": [ [ "5829105228c0b25c" ] ] }, { "id": "4675cc5a39db8460", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo5\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 580, "y": 4280, "wires": [ [ "0f6d883fa8efe04f" ] ] }, { "id": "190ca28365578377", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo6\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2220, "y": 1620, "wires": [ [ "b707f2dadd1727e9" ] ] }, { "id": "30c622e9ec7024cf", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo7\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2200, "y": 2640, "wires": [ [ "3fc9b616ace9b73e" ] ] }, { "id": "da8fed42b77b66c4", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo8\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2120, "y": 3300, "wires": [ [ "6af5d22c5c1d8ec2" ] ] }, { "id": "1fbcf5ad63b5b537", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"data_tempo9\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2180, "y": 3740, "wires": [ [ "a2047e20968dcc0e" ] ] }, { "id": "a2adce9934cb1471", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código2\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 520, "y": 2780, "wires": [ [ "5c1293e9183d968f" ] ] }, { "id": "7cb75b752bb37cc3", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código3\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 500, "y": 3400, "wires": [ [ "a5d65635fa83aeae" ] ] }, { "id": "3eb418e40c1dfe96", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código4\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 440, "y": 3840, "wires": [ [ "5829105228c0b25c" ] ] }, { "id": "aeedc531e5d706af", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código5\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 480, "y": 4400, "wires": [ [ "0f6d883fa8efe04f" ] ] }, { "id": "ebb64b289b2c404c", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código9\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2040, "y": 3820, "wires": [ [ "a2047e20968dcc0e" ] ] }, { "id": "3c7a67da62398c4b", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código8\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2060, "y": 3380, "wires": [ [ "6af5d22c5c1d8ec2" ] ] }, { "id": "0acdb2dfdb5a574f", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código7\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1980, "y": 2720, "wires": [ [ "3fc9b616ace9b73e" ] ] }, { "id": "a8f8d439901c83d7", "type": "function", "z": "4baf25d2ba923d62", "name": "", "func": "msg.topic=\"Código6\"\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2000, "y": 1800, "wires": [ [ "b707f2dadd1727e9" ] ] }, { "id": "172ee3b276f74228", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 1200, "y": 3020, "wires": [ [ "7b00f087089e5a02" ] ] }, { "id": "7b00f087089e5a02", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1370, "y": 3020, "wires": [] }, { "id": "c1c39d5a24030681", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\na2= msg.payload.id2;\nb2= msg.payload.Código2;\nc2= msg.payload.data_tempo2;\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a2+\", '\"+b2+\"', '\"+c2+\"');\"\nreturn msg;\n\n\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 940, "y": 2960, "wires": [ [ "172ee3b276f74228" ] ] }, { "id": "5ac5ae5eff5aea81", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 1200, "y": 3500, "wires": [ [ "8ee61965a43f390f" ] ] }, { "id": "8ee61965a43f390f", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd3", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1370, "y": 3500, "wires": [] }, { "id": "5440c830e7d197d0", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na3= msg.payload.id3;\nb3= msg.payload.Código3;\nc3= msg.payload.data_tempo3;\n\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a3+\", '\"+b3+\"', '\"+c3+\"');\"\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 940, "y": 3440, "wires": [ [ "5ac5ae5eff5aea81" ] ] }, { "id": "cf3b30a93eb451a8", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 1200, "y": 3980, "wires": [ [ "68656a7c7f67fcb4" ] ] }, { "id": "68656a7c7f67fcb4", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd4", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1370, "y": 3980, "wires": [] }, { "id": "0d2d40a24baf676d", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na4= msg.payload.id4;\nb4= msg.payload.Código4;\nc4= msg.payload.data_tempo4;\n\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a4+\", '\"+b4+\"', '\"+c4+\"');\"\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 940, "y": 3920, "wires": [ [ "cf3b30a93eb451a8" ] ] }, { "id": "11989383aabcb71b", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 1002.7619018554688, "y": 4590.09521484375, "wires": [ [ "45e1a4c158e1345b" ] ] }, { "id": "45e1a4c158e1345b", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd5", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1182.7619018554688, "y": 4590.09521484375, "wires": [] }, { "id": "f829052179e9cb6a", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\n//a= msg.payload.id;\n//b= msg.payload.Código;\n//c= msg.payload.data_tempo;\n//msg.payload= msg.payload.id\n//if(a!==0 && b!=='\"\"' && c!=='\"\"'){\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a+\", '\"+b+\"', '\"+c+\"');\"\n//return msg;\n//}\n\n\n\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na5= msg.payload.id5;\nb5= msg.payload.Código5;\nc5= msg.payload.data_tempo5;\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a5+\", '\"+b5+\"', '\"+c5+\"');\"\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 762.7619018554688, "y": 4530.09521484375, "wires": [ [ "11989383aabcb71b" ] ] }, { "id": "3e60cd7d30b1e8df", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 2700, "y": 4100, "wires": [ [ "59ac4112b4095b43" ] ] }, { "id": "59ac4112b4095b43", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd9", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2870, "y": 4100, "wires": [] }, { "id": "98e4f59c414cc012", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\n//a= msg.payload.id;\n//b= msg.payload.Código;\n//c= msg.payload.data_tempo;\n//msg.payload= msg.payload.id\n//if(a!==0 && b!=='\"\"' && c!=='\"\"'){\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a+\", '\"+b+\"', '\"+c+\"');\"\n//return msg;\n//}\n\n\n\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na8= msg.payload.id9;\nb8= msg.payload.Código9;\nc8= msg.payload.data_tempo9;\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a8+\", '\"+b8+\"', '\"+c8+\"');\"\nreturn msg;\n ", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2440, "y": 4040, "wires": [ [ "3e60cd7d30b1e8df" ] ] }, { "id": "5c2ce52060bfc81c", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 2820, "y": 3540, "wires": [ [ "dfb3082cfbb9a085" ] ] }, { "id": "dfb3082cfbb9a085", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd8", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2990, "y": 3540, "wires": [] }, { "id": "099e83d486789346", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\n//a= msg.payload.id;\n//b= msg.payload.Código;\n//c= msg.payload.data_tempo;\n//msg.payload= msg.payload.id\n//if(a!==0 && b!=='\"\"' && c!=='\"\"'){\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a+\", '\"+b+\"', '\"+c+\"');\"\n//return msg;\n//}\n\n\n\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na8= msg.payload.id8;\nb7= msg.payload.Código8;\nc7= msg.payload.data_tempo8;\n//msg.payload= msg.payload.id\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a8+\", '\"+b7+\"', '\"+c7+\"');\"\nreturn msg;\n ", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2560, "y": 3480, "wires": [ [ "5c2ce52060bfc81c" ] ] }, { "id": "821a261425afaf41", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 2780, "y": 3020, "wires": [ [ "efb0edb653a608d4" ] ] }, { "id": "efb0edb653a608d4", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2950, "y": 3020, "wires": [] }, { "id": "f93568feaea8e4f2", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\n//a= msg.payload.id;\n//b= msg.payload.Código;\n//c= msg.payload.data_tempo;\n//msg.payload= msg.payload.id\n//if(a!==0 && b!=='\"\"' && c!=='\"\"'){\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a+\", '\"+b+\"', '\"+c+\"');\"\n//return msg;\n//}\n\n\n\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na6= msg.payload.id7;\nb6= msg.payload.Código7;\nc6= msg.payload.data_tempo7;\n//msg.payload= msg.payload.id\n\n\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a6+\", '\"+b6+\"', '\"+c6+\"');\"\nreturn msg;\n ", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2520, "y": 2960, "wires": [ [ "821a261425afaf41" ] ] }, { "id": "92cc977c443fc57c", "type": "mysql", "z": "4baf25d2ba923d62", "mydb": "9318c461a29ff1da", "name": "", "x": 2820, "y": 1980, "wires": [ [ "cec4db9018b1753b" ] ] }, { "id": "cec4db9018b1753b", "type": "debug", "z": "4baf25d2ba923d62", "name": "payload bd2", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 2990, "y": 1980, "wires": [] }, { "id": "6d41505f73df8d3a", "type": "function", "z": "4baf25d2ba923d62", "name": "Insert function", "func": "//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\n//a= msg.payload.id;\n//b= msg.payload.Código;\n//c= msg.payload.data_tempo;\n//msg.payload= msg.payload.id\n//if(a!==0 && b!=='\"\"' && c!=='\"\"'){\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a+\", '\"+b+\"', '\"+c+\"');\"\n//return msg;\n//}\n\n\n\n//msg.topic= \"INSERT INTO `dados_leitura`(`referência`, `informação`,`data_hora`) VALUES (:f1,:f2 ,:f3);\";\n\na6= msg.payload.id6;\nb6= msg.payload.Código6;\nc6= msg.payload.data_tempo6;\n//msg.payload= msg.payload.id\nmsg.topic= \"INSERT INTO `dados_leitura`(`referência`,`informação`,`data_hora`) VALUES (\"+a6+\", '\"+b6+\"', '\"+c6+\"');\"\nreturn msg;\n ", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 2560, "y": 1920, "wires": [ [ "92cc977c443fc57c" ] ] }, { "id": "e22d4d8465cb9436", "type": "s7 in", "z": "4baf25d2ba923d62", "endpoint": "4c6a7d827ab450ca", "mode": "all", "variable": "", "diff": true, "name": "", "x": 950, "y": 420, "wires": [ [] ] }, { "id": "bec28d63889f6870", "type": "ui_spacer", "z": "4baf25d2ba923d62", "name": "spacer", "group": "35614e0daee07039", "order": 4, "width": 1, "height": 1 }, { "id": "d9f624eb044de285", "type": "ui_spacer", "z": "4baf25d2ba923d62", "name": "spacer", "group": "a002c8da5cb87055", "order": 2, "width": "2", "height": "2" }, { "id": "35614e0daee07039", "type": "ui_group", "name": " DataLogic Matrix 300 Read OK", "tab": "9e6b1f14f6a0509b", "order": 1, "disp": true, "width": "10", "collapse": false, "className": "" }, { "id": "4c6a7d827ab450ca", "type": "s7 endpoint", "transport": "iso-on-tcp", "address": "192.168.114.12", "port": "102", "rack": "0", "slot": "1", "localtsaphi": "01", "localtsaplo": "00", "remotetsaphi": "01", "remotetsaplo": "00", "connmode": "rack-slot", "adapterauto": true, "adapterport": "", "busaddr": "2", "adapteraddr": "0", "cycletime": "500", "timeout": "2000", "verbose": "default", "name": "PLC Testing", "vartable": [ { "addr": "I256.4", "name": "\"DL300_Read OK\"" }, { "addr": "DB8,S0.20", "name": "\"DadosString\"" }, { "addr": "DB9,INT4", "name": "\"NDados 1\"" }, { "addr": "DB9,DTL6", "name": "\"Dta_Hour Archive 1\"" }, { "addr": "DB9,S18.20", "name": "\"Code Archive 1\"" }, { "addr": "DB9,INT42", "name": "\"NDados 2\"" }, { "addr": "DB9,DTL44", "name": "\"Dta_Hour Archive2\"" }, { "addr": "DB9,S56.20", "name": "\"Code Archive 2\"" }, { "addr": "DB9,INT80", "name": "\"NDados 3\"" }, { "addr": "DB9,DTL82", "name": "\"Dta_Hour Archive3\"" }, { "addr": "DB9,S94.20", "name": "\"Code Archive 3\"" }, { "addr": "DB9,INT118", "name": "\"NDados 4\"" }, { "addr": "DB9,DTL120", "name": "\"Dta_Hour Archive4\"" }, { "addr": "DB9,S132.20", "name": "\"Code Archive 4\"" }, { "addr": "DB9,INT156", "name": "\"NDados 5\"" }, { "addr": "DB9,DTL158", "name": "\"Dta_Hour Archive5\"" }, { "addr": "DB9,S170.20", "name": "\"Code Archive 5\"" }, { "addr": "DB9,INT194", "name": "\"NDados 6\"" }, { "addr": "DB9,DTL196", "name": "\"Dta_Hour Archive6\"" }, { "addr": "DB9,S208.20", "name": "\"Code Archive 6\"" }, { "addr": "DB9,INT232", "name": "\"NDados 7\"" }, { "addr": "DB9,DTL234", "name": "\"Dta_Hour Archive7\"" }, { "addr": "DB9,S246.20", "name": "\"Code Archive 7\"" }, { "addr": "DB9,INT270", "name": "\"NDados 8\"" }, { "addr": "DB9,DTL272", "name": "\"Dta_Hour Archive8\"" }, { "addr": "DB9,S284.20", "name": "\"Code Archive 8\"" }, { "addr": "DB9,INT308", "name": "\"NDados 9\"" }, { "addr": "DB9,DTL310", "name": "\"Dta_Hour Archive9\"" }, { "addr": "DB9,S322.20", "name": "\"Code Archive 9\"" }, { "addr": "I0.0", "name": "\"DL300_Start_COM\"" }, { "addr": "DB9,X40.1", "name": "\"Flag PC [0]\"" }, { "addr": "DB9,X78.1", "name": "\"Flag PC [1]\"" }, { "addr": "DB9,X116.1", "name": "\"Flag PC [2]\"" }, { "addr": "DB9,X154.1", "name": "\"Flag PC [3]\"" }, { "addr": "DB9,X192.1", "name": "\"Flag PC [4]\"" }, { "addr": "DB9,X230.1", "name": "\"Flag PC [5]\"" }, { "addr": "DB9,X268.1", "name": "\"Flag PC [6]\"" }, { "addr": "DB9,X306.1", "name": "\"Flag PC [7]\"" }, { "addr": "DB9,X344.1", "name": "\"Flag PC [8]\"" } ] }, { "id": "a002c8da5cb87055", "type": "ui_group", "name": "Registo Atual", "tab": "9e6b1f14f6a0509b", "order": 2, "disp": true, "width": "10", "collapse": false, "className": "" }, { "id": "1ad9dbfc0db34ce9", "type": "ui_group", "name": "Arquivo de Registos", "tab": "9e6b1f14f6a0509b", "order": 3, "disp": true, "width": "20", "collapse": false, "className": "" }, { "id": "9318c461a29ff1da", "type": "MySQLdatabase", "name": "", "host": "127.0.0.1", "port": "3306", "db": "leitura-dm", "tz": "", "charset": "UTF8" }, { "id": "9e6b1f14f6a0509b", "type": "ui_tab", "name": "Leitura de Códigos 2D- Versão 0", "icon": "dashboard", "disabled": false, "hidden": false } ]