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

When requesting invalid addresses, the DefaultS7MessageProcessor produces errors

    XMLWordPrintableJSON

Details

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

    Description

      It was reported on StackOverflow that there seem to be errors when simply brute-forcing reading all data from an S7 using PLC4X:

      https://stackoverflow.com/questions/57607913/unsolvable-error-with-multiple-requested-values-send-to-the-plc-apache-plc4x

      The issue was easily reproducible using the example code he provided:

       

      PlcReadRequest.Builder readBuilder = plcConnection.readRequestBuilder();
      for (int m = 1; m < 10; m++) {
          for (int j = 1; j < 9; j++) {
              readBuilder.addItem("value_int " + m + "." + j, "%DB" + m + "." + "DB" + j + ":INT");
          }
      }
      final PlcReadResponse plcReadResponse = readBuilder.build().execute().get();
      System.out.println(plcReadResponse);

       

      Attachments

        Issue Links

          Activity

            People

              cdutz Christofer Dutz
              cdutz Christofer Dutz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m