{"action":"created","issue":{"url":"https://api.github.com/repos/Beckhoff/ADS/issues/30","repository_url":"https://api.github.com/repos/Beckhoff/ADS","labels_url":"https://api.github.com/repos/Beckhoff/ADS/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/Beckhoff/ADS/issues/30/comments","events_url":"https://api.github.com/repos/Beckhoff/ADS/issues/30/events","html_url":"https://github.com/Beckhoff/ADS/issues/30","id":167391735,"number":30,"title":"timeout with TC2 v2.11.2248","user":{"login":"rockonedege","id":717477,"avatar_url":"https://avatars.githubusercontent.com/u/717477?v=3","gravatar_id":"","url":"https://api.github.com/users/rockonedege","html_url":"https://github.com/rockonedege","followers_url":"https://api.github.com/users/rockonedege/followers","following_url":"https://api.github.com/users/rockonedege/following{/other_user}","gists_url":"https://api.github.com/users/rockonedege/gists{/gist_id}","starred_url":"https://api.github.com/users/rockonedege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockonedege/subscriptions","organizations_url":"https://api.github.com/users/rockonedege/orgs","repos_url":"https://api.github.com/users/rockonedege/repos","events_url":"https://api.github.com/users/rockonedege/events{/privacy}","received_events_url":"https://api.github.com/users/rockonedege/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-25T15:16:08Z","updated_at":"2016-07-26T17:41:01Z","closed_at":null,"body":"I cloned the latest version into a VMware with TC2 v2.11.2248 installed.  It compiled smoothly with no error.\r\nSo I tried to run the example with necessary changes:\r\n-  at line #193, I changed from AMSPORT_R0_PLC_TC3 to AMSPORT_R0_PLC.\r\n-  at line #177&178, I also made necessary changes to the Addresses.\r\n\r\nThen I create a TC2 PLC project, with the code I extracted from your test project:\r\n```\r\nPROGRAM MAIN\r\nVAR\r\n\tbyByte\t\tAT %MB0 : ARRAY [0..1027] OF BYTE;\r\n\ti\t\t\t: INT;\r\nEND_VAR\r\n\r\nFOR i := 4 TO 1027 BY 1 DO\r\n\tbyByte[i] := byByte[i] + 1;\r\nEND_FOR\r\n```\r\n\r\nThen I tested it's working well with [pyads](https://github.com/MrLeeh/pyads) e.g.\r\n\r\n> adsSyncReadByName(adr, \"MAIN.byBYTE\", PLCTYPE_ARR_INT(1028))\r\n\r\nall good.\r\n \r\n\r\nHowever,  when running the example.exe. It always ends up with timeout. \r\n\r\n> 2016-07-25T11:12:20 Info: Connecting to 192.168.150.142\r\n> Add device notification failed with: 1861\r\n> notificationByNameExample():\r\n> Create handle for 'MAIN.byByte' failed with: 0x745\r\n> Add device notification failed with: 1861\r\n> readExample():\r\n> ADS read failed with: 1861\r\n> readByNameExample():\r\n> Create handle for 'MAIN.byByte' failed with: 0x745\r\n> ADS read failed with: 1861\r\n> ADS read failed with: 1861\r\n> 2016-07-25T11:12:55 Info: connection closed by remote\r\n\r\nDo you know why?\r\n\r\nBy the way, is this this repo the official implementation that's shipped with TWinCAT , or an alternative implementation?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Beckhoff/ADS/issues/comments/235346328","html_url":"https://github.com/Beckhoff/ADS/issues/30#issuecomment-235346328","issue_url":"https://api.github.com/repos/Beckhoff/ADS/issues/30","id":235346328,"user":{"login":"rockonedege","id":717477,"avatar_url":"https://avatars.githubusercontent.com/u/717477?v=3","gravatar_id":"","url":"https://api.github.com/users/rockonedege","html_url":"https://github.com/rockonedege","followers_url":"https://api.github.com/users/rockonedege/followers","following_url":"https://api.github.com/users/rockonedege/following{/other_user}","gists_url":"https://api.github.com/users/rockonedege/gists{/gist_id}","starred_url":"https://api.github.com/users/rockonedege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockonedege/subscriptions","organizations_url":"https://api.github.com/users/rockonedege/orgs","repos_url":"https://api.github.com/users/rockonedege/repos","events_url":"https://api.github.com/users/rockonedege/events{/privacy}","received_events_url":"https://api.github.com/users/rockonedege/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T17:41:01Z","updated_at":"2016-07-26T17:41:01Z","body":"> The limitation really just comes from the inability to setup a TwinCAT ADS route \"IP: 127.0.0.1 AmsNetId: 127.0.0.1.1.1\".\r\n\r\nthis what stills puzzles me. I get that when connecting remotely, there's only one client per ip because the ip and AMS id are 1-to-1 map in the router table. what prevents a client from residing in the same OS/PC as the server? Is there a default client that's always running, what is that?"}}
{"actor":{"display_login":"rockonedege"}}