{"action":"created","issue":{"url":"https://api.github.com/repos/koszoaron/jFinsLib/issues/1","repository_url":"https://api.github.com/repos/koszoaron/jFinsLib","labels_url":"https://api.github.com/repos/koszoaron/jFinsLib/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/koszoaron/jFinsLib/issues/1/comments","events_url":"https://api.github.com/repos/koszoaron/jFinsLib/issues/1/events","html_url":"https://github.com/koszoaron/jFinsLib/issues/1","id":308594757,"number":1,"title":"Memory Area & Register Address example","user":{"login":"amacierzynski","id":12518073,"avatar_url":"https://avatars0.githubusercontent.com/u/12518073?v=4","gravatar_id":"","url":"https://api.github.com/users/amacierzynski","html_url":"https://github.com/amacierzynski","followers_url":"https://api.github.com/users/amacierzynski/followers","following_url":"https://api.github.com/users/amacierzynski/following{/other_user}","gists_url":"https://api.github.com/users/amacierzynski/gists{/gist_id}","starred_url":"https://api.github.com/users/amacierzynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amacierzynski/subscriptions","organizations_url":"https://api.github.com/users/amacierzynski/orgs","repos_url":"https://api.github.com/users/amacierzynski/repos","events_url":"https://api.github.com/users/amacierzynski/events{/privacy}","received_events_url":"https://api.github.com/users/amacierzynski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-26T14:24:32Z","updated_at":"2018-03-29T11:26:14Z","closed_at":null,"author_association":"NONE","body":"Hello!\r\n\r\nJust wanted to use your library as a part of my project. Great work btw!\r\n\r\nOne question is that I simply have no idea how to use it with PLC. I am not PLC guy at all, just Java Programmer.\r\n\r\nFor example I have three addresses: D01194, H0003.03 & CIO1003.10\r\n\r\nAs I understood you are sending this as a part of msg frame.\r\nNow in the `FinsConnection` class I have readRegister methods:\r\n\r\n`public int readRegister(int memoryArea, int registerAddress, int bits)` \r\n&\r\n`public int readRegister(int memoryArea, int registerAddress)`\r\n\r\nFrom the PLC doc, I found that D, H or CIO are PC Communication Areas. It is memoryArea in the lib?\r\nShould I convert those to HEX, so for example:\r\n\r\nD -> 0x000044\r\nH -> 0x000068\r\nCIO -> 0x63696f  ?\r\n\r\nThen I assume that number is just a register with a spcific bit after dot, right?\r\n\r\nWould be great to have simple explanation!\r\n\r\nBest Regards,\r\nAdam"},"comment":{"url":"https://api.github.com/repos/koszoaron/jFinsLib/issues/comments/377205561","html_url":"https://github.com/koszoaron/jFinsLib/issues/1#issuecomment-377205561","issue_url":"https://api.github.com/repos/koszoaron/jFinsLib/issues/1","id":377205561,"user":{"login":"amacierzynski","id":12518073,"avatar_url":"https://avatars0.githubusercontent.com/u/12518073?v=4","gravatar_id":"","url":"https://api.github.com/users/amacierzynski","html_url":"https://github.com/amacierzynski","followers_url":"https://api.github.com/users/amacierzynski/followers","following_url":"https://api.github.com/users/amacierzynski/following{/other_user}","gists_url":"https://api.github.com/users/amacierzynski/gists{/gist_id}","starred_url":"https://api.github.com/users/amacierzynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amacierzynski/subscriptions","organizations_url":"https://api.github.com/users/amacierzynski/orgs","repos_url":"https://api.github.com/users/amacierzynski/repos","events_url":"https://api.github.com/users/amacierzynski/events{/privacy}","received_events_url":"https://api.github.com/users/amacierzynski/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T11:26:14Z","updated_at":"2018-03-29T11:26:14Z","author_association":"NONE","body":"Thank you for your response.\r\nSo do you think that communication between PLC & standard PC can be different than in your example? \r\nI was able to ping & connect to the PLC using your lib, but the response is always *-1* (for booleans & int/words as well).\r\n\r\nI will add logger inside your code and try to debug it a little bit. "}}
{"actor":{"display_login":"amacierzynski"}}