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

[S7] Writing byte array not working

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 0.8.0
    • None
    • Driver-S7
    • None
    • Windows 10

    Description

      I'm having some issues with writing a byte array using S7 driver to the S7-1200.

      I'm a bit new to the communication with PLCs, so I'm not sure if I'm doing something wrong.

      I've followed the example of how to write a byte array to the connection, however I'm getting an INTERNAL_ERROR as a response code from the library and in the Wireshark the status from the PLC is inconsistent data type. 

      I've attached both the sample project that's not working for me, my definition of byte array on the PLC and also  Wireshark capture. 

      It's possible that I'm not doing something right, however I can't figure it out. 

      Writing of most of the single values is working, however the array is the problem. And as far as I understood from the code and documentation arrays should be supported. 

      Any help would be appreciated.

      Attachments

        1. image-2021-08-23-12-20-42-410.png
          95 kB
          Maida Baralić
        2. image-2021-08-23-12-20-14-250.png
          70 kB
          Maida Baralić
        3. image-2021-08-23-12-14-06-828.png
          20 kB
          Maida Baralić
        4. image-2021-08-05-16-42-26-978.png
          44 kB
          Maida Baralić
        5. image-2021-08-05-16-40-56-113.png
          12 kB
          Maida Baralić
        6. write_byte_array_0.9.0.pcapng
          2 kB
          Maida Baralić
        7. DB4.pdf
          69 kB
          Maida Baralić
        8. PLCWrite.zip
          6 kB
          Maida Baralić
        9. write_byte_array_0.8.0.pcapng
          2 kB
          Maida Baralić

        Activity

          People

            cdutz Christofer Dutz
            maidab Maida Baralić

            Dates

              Created:
              Updated:

              Slack

                Issue deployment