Thank you, Zen master!
I truly and deeply appreciate your methods for patiently guiding users toward enlightenment, providing just enough to let those of us truly wishing to learn to have their own discovery.
This way of teaching is so much more impactful than providing the entire solution, and I'll bet you know this, given users/students who will ask a few questions, and then return with ephanies, versus those who basically want you to do all the work.
From an earlier post, you had suggested that assigning one of the PLC's to multiple others as a "slave" was permissible, which adds an option to my tool set, but may not provide the entire solution.
Long story short, I am testing OpenPLC as one of the solutions for simulating PLCs within a "digital-twin", basically a process plant or factory either partially or entirely simulated in software. I have a Linux hypervisor running multiple (16) LXI containers, each of which is loaded with a lightweight, "headless" Ubuntu server instance, upon which runs an instance of OpenPLC Runtime.
This mirrors the 16 PLCs making up the DCS in our physical plant, but other LXI "PLC Modules" can be spawned instantly from an LXI template holding a pre-configured instance of the "base" PLC runtime. These can be used to create "responders" simulating more complex sensors on the network.
The physical PLCs and PACs in my plant never commit writes.
Each one has a similar "front-end" logic which queries one or more remote PLCs, then sets-up registers to be read by others.
I didn't set this up, because where I come from (energy/oil/gas), MY PLC processes I/O data, reads remotes only if necessary, processes the RLO, and then SENDS it; whatever is on the receiving end had better be ready to accept it, and send me a receipt. I'm not used to "asking politely" for all of my data, then waiting around for someone to consume my registers.
This is getting long, so I'll wrap-up.
If nothing else pans out, the finished "digital twin" would let me attach at least one "real" PLC by disabling its simulated twin running in the "OpenPLC mirror node", and allow the physical PLC to respond to the data read from the simulated nodes from the virtual network, in exactly the same way as it would on the real network. While its true that I will have other challenges making the physical I/O respond, I have a plan to use OpenPLC on Atmel or RPI to provide physical feedback, generated from the simulated plant.
Given the topology I describe, and among the "PLC nodes" running within the simulated DCS, it is obvious that the internal communications among soft PLCs within the ideal configuration is irrelevant.
The thing is that our "real" network commits a lot of reads (and no writes); essentially, everyone is simultaneously both "client" and "server", so you can imagine how this doesn't exactly dovetail with cross-assigning slaves to slaves, and will definitely not line-up with the "real-world" Modbus queries expecting to find all of this data available within the "non-OpenPLC-slave" address ranges.
For example, in our plant:
PLC"X" reads data from 12 others
PLC"A" reads data from PLC"X" and PLC"F"
PLC"B" reads data from PLC"A", PLC"X", and PLC"F"
And so on.
Assigning slaves to OpenPLC Runtime instances to support this behavior may work out, as long as I don't introduce collisions between internally addressed "remote" I/O, and real queries from hardware under test.
Thanks again!