paco_0@9
Hello everyone,
I am dynamic configuring an architecture with OpenPLC Editor connected to a custom Modbus TCP simulator written in Python (using pymodbus). My goal is to read simulated energy data and relay it through OpenPLC to a Dart/Flutter HMI.
However, I am stuck with a persistence issue: all mapped Modbus values remain at 0 in OpenPLC Editor's debug panel, and I am getting scan overrun logs.
1. My Setup & Configuration
  • Simulator: Python script running on host IP 192.168.56.1 listening on port 5020.
  • OpenPLC Remote Device: Mapped to 192.168.56.1:5020 with a Slave ID 1.
  • Memory Structure: The Python simulator generates data structured in continuous chunks of 5 registers per equipment (Slot 0 = AC bureau at regs 0-4, Slot 1 = AC Lab at regs 5-9, Slot 8 = Fan library at regs 40-44, etc.).
2. What I have done so far
  • IO Tag Mapping: To optimize execution, I configured a single global line to avoid separate requests.
    • Type: Analog Input (Input Register) (I also tried Holding Register)
    • Address: %IW0
    • Offset: 0
    • Count: 200
  • ST Program: I mapped these variables to localized external aliases (VAR_EXTERNAL) and linked the program to MAINTASK under the resource Instances to ensure it runs cyclically.
  • Testing: A separate Python verification script reads the simulator's port 5020 successfully, proving that the simulated data (Voltage, Current, etc.) is properly generated and active on the simulator's side.
3. The Problem
Despite the simulator running fine and OpenPLC being status RUNNING, the debugger variables (CPE_Office_AC_Volt, CPE_Lab_AC_Volt, etc.) linked to %IW never refresh and stay completely at 0.
Screenshot 2026-10-02 081553.png
When I tried running an external test script on OpenPLC standard port 502, it returned an empty memory block (ABSENT status),
confirming that OpenPLC's memory is empty or that the driver is not actually pulling the data from port 5020.
Did I miss something regarding how OpenPLC initializes blocks or requires memory buffering for continuous arrays? Could this be related to how pymodbus registers types (FC03 vs FC04) align with the OpenPLC driver?
Any help or tracking pointers in the OpenPLC logs would be highly appreciated!
Thanks in advance.
Reply