Menu

Java ethernet connection

Help
MrG
2011-11-03
2014-12-15
  • MrG

    MrG - 2011-11-03

    Hi everyone,

    When im using the test for the java ethernet connection i get this. Could someone give me some advice for setting op a connection?

    run:
    Success 0
    daveConnectPLC() step 0.
    daveConnectPLC() step 1.
    send packet 03,00,00,16,11,e0,00,00,00,01,00,c1,02,4d,57,c2,02,4d,57,c0,01,09,
    Interface.write 03,00,00,16,11,e0,00,00,00,01,00,c1,02,4d,57,c2,02,4d,57,c0,01,09,
    Interface.read
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 packet 03,00,00,19,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,19,02,f0,80,32,01,00,00,00,00,00,08,00,00,f0,00,00,01,00,01,03,c0,
    Interface.read
    Interface.read delayed
    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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
    Trying to read 64 bytes (32 words) from data block 1.
    Press return to continue.

    PDU header  32,01,00,00,00,00,00,02,00,00,
    plen: 2 dlen: 0
    Parameter 04,00,
    enter TCP.Exchange
    send packet 03,00,00,1f,02,f0,80,32,01,00,00,00,00,00,0e,00,00,04,01,12,0a,10,02,00,40,00,01,84,00,00,00,
    Interface.write 03,00,00,1f,02,f0,80,32,01,00,00,00,00,00,0e,00,00,04,01,12,0a,10,02,00,40,00,01,84,00,00,00,
    Interface.read
    Interface.read delayed
    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 
    setupReceivedPDU() returned: 0ok
    testReadResult() returned: -128Unexpected function code in answer
    DB1:DW0:0
    DB1:DW1: 0
    DB1:DW32: 0
    Trying to read 16 bytes from FW0.

    Press return to continue.

    PDU header  32,01,00,00,00,00,00,02,00,00,
    plen: 2 dlen: 0
    Parameter 04,00,
    enter TCP.Exchange
    send packet 03,00,00,1f,02,f0,80,32,01,00,00,00,00,00,0e,00,00,04,01,12,0a,10,02,00,10,00,00,83,00,00,00,
    Interface.write 03,00,00,1f,02,f0,80,32,01,00,00,00,00,00,0e,00,00,04,01,12,0a,10,02,00,10,00,00,83,00,00,00,
    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    Interface.read
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 
    setupReceivedPDU() returned: 0ok
    testReadResult() returned: -128Unexpected function code in answer
    C 0
    Co 0
    Con 0
    Conv 0
    Conve 0
    Conver 0
    Convert 0
    Converte 0
    Converted 0.0
    3 DWORDS 0 0 0
    1 Float: 0.0
    Now we write back these data after incrementing the first 3 by 1,2,3 and the float by 1.1.

    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    Press return to continue.

    In: 0 out: 00,00,00,01,
    PDU header  32,01,00,00,00,00,00,02,00,00,
    plen: 2 dlen: 0
    Parameter 05,00,
    valCount: 0
    valCount: 32
    PDU header  32,01,00,00,00,00,00,0e,00,08,
    plen: 14 dlen: 8
    Parameter 05,01,12,0a,10,02,00,04,00,00,83,00,00,00,
    Data      00,04,00,20,00,00,00,01,
    result Data  00,00,00,01,
    enter TCP.Exchange
    send packet 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,00,00,04,00,20,00,00,00,01,
    Interface.write 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,00,00,04,00,20,00,00,00,01,
    Interface.read
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 
    In: 0 out: 00,00,00,01,
    PDU header  32,01,00,00,00,00,00,02,00,00,
    plen: 2 dlen: 0
    Parameter 05,00,
    valCount: 0
    valCount: 32
    PDU header  32,01,00,00,00,00,00,0e,00,08,
    plen: 14 dlen: 8
    Parameter 05,01,12,0a,10,02,00,04,00,00,83,00,00,20,
    Data      00,04,00,20,00,00,00,01,
    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    result Data  00,00,00,01,
    enter TCP.Exchange
    send packet 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,20,00,04,00,20,00,00,00,01,
    Interface.write 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,20,00,04,00,20,00,00,00,01,
    Interface.read
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 
    In: 0 out: 00,00,00,01,
    PDU header  32,01,00,00,00,00,00,02,00,00,
    plen: 2 dlen: 0
    Parameter 05,00,
    valCount: 0
    valCount: 32
    PDU header  32,01,00,00,00,00,00,0e,00,08,
    plen: 14 dlen: 8
    Parameter 05,01,12,0a,10,02,00,04,00,00,83,00,00,40,
    Data      00,04,00,20,00,00,00,01,
    result Data  00,00,00,01,
    enter TCP.Exchange
    send packet 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,40,00,04,00,20,00,00,00,01,
    Interface.write 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,40,00,04,00,20,00,00,00,01,
    Interface.read
    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 
    i: 1066192077
    In: 63 out: 3f,8c,cc,cd,
    PDU header  32,01,00,00,00,00,00,02,00,00,
    plen: 2 dlen: 0
    Parameter 05,00,
    valCount: 0
    valCount: 32
    PDU header  32,01,00,00,00,00,00,0e,00,08,
    plen: 14 dlen: 8
    Parameter 05,01,12,0a,10,02,00,04,00,00,83,00,00,60,
    Data      00,04,00,20,3f,8c,cc,cd,
    result Data  3f,8c,cc,cd,
    enter TCP.Exchange
    send packet 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,60,00,04,00,20,3f,8c,cc,cd,
    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    Interface.write 03,00,00,27,02,f0,80,32,01,00,00,00,00,00,0e,00,08,05,01,12,0a,10,02,00,04,00,00,83,00,00,60,00,04,00,20,3f,8c,cc,cd,
    Interface.read
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 
    PDU header  32,01,00,00,00,00,00,02,00,00,
    plen: 2 dlen: 0
    Parameter 04,00,
    enter TCP.Exchange
    send packet 03,00,00,1f,02,f0,80,32,01,00,00,00,00,00,0e,00,00,04,01,12,0a,10,02,00,10,00,00,83,00,00,00,
    Interface.write 03,00,00,1f,02,f0,80,32,01,00,00,00,00,00,0e,00,00,04,01,12,0a,10,02,00,10,00,00,83,00,00,00,
    Interface.read
    Interface.write: java.net.SocketException: Software caused connection abort: socket write error
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    Interface.read delayed
    got 0bytes
    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 
    setupReceivedPDU() returned: 0ok
    testReadResult() returned: -128Unexpected function code in answer
    C 0
    Co 0
    Con 0
    Conv 0
    Conve 0
    Conver 0
    Convert 0
    Converte 0
    Converted 0.0
    FD0: 0
    FD4:0
    FD8:0
    FD12: 0.0
    Now disconnecting

    Done…
    BUILD SUCCESSFUL (total time: 20 seconds)

     
  • iluvatar

    iluvatar - 2012-12-25

    I have the same problem.
    Does anyone have a solution?

     
  • Anonymous

    Anonymous - 2013-08-28

    I have the same problem. :(

     
  • Anonymous

    Anonymous - 2014-03-20
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2014-12-15
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel