Menu

S7Online > Error -128

Help
Matrix-NTN
2007-11-02
2013-05-09
  • Matrix-NTN

    Matrix-NTN - 2007-11-02

    Hallo,

    ich versuche gerade mit LibnoDave eine Verbindung zu einem Master (PC) aufzubauen.
    Dabei gehe ich über die S7Online schnittstelle...
    Weil dies wie ich gelesen habe ja die einzigste ist, welche Profibus unterstützt oder irre ich?!

    Mit dem Programm tests7online bekomme ich folgende ausgabe:

    C:\TEMP\libnodave-0.8.4\Dot.NET\CS>tests7online.exe S7Online
    handle: 7  error:0
    daveListReachablePartners List length: 126
    Device at address: 1
    Device at address: 7

    *** Partner offered PDU length: 960

    error -128 ?????????????????
    Here we are

    An was kann das liegen? Oder mache ich was falsch?

    Grüße
    Matrix-NTN

     
    • Nobody/Anonymous

      First, there is a german mailing list, too. This here is in English. In all readmes that come with Libnodave, I require users to send the debug output Libnodave can produce. This would possibly show at which step the error occurs. The mere error numbers do not allways provide much information. They may not even be unique.
      S7online is very experimental and less mature than the rest. It is NOT the only way to access Profibus. As far as I know, MPI adapters, NetLink Plus and IBH Link can access Profibus as well. S7online is the only way to use CP5x1x and USB/MPI adapters under windows with Libnodave.
      What exactly is your communication partner? A PC you wrote, with a CP5x1x I suppose, so it can be a Profibus master, I suppose. So what application software runs this PC?
      S7online.dll and the underlzing Siemens low level communication dlls, together with a CP, an MPI adapter or NetLink, basically send and receive Profibus FDL (field data link) messages over Profibus or MPI. While these libraries could sent, afaik, any message content, Libnodave (and Step7) uses this mechanism to send S7 communication as content. So Libnodave is only useful, if the communication partner understands that.

       
    • Matrix-NTN

      Matrix-NTN - 2007-11-05

      Hello,

      i have 2 PC's:
      1. PC (Device 1) has a CP5611 an is Master. On this PC runs a Software written in c++ wich is the Master (using dpslib.dll)
      2. PC (Device 2) has a CP5611 an is Slave. On this PC i will running a C# Software with libnodave.

      The Master is running... tested with a C++ Slave.
      Now i try with libnodave:

      >tests7online.exe -d S7Online
      daveListReachablePartners List length: 126
      Device at address: 1
      Device at address: 7
      LoadLibrary(S7onlinx.dll) returned 02E00000)
      GetProcAddress returned 02E0216A)
      GetProcAddress returned 02E06DCD)
      GetProcAddress returned 02E07474)
      GetProcAddress returned 02E05656)
      GetProcAddress returned 02E061F9)
      GetProcAddress returned 02E07B56)
      handle: 8  error:0
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x66,0x00,0x02,0x01,0x00,0x00,0x00,0x22,0x01,0x28,0x00,
      10:0x00,0x00,0x00,0x3C,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      10:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x67,0x00,0x02,0x01,0x00,0x00,0x00,0x22,0x01,0x15,0x00,
      10:0x00,0x00,0x00,0x3C,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x15,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      10:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x68,0x00,0x02,0x01,0x00,0x00,0x00,0x22,0x01,0x28,0x00,
      10:0x00,0x00,0x00,0x3C,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      10:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x69,0x00,0x02,0x01,0x00,0x00,0x00,0x22,0x01,0x00,0x00,
      10:0x7F,0x00,0x00,0x80,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x1A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x10,0x30,0x10,0x10,0x10,0x10,0x10,0x30,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
      10:0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
      20:0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
      30:0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
      40:0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
      50:0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
      60:0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
      70:0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x6E,0x00,0x02,0x00,0x00,0x00,0x00,0x40,0x00,0x01,0x00,
      10:0x00,0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x02,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x6F,0x00,0x02,0x00,0x00,0x00,0x00,0x40,0x01,0x02,0x00,
      10:0x7E,0x00,0x00,0x7E,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x72,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x00,0x02,0x01,0x00,0x0C,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x01,
      10:0x00,0x02,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      50:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      60:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      70:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      PDU header:
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,
      plen: 8 dlen: 0
      Parameter:
      0:0xF0,0x00,0x00,0x01,0x00,0x01,0x03,0xC0,
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x40,0x06,0x02,0x00,
      10:0x12,0x00,0x00,0x12,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0xF0,0x00,0x00,0x01,0x00,0x01,
      10:0x03,0xC0,
      PDU header:
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,
      plen: 8 dlen: 0
      Parameter:
      0:0xF0,0x00,0x00,0x01,0x00,0x01,0x03,0xC0,
      PDU header:
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,
      plen: 8 dlen: 0
      Parameter:
      0:0xF0,0x00,0x00,0x01,0x00,0x01,0x03,0xC0,
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x40,0x07,0x02,0x00,
      10:0x00,0x00,0x00,0xE0,0x01,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0xF0,0x00,0x00,0x01,0x00,0x01,
      10:0x03,0xC0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      50:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      60:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      70:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      80:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      90:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      a0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      b0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      c0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      d0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      e0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      f0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      100:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      110:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      120:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      130:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      140:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      150:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      160:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      170:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      180:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      190:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      1a0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      1b0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      1c0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      1d0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      PDU header:
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,
      plen: 8 dlen: 0
      Parameter:
      0:0xF0,0x00,0x00,0x01,0x00,0x01,0x03,0xC0,
      PDU header:
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,
      plen: 8 dlen: 0
      Parameter:
      0:0xF0,0x00,0x00,0x01,0x00,0x01,0x03,0xC0,

      *** Partner offered PDU length: 960

      PDU header:
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x0E,0x00,0x00,
      plen: 14 dlen: 0
      Parameter:
      0:0x04,0x01,0x12,0x0A,0x10,0x02,0x00,0x10,0x00,0x00,0x83,0x00,0x00,0x00,
      _daveExchange PDU number: 65535
      header::
      0:0x00,0x00,0x00,0x00,0x50,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x40,0x07,0x02,0x00,
      10:0x00,0x00,0x00,0xE0,0x01,0x50,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      data::
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,0xF0,0x00,0x00,0x01,0x00,0x01,
      10:0x03,0xC0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      20:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      30:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      40:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      50:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      60:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      70:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      80:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      90:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      a0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      b0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      c0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      d0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      e0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      f0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      100:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      110:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      120:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      130:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      140:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      150:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      160:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      170:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      180:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      190:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      1a0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,error -128 ?????????????????
      Here we are
      0x00,0x00,0x00,0x00,
      1b0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      1c0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      1d0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
      result of exchange: 0
      PDU header:
      0:0x32,0x01,0x00,0x00,0x00,0x00,0x00,0x08,0x00,0x00,
      plen: 8 dlen: 0
      Parameter:
      0:0xF0,0x00,0x00,0x01,0x00,0x01,0x03,0xC0,
      _daveSetupReceivedPDU() returned: 0=ok
      _daveTestReadResult() returned: -128=Unexpected function code in answer

      Greetings Matrix-NTN

       
    • Nobody/Anonymous

      I think that your PB master does not emulate an S7 nor understand S7 communication.

      Here,

      *** Partner offered PDU length: 960

      the debug output looks like there would happen something, but that is an illusion, libnodave only does not test the packet well enough to see that it is not an answer but it is evaluating it's own request.
      I fear libnodave is NOT the rifht software to communicate to zour DP master!

      Thomas

       
    • Nobody/Anonymous

      I have a similar problem with error -128

      CP5611 and S7online

      I do the following to force the problem:

      First step:

      Hardware:
      CP5611  <------ connected -----> PLC

      Software:
      Connect function -- OK
      Read function ----- OK
      Read function ----- OK
      Read function ----- OK
      .
      .
      .

      Second step:

      Hardware:
      CP5611  <--//--- disconnected --//--> PLC

      Software:
      .
      .
      .
      Read function ----- res == -128
      Read function ----- res == -128
      Read function ----- res == -128

      Third step:

      Hardware:
      CP5611  <------ connected -----> PLC

      Software:
      .
      .
      .
      Read function ----- res == -128
      Read function ----- res == -128
      Read function ----- res == -128
      Connect function -- res == -128
      Disconnect function OK
      Connect function -- res == -128

      When you read two times or more with disconnected PLC, no read good anymore. Is there any way to restart communications?

       
    • Nobody/Anonymous

      I have a similar problem with error -128

      just as

      RE: S7Online > Error -128
      By: Nobody/Anonymous (nobody) - 2008-03-11 05:15 

      the only way is to restart my PC

      anybody can help?

      zyq201@hotmail.com

      best regards!

       
    • drazde

      drazde - 2008-08-01

      I have the same problem when I make the example from the source; but when I try to run it from a precompilate exe, it gos fine without problem.

      Why???

       
      • Nobody/Anonymous

        See the Makefiles for compiler switches and conditional defines. As I wrote in various README or COMPILING text files, the libnodave.dll and all examples written in C were build using Makefile.VC.wine

        Thomas

         
    • drazde

      drazde - 2008-08-01

      Thenks, however I use Borland C++ 6 and when I try to compile, it doesn't make testS7online.exe because there isn't no target in make file MAKEFILE.MAK (and then I made a new project). Now I add a target in the makefile, compile and try it.
      It works fine!

      PS: The first time I have copiled, I get this error message:
      ----
      MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
          ../bin/bcc32 -I..\include -c -DBCCWIN -DDAVE_LITTLE_ENDIAN /c testS7online.c
      Borland C++ 5.6 for Win32 Copyright (c) 1993, 2002 Borland
      testS7online.c:
      Warning W8059 nodave.h 1197: Structure packing size has changed
      Warning W8065 testS7online.c 138: Call to function 'getch' with no prototype in function wait
      Error E2342 testS7online.c 969: Type mismatch in parameter 'h' (wanted 'int', got 'void *') in function main
      Error E2342 testS7online.c 975: Type mismatch in parameter 'h' (wanted 'int', got 'void *') in function main
      Warning W8059 testS7online.c 997: Structure packing size has changed
      *** 2 errors in Compile ***

      ** error 1 ** deleting testS7online.obj
      ----

      I add the conio.h header file (for getch function) in testS7online.c and then the compiling go fine.

      by

       

Anonymous
Anonymous

Add attachments
Cancel