So the thing I was talking about with Siemens is this:
While FB's (function blocks) and FC's (functions -- single scan, non static) do have internal memory, and there are user defined types, there is also another thing that works out nicely for the programmer. When you create a DB (data block), it's basically just a named heap. It can contain pretty much anything. INTs, DWORDs, Timers, UDT instances, counters, whatever, as well as multidimensional arrays of any of the above, in any combination.
So the effect comes out to a potentially very large one-off UDT instance, because both the DB and the members are all named, which makes the code very readable while still keeping associated variables together in one DB.
This is a thing that kind of peripherally relates to code-modularity that I'd very much like to get in DM at some point.