Skip to content

[Bug]: Timeout Exceptions After 5–10 Minutes When Reading 207 Memory Blocks with S7 Protocol in v0.13.0 (Works in v0.12.0) #2246

@shekhartanwar

Description

@shekhartanwar

What happened?

Issue
After upgrading to library version 0.13.0, my application, which reads 207 memory blocks from a PLC using the S7 protocol every second, starts throwing timeout exceptions after running for 5–10 minutes. With version 0.12.0, the application runs without issues.

Expected behavior
The application should continuously read all 207 memory blocks every second without timeout exceptions, as it does with version 0.12.0.

Steps to reproduce

  1. Use library version 0.13.0.
  2. Continuously read 207 memory blocks from a PLC every second.
  3. Observe that after 5–10 minutes, timeout exceptions occur.

Additional context
In 0.12.0, I manually divided the 207 memory blocks into ~21 PlcReadRequests (max 20 blocks per request) using batching.
In 0.13.0, batching is handled internally by the library.
No other changes were made to the application code.
This issue blocks me from upgrading to 0.13.0.

Environment
Library version: 0.13.0 (works in 0.12.0)
Protocol: S7
Number of memory blocks: 207
Frequency: 1 read per second

Version

v0.13.0

Programming Languages

  • plc4c
  • plc4go
  • plc4j
  • plc4net
  • plc4py

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • C-Bus
  • CANopen
  • EtherNet/IP
  • Firmata
  • IEC-69870
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • Profinet
  • S7
  • S7-light

Metadata

Metadata

Assignees

No one assigned

    Labels

    S7https://plc4x.apache.org/users/protocols/s7.html

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions