{"action":"created","issue":{"url":"https://api.github.com/repos/plcpeople/nodeS7/issues/4","repository_url":"https://api.github.com/repos/plcpeople/nodeS7","labels_url":"https://api.github.com/repos/plcpeople/nodeS7/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/plcpeople/nodeS7/issues/4/comments","events_url":"https://api.github.com/repos/plcpeople/nodeS7/issues/4/events","html_url":"https://github.com/plcpeople/nodeS7/issues/4","id":157890978,"number":4,"title":"Error on writing more then 32 byte of data","user":{"login":"Lichtjaeger","id":8598542,"avatar_url":"https://avatars.githubusercontent.com/u/8598542?v=3","gravatar_id":"","url":"https://api.github.com/users/Lichtjaeger","html_url":"https://github.com/Lichtjaeger","followers_url":"https://api.github.com/users/Lichtjaeger/followers","following_url":"https://api.github.com/users/Lichtjaeger/following{/other_user}","gists_url":"https://api.github.com/users/Lichtjaeger/gists{/gist_id}","starred_url":"https://api.github.com/users/Lichtjaeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lichtjaeger/subscriptions","organizations_url":"https://api.github.com/users/Lichtjaeger/orgs","repos_url":"https://api.github.com/users/Lichtjaeger/repos","events_url":"https://api.github.com/users/Lichtjaeger/events{/privacy}","received_events_url":"https://api.github.com/users/Lichtjaeger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-01T12:09:24Z","updated_at":"2016-06-02T13:48:13Z","closed_at":null,"body":"Hello,\r\n\r\nI've got the following log:\r\n\r\n> [18193,176543379] Initiate Called - Connecting to PLC with address and parameters:\r\n> [18193,182467207] { host: '192.168.36.94', port: 102, slot: 1, rack: 0 }\r\n> [18193,209406185] Connection cleanup is happening\r\n> [18193,216527877 192.168.36.94 S1] Attempting to connect to host...\r\n> [18193,224857695 192.168.36.94 S1] TCP Connection Established to 192.168.36.94 on port 102\r\n> [18193,227583800 192.168.36.94 S1] Will attempt ISO-on-TCP connection\r\n> [18193,235965423 192.168.36.94 S1] ISO-on-TCP Connection Confirm Packet Received\r\n> [18193,242886738 192.168.36.94 S1] Received PDU Response - Proceeding with PDU 240 and 3 max parallel connections.\r\n> [18193,247310183] Translation OK\r\n> [18193,249174666 192.168.36.94 S1] Preparing to WRITE g0,x0,v0,g1,x1,v1,g2,x2,v2,g3,x3,v3,g4,x4,v4,g5,x5,v5,g6,x6,v6,g7,x7,v7,g8,x8,v8,g9,x9,v9,g10,x10,v10,g11,x11,v11,g12,x12,v12 to value 50,3000,33,21,10000,100,10,30000,100,5,1000,0,20,-22000,75,10,30000,75,20,-22000,75,10,30000,75,20,-22000,75,10,30000,75,10,10000,25,11,0,10,0,0,0\r\n> [18193,286220953] PDU type (byte 8) was returned as 2 where the response PDU of 3 was expected.\r\n> [18193,288932884] Maybe you are requesting more than 240 bytes of data in a packet?\r\n> [18193,292037751] <Buffer 03 00 00 13 02 f0 80 32 02 00 00 00 02 00 00 00 00 85 00>\r\n> [18193,294749193] ConnectionReset is happening\r\n> [18193,297145409] We Caught a read/write error ECONNRESET - will DISCONNECT and attempt to reconnect.\r\n> [18193,300186252] ConnectionReset is happening\r\n> [18194,791888445 192.168.36.94 S1] WRITE TIMEOUT on sequence number 2\r\n> [18194,798587879] We must have timed Out - we have no response to process\r\n> [18194,804174488] Stopping Processing Write Response Packet due to unrecoverable packet error\r\n> [18194,814658604 192.168.36.94 S1] WRITE TIMEOUT on sequence number 3\r\n> [18194,819903105] We must have timed Out - we have no response to process\r\n> [18194,823505981] Stopping Processing Write Response Packet due to unrecoverable packet error\r\n> true\r\n> [18194,831520084] ResetNOW is happening\r\n> [18194,833264341] Clearing an earlier scheduled reset\r\n\r\nI want to write to an Array of Struct in DB2. One Struct (line) conatins g: USINT; x: DINT and v: INT. The addresses are map the following way:\r\n\r\n```\r\n    let map = {}\r\n    ;[{g:1,x:2,v:3},...,{g:6,x:7,v:8}].forEach((line, index) => {\r\n        map['g' + index] = [`DB2,BYTE${index * 8}`, line.g]\r\n        map['x' + index] = [`DB2,DINT${index * 8 + 2}`, line.x]\r\n        map['v' + index] = [`DB2,INT${index * 8 + 6}`, line.v]\r\n    })\r\n```\r\n\r\nI can write exactly four lines at a time. One byte more and I get the error.\r\n\r\nThere is something about 240 byte in the log but 4 * 8 byte = 32 byte is much lower then 240 byte.\r\n\r\nI am using a S7 1214 v2.2 CPU."},"comment":{"url":"https://api.github.com/repos/plcpeople/nodeS7/issues/comments/223296686","html_url":"https://github.com/plcpeople/nodeS7/issues/4#issuecomment-223296686","issue_url":"https://api.github.com/repos/plcpeople/nodeS7/issues/4","id":223296686,"user":{"login":"plcpeople","id":8019526,"avatar_url":"https://avatars.githubusercontent.com/u/8019526?v=3","gravatar_id":"","url":"https://api.github.com/users/plcpeople","html_url":"https://github.com/plcpeople","followers_url":"https://api.github.com/users/plcpeople/followers","following_url":"https://api.github.com/users/plcpeople/following{/other_user}","gists_url":"https://api.github.com/users/plcpeople/gists{/gist_id}","starred_url":"https://api.github.com/users/plcpeople/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plcpeople/subscriptions","organizations_url":"https://api.github.com/users/plcpeople/orgs","repos_url":"https://api.github.com/users/plcpeople/repos","events_url":"https://api.github.com/users/plcpeople/events{/privacy}","received_events_url":"https://api.github.com/users/plcpeople/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T13:48:12Z","updated_at":"2016-06-02T13:48:12Z","body":"It will likely take until the weekend for me to get to look at this. But I\nwill.\nOn Jun 2, 2016 1:45 AM, \"Peter Scheler\" <notifications@github.com> wrote:\n\n> Contains my node project, plc prints, cmd log and two wireshark files (for\n> requestMaxPDU = 960 and 120).\n>\n> s7-node-test.zip\n> <https://github.com/plcpeople/nodeS7/files/294940/s7-node-test.zip>\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/plcpeople/nodeS7/issues/4#issuecomment-223209074>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe/AHpeRs_QOpI75E316ZoTJpYF8s1gSK0Nks5qHnv7gaJpZM4IreiX>\n> .\n>\n"}}
{"actor":{"display_login":"plcpeople"}}