{"action":"opened","issue":{"url":"https://api.github.com/repos/netsmarttech/node-red-contrib-s7/issues/30","repository_url":"https://api.github.com/repos/netsmarttech/node-red-contrib-s7","labels_url":"https://api.github.com/repos/netsmarttech/node-red-contrib-s7/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/netsmarttech/node-red-contrib-s7/issues/30/comments","events_url":"https://api.github.com/repos/netsmarttech/node-red-contrib-s7/issues/30/events","html_url":"https://github.com/netsmarttech/node-red-contrib-s7/issues/30","id":374648698,"node_id":"MDU6SXNzdWUzNzQ2NDg2OTg=","number":30,"title":"LOGO! and Node-RED communications","user":{"login":"tsangiotis","id":697354,"node_id":"MDQ6VXNlcjY5NzM1NA==","avatar_url":"https://avatars0.githubusercontent.com/u/697354?v=4","gravatar_id":"","url":"https://api.github.com/users/tsangiotis","html_url":"https://github.com/tsangiotis","followers_url":"https://api.github.com/users/tsangiotis/followers","following_url":"https://api.github.com/users/tsangiotis/following{/other_user}","gists_url":"https://api.github.com/users/tsangiotis/gists{/gist_id}","starred_url":"https://api.github.com/users/tsangiotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsangiotis/subscriptions","organizations_url":"https://api.github.com/users/tsangiotis/orgs","repos_url":"https://api.github.com/users/tsangiotis/repos","events_url":"https://api.github.com/users/tsangiotis/events{/privacy}","received_events_url":"https://api.github.com/users/tsangiotis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-27T14:05:17Z","updated_at":"2018-10-27T14:05:17Z","closed_at":null,"author_association":"NONE","body":"I get the following behavior:\r\n\r\nI connect to a Siemens LOGO! and read some inputs without a problem.\r\n\r\nWhen I disconnect the LOGO! from power and reconnect after a while, I get only \"Failure (Bad values)\".\r\n\r\n![capture1](https://user-images.githubusercontent.com/697354/47604974-4317e380-da09-11e8-9c0e-fa57f06d5514.PNG)\r\n\r\nThe only way to go back to a working situation is to do a Full Deploy or restart my Node-RED instance.\r\n\r\nHere is the flow:\r\n\r\n```\r\n[{\"id\":\"dceccca6.e4c29\",\"type\":\"tab\",\"label\":\"S7-LOGO8\",\"disabled\":false,\"info\":\"First Step to adapt S7-node to logo-node\\n\\nLogoComfort side:\\n\\nTools-->Ethernet connections\\nEnter:\\n-LOGO IP adress\\n-Subnet Mask\\n-Default Gateway\\n\\nRight Click on Ethernet connections\\nAdd Server connection --> S7 Connection\\nDouble click on connection1\\n\\nTick Connect with an Operator Panel (OP)\\nIt will change TSAP to 02.00\\n\\nTick Accept all connection requests (Or you know what you do)\\n\\nRemote Properties (Client) TSAP: 01.00\\n\\nRed Node Side:\\nMenu (Upper Right)-->Import-->Clipboard\\nPaste flow\\nImport\\n\\nIn S7-LOGO8 Flow\\nDouble click on LOGO8\\nPLC properties (little pencil)\\nChange for your Red Node IP adress\\n\\nDeploy\\nNow you could already read all I/O of Logo\\n\"},{\"id\":\"14e4c23a.cca3ee\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"I01 AI03\",\"diff\":true,\"name\":\"LOGO8 I1\",\"x\":120,\"y\":40,\"wires\":[[\"a924a0e8.3f8a3\"]]},{\"id\":\"5083fbb4.8ce664\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"I02 AI04\",\"diff\":true,\"name\":\"LOGO8 I2\",\"x\":120,\"y\":100,\"wires\":[[\"afec231c.166fd\"]]},{\"id\":\"5696677b.25aba8\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"I03 High Freq\",\"diff\":true,\"name\":\"LOGO8 I3\",\"x\":120,\"y\":160,\"wires\":[[\"4d88bfd7.616db\"]]},{\"id\":\"63ce8ec9.fb9a4\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"I04 High Freq\",\"diff\":true,\"name\":\"LOGO8 I4\",\"x\":120,\"y\":220,\"wires\":[[\"7375958c.ee97fc\"]]},{\"id\":\"37357f81.c71a1\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"I05 High Freq\",\"diff\":true,\"name\":\"LOGO8 I5\",\"x\":120,\"y\":280,\"wires\":[[\"c43162c3.6c6d8\"]]},{\"id\":\"d37c85c7.e78558\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"I06 High Freq\",\"diff\":true,\"name\":\"LOGO8 I6\",\"x\":120,\"y\":340,\"wires\":[[\"b920f6d6.ea8ae8\"]]},{\"id\":\"ad4ba9ca.cfe948\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"I07 AI01\",\"diff\":true,\"name\":\"LOGO8 I7\",\"x\":120,\"y\":400,\"wires\":[[\"a5a96891.a05988\"]]},{\"id\":\"2699a98d.1f0a66\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"change\",\"p\":\"payload\",\"pt\":\"msg\",\"from\":\"true\",\"fromt\":\"bool\",\"to\":\"1\",\"tot\":\"str\"},{\"t\":\"change\",\"p\":\"payload\",\"pt\":\"msg\",\"from\":\"false\",\"fromt\":\"bool\",\"to\":\"0\",\"tot\":\"str\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":540,\"y\":40,\"wires\":[[\"a80acc0.95afd38\",\"4ce79648.3e4278\"]]},{\"id\":\"afec231c.166fd\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"topic\",\"pt\":\"msg\",\"to\":\"2\",\"tot\":\"num\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":290,\"y\":100,\"wires\":[[\"2699a98d.1f0a66\"]]},{\"id\":\"4d88bfd7.616db\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"topic\",\"pt\":\"msg\",\"to\":\"3\",\"tot\":\"num\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":290,\"y\":160,\"wires\":[[\"2699a98d.1f0a66\"]]},{\"id\":\"7375958c.ee97fc\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"topic\",\"pt\":\"msg\",\"to\":\"4\",\"tot\":\"num\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":290,\"y\":220,\"wires\":[[\"2699a98d.1f0a66\"]]},{\"id\":\"c43162c3.6c6d8\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"topic\",\"pt\":\"msg\",\"to\":\"5\",\"tot\":\"num\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":290,\"y\":280,\"wires\":[[\"2699a98d.1f0a66\"]]},{\"id\":\"b920f6d6.ea8ae8\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"topic\",\"pt\":\"msg\",\"to\":\"6\",\"tot\":\"num\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":290,\"y\":340,\"wires\":[[\"2699a98d.1f0a66\"]]},{\"id\":\"a5a96891.a05988\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"topic\",\"pt\":\"msg\",\"to\":\"7\",\"tot\":\"num\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":290,\"y\":400,\"wires\":[[\"2699a98d.1f0a66\"]]},{\"id\":\"a80acc0.95afd38\",\"type\":\"function\",\"z\":\"dceccca6.e4c29\",\"name\":\"format arguments\",\"func\":\"msg.payload = String(msg.topic) + \\\" \\\" + String(msg.payload)\\nreturn msg;\",\"outputs\":1,\"noerr\":0,\"x\":630,\"y\":120,\"wires\":[[\"6bec640.c14fa9c\",\"4ce79648.3e4278\"]]},{\"id\":\"6bec640.c14fa9c\",\"type\":\"exec\",\"z\":\"dceccca6.e4c29\",\"command\":\"cd  ~/maintnode/ && pipenv run python maintnode/logo/iomeasure.py\",\"addpay\":true,\"append\":\"\",\"useSpawn\":\"false\",\"timer\":\"\",\"oldrc\":false,\"name\":\"commit measurement\",\"x\":760,\"y\":200,\"wires\":[[\"d1bb3e2b.9176a\"],[],[\"d1bb3e2b.9176a\"]]},{\"id\":\"a924a0e8.3f8a3\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"topic\",\"pt\":\"msg\",\"to\":\"1\",\"tot\":\"num\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":290,\"y\":40,\"wires\":[[\"2699a98d.1f0a66\"]]},{\"id\":\"d1bb3e2b.9176a\",\"type\":\"debug\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"x\":870,\"y\":280,\"wires\":[]},{\"id\":\"4ce79648.3e4278\",\"type\":\"debug\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"x\":810,\"y\":40,\"wires\":[]},{\"id\":\"bfad1c08.5174b\",\"type\":\"s7 out\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"variable\":\"M03\",\"name\":\"Unlock\",\"x\":630,\"y\":520,\"wires\":[]},{\"id\":\"bb76c64a.2f7cc8\",\"type\":\"inject\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"topic\":\"\",\"payload\":\"true\",\"payloadType\":\"bool\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"onceDelay\":0.1,\"x\":150,\"y\":520,\"wires\":[[\"bfad1c08.5174b\",\"db928faa.7f1fa\"]]},{\"id\":\"5fc82588.a341ac\",\"type\":\"s7 in\",\"z\":\"dceccca6.e4c29\",\"endpoint\":\"7a40424c.fd2d5c\",\"mode\":\"single\",\"variable\":\"M03\",\"diff\":true,\"name\":\"LOGO8 M3\",\"x\":130,\"y\":460,\"wires\":[[\"80d59433.659b48\"]]},{\"id\":\"80d59433.659b48\",\"type\":\"debug\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\"tostatus\":false,\"complete\":\"false\",\"x\":370,\"y\":460,\"wires\":[]},{\"id\":\"db928faa.7f1fa\",\"type\":\"delay\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"pauseType\":\"delay\",\"timeout\":\"1\",\"timeoutUnits\":\"seconds\",\"rate\":\"1\",\"nbRateUnits\":\"1\",\"rateUnits\":\"second\",\"randomFirst\":\"1\",\"randomLast\":\"5\",\"randomUnits\":\"seconds\",\"drop\":false,\"x\":300,\"y\":580,\"wires\":[[\"2621c6b5.34718a\"]]},{\"id\":\"2621c6b5.34718a\",\"type\":\"change\",\"z\":\"dceccca6.e4c29\",\"name\":\"\",\"rules\":[{\"t\":\"set\",\"p\":\"payload\",\"pt\":\"msg\",\"to\":\"false\",\"tot\":\"bool\"}],\"action\":\"\",\"property\":\"\",\"from\":\"\",\"to\":\"\",\"reg\":false,\"x\":460,\"y\":580,\"wires\":[[\"bfad1c08.5174b\"]]},{\"id\":\"7a40424c.fd2d5c\",\"type\":\"s7 endpoint\",\"z\":\"\",\"address\":\"192.168.1.122\",\"port\":\"102\",\"rack\":\"0\",\"slot\":\"2\",\"localtsaphi\":\"01\",\"localtsaplo\":\"00\",\"remotetsaphi\":\"02\",\"remotetsaplo\":\"00\",\"connmode\":\"tsap\",\"cycletime\":\"500\",\"timeout\":\"1500\",\"verbose\":\"off\",\"name\":\"S7-LOGO8\",\"vartable\":[{\"addr\":\"DB1,X1064.0\",\"name\":\"Q01\"},{\"addr\":\"DB1,X1064.1\",\"name\":\"Q02\"},{\"addr\":\"DB1,X1064.2\",\"name\":\"Q03\"},{\"addr\":\"DB1,X1064.3\",\"name\":\"Q04\"},{\"addr\":\"DB1,X1064.4\",\"name\":\"Q05\"},{\"addr\":\"DB1,X1064.5\",\"name\":\"Q06\"},{\"addr\":\"DB1,X1064.6\",\"name\":\"Q07\"},{\"addr\":\"DB1,X1064.7\",\"name\":\"Q08\"},{\"addr\":\"DB1,X1065.0\",\"name\":\"Q09\"},{\"addr\":\"DB1,X1065.1\",\"name\":\"Q10\"},{\"addr\":\"DB1,X1065.2\",\"name\":\"Q11\"},{\"addr\":\"DB1,X1065.3\",\"name\":\"Q12\"},{\"addr\":\"DB1,X1065.4\",\"name\":\"Q13\"},{\"addr\":\"DB1,X1065.5\",\"name\":\"Q14\"},{\"addr\":\"DB1,X1065.6\",\"name\":\"Q15\"},{\"addr\":\"DB1,X1065.7\",\"name\":\"Q16\"},{\"addr\":\"DB1,X1066.0\",\"name\":\"Q17\"},{\"addr\":\"DB1,X1066.1\",\"name\":\"Q18\"},{\"addr\":\"DB1,X1066.2\",\"name\":\"Q19\"},{\"addr\":\"DB1,X1066.3\",\"name\":\"Q20\"},{\"addr\":\"DB1,X1024.0\",\"name\":\"I01 AI03\"},{\"addr\":\"DB1,X1024.1\",\"name\":\"I02 AI04\"},{\"addr\":\"DB1,X1024.2\",\"name\":\"I03 High Freq\"},{\"addr\":\"DB1,X1024.3\",\"name\":\"I04 High Freq\"},{\"addr\":\"DB1,X1024.4\",\"name\":\"I05 High Freq\"},{\"addr\":\"DB1,X1024.5\",\"name\":\"I06 High Freq\"},{\"addr\":\"DB1,X1024.6\",\"name\":\"I07 AI01\"},{\"addr\":\"DB1,X1024.7\",\"name\":\"I08 AI02\"},{\"addr\":\"DB1,X1025.0\",\"name\":\"I09\"},{\"addr\":\"DB1,X1025.1\",\"name\":\"I10\"},{\"addr\":\"DB1,X1025.2\",\"name\":\"I11\"},{\"addr\":\"DB1,X1025.3\",\"name\":\"I12\"},{\"addr\":\"DB1,X1025.4\",\"name\":\"I13\"},{\"addr\":\"DB1,X1025.5\",\"name\":\"I14\"},{\"addr\":\"DB1,X1025.6\",\"name\":\"I15\"},{\"addr\":\"DB1,X1025.7\",\"name\":\"I16\"},{\"addr\":\"DB1,X1026.0\",\"name\":\"I17\"},{\"addr\":\"DB1,X1026.1\",\"name\":\"I18\"},{\"addr\":\"DB1,X1026.2\",\"name\":\"I19\"},{\"addr\":\"DB1,X1026.3\",\"name\":\"I20\"},{\"addr\":\"DB1,X1026.4\",\"name\":\"I21\"},{\"addr\":\"DB1,X1026.5\",\"name\":\"I22\"},{\"addr\":\"DB1,X1026.6\",\"name\":\"I23\"},{\"addr\":\"DB1,X1026.7\",\"name\":\"I24\"},{\"addr\":\"DB1,INT1032\",\"name\":\"AI01\"},{\"addr\":\"DB1,INT1034\",\"name\":\"AI02\"},{\"addr\":\"DB1,INT1036\",\"name\":\"AI03\"},{\"addr\":\"DB1,INT1038\",\"name\":\"AI04\"},{\"addr\":\"DB1,INT1040\",\"name\":\"AI06\"},{\"addr\":\"DB1,INT1042\",\"name\":\"AI07\"},{\"addr\":\"DB1,INT1044\",\"name\":\"AI08\"},{\"addr\":\"DB1,INT1046\",\"name\":\"AI09\"},{\"addr\":\"DB1,INT1072\",\"name\":\"AQ01\"},{\"addr\":\"DB1,INT1074\",\"name\":\"AQ02\"},{\"addr\":\"DB1,INT1076\",\"name\":\"AQ03\"},{\"addr\":\"DB1,INT1078\",\"name\":\"AQ04\"},{\"addr\":\"DB1,INT1080\",\"name\":\"AQ05\"},{\"addr\":\"DB1,INT1082\",\"name\":\"AQ06\"},{\"addr\":\"DB1,INT1084\",\"name\":\"AQ07\"},{\"addr\":\"DB1,INT1086\",\"name\":\"AQ08\"},{\"addr\":\"DB1,INT1088\",\"name\":\"AQ09\"},{\"addr\":\"DB1,X1104.0\",\"name\":\"M01\"},{\"addr\":\"DB1,X1104.1\",\"name\":\"M02\"},{\"addr\":\"DB1,X1104.2\",\"name\":\"M03\"},{\"addr\":\"DB1,X1104.3\",\"name\":\"M04\"},{\"addr\":\"DB1,X1104.4\",\"name\":\"M05\"},{\"addr\":\"DB1,X1104.5\",\"name\":\"M06\"},{\"addr\":\"DB1,X1104.6\",\"name\":\"M07\"},{\"addr\":\"DB1,X1104.7\",\"name\":\"M08 Start\"},{\"addr\":\"DB1,X1105.0\",\"name\":\"M09\"},{\"addr\":\"DB1,X1105.1\",\"name\":\"M10\"},{\"addr\":\"DB1,X1105.2\",\"name\":\"M11\"},{\"addr\":\"DB1,X1105.3\",\"name\":\"M12\"},{\"addr\":\"DB1,X1105.4\",\"name\":\"M13\"},{\"addr\":\"DB1,X1105.5\",\"name\":\"M14\"},{\"addr\":\"DB1,X1105.6\",\"name\":\"M15\"},{\"addr\":\"DB1,X1105.7\",\"name\":\"M16\"},{\"addr\":\"DB1,X1105.0\",\"name\":\"M17\"},{\"addr\":\"DB1,X1105.1\",\"name\":\"M18\"},{\"addr\":\"DB1,X1105.2\",\"name\":\"M19\"},{\"addr\":\"DB1,X1105.3\",\"name\":\"M20\"},{\"addr\":\"DB1,X1105.4\",\"name\":\"M21\"},{\"addr\":\"DB1,X1105.5\",\"name\":\"M22\"},{\"addr\":\"DB1,X1105.6\",\"name\":\"M23\"},{\"addr\":\"DB1,X1105.7\",\"name\":\"M24\"},{\"addr\":\"DB1,X1106.0\",\"name\":\"M25 LOGO Screen White\"},{\"addr\":\"DB1,X1106.1\",\"name\":\"M26 TDE Screen White\"},{\"addr\":\"DB1,X1106.2\",\"name\":\"M27 CharSet\"},{\"addr\":\"DB1,X1106.3\",\"name\":\"M28 LOGO Screen Orange\"},{\"addr\":\"DB1,X1106.4\",\"name\":\"M29 LOGO Screen Red\"},{\"addr\":\"DB1,X1106.5\",\"name\":\"M30 TDE Screen Orange\"},{\"addr\":\"DB1,X1106.6\",\"name\":\"M31 TDE Screen Red\"},{\"addr\":\"DB1,X1106.7\",\"name\":\"M32\"},{\"addr\":\"DB1,X1106.0\",\"name\":\"M33...64\"},{\"addr\":\"DB1,INT1118\",\"name\":\"AM1\"},{\"addr\":\"DB1,INT1120\",\"name\":\"AM2\"},{\"addr\":\"DB1,INT1122\",\"name\":\"AM3\"},{\"addr\":\"DB1,INT1124\",\"name\":\"AM4\"},{\"addr\":\"DB1,INT1126\",\"name\":\"AM5...64\"},{\"addr\":\"DB1,X1246.0\",\"name\":\"NI1\"},{\"addr\":\"DB1,X1246.1\",\"name\":\"NI1..64\"},{\"addr\":\"DB1,X1390.0\",\"name\":\"NQ1\"},{\"addr\":\"DB1,X1390.1\",\"name\":\"NQ1..64\"},{\"addr\":\"DB1,INT1262\",\"name\":\"NAI1\"},{\"addr\":\"DB1,INT1264\",\"name\":\"NAI1...64\"},{\"addr\":\"DB1,INT1406\",\"name\":\"NAQ1\"},{\"addr\":\"DB1,INT1408\",\"name\":\"NAQ2...64\"}]}]\r\n```\r\n\r\nAny ideas on how to get a stable connection?"}}
{"actor":{"display_login":"tsangiotis"}}