
Bolt (Customer) asked a question.
I'm working on a project with a BRX, and I created several UDT's. For example, Shift0-127. The last 128 shift's data is then kept in this block. However, I can only find Shift0 and Shift1 in the tag database, as those are the only ones directly referenced in the PLC code. How do I display Shift0-14's data, for example?
Similarly, if I go ahead and create a UDT of elements like HMI.CurrentScreen, .SelectScreen, etc, I can't get those to show up in the C-more's tag database to assign to PLC <-> Panel's setup until after they are directly referenced in the PLC code? This seems quite kludgey to have to fully build an entire PLC program before being able to fully setup the HMI?
I have tried all options of check marks in DmD's Export Element Documentation, 'Do-more Driver Format WITH Struct Fields' with 'Also export USED elements...' checked is the most expansive export, but still quite lacking in all the data.
Yeah, that's a "hole" in the current memory model. There are literally thousands each of D's, C's, V's, X's, Y's that you only want the ones that you have used in your program. But what if you want to create your HMI objects before you've actually wrote logic or created nicknames for them. UDTs of Heap Items could easily be added implicitly, but not necessarily all data blocks of all structures that are currently not used (but maybe so - every timer, counter, string, user data types, etc.). It's really bad if you are utilizing array references in logic of large data blocks of UDTs - you HAVE written the logic, but there is just maybe one hard reference to the index 0 of the block (vs. everything else is an array reference).
The Export for C-more needs to have an option where you can pick and choose anything/everything to be exported in your Memory Configuration, and NOT based on "usage" in your logic.
One non-optimal-work-around is you can create a d*u*m*m*y code block with a bunch of MEMCLEAR instructions for each UDT ID, e.g.
MEMCLEAR MyUDTBlock0
MEMCLEAR MyUDTBlock1
...
MEMCLEAR MyUDTBlock99
then do the Export
I wish I had a better answer. I think a browser/advanced checklist box of all data blocks and heap items would be the best "general" solution.