Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-240

Protocol error in reading string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.0
    • None
    • Driver-S7
    • None

    Description

      Dear Christofer,

      unfortunately I have found an another issue.
      Via the HelloPlc app I am trying to read a string from my 1200 PLC; here attached you could find the screenshot of the DB as configured in the PLC.
      The command line I am using is:

      "--connection-string 's7:tcp://192.168.1.192?controller-type=S7_1200' --field-addresses '%DB1:6.0:STRING'"
      

      With the library Version 0.8.0 after the patch Julian introduced here: Pull 175 which fix the reading of Array of numbers, the reading of Strings doesn't work any more.
      The error I could read via wireshark is:

      [Error code: S7 protocol error: Wrong frames (0x8500)]
      

      With the library version 0.6.0 the string is correctly read.
      To help you in your work I have attached a capture with both the library version.
      Hope to be useful to fix the bug.

      Regards,
      Stefano Bossi

      P.S. just to let you know, I am trying to read a complex DataBlock and this is the reason I am experimenting with a lot of different types of variables. In the near future I will try to read some many other and to write some too. Unfortunately your code is far too complex for my java knowledge and I am not able to fix the bug by myself but I could test the library and send detailed report if I found some trouble. Hope this could help anyway.

      Attachments

        1. Screenshot 2020-08-20 at 09.35.58.png
          20 kB
          Stefano Bossi
        2. captureString_v_0_6_0.pcapng
          3 kB
          Stefano Bossi
        3. captureString_v_0_8_0_wrong.pcapng
          2 kB
          Stefano Bossi

        Activity

          People

            cdutz Christofer Dutz
            fox_pluto Stefano Bossi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: