Industry Online Support
Technical Forum
3/21/2014 9:59 AM | |
Posts: 2 Rating: (0) |
Hello everyone! I tried to develop an app for read and write from/on 0BA7, I follow this guide: After some problem I could create a connection with the PLC (maybe), but I can't read or write from him. So, I found thissitewhere I can confirm that with dc.readBytes (Nodave.OUTPUTS, 0, 0, 2, null); I tried to read Q5, but I had strange values. The logcat for the connection return me this: daveConnectPLC() step 1. rack:2 slot:0 send ISO packet 03,00,00,22,11,e0,00,00,00,01,00,c1,02,02,00,c2,02,03,00,c0,01,09, Interface.write 03,00,00,22,11,e0,00,00,00,01,00,c1,02,02,00,c2,02,03,00,c0,01,09, daveConnectPLC() step 1. PDU header 32,01,00,00,00,00,00,08,00,00, plen: 8 dlen: 0 Parameter f0,00,00,01,00,01,03,c0, enter TCP.Exchange send ISO packet 03,00,00,22,02,f0,80,32,01,00,00,00,00,00,08,00,00,f0,00,00,01,00,01,03,c0, Interface.write 03,00,00,22,02,f0,80,32,01,00,00,00,00,00,08,00,00,f0,00,00,01,00,01,03,c0, PDU header 00,00,00,00,00,00,00,00,00,00, PDU header 00,00,00,00,00,00,00,00,00,00, plen: 0 dlen: 0 Parameter *** Partner offered PDU length: 0 Connection OK and this when i try to read: PDU header 00,00,00,00,00,00,00,00,00,00, plen: 0 dlen: 0 Parameter setupReceivedPDU() returned: 0ok testReadResult() returned: -128Unexpected function code in answer How you can see the message say "Connection ok" but the PDU lenght is 0, it's this strange? I thought it was a connect block problem for the logo and I tried to change it like look in this site: But nothing, I had the same problem, also if the port is changed from 102 to 10001. I communicate with logo from my smartphone that is connect to the hotspot of my laptop, and I can confirm the LOGO! App work great. I hope someone can help me, and sorry for bad english, thanks. |
4/1/2014 9:27 AM | |
Posts: 2 Rating: (0) |
hello Ok, thanks for the answer. Can you post the code to read all 850VM? |
Follow us on