ID numbers for parameters for control modules in diagrams
I have some tools i make for projects , as and when required. One of my tools creates diagrams and control modules inside diagrams and reads and writes parameters for those control modules. Unlike SCM conf, every parameter connection for all control modules in diagrams have an ID number. My tool cannot decide or create New ID numbers for parameters which it is trying to write. Is there anyway to overcome this problem ?
I assume you are working with CBM Diagrams.
Generally speaking, parameter ID in Diagram XML should be unique within the whole system.
When I have been testing my Excel Bulk creating Diagram tool, I used some random logic as a template Diagram including dummy PID function block with assigned input parameters. I think FB and CM parameters assignment is the same in Diagram XML.
Then the tool creates a set of Tempate Diagram copies using the same copied IDs of function blocks parameters in each new Diagram.
Since CBM does not complain about the same parameter IDs exist in other Diagrams, maybe you can try to use the same IDs too.
I have developed another tool for conversion from SCM/FBD -> CBM Diagrams. Here I create new random ID for each Function block parameter.
I hope it helps